mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 03:26:41 -04:00
security/tor: Allow to set additional flags from rc.conf
tor_flags is added to tor's config.
This commit is contained in:
parent
38abec65b4
commit
cde75d6418
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
PORTNAME= tor
|
PORTNAME= tor
|
||||||
DISTVERSION= 0.4.8.13
|
DISTVERSION= 0.4.8.13
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= security net
|
CATEGORIES= security net
|
||||||
MASTER_SITES= TOR
|
MASTER_SITES= TOR
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# tor_instances (str): List of instances. Default: ""
|
# tor_instances (str): List of instances. Default: ""
|
||||||
# tor_conf (str): Points to your torrc file.
|
# tor_conf (str): Points to your torrc file.
|
||||||
# Default: %%PREFIX%%/etc/tor/torrc
|
# Default: %%PREFIX%%/etc/tor/torrc
|
||||||
|
# tor_flags (str): Additional flags. Common to all instances.
|
||||||
# tor_user (str): Tor daemon user. Default: %%USER%%
|
# tor_user (str): Tor daemon user. Default: %%USER%%
|
||||||
# tor_group (str): Tor group. Default: %%GROUP%%
|
# tor_group (str): Tor group. Default: %%GROUP%%
|
||||||
# tor_pidfile (str): Tor pid file. Default: /var/run/tor/tor.pid
|
# tor_pidfile (str): Tor pid file. Default: /var/run/tor/tor.pid
|
||||||
|
@ -36,6 +37,7 @@ load_rc_config ${name}
|
||||||
: ${tor_enable="NO"}
|
: ${tor_enable="NO"}
|
||||||
: ${tor_instances=""}
|
: ${tor_instances=""}
|
||||||
: ${tor_conf="%%PREFIX%%/etc/tor/torrc"}
|
: ${tor_conf="%%PREFIX%%/etc/tor/torrc"}
|
||||||
|
: ${tor_flags=""}
|
||||||
: ${tor_user="%%USER%%"}
|
: ${tor_user="%%USER%%"}
|
||||||
: ${tor_group="%%GROUP%%"}
|
: ${tor_group="%%GROUP%%"}
|
||||||
: ${tor_pidfile="/var/run/tor/tor.pid"}
|
: ${tor_pidfile="/var/run/tor/tor.pid"}
|
||||||
|
@ -109,7 +111,7 @@ required_files=${tor_conf}
|
||||||
required_dirs=${tor_datadir}
|
required_dirs=${tor_datadir}
|
||||||
pidfile=${tor_pidfile}
|
pidfile=${tor_pidfile}
|
||||||
command="%%PREFIX%%/bin/${name}"
|
command="%%PREFIX%%/bin/${name}"
|
||||||
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir}"
|
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir} ${tor_flags}"
|
||||||
extra_commands="reload"
|
extra_commands="reload"
|
||||||
|
|
||||||
# clear user setting in conf file: it should be done through the command line
|
# clear user setting in conf file: it should be done through the command line
|
||||||
|
|
Loading…
Add table
Reference in a new issue