aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/ng_ipacct/Makefile
diff options
context:
space:
mode:
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