summaryrefslogtreecommitdiff
path: root/emulators/suse91_base/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/suse91_base/DEINSTALL')
-rw-r--r--emulators/suse91_base/DEINSTALL27
1 files changed, 27 insertions, 0 deletions
diff --git a/emulators/suse91_base/DEINSTALL b/emulators/suse91_base/DEINSTALL
new file mode 100644
index 00000000000..28db71f2665
--- /dev/null
+++ b/emulators/suse91_base/DEINSTALL
@@ -0,0 +1,27 @@
+# $NetBSD: DEINSTALL,v 1.1 2007/07/29 05:19:03 jlam Exp $
+
+EMULDIR="${PKG_PREFIX}/@EMULSUBDIR@"
+
+case "${STAGE}" in
+DEINSTALL)
+ # Run any actions that require root privileges.
+ ${TEST} ! -x ./+ROOT_ACTIONS ||
+ ./+ROOT_ACTIONS REMOVE ${PKG_METADATA_DIR} || exit 1
+
+ # Blow away the /proc directory
+ ${RM} -fr ${EMULDIR}/proc
+
+ # Remove a stray symlink that would normally be managed by
+ # ldconfig(8).
+ #
+ ${RM} -f ${EMULDIR}/usr/@LINUX_LIBSUBDIR@/libz.so.1
+
+ # Remove some files created by pkgsrc.
+ ${RM} -f ${EMULDIR}/etc/ld.so.cache
+ ${RM} -f ${EMULDIR}/etc/mtab
+ ${RM} -f ${EMULDIR}/etc/group
+ ${RM} -f ${EMULDIR}/etc/gshadow
+ ${RM} -f ${EMULDIR}/etc/passwd
+ ${RM} -f ${EMULDIR}/etc/shadow
+ ;;
+esac