2000-10-14 01:36:37 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2001-10-31 23:52:58 +01:00
|
|
|
# $NetBSD: DEINSTALL,v 1.1 2001/10/31 23:52:24 zuntum Exp $
|
2000-10-14 01:36:37 +02:00
|
|
|
|
|
|
|
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
|
2000-10-14 02:01:56 +02:00
|
|
|
|
|
|
|
# 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
|
2000-10-14 01:36:37 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Unexpected argument: ${STAGE}"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
exit 0
|