diff options
author | seb <seb> | 2003-12-13 17:45:59 +0000 |
---|---|---|
committer | seb <seb> | 2003-12-13 17:45:59 +0000 |
commit | 4eed7e5172935cbaca701560666f15f9160fc01e (patch) | |
tree | c4a8d9ae9b868abbbe2deba585dc05c3b3b484c3 /pkgtools/libkver/DEINSTALL | |
parent | c15098976efec0fc88ff54802d59b59af166aa93 (diff) | |
download | pkgsrc-4eed7e5172935cbaca701560666f15f9160fc01e.tar.gz |
Update to version 0.4.
Libkver is now run-time configurable, see installed kver(3), it now
installs in LOCALBASE and uses install/deinstall scripts to replace/restore
/sbin/sysctl if needed.
Diffstat (limited to 'pkgtools/libkver/DEINSTALL')
-rw-r--r-- | pkgtools/libkver/DEINSTALL | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgtools/libkver/DEINSTALL b/pkgtools/libkver/DEINSTALL new file mode 100644 index 00000000000..4ffdaf91618 --- /dev/null +++ b/pkgtools/libkver/DEINSTALL @@ -0,0 +1,12 @@ +# $NetBSD: DEINSTALL,v 1.1 2003/12/13 17:45:59 seb Exp $ + +HAS_SYSCTL=@HAS_SYSCTL@ + +case ${STAGE} in +DEINSTALL) + if ${HAS_SYSCTL} && [ -f /sbin/sysctl.pre-${PKGBASE} ]; then + ${RM} -f /sbin/sysctl && \ + ${MV} /sbin/sysctl.pre-${PKGBASE} /sbin/sysctl && \ + ${ECHO} "/sbin/sysctl.pre-${PKGBASE} has been restored as /sbin/sysctl" + fi +esac |