diff options
author | abs <abs> | 2009-12-17 22:14:27 +0000 |
---|---|---|
committer | abs <abs> | 2009-12-17 22:14:27 +0000 |
commit | 37ecfe3f1227c88c80320e0d63b0a77c373f161a (patch) | |
tree | 3b1ae0f623efaaa021ac8ee09b856539dabb1087 /net | |
parent | b13a18036b465a6b723e9361348571775d8031e9 (diff) | |
download | pkgsrc-37ecfe3f1227c88c80320e0d63b0a77c373f161a.tar.gz |
PKG_DESTDIR_SUPPORT
Diffstat (limited to 'net')
-rw-r--r-- | net/cisco-mibs/Makefile | 16 | ||||
-rw-r--r-- | net/flodo/Makefile | 7 |
2 files changed, 13 insertions, 10 deletions
diff --git a/net/cisco-mibs/Makefile b/net/cisco-mibs/Makefile index fff35b136c4..e2f3f5a9131 100644 --- a/net/cisco-mibs/Makefile +++ b/net/cisco-mibs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2006/02/05 23:10:23 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2009/12/17 22:22:05 abs Exp $ DISTNAME= cisco-mibs-20050210 PKGREVISION= 1 @@ -25,18 +25,20 @@ USE_TOOLS+= gtar MIBDIR= ${PREFIX}/share/cisco-mibs +INSTALLATION_DIRS+= share/cisco-mibs +PKG_DESTDIR_SUPPORT= user-destdir do-install: - ${INSTALL_DATA_DIR} ${MIBDIR} -.for DISTFILE in ${DISTFILES} - @${ECHO_MSG} -n "Extracting ${DISTFILE} ... " - @${GTAR} -xz \ + +.for distfile in ${DISTFILES} + @${ECHO_MSG} -n "Extracting ${distfile} ... " + ${GTAR} -xz \ --exclude=v1-readme \ --exclude=v2-readme \ - -C ${MIBDIR} -f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILE} + -C ${DESTDIR}${MIBDIR} -f ${DISTDIR}/${DIST_SUBDIR}/${distfile} @${ECHO_MSG} "done" .endfor @${ECHO_MSG} -n "Fixing file ownerships ... " - @${CHOWN} -R ${BINOWN}:${BINGRP} ${MIBDIR} + ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${MIBDIR} @${ECHO_MSG} "done" .include "../../mk/bsd.pkg.mk" diff --git a/net/flodo/Makefile b/net/flodo/Makefile index 6b9d7bad603..567b9d62de9 100644 --- a/net/flodo/Makefile +++ b/net/flodo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2008/03/10 10:33:38 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2009/12/17 22:14:27 abs Exp $ # DISTNAME= flodo-v4 @@ -16,6 +16,7 @@ BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8 CPPFLAGS+= -I${BUILDLINK_PREFIX.libpcap}/include LDFLAGS+= -L${BUILDLINK_PREFIX.libpcap}/lib +PKG_DESTDIR_SUPPORT= user-destdir INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin CONFLICTS+= flodo-4-[0-9]* @@ -24,8 +25,8 @@ do-build: cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o flodo flodo.c hash.c local_mac.c -lpcap do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/flodo ${PREFIX}/sbin - ${INSTALL_MAN} ${WRKSRC}/flodo.8 ${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/flodo ${DESTDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/flodo.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 .include "../../net/libpcap/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |