summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-15 21:39:21 +0000
committerrillig <rillig@pkgsrc.org>2007-02-15 21:39:21 +0000
commit2c4df81e649901091314af3492185d61af911029 (patch)
tree58f1c4b409fd69d3e6506dd97b4c01fca001165e /net
parent79a320a98ffd9a3f2fefdc5974a8b6aa990a6ed7 (diff)
downloadpkgsrc-2c4df81e649901091314af3492185d61af911029.tar.gz
Made the package definition a bit simpler.
Diffstat (limited to 'net')
-rw-r--r--net/sdig/Makefile23
1 files changed, 8 insertions, 15 deletions
diff --git a/net/sdig/Makefile b/net/sdig/Makefile
index e6861918f91..249fb8b72aa 100644
--- a/net/sdig/Makefile
+++ b/net/sdig/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/01/07 09:14:06 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2007/02/15 21:39:21 rillig Exp $
DISTNAME= sdig-0.30
PKGREVISION= 1
@@ -10,26 +10,19 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.exploits.org/sdig/
COMMENT= Switch Digger finds port assignment for hosts on a switched Ethernet
+SUBST_CLASSES+= sdig
+SUBST_STAGE.sdig= post-build
+SUBST_MESSAGE.sdig= Inserting the correct prefix directory.
+SUBST_FILES.sdig= sdig.conf
+SUBST_SED.sdig= -e 's,\$${PREFIX},${PREFIX},g'
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-
-.include "../../mk/bsd.prefs.mk"
-
-post-extract:
- ${GZCAT} < ${DISTDIR}/mactable.gz > ${WRKDIR}/mactable
-
-post-build: my-post-build
+INSTALLATION_DIRS+= man/man8 man/man5 share/misc share/examples
post-install:
- ${INSTALL_DATA} ${WRKDIR}/sdig.conf ${PREFIX}/share/examples/
+ ${INSTALL_DATA} ${WRKSRC}/sdig.conf ${PREFIX}/share/examples/
${INSTALL_DATA} ${WRKDIR}/mactable ${PREFIX}/share/misc/
${INSTALL_DATA} ${WRKSRC}/sdig.8 ${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_DATA} ${WRKSRC}/sdig.conf.5 ${PREFIX}/${PKGMANDIR}/man5/
.include "../../net/net-snmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
-
-# Note: this depends on having a MESSAGE file, which we do.
-#
-my-post-build:
- ${SED} ${MESSAGE_SUBST_SED} < ${WRKSRC}/sdig.conf > ${WRKDIR}/sdig.conf