summaryrefslogtreecommitdiff
path: root/net/iplog
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-11 21:33:29 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-11 21:33:29 +0000
commitc1664a02eefa7c9bbd90fba48cfe81fa44e74507 (patch)
treebc07d0214d409774e49eaf3de5f775c4a607a401 /net/iplog
parent7a24433f224ae449d94a502f8eefbd2b13810db3 (diff)
downloadpkgsrc-c1664a02eefa7c9bbd90fba48cfe81fa44e74507.tar.gz
DESTDIR support
Diffstat (limited to 'net/iplog')
-rw-r--r--net/iplog/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/iplog/Makefile b/net/iplog/Makefile
index da9d9737028..cfb21350c9d 100644
--- a/net/iplog/Makefile
+++ b/net/iplog/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/02/05 23:10:25 joerg Exp $
+# $NetBSD: Makefile,v 1.14 2010/02/11 21:36:18 joerg Exp $
#
DISTNAME= iplog-2.2.3
@@ -10,6 +10,8 @@ MAINTAINER= gremlin@portal-to-web.de
HOMEPAGE= http://ojnk.sourceforge.net/
COMMENT= Iplog is a tool using pcap to log IP traffic
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
GNU_CONFIGURE= YES
@@ -17,13 +19,14 @@ RCD_SCRIPTS= iplog
EGDIR= ${PREFIX}/share/examples/iplog
+INSTALLATION_DIRS+= ${EGDIR}
+
post-patch:
cd ${WRKSRC}/src && ${SED} s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g \
< iplog.h > iplog.h.patched && ${MV} iplog.h.patched iplog.h
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${EGDIR}/iplog.conf
+ ${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${DESTDIR}${EGDIR}/iplog.conf
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"