diff options
Diffstat (limited to 'emulators/compat13/pkg/DEINSTALL')
-rw-r--r-- | emulators/compat13/pkg/DEINSTALL | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/emulators/compat13/pkg/DEINSTALL b/emulators/compat13/pkg/DEINSTALL new file mode 100644 index 00000000000..56b12c40956 --- /dev/null +++ b/emulators/compat13/pkg/DEINSTALL @@ -0,0 +1,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 |