summaryrefslogtreecommitdiff
path: root/emulators/suse15_base/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/suse15_base/DEINSTALL')
-rw-r--r--emulators/suse15_base/DEINSTALL24
1 files changed, 24 insertions, 0 deletions
diff --git a/emulators/suse15_base/DEINSTALL b/emulators/suse15_base/DEINSTALL
new file mode 100644
index 00000000000..519ec9390ef
--- /dev/null
+++ b/emulators/suse15_base/DEINSTALL
@@ -0,0 +1,24 @@
+# $NetBSD: DEINSTALL,v 1.1 2022/10/02 17:17:17 wiz 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
+ ${RMDIR} -p ${EMULDIR}/proc
+
+ # 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
+ ${RM} -f ${EMULDIR}/var/cache/ldconfig/aux-cache
+ ${RM} -rf ${EMULDIR}/var/lock
+ ;;
+esac