mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Update to 0.14.0
This commit is contained in:
parent
99fba26b24
commit
99d25e58db
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295574
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= pmacct
|
||||
DISTVERSION= 0.12.5
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 0.14.0
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= http://www.pmacct.net/ \
|
||||
http://mirrors.rit.edu/zi/
|
||||
@ -23,18 +22,20 @@ GNU_CONFIGURE= yes
|
||||
CPPFLAGS+= "-I${LOCALBASE}/include"
|
||||
LDFLAGS+= "-L${LOCALBASE}/lib"
|
||||
|
||||
OPTIONS= MYSQL "Enable MySQL support." Off \
|
||||
PGSQL "Enable PostgreSQL support." Off \
|
||||
SQLITE "Enable SQLite support." Off \
|
||||
THREADS "Enable multi-threading." Off \
|
||||
MMAP "Enable mmap(2) support." On \
|
||||
LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" On \
|
||||
IPV6 "Enable IPv6 support." On
|
||||
OPTIONS= MYSQL "Enable MySQL support" off \
|
||||
PGSQL "Enable PostgreSQL support" off \
|
||||
SQLITE "Enable SQLite support" off \
|
||||
THREADS "Enable multi-threading" off \
|
||||
MMAP "Enable mmap(2) support" on \
|
||||
LAYER2 "Enable Layer-2 support: MAC Adresses and VLANs" on \
|
||||
IPV6 "Enable IPv6 support" on \
|
||||
SHARED "Enable shared objects" on \
|
||||
DEBUG "Enable debugging" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
|
||||
CONFIGURE_ARGS+= --enable-64bit
|
||||
CONFIGURE_ARGS+=--enable-64bit
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
@ -42,7 +43,7 @@ USE_MYSQL= yes
|
||||
CONFIGURE_ARGS+=--enable-mysql
|
||||
PLIST_SUB+= WITH_MYSQL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-mysql
|
||||
CONFIGURE_ARGS+=--disable-mysql
|
||||
PLIST_SUB+= WITH_MYSQL="@comment "
|
||||
.endif
|
||||
|
||||
@ -51,7 +52,7 @@ USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+=--enable-pgsql
|
||||
PLIST_SUB+= WITH_PGSQL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-pgsql
|
||||
CONFIGURE_ARGS+=--disable-pgsql
|
||||
PLIST_SUB+= WITH_PGSQL="@comment "
|
||||
.endif
|
||||
|
||||
@ -87,12 +88,22 @@ CONFIGURE_ARGS+=--enable-threads
|
||||
CONFIGURE_ARGS+=--disable-threads
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_SHARED)
|
||||
CONFIGURE_ARGS+=--disable-so
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DEBUG)
|
||||
CONFIGURE_ARGS+=--enable-debug
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for i in ChangeLog EXAMPLES FAQS README
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (pmacct-0.12.5.tar.gz) = 5252d7df24e9baefcc5a36ed66e9cac5ae505c9d502c8cffb96e6808acbb2fe8
|
||||
SIZE (pmacct-0.12.5.tar.gz) = 552007
|
||||
SHA256 (pmacct-0.14.0.tar.gz) = c4b4ed5608c600910bd580f92faefd8d3af0f6d5c4aabddb5ce31c6d192e0336
|
||||
SIZE (pmacct-0.14.0.tar.gz) = 700794
|
||||
|
11
net-mgmt/pmacct/files/patch-src__isis__sockunion.c
Normal file
11
net-mgmt/pmacct/files/patch-src__isis__sockunion.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./src/isis/sockunion.c.orig 2012-04-26 16:51:31.000000000 -0400
|
||||
+++ ./src/isis/sockunion.c 2012-04-26 16:51:56.000000000 -0400
|
||||
@@ -625,7 +625,7 @@
|
||||
struct sockaddr_dl *sdl;
|
||||
|
||||
sdl = (struct sockaddr_dl *)&(su->sa);
|
||||
- printf ("link#%d\n", sdl->sdl_index);
|
||||
+ //printf ("link#%d\n", sdl->sdl_index);
|
||||
}
|
||||
break;
|
||||
#endif /* AF_LINK */
|
@ -1,11 +0,0 @@
|
||||
--- ./src/ll.c.orig 2011-06-30 20:43:06.000000000 -0400
|
||||
+++ ./src/ll.c 2011-06-30 20:43:45.000000000 -0400
|
||||
@@ -118,7 +118,7 @@
|
||||
|
||||
if (*caplen < 4) {
|
||||
pptrs->iph_ptr = NULL;
|
||||
- return;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
do {
|
@ -5,7 +5,7 @@ Add these to /etc/rc.conf:
|
||||
pmacctd_enable="YES"
|
||||
pmacctd_flags="-DF %%PREFIX%%/etc/pmacctd.conf -i <interface>"
|
||||
|
||||
Configuration examples are located in %%EXAMPLESDIR%%. You must copy
|
||||
Configuration examples are located in %%EXAMPLESDIR%%. You must copy
|
||||
one of these to %%PREFIX%%/etc/pmacctd.conf and make any required edits
|
||||
for your environment.
|
||||
|
||||
|
@ -9,9 +9,10 @@ sbin/uacctd
|
||||
%%DATADIR%%/README.IPv6
|
||||
%%DATADIR%%/README.agent_id2
|
||||
%%DATADIR%%/README.cos
|
||||
%%DATADIR%%/README.etype
|
||||
%%DATADIR%%/README.iface
|
||||
%%DATADIR%%/README.is_symmetric
|
||||
%%DATADIR%%/README.mask
|
||||
%%DATADIR%%/README.mpls_vpn_rd
|
||||
%%DATADIR%%/README.mysql
|
||||
%%DATADIR%%/README.pgsql
|
||||
%%DATADIR%%/README.sqlite3
|
||||
@ -48,30 +49,31 @@ sbin/uacctd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/EXAMPLES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/FAQS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%EXAMPLESDIR%%/agent_to_peer.map.example
|
||||
%%EXAMPLESDIR%%/bgp_md5.lst.example
|
||||
%%EXAMPLESDIR%%/allow-list.example
|
||||
%%EXAMPLESDIR%%/is_symmetric.map.example
|
||||
%%EXAMPLESDIR%%/gnuplot-example.sh
|
||||
%%EXAMPLESDIR%%/gnuplot.script.example
|
||||
%%EXAMPLESDIR%%/lpref.map.example
|
||||
%%EXAMPLESDIR%%/med.map.example
|
||||
%%EXAMPLESDIR%%/mrtg-example.sh
|
||||
%%EXAMPLESDIR%%/mrtg.conf.example
|
||||
%%EXAMPLESDIR%%/networks.lst.example
|
||||
%%EXAMPLESDIR%%/nfacctd-print.conf.example
|
||||
%%EXAMPLESDIR%%/nfacctd-sql_v1.conf.example
|
||||
%%EXAMPLESDIR%%/nfacctd-sql_v2.conf.example
|
||||
%%EXAMPLESDIR%%/peers.map.example
|
||||
%%EXAMPLESDIR%%/pmacctd-imt.conf.example
|
||||
%%EXAMPLESDIR%%/pmacctd-multiple-plugins.conf.example
|
||||
%%EXAMPLESDIR%%/pmacctd-sql_v1.conf.example
|
||||
%%EXAMPLESDIR%%/pmacctd-sql_v2.conf.example
|
||||
%%EXAMPLESDIR%%/pmacctd-sqlite3_v4.conf.example
|
||||
%%EXAMPLESDIR%%/ports.lst.example
|
||||
%%EXAMPLESDIR%%/pretag.map.example
|
||||
%%EXAMPLESDIR%%/probe_netflow.conf.example
|
||||
%%EXAMPLESDIR%%/probe_sflow.conf.example
|
||||
%%EXAMPLESDIR%%/rrdtool-example.sh
|
||||
@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/agent_to_peer.map.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp_md5.lst.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/allow-list.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/iface_to_rd.map.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnuplot-example.sh
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnuplot.script.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lpref.map.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/med.map.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mrtg-example.sh
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mrtg.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/networks.lst.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nfacctd-print.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nfacctd-sql_v1.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nfacctd-sql_v2.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/peers.map.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pmacctd-imt.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pmacctd-multiple-plugins.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pmacctd-sql_v1.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pmacctd-sql_v2.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pmacctd-sqlite3_v4.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ports.lst.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pretag.map.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/probe_netflow.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/probe_sflow.conf.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rrdtool-example.sh
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sampling.map.example
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user