pkgsrc/emulators/netbsd32_compat16/DEINSTALL
mrg a5c1b3b3eb initial commit of the netbsd32_compat16 package that provides emulation
of 32 bit 1.6 binaries for 64 bit platforms that support this (really
only sparc64.)
2002-11-08 16:23:02 +00:00

30 lines
546 B
Bash

#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $
PKGNAME=$1
STAGE=$2
case ${STAGE} in
DEINSTALL)
;;
POST-DEINSTALL)
MACHINE_ARCH=@MACHINE_ARCH@
COMPAT_EMULSUBDIR=@COMPAT_EMULSUBDIR@
rmdir -p ${PKG_PREFIX}/${COMPAT_EMULSUBDIR} 2>/dev/null || true
# clean up the symlink
rm -f /emul/netbsd32
# 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