Update to 0.2.4.15-rc; make the tor rc.d script log level
configurable (as requested by R. Kolar); minor cosmetic changes
This commit is contained in:
parent
0d636f0cdc
commit
b8aeedab97
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322977
3 changed files with 12 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= tor
|
||||
DISTVERSION= 0.2.4.14-alpha
|
||||
DISTVERSION= 0.2.4.15-rc
|
||||
CATEGORIES= security net ipv6
|
||||
MASTER_SITES= https://www.torproject.org/dist/ \
|
||||
ftp://ftp.bit.nl/mirror/tor/ \
|
||||
|
@ -87,7 +87,7 @@ MAN1= tor.1 tor-resolve.1 torify.1 tor-gencert.1
|
|||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MGMAKE}
|
||||
USE_GMAKE= yes
|
||||
USES+= gmake
|
||||
.else
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
.endif
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (tor-0.2.4.14-alpha.tar.gz) = 2b32f87f1fa14032ebfcc56c4dce49cb5e4f6b5ba8e1bbacdedc8d25bd16f094
|
||||
SIZE (tor-0.2.4.14-alpha.tar.gz) = 2832944
|
||||
SHA256 (tor-0.2.4.15-rc.tar.gz) = 3221ee1aec84d8ea3c5af9fc915152ea22d8ca7d87b422cc339533c374986559
|
||||
SIZE (tor-0.2.4.15-rc.tar.gz) = 2820553
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
# All these options will overide any settings in your local torrc as
|
||||
# they are command line options.
|
||||
#
|
||||
# tor_enable (bool): Set to "NO" by default
|
||||
# Set it to "YES" to enable tor
|
||||
# tor_conf (str): Points to your tor conf file
|
||||
# tor_enable (bool): Set it to "YES" to enable tor. Default: NO
|
||||
# tor_conf (str): Points to your torrc file.
|
||||
# Default: %%PREFIX%%/etc/tor/torrc
|
||||
# tor_user (str): Tor Daemon user. Default _tor
|
||||
# tor_datadir (str): Tor DataDir. Defaults /var/db/tor
|
||||
# tor_logfile (str): Tor Log File. Defaults /var/log/tor
|
||||
# tor_user (str): Tor daemon user. Default: _tor
|
||||
# tor_datadir (str): Tor datadir. Default: /var/db/tor
|
||||
# tor_logfile (str): Tor log file. Default: /var/log/tor
|
||||
# tor_loglevel (str): Tor log severity level. Default: notice
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
@ -31,13 +31,14 @@ load_rc_config ${name}
|
|||
: ${tor_user="_tor"}
|
||||
: ${tor_pidfile="/var/run/tor/tor.pid"}
|
||||
: ${tor_logfile="/var/log/tor"}
|
||||
: ${tor_loglevel="notice"}
|
||||
: ${tor_datadir="/var/db/tor"}
|
||||
|
||||
required_files=${tor_conf}
|
||||
required_dirs=${tor_datadir}
|
||||
pidfile=${tor_pidfile}
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir} --+Log notice\ file\ ${tor_logfile}"
|
||||
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir} --+Log ${tor_loglevel}\ file\ ${tor_logfile}"
|
||||
extra_commands="log"
|
||||
log_cmd="${name}_log"
|
||||
|
||||
|
|
Loading…
Reference in a new issue