View | Details | Raw Unified | Return to bug 205651
Collapse All | Expand All

(-)tor/Makefile (+3 lines)
Lines 43-48 Link Here
43
43
44
CONFLICTS=	tor-devel-[0-9]*
44
CONFLICTS=	tor-devel-[0-9]*
45
45
46
PLIST_LIST=     PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS}
47
SUB_LIST=       PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS}
48
46
.include <bsd.port.options.mk>
49
.include <bsd.port.options.mk>
47
50
48
.if !defined(USE_GCC) && empty(CC:T:M*gcc4*) && \
51
.if !defined(USE_GCC) && empty(CC:T:M*gcc4*) && \
(-)tor/files/pkg-message.in (-3 / +3 lines)
Lines 6-15 Link Here
6
the net/torsocks port. After installing tor for the first time, or after
6
the net/torsocks port. After installing tor for the first time, or after
7
a major update of tor, you should:
7
a major update of tor, you should:
8
8
9
rm -r /var/db/tor /var/run/tor
9
rm -r /var/db/tor
10
mkdir -p /var/db/tor/data /var/run/tor
10
mkdir -p /var/db/tor/data
11
touch /var/log/tor
11
touch /var/log/tor
12
chown -R _tor:_tor /var/db/tor /var/log/tor /var/run/tor
12
chown -R _tor:_tor /var/db/tor /var/log/tor
13
chmod -R 700 /var/db/tor
13
chmod -R 700 /var/db/tor
14
14
15
before starting the tor server. Tor users are strongly advised to prevent traffic
15
before starting the tor server. Tor users are strongly advised to prevent traffic
(-)tor/files/tor.in (+13 lines)
Lines 37-41 Link Here
37
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir}"
37
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir}"
38
extra_commands="reload"
38
extra_commands="reload"
39
39
40
start_precmd=%%PORTNAME%%_precmd
41
%%PORTNAME%%_precmd()
42
{
43
    if [ ! -e "${pidfile%/*}" ]; then
44
        install -d -o %%USER%% -g %%GROUP%% "${pidfile%/*}";
45
    fi
46
}
47
48
stop_precmd=%%PORTNAME%%_postcmd
49
%%PORTNAME%%_postcmd()
50
{
51
    rm -r "${pidfile%/*}"
52
}
40
run_rc_command "$1"
53
run_rc_command "$1"
41
54

Return to bug 205651