summaryrefslogtreecommitdiff
path: root/emulators/compat13/pkg/DEINSTALL
blob: 56b12c40956923a6ce91ab51e955f06fdf1f77e8 (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
25
26
27
28
#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.1 2000/10/13 23:36:40 jlam Exp $

PKGNAME=$1
STAGE=$2

case ${STAGE} in
DEINSTALL)
	;;
POST-DEINSTALL)
	MACHINE_ARCH=@MACHINE_ARCH@
	COMPAT_LIBDIR=@COMPAT_LIBDIR@

	if [ "${MACHINE_ARCH}" = "mipsel" ]
	then
		rm -f ${PKG_PREFIX}/libexec/ld.so
		rmdir -p ${PKG_PREFIX}/libexec 2>/dev/null || true
	fi

	rmdir -p ${PKG_PREFIX}/${COMPAT_LIBDIR} 2>/dev/null || true
	;;
*)
	echo "Unexpected argument: ${STAGE}"
	exit 1
	;;
esac
exit 0