summaryrefslogtreecommitdiff
path: root/net/cia
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-11 20:27:45 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-11 20:27:45 +0000
commit3885768c9e378603656f1f52808e97784ff2e196 (patch)
treea7f5e79ef22692049e6285d201efe5e5c11b3c31 /net/cia
parentd74a207bac852dd7ef83840a2c842811dea072b4 (diff)
downloadpkgsrc-3885768c9e378603656f1f52808e97784ff2e196.tar.gz
DESTDIR support
Diffstat (limited to 'net/cia')
-rw-r--r--net/cia/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/net/cia/Makefile b/net/cia/Makefile
index 20ae8050df3..66e1249732f 100644
--- a/net/cia/Makefile
+++ b/net/cia/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/05/25 20:49:39 tron Exp $
+# $NetBSD: Makefile,v 1.13 2010/02/11 20:27:45 joerg Exp $
DISTNAME= cia-20030922
CATEGORIES= net
@@ -8,15 +8,18 @@ EXTRACT_SUFX= .tar.bz2
OWNER= tron@NetBSD.org
COMMENT= Simple IP accounting software
+PKG_DESTDIR_SUPPORT= user-destdir
+
DOC_DIR= ${PREFIX}/share/doc/cia
EXAMPLES_DIR= ${PREFIX}/share/examples/cia
-MAKE_ENV+= ${BSD_MAKE_ENV}
+
+USE_BSD_MAKEFILE= yes
+
+INSTALLATION_DIRS+= bin ${DOC_DIR} ${EXAMPLES_DIR}
post-install:
- ${INSTALL_DATA_DIR} ${DOC_DIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/README ${DOC_DIR}
- ${INSTALL_DATA_DIR} ${EXAMPLES_DIR}
- ${INSTALL_DATA} ${WRKSRC}/ipstat/examples/*.cfg ${EXAMPLES_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/README ${DESTDIR}${DOC_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/ipstat/examples/*.cfg ${DESTDIR}${EXAMPLES_DIR}
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"