pkgsrc/emulators/compat12/pkg/DEINSTALL
jlam 943a1e9a35 Run ldconfig after installing/deinstalling shared libraries. We need to
do this manually since it's not automatically handled by bsd.pkg.mk.
2000-10-14 00:01:56 +00:00

26 lines
455 B
Bash

#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.2 2000/10/14 00:01:58 jlam Exp $
PKGNAME=$1
STAGE=$2
case ${STAGE} in
DEINSTALL)
;;
POST-DEINSTALL)
COMPAT_LIBDIR=@COMPAT_LIBDIR@
rmdir -p ${PKG_PREFIX}/${COMPAT_LIBDIR} 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
;;
esac
exit 0