summaryrefslogtreecommitdiff
path: root/emulators/compat14/DEINSTALL
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-08-30 19:02:33 +0000
committerjlam <jlam@pkgsrc.org>2003-08-30 19:02:33 +0000
commit501c7f764d0d1b513e5c7db3a4ae7ce5aa66de80 (patch)
treedb65d689180dc94d8cfde9f910158ea1c6a22937 /emulators/compat14/DEINSTALL
parent84729c73f543ed91b800efaf9dc1791e43640c33 (diff)
downloadpkgsrc-501c7f764d0d1b513e5c7db3a4ae7ce5aa66de80.tar.gz
Convert to use bsd.pkg.install.mk.
Diffstat (limited to 'emulators/compat14/DEINSTALL')
-rw-r--r--emulators/compat14/DEINSTALL22
1 files changed, 5 insertions, 17 deletions
diff --git a/emulators/compat14/DEINSTALL b/emulators/compat14/DEINSTALL
index 2029cd952a2..a836e07aaf7 100644
--- a/emulators/compat14/DEINSTALL
+++ b/emulators/compat14/DEINSTALL
@@ -1,13 +1,6 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.1 2001/10/31 23:52:28 zuntum Exp $
-
-PKGNAME=$1
-STAGE=$2
+# $NetBSD: DEINSTALL,v 1.2 2003/08/30 19:02:33 jlam Exp $
case ${STAGE} in
-DEINSTALL)
- ;;
POST-DEINSTALL)
MACHINE_ARCH=@MACHINE_ARCH@
COMPAT_LIBDIR=@COMPAT_LIBDIR@
@@ -15,20 +8,15 @@ POST-DEINSTALL)
if [ "${MACHINE_ARCH}" = "mipsel" ]
then
- rm -f ${PKG_PREFIX}/libexec/ld.so
- rmdir -p ${PKG_PREFIX}/libexec 2>/dev/null || true
+ ${RM} -f ${PKG_PREFIX}/libexec/ld.so
+ ${RMDIR} -p ${PKG_PREFIX}/libexec 2>/dev/null || ${TRUE}
fi
- rmdir -p ${PKG_PREFIX}/${COMPAT_LIBDIR} ${PKG_PREFIX}/${COMPAT_XLIBDIR} 2>/dev/null || true
+ ${RMDIR} -p ${PKG_PREFIX}/${COMPAT_LIBDIR} ${PKG_PREFIX}/${COMPAT_XLIBDIR} 2>/dev/null || ${TRUE}
# 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
+ ( @LDCONFIG@ || ${TRUE} ) >/dev/null 2>&1
;;
esac
-exit 0