diff options
Diffstat (limited to 'emulators/netbsd32_compat15/DEINSTALL')
-rw-r--r-- | emulators/netbsd32_compat15/DEINSTALL | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/emulators/netbsd32_compat15/DEINSTALL b/emulators/netbsd32_compat15/DEINSTALL new file mode 100644 index 00000000000..0676fb1bb66 --- /dev/null +++ b/emulators/netbsd32_compat15/DEINSTALL @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2001/10/31 23:53:05 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +case ${STAGE} in +DEINSTALL) + ;; +POST-DEINSTALL) + MACHINE_ARCH=@MACHINE_ARCH@ + COMPAT_LIBDIR=@COMPAT_LIBDIR@ + COMPAT_LIBEXECDIR=@COMPAT_LIBEXECDIR@ + COMPAT_XLIBDIR=@COMPAT_XLIBDIR@ + + rmdir -p ${PKG_PREFIX}/${COMPAT_LIBDIR} ${PKG_PREFIX}/${COMPAT_LIBEXECDIR} ${PKG_PREFIX}/${COMPAT_XLIBDIR} 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 |