summaryrefslogtreecommitdiff
path: root/emulators/netbsd32_compat16/DEINSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/netbsd32_compat16/DEINSTALL')
-rw-r--r--emulators/netbsd32_compat16/DEINSTALL30
1 files changed, 30 insertions, 0 deletions
diff --git a/emulators/netbsd32_compat16/DEINSTALL b/emulators/netbsd32_compat16/DEINSTALL
new file mode 100644
index 00000000000..caab4d81b15
--- /dev/null
+++ b/emulators/netbsd32_compat16/DEINSTALL
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+POST-DEINSTALL)
+ MACHINE_ARCH=@MACHINE_ARCH@
+ COMPAT_EMULSUBDIR=@COMPAT_EMULSUBDIR@
+
+ rmdir -p ${PKG_PREFIX}/${COMPAT_EMULSUBDIR} 2>/dev/null || true
+
+ # clean up the symlink
+ rm -f /emul/netbsd32
+
+ # Regenerate the shared library cache. This should work on either
+ # a.out or on ELF with the 1.5 release.
+ #
+ ( @LDCONFIG@ || true ) >/dev/null 2>&1
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0