diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2018-02-09 19:15:42 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2018-02-09 19:15:42 +0000 |
commit | 5ed9400f0435f5983ef0ac475f0753dca0521f6b (patch) | |
tree | 1c75e784d9bc435cba80ac51a8a2a65c02923cc5 | |
parent | 0f31fc84d0186ae4cbdb6b1facec2227be0ec9d5 (diff) | |
download | ports-5ed9400f0435f5983ef0ac475f0753dca0521f6b.tar.gz ports-5ed9400f0435f5983ef0ac475f0753dca0521f6b.zip |
Notes
-rw-r--r-- | UPDATING | 13 | ||||
-rw-r--r-- | net-mgmt/pmacct/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/pmacct/distinfo | 6 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/pkg-message.in | 9 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/pmacctd.in | 60 | ||||
-rw-r--r-- | net-mgmt/pmacct/pkg-plist | 3 |
6 files changed, 67 insertions, 26 deletions
@@ -5,6 +5,19 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20180209: + AFFECTS: users of net-mgmt/pmacct + AUTHOR: pi@FreeBSD.org + + To allow separete pmacctd instances per interface, use + + pmacctd_enable="YES" + pmacctd_interfaces="re1 re2" + + in /etc/rc.conf. The path to the config files will be + + /usr/local/etc/pmacct/<interface> + 20180208: AFFECTS: users of mail/mailman* AUTHOR: mandree@FreeBSD.org diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile index 900f6baebafd..f8a172e3e5b8 100644 --- a/net-mgmt/pmacct/Makefile +++ b/net-mgmt/pmacct/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pmacct -DISTVERSION= 1.6.1 +DISTVERSION= 1.6.2 PORTREVISION= 0 CATEGORIES= net-mgmt MASTER_SITES= http://www.pmacct.net/ diff --git a/net-mgmt/pmacct/distinfo b/net-mgmt/pmacct/distinfo index 093ee8276804..b1594e6a9e30 100644 --- a/net-mgmt/pmacct/distinfo +++ b/net-mgmt/pmacct/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1490125463 -SHA256 (pmacct-1.6.1.tar.gz) = eb332a6812d1e02134900a1d115a24f315de7c861a9b63093c1226753486cbe7 -SIZE (pmacct-1.6.1.tar.gz) = 1280968 +TIMESTAMP = 1518121340 +SHA256 (pmacct-1.6.2.tar.gz) = e6ede7f500fb1771b5cdfb63dfa016e34c19b8aa2d2f672bd4c63016a5d6bbe2 +SIZE (pmacct-1.6.2.tar.gz) = 1311678 diff --git a/net-mgmt/pmacct/files/pkg-message.in b/net-mgmt/pmacct/files/pkg-message.in index 7d84ec14b37f..69d287752486 100644 --- a/net-mgmt/pmacct/files/pkg-message.in +++ b/net-mgmt/pmacct/files/pkg-message.in @@ -3,11 +3,12 @@ Please note that this port requires configuration before it will function Add these to /etc/rc.conf: pmacctd_enable="YES" -pmacctd_flags="-Df %%PREFIX%%/etc/pmacctd.conf -i <interface>" +pmacctd_interfaces="em0 em1" -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. +Configuration examples are located in %%EXAMPLESDIR%%. + +You should copy one of these to %%PREFIX%%/etc/pmacct/<interface> +and adapt them for your environment. Database-related files/information can be found in %%DATADIR%%. diff --git a/net-mgmt/pmacct/files/pmacctd.in b/net-mgmt/pmacct/files/pmacctd.in index 2ecf396fb05d..4e34564294d4 100644 --- a/net-mgmt/pmacct/files/pmacctd.in +++ b/net-mgmt/pmacct/files/pmacctd.in @@ -4,35 +4,61 @@ # # PROVIDE: pmacctd -# REQUIRE: NETWORKING +# REQUIRE: DAEMON +# BEFORE: LOGIN # KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable pmacctd: -# -# pmacctd_enable="YES" -# # You can define flags for pmacctd running. # See http://wiki.pmacct.net/OfficialConfigKeys for more details. # -# Example: -# pmacctd_flags="-f %%PREFIX%%/etc/pmacctd.conf -i em0" +# pmacctd_enable (bool): Set to YES to enable pmacctd +# Default: NO +# pmacctd_flags (str): Extra flags passed to pmacctd +# Default: -D +# pmacctd_conf (str): pmacctd configuration file +# Default: %%PREFIX%%/etc/pmacctd.conf # -# Default flags: -f %%PREFIX%%/etc/pmacctd.conf +# To enable multi interface, use: +# pmacctd_interfaces="em0 em1" # +# defaults will follow, pmacctd_conf becomes 'pmacctd_em0_conf', etc. . /etc/rc.subr -name=pmacctd +name="pmacctd" rcvar=pmacctd_enable -command=%%PREFIX%%/sbin/$name -command_args="-D" +command="%%PREFIX%%/sbin/$name" -# set defaults +load_rc_config $name -pmacctd_enable=${pmacctd_enable:-"NO"} -pmacctd_flags=${pmacctd_flags:-"-f %%PREFIX%%/etc/pmacctd.conf"} -load_rc_config $name -run_rc_command "$1" +[ -z "$pmacctd_enable" ] && pmacctd_enable="NO" +[ -z "$pmacctd_conf" ] && pmacctd_conf="%%PREFIX%%/etc/pmacctd.conf" +[ -z "$pmacctd_flags" ] && pmacctd_flags="-D" + +[ -n "$pmacctd_conf" ] && pmacctd_flags="$pmacctd_flags -f $pmacctd_conf" + +if [ -n "$pmacctd_interfaces" ]; then + _1=$1 + if [ $# -gt 1 ]; then shift; pmacctd_interfaces=$*; fi + pmacctd_conf="" + pmacctd_flags="" + rc=0 + for i in ${pmacctd_interfaces}; do + eval _conf=\$pmacctd_${i}_conf + eval _flags=\$pmacctd_${i}_flags + [ -z "$_conf" ] && _conf="%%PREFIX%%/etc/pmacct/$i" + [ -z "$_flags" ] && _flags="-D" + eval pidfile="/var/run/pmacct/${i}.pid" + + command_args="$_flags -F $pidfile -f $_conf -i $i" + run_rc_command "$_1" + if [ $? -ne 0 ]; then rc=1; fi + unset _pidcmd _rc_restart_done + done + exit $rc +else + run_rc_command "$1" +fi + diff --git a/net-mgmt/pmacct/pkg-plist b/net-mgmt/pmacct/pkg-plist index 008d0e8a6afb..613caa564124 100644 --- a/net-mgmt/pmacct/pkg-plist +++ b/net-mgmt/pmacct/pkg-plist @@ -24,6 +24,7 @@ sbin/sfacctd %%PORTEXAMPLES%%%%EXAMPLESDIR%%/agent_to_peer.map.example %%PORTEXAMPLES%%%%EXAMPLESDIR%%/allow-list.example %%PORTEXAMPLES%%%%EXAMPLESDIR%%/amqp/amqp_receiver.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/avro/avro_file_decoder.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/bgp_md5.lst.example %%PORTEXAMPLES%%%%EXAMPLESDIR%%/flow_to_rd.map.example %%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnuplot-example.sh @@ -52,9 +53,9 @@ sbin/sfacctd %%PORTEXAMPLES%%%%EXAMPLESDIR%%/sampling.map.example %%PORTEXAMPLES%%%%EXAMPLESDIR%%/tee_receivers.lst.example %%DATADIR%%/README.64bit +%%DATADIR%%/README.GeoIP %%DATADIR%%/README.IPv6 %%DATADIR%%/README.cos -%%DATADIR%%/README.country %%DATADIR%%/README.custom_primitives %%DATADIR%%/README.etype %%DATADIR%%/README.export_proto |