diff options
author | jlam <jlam@pkgsrc.org> | 2000-10-14 00:01:56 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-10-14 00:01:56 +0000 |
commit | 943a1e9a35622707805ab9d9d67ed3fb8a9bda60 (patch) | |
tree | ed11ff0faf133ce2e9616bcdc33b3bcc958a202b /emulators/compat12/pkg | |
parent | 9be7e73f42db2ccb1dfb93ccbd2312a8578dde81 (diff) | |
download | pkgsrc-943a1e9a35622707805ab9d9d67ed3fb8a9bda60.tar.gz |
Run ldconfig after installing/deinstalling shared libraries. We need to
do this manually since it's not automatically handled by bsd.pkg.mk.
Diffstat (limited to 'emulators/compat12/pkg')
-rw-r--r-- | emulators/compat12/pkg/DEINSTALL | 7 | ||||
-rw-r--r-- | emulators/compat12/pkg/INSTALL | 11 |
2 files changed, 15 insertions, 3 deletions
diff --git a/emulators/compat12/pkg/DEINSTALL b/emulators/compat12/pkg/DEINSTALL index 73869caeeba..246679b1e2a 100644 --- a/emulators/compat12/pkg/DEINSTALL +++ b/emulators/compat12/pkg/DEINSTALL @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: DEINSTALL,v 1.1 2000/10/13 23:36:39 jlam Exp $ +# $NetBSD: DEINSTALL,v 1.2 2000/10/14 00:01:58 jlam Exp $ PKGNAME=$1 STAGE=$2 @@ -12,6 +12,11 @@ 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}" diff --git a/emulators/compat12/pkg/INSTALL b/emulators/compat12/pkg/INSTALL index 0085009a490..047eb557136 100644 --- a/emulators/compat12/pkg/INSTALL +++ b/emulators/compat12/pkg/INSTALL @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.1 2000/10/13 23:36:39 jlam Exp $ +# $NetBSD: INSTALL,v 1.2 2000/10/14 00:01:58 jlam Exp $ PKGNAME=$1 STAGE=$2 @@ -15,7 +15,9 @@ POST-INSTALL) # Only create the symlink on certain platform/object combinations. # create_emul_symlink=0 - if [ "${MACHINE_ARCH}" = "i386" -a "${OBJECT_FMT}" = "ELF" ] + if [ "${OBJECT_FMT}" = "ELF" -a \ + "${MACHINE_ARCH}" = "i386" -o \ + "${MACHINE_ARCH}" = "sparc" ] then create_emul_symlink=1 fi @@ -47,6 +49,11 @@ EOF fi fi fi + + # 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}" |