diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-11 22:35:09 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-11 22:35:09 +0000 |
commit | e79768a72faa7c22352b73592dda054f9c5097b8 (patch) | |
tree | 0e91e98fc71687eb9457b2c1f247678cefb0de3b /net/sdig | |
parent | e595ea97dfce4d208fbde7edf0a860365fca5809 (diff) | |
download | pkgsrc-e79768a72faa7c22352b73592dda054f9c5097b8.tar.gz |
DESTDIR support
Diffstat (limited to 'net/sdig')
-rw-r--r-- | net/sdig/Makefile | 14 | ||||
-rw-r--r-- | net/sdig/distinfo | 4 | ||||
-rw-r--r-- | net/sdig/patches/patch-aa | 8 |
3 files changed, 14 insertions, 12 deletions
diff --git a/net/sdig/Makefile b/net/sdig/Makefile index 3dd6a1669fd..73363746cc9 100644 --- a/net/sdig/Makefile +++ b/net/sdig/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2008/06/23 03:53:57 dholland Exp $ +# $NetBSD: Makefile,v 1.16 2010/02/11 22:43:35 joerg Exp $ DISTNAME= sdig-0.30 PKGREVISION= 1 @@ -10,20 +10,22 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.exploits.org/sdig/ COMMENT= Switch Digger finds port assignment for hosts on a switched Ethernet +PKG_DESTDIR_SUPPORT= user-destdir + 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' -INSTALLATION_DIRS+= ${PKGMANDIR}/man8 ${PKGMANDIR}/man5 share/doc \ +INSTALLATION_DIRS+= bin ${PKGMANDIR}/man8 ${PKGMANDIR}/man5 share/doc \ share/examples share/misc post-install: - ${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/ + ${INSTALL_DATA} ${WRKSRC}/sdig.conf ${DESTDIR}${PREFIX}/share/examples/ + ${INSTALL_DATA} ${WRKDIR}/mactable ${DESTDIR}${PREFIX}/share/misc/ + ${INSTALL_DATA} ${WRKSRC}/sdig.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/ + ${INSTALL_DATA} ${WRKSRC}/sdig.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/ .include "../../net/net-snmp/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/sdig/distinfo b/net/sdig/distinfo index 8030a361c92..cd6ec2c9a6f 100644 --- a/net/sdig/distinfo +++ b/net/sdig/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2005/02/24 12:14:03 agc Exp $ +$NetBSD: distinfo,v 1.4 2010/02/11 22:43:35 joerg Exp $ SHA1 (sdig-0.30.tar.gz) = 5af0f6adbadee33b91a45cffcfd13587ad5fa3a0 RMD160 (sdig-0.30.tar.gz) = ec8c433352170aefaf8b74152df7da850349943a @@ -6,6 +6,6 @@ Size (sdig-0.30.tar.gz) = 25301 bytes SHA1 (mactable.gz) = afe9c24c45c5472c9e78d2a8d72fcdc18d43563d RMD160 (mactable.gz) = 1222c7b06a441c5ab4755c4525a55ca0a84442e3 Size (mactable.gz) = 36490 bytes -SHA1 (patch-aa) = 88e2c8be232c2666eed66400b31bef59ff4eb8b2 +SHA1 (patch-aa) = f70967610ce3aadc5e67d82cbf8d0d5325cf9c8c SHA1 (patch-ab) = 3b2d671d7d0ca66f8afe5c55bf075c6b62a9c95a SHA1 (patch-ac) = 0e5304f2d774ae8932ba5694b511410d52314f85 diff --git a/net/sdig/patches/patch-aa b/net/sdig/patches/patch-aa index ab8af608807..6a6ab76031d 100644 --- a/net/sdig/patches/patch-aa +++ b/net/sdig/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.2 2003/04/07 15:01:22 bouyer Exp $ +$NetBSD: patch-aa,v 1.3 2010/02/11 22:43:35 joerg Exp $ --- Makefile.orig Tue Jul 23 04:56:11 2002 +++ Makefile Wed Apr 2 18:58:25 2003 @@ -43,6 +43,6 @@ $NetBSD: patch-aa,v 1.2 2003/04/07 15:01:22 bouyer Exp $ - else \ - cp sdig.conf /etc; \ - fi -+ ${BSD_INSTALL_PROGRAM} sdig ${PREFIX}/bin -+ ${BSD_INSTALL_PROGRAM} nbname ${PREFIX}/bin -+ ${BSD_INSTALL_DATA} README ${PREFIX}/share/doc/sdig.README ++ ${BSD_INSTALL_PROGRAM} sdig ${DESTDIR}${PREFIX}/bin ++ ${BSD_INSTALL_PROGRAM} nbname ${DESTDIR}${PREFIX}/bin ++ ${BSD_INSTALL_DATA} README ${DESTDIR}${PREFIX}/share/doc/sdig.README |