Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 16:55:14 +0000 (UTC)
From:      Vsevolod Stakhov <vsevolod@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332396 - head/net-mgmt/ng_ipacct
Message-ID:  <201311011655.rA1GtEUt067482@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vsevolod
Date: Fri Nov  1 16:55:13 2013
New Revision: 332396
URL: http://svnweb.freebsd.org/changeset/ports/332396

Log:
  - Support staging.
  - Use kmod.

Modified:
  head/net-mgmt/ng_ipacct/Makefile
  head/net-mgmt/ng_ipacct/pkg-plist

Modified: head/net-mgmt/ng_ipacct/Makefile
==============================================================================
--- head/net-mgmt/ng_ipacct/Makefile	Fri Nov  1 16:08:21 2013	(r332395)
+++ head/net-mgmt/ng_ipacct/Makefile	Fri Nov  1 16:55:13 2013	(r332396)
@@ -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
-
-KMODDIR=	/boot/modules
-PLIST_SUB+=	KMODDIR=${KMODDIR:S!^/!!}
-
-MAKE_ENV=	BINDIR="${PREFIX}/sbin" KMODDIR=${KMODDIR}
-
-MAN8=		ipacctctl.8
-MANLANG=	ru.KOI8-R
-MANCOMPRESSED=	yes
+LICENSE=	BSD
+
+USES=	kmod
+
+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>

Modified: head/net-mgmt/ng_ipacct/pkg-plist
==============================================================================
--- head/net-mgmt/ng_ipacct/pkg-plist	Fri Nov  1 16:08:21 2013	(r332395)
+++ head/net-mgmt/ng_ipacct/pkg-plist	Fri Nov  1 16:55:13 2013	(r332396)
@@ -1,3 +1,4 @@
+man/ru.KOI8-R/man8/ipacctctl.8.gz
 include/netgraph/ng_ipacct.h
 etc/ng_ipacct.conf.sample
 sbin/ipacctctl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311011655.rA1GtEUt067482>