22 lines
596 B
Text
22 lines
596 B
Text
# $NetBSD: DEINSTALL,v 1.2 2003/08/30 19:02:33 jlam Exp $
|
|
|
|
case ${STAGE} in
|
|
POST-DEINSTALL)
|
|
MACHINE_ARCH=@MACHINE_ARCH@
|
|
COMPAT_LIBDIR=@COMPAT_LIBDIR@
|
|
COMPAT_XLIBDIR=@COMPAT_XLIBDIR@
|
|
|
|
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} ${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
|
|
;;
|
|
esac
|