summaryrefslogtreecommitdiff
path: root/net/nocol
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-07-05 06:53:12 +0000
committerjlam <jlam@pkgsrc.org>2006-07-05 06:53:12 +0000
commitac0baf9615030116b355395b6e4b52c7403936aa (patch)
treec1cac8d3ff0a7fb5ff1a16e24073b5e91efd1aa7 /net/nocol
parent5f86d6a2d2802f78f83b3bec79ec92f376fe02af (diff)
downloadpkgsrc-ac0baf9615030116b355395b6e4b52c7403936aa.tar.gz
Drop use of INSTALL_SRC and DEINSTALL_SRC and instead set the proper
variables so that the default INSTALL/DEINSTALL scripts from the pkginstall framework do the right thing. Where possible, move some post-install directions for package setup into MESSAGE files so that they may be re-inspected by querying the installed package using "pkg_info -D ...".
Diffstat (limited to 'net/nocol')
-rwxr-xr-xnet/nocol/DEINSTALL23
-rw-r--r--net/nocol/Makefile7
2 files changed, 4 insertions, 26 deletions
diff --git a/net/nocol/DEINSTALL b/net/nocol/DEINSTALL
deleted file mode 100755
index 5e7a5b3e203..00000000000
--- a/net/nocol/DEINSTALL
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.3 2003/05/06 17:42:13 jmmv Exp $
-#
-
-case "$2" in
- DEINSTALL) cat <<EOF
-
----------------------------------------------------------------------------
-Data files and messages created by nocol are stored in /var/run/msgs and
-/var/run/data. You may want to remove these directories manually if you
-don't need them any longer:
-
- rm -fr /var/run/msgs /var/run/data
-
-For further information look at $PKG_PREFIX/share
----------------------------------------------------------------------------
-
-EOF
- ;;
-esac
-
-exit 0
diff --git a/net/nocol/Makefile b/net/nocol/Makefile
index 83c95bad935..87a7c8a9f03 100644
--- a/net/nocol/Makefile
+++ b/net/nocol/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2006/06/20 22:17:14 minskim Exp $
+# $NetBSD: Makefile,v 1.28 2006/07/05 06:53:13 jlam Exp $
#
DISTNAME= nocol-4.3.1
@@ -22,8 +22,9 @@ LIBTOOL_OVERRIDE= ${WRKSRC}/cmu-snmp/snmp/libtool \
${WRKSRC}/cmu-snmp/snmpapps/libtool
INSTALL_TARGET= install root
-DEINSTALL_SRC= ${PKGDIR}/DEINSTALL
-INSTALL_SRC= # empty
+
+OWN_DIRS+= /var/run/msgs
+OWN_DIRS+= /var/run/data
post-patch:
@(hostname=`/bin/hostname`; \