diff options
author | abs <abs@pkgsrc.org> | 2009-12-17 22:14:27 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-12-17 22:14:27 +0000 |
commit | cda5cd9840db40464ba626525930f67246e209ba (patch) | |
tree | 3b1ae0f623efaaa021ac8ee09b856539dabb1087 /net/cisco-mibs | |
parent | 6dc71a8b48b8ab367f818277b7de1db51befec05 (diff) | |
download | pkgsrc-cda5cd9840db40464ba626525930f67246e209ba.tar.gz |
PKG_DESTDIR_SUPPORT
Diffstat (limited to 'net/cisco-mibs')
-rw-r--r-- | net/cisco-mibs/Makefile | 16 |
1 files changed, 9 insertions, 7 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" |