Index: head/net-mgmt/ng_ipacct/Makefile =================================================================== --- head/net-mgmt/ng_ipacct/Makefile (revision 466150) +++ head/net-mgmt/ng_ipacct/Makefile (revision 466151) @@ -1,37 +1,42 @@ # Created by: Sergey Skvortsov # $FreeBSD$ PORTNAME= ng_ipacct -PORTVERSION= 20150304 +PORTVERSION= 20180401 CATEGORIES= net-mgmt MAINTAINER= vsevolod@FreeBSD.org COMMENT= Netgraph IP accounting LICENSE= BSD2CLAUSE BROKEN_armv6= fails to build: ng_ipacct_hash.h:52:2: implicit declaration of function 'MALLOC' is invalid in C99 BROKEN_armv7= fails to build: ng_ipacct_hash.h:52:2: implicit declaration of function 'MALLOC' is invalid in C99 BROKEN_powerpc64= fails to build: pcpu.h: error: size of array '__assert_0' is negative USE_GITHUB= yes USES= kmod uidfix GH_ACCOUNT= vstakhov -MAKE_ENV= BINDIR="${PREFIX}/sbin" +MAKE_ARGS+= OSVERSION=${OSVERSION} +MAKE_ENV+= BINDIR="${PREFIX}/sbin" USE_RC_SUBR= ng_ipacct SUB_FILES= pkg-message CFLAGS+= -DMEM_USE_ZONE post-patch: @${REINPLACE_CMD} 's,{MANDIR},{DESTDIR}$$&,' ${WRKSRC}/man_ru/Makefile post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/netgraph ${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${STAGEDIR}${PREFIX}/include/netgraph ${INSTALL_DATA} ${FILESDIR}/ng_ipacct.conf \ ${STAGEDIR}${PREFIX}/etc/ng_ipacct.conf.sample + +OPTIONS_DEFINE= VIMAGE +VIMAGE_DESC= VIMAGE virtual networking support +VIMAGE_CFLAGS= -DVIMAGE .include Index: head/net-mgmt/ng_ipacct/distinfo =================================================================== --- head/net-mgmt/ng_ipacct/distinfo (revision 466150) +++ head/net-mgmt/ng_ipacct/distinfo (revision 466151) @@ -1,2 +1,3 @@ -SHA256 (vstakhov-ng_ipacct-20150304_GH0.tar.gz) = 4ad4412656d415d0841d5ba30dfa367179fc4e7f70f002990540fafdee3bc784 -SIZE (vstakhov-ng_ipacct-20150304_GH0.tar.gz) = 24567 +TIMESTAMP = 1522588704 +SHA256 (vstakhov-ng_ipacct-20180401_GH0.tar.gz) = 5f873006e68a7a1a74a00eac48e940115d2e8e0b6e2628f57f782d7ee73b91fe +SIZE (vstakhov-ng_ipacct-20180401_GH0.tar.gz) = 24653 Index: head/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c =================================================================== --- head/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c (revision 466150) +++ head/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c (nonexistent) @@ -1,25 +0,0 @@ ---- ng_ipacct/ng_ipacct.c.orig 2015-03-16 13:38:23.000000000 +0700 -+++ ng_ipacct/ng_ipacct.c 2015-03-16 13:46:21.000000000 +0700 -@@ -965,7 +965,11 @@ pcb_get_cred(struct ip_acct_stream *r, s - int i; - uid_t res; - -+#if __FreeBSD_version < 900039 -+ INP_INFO_RLOCK(pcbinfo); -+#else - INP_HASH_RLOCK(pcbinfo); -+#endif - for (i = 0, ina = r->r_dst, port = r->r_dport; i < 2; i++) { - #if __FreeBSD_version >= 700110 - pcb = in_pcblookup_local(pcbinfo, ina, port, 1, NOCRED); -@@ -984,6 +988,10 @@ pcb_get_cred(struct ip_acct_stream *r, s - (pcb->inp_socket != NULL) && (pcb->inp_socket->so_cred != NULL)) { - res = pcb->inp_socket->so_cred->cr_uid; - } -+#if __FreeBSD_version < 900039 -+ INP_INFO_RUNLOCK(pcbinfo); -+#else - INP_HASH_RUNLOCK(pcbinfo); -+#endif - return res; - } Property changes on: head/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net-mgmt/ng_ipacct/files/patch-ipacctctl_Makefile =================================================================== --- head/net-mgmt/ng_ipacct/files/patch-ipacctctl_Makefile (revision 466150) +++ head/net-mgmt/ng_ipacct/files/patch-ipacctctl_Makefile (nonexistent) @@ -1,15 +0,0 @@ ---- ipacctctl/Makefile.orig 2013-12-20 18:19:33.000000000 +0000 -+++ ipacctctl/Makefile 2013-12-20 18:19:52.000000000 +0000 -@@ -5,12 +5,7 @@ - BINDIR?= /usr/local/sbin - - PROG= ipacctctl --.if !exists(/usr/share/mk/bsd.compat.mk) --# Pre NOFOO -> NO_FOO system --NOMAN= YES --.else - NO_MAN= YES --.endif - - COPTS+= -g -Wall -Wformat - LDADD+= -lnetgraph Property changes on: head/net-mgmt/ng_ipacct/files/patch-ipacctctl_Makefile ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property