mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
c4fca44453
- take maintainership - MongoDB support is still broken. Version 1.6.1 as well as 0.14.3 requires legacy 0.8.1 mongo-c-driver which is no longer available in ports tree. - nflog support requires missing libraries, so it is disabled. - Other features like RabbitMQ or Kafka should work. PR: 217448 Changes: http://www.pmacct.net/ChangeLog-1.6.1 Submitted by: Alexander Shikov <a.shikov@itcons.net.ua> Approved by: zi (maintainer)
39 lines
674 B
Bash
39 lines
674 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: pmacctd
|
|
# REQUIRE: NETWORKING
|
|
# 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"
|
|
#
|
|
# Default flags: -f %%PREFIX%%/etc/pmacctd.conf
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=pmacctd
|
|
rcvar=pmacctd_enable
|
|
|
|
command=%%PREFIX%%/sbin/$name
|
|
command_args="-D"
|
|
|
|
# set defaults
|
|
|
|
pmacctd_enable=${pmacctd_enable:-"NO"}
|
|
pmacctd_flags=${pmacctd_flags:-"-f %%PREFIX%%/etc/pmacctd.conf"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|