summaryrefslogtreecommitdiff
path: root/emulators/suse113_base/DEINSTALL
blob: c106d47e8f13bf2ce0a96e18dcf3f6d754123a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $NetBSD: DEINSTALL,v 1.1.1.1 2010/09/24 01:27:52 chs 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