aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ng_ipacct/Makefile
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-08-13 10:22:57 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-08-13 10:22:57 +0000
commite835f4e22e7d3924e5efe9615a8d6ca6834df699 (patch)
treee07eb2d3dc66cf4a1af3e1cb589316356960f226 /net-mgmt/ng_ipacct/Makefile
parent6b1e4781733769f93d24f0debdc775dd74918a2c (diff)
downloadports-e835f4e22e7d3924e5efe9615a8d6ca6834df699.tar.gz
ports-e835f4e22e7d3924e5efe9615a8d6ca6834df699.zip
Fix problem introduced in r302141. The directory for the unpacked source
files is unversioned, so it conflicts with the name of the rc.d script in WRKDIR after SUB_FILES is applied. PR: ports/170592 Submitted by: Eugene Grosbein <eugen@eg.sd.rdtc.ru>
Notes
Notes: svn path=/head/; revision=302462
Diffstat (limited to 'net-mgmt/ng_ipacct/Makefile')
-rw-r--r--net-mgmt/ng_ipacct/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/net-mgmt/ng_ipacct/Makefile b/net-mgmt/ng_ipacct/Makefile
index cb59702c8c61..de066c473ecf 100644
--- a/net-mgmt/ng_ipacct/Makefile
+++ b/net-mgmt/ng_ipacct/Makefile
@@ -25,7 +25,7 @@ OPTIONS= MEM_ZONE "Use UMA zone allocator (>= 5.x only)" on
KMODDIR= /boot/modules
PLIST_SUB+= KMODDIR=${KMODDIR:S!^/!!}
-WRKSRC= ${WRKDIR}/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ENV= BINDIR="${PREFIX}/sbin" KMODDIR=${KMODDIR}
MAN8= ipacctctl.8
@@ -41,6 +41,9 @@ SUB_FILES= pkg-message
CFLAGS+= -DMEM_USE_ZONE
.endif
+post-extract:
+ @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
+
post-install:
@${MKDIR} ${PREFIX}/include/netgraph
${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${PREFIX}/include/netgraph