summaryrefslogtreecommitdiff
path: root/emulators/linux_base-fc6/pkg-deinstall
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2006-03-18 19:07:04 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2006-03-18 19:07:04 +0000
commitaffb190b1684373365e6d684160757c3625ed749 (patch)
tree624fb52a1e6d30650170aaefefff35a5a243c0bb /emulators/linux_base-fc6/pkg-deinstall
parentUpdate to 1.2 improves local and parent name server comparison (diff)
The port is intended to become the new default linux_base port (replaces
the current linux_base-8 port). You should only switch to this port if you know what you are doing. You may or may not have problems with installing other linux related ports after switching to it. Success or failure reports welcome. To switch: - echo "OVERRIDE_LINUX_BASE_PORT=fc3" >> /etc/make.conf - portupgrade -fo emulators/linux_base-fc3 linux_base-8 News and changes (from submitter with some small changes by me): - based on linux_base-8 port; - don't use linux rpm binary to install. The whole source tree is created at ${WRKDIR} and then installed (using cpio); - removes some files and directories (etc/passwd, etc/group, usr/local, ...) to ensure using FreeBSD original files; - introduces etc/nsswitch.conf.dist and etc/yp.conf.sample files, uses correct install/deinstall behaviour with etc/nsswitch.conf and etc/yp.conf files; - doesn't do [u]mounting while install/deinstall process. Thus it is possible to use jails while building packages. But since linprocfs is not automounted, special measures should be taken at package building for those ports which need a mounted linprocfs (i.e. for linux JDK building); - uses linux ldconfig in the pkg-install file (as opposed to using in the Makefile). It is needed when upgrading (i.e. when other linux libraries are present in the system) and when installing by packages. Submitted by: Boris Samorodov <bsam@ipt.ru> (some small changes by me)
Notes
Notes: svn path=/head/; revision=157591
Diffstat (limited to 'emulators/linux_base-fc6/pkg-deinstall')
-rw-r--r--emulators/linux_base-fc6/pkg-deinstall18
1 files changed, 18 insertions, 0 deletions
diff --git a/emulators/linux_base-fc6/pkg-deinstall b/emulators/linux_base-fc6/pkg-deinstall
new file mode 100644
index 000000000000..ad1a3ef75216
--- /dev/null
+++ b/emulators/linux_base-fc6/pkg-deinstall
@@ -0,0 +1,18 @@
+#!/bin/sh
+# a deinstallation script for linux_base
+
+case "$2" in
+DEINSTALL)
+ if [ -n "`mount | grep ^linproc`" ] || \
+ [ -d /compat/linux/proc ]; then
+ echo ""
+ echo "You may need to do by hands:"
+ echo " o unmount linprocfs;"
+ echo " o delete ${PKG_PREFIX}/proc;"
+ echo " o remove the description of linprocfs from /etc/fstab."
+ echo ""
+ fi
+ ;;
+esac
+
+exit 0