aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/ng_ipacct
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2013-11-02 00:55:13 +0800
committervsevolod <vsevolod@FreeBSD.org>2013-11-02 00:55:13 +0800
commit7b3c2dbe05efcd2b1759133c15b8f4f67121b84b (patch)
tree912e9808ea2570d2416d2d41e62fa55f50985130 /net-mgmt/ng_ipacct
parent64b675e47f6975edeb069bfc45c6eec7bad13db1 (diff)
downloadfreebsd-ports-gnome-7b3c2dbe05efcd2b1759133c15b8f4f67121b84b.tar.gz
freebsd-ports-gnome-7b3c2dbe05efcd2b1759133c15b8f4f67121b84b.tar.zst
freebsd-ports-gnome-7b3c2dbe05efcd2b1759133c15b8f4f67121b84b.zip
- Support staging.
- Use kmod.
Diffstat (limited to 'net-mgmt/ng_ipacct')
-rw-r--r--net-mgmt/ng_ipacct/Makefile27
-rw-r--r--net-mgmt/ng_ipacct/pkg-plist1
2 files changed, 10 insertions, 18 deletions
diff --git a/net-mgmt/ng_ipacct/Makefile b/net-mgmt/ng_ipacct/Makefile
index d9049ad3c53e..7004e14ba9ac 100644
--- a/net-mgmt/ng_ipacct/Makefile
+++ b/net-mgmt/ng_ipacct/Makefile
@@ -3,42 +3,33 @@
PORTNAME= ng_ipacct
PORTVERSION= 20061223
-PORTREVISION= 1
-CATEGORIES= net-mgmt kld
+PORTREVISION= 2
+CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_LOCAL:S!$!skv/!} \
http://highsecure.ru/distfiles/
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= Netgraph IP accounting
-.ifndef PACKAGE_BUILDING
-NO_PACKAGE= depends on kernel
-.else
-IGNORE= depends on kernel
-.endif
+LICENSE= BSD
-KMODDIR= /boot/modules
-PLIST_SUB+= KMODDIR=${KMODDIR:S!^/!!}
+USES= kmod
-MAKE_ENV= BINDIR="${PREFIX}/sbin" KMODDIR=${KMODDIR}
-
-MAN8= ipacctctl.8
-MANLANG= ru.KOI8-R
-MANCOMPRESSED= yes
+MAKE_ENV= BINDIR="${PREFIX}/sbin" KMODDIR=${KMODDIR} NO_XREF=yes
USE_RC_SUBR= ng_ipacct
SUB_FILES= pkg-message
CFLAGS+= -DMEM_USE_ZONE
+NEED_ROOT= yes
-NO_STAGE= yes
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
post-install:
- @${MKDIR} ${PREFIX}/include/netgraph
- ${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${PREFIX}/include/netgraph
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/netgraph
+ ${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${STAGEDIR}${PREFIX}/include/netgraph
${INSTALL_DATA} ${FILESDIR}/ng_ipacct.conf \
- ${PREFIX}/etc/ng_ipacct.conf.sample
+ ${STAGEDIR}${PREFIX}/etc/ng_ipacct.conf.sample
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/net-mgmt/ng_ipacct/pkg-plist b/net-mgmt/ng_ipacct/pkg-plist
index 671d46e7e664..e287b9974c5a 100644
--- a/net-mgmt/ng_ipacct/pkg-plist
+++ b/net-mgmt/ng_ipacct/pkg-plist
@@ -1,3 +1,4 @@
+man/ru.KOI8-R/man8/ipacctctl.8.gz
include/netgraph/ng_ipacct.h
etc/ng_ipacct.conf.sample
sbin/ipacctctl