From c946b5caed9d9dac0b9591d60270918ab3d1125f Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 11 Feb 2010 21:33:29 +0000 Subject: DESTDIR support --- net/iplog/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'net/iplog') 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" -- cgit v1.2.3