mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +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
676 B
Bash
39 lines
676 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: nfacctd
|
|
# REQUIRE: NETWORKING
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable nfacctd:
|
|
#
|
|
# nfacctd_enable="YES"
|
|
#
|
|
# You can define flags for nfacctd running.
|
|
# See http://wiki.pmacct.net/OfficialConfigKeys for more details.
|
|
#
|
|
# Example:
|
|
# nfacctd_flags="-f %%PREFIX%%/etc/nfacctd.conf -P mysql"
|
|
#
|
|
# Default flags: -f %%PREFIX%%/etc/nfacctd.conf
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=nfacctd
|
|
rcvar=nfacctd_enable
|
|
|
|
command=%%PREFIX%%/sbin/$name
|
|
command_args="-D"
|
|
|
|
# set defaults
|
|
|
|
nfacctd_enable=${nfacctd_enable:-"NO"}
|
|
nfacctd_flags=${nfacctd_flags:-"-f %%PREFIX%%/etc/nfacctd.conf"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|