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

(-)UPDATING (+8 lines)
Lines 5-10 Link Here
5
You should get into the habit of checking this file for changes each time
5
You should get into the habit of checking this file for changes each time
6
you update your ports collection, before attempting any port upgrades.
6
you update your ports collection, before attempting any port upgrades.
7
7
8
20160114:
9
  AFFECTS: users of security/tor, security/tor-devel
10
  AUTHOR: amdmi3@FreeBSD.org
11
12
  Tor ports now create /var/log/tor subdirectory for tor logs. If you've
13
  used /var/log/tor as a log _file_, you'll need to update your torrc and
14
  move the file away before updating the port.
15
8
20160113:
16
20160113:
9
  AFFECTS: users of sysutils/ansible
17
  AFFECTS: users of sysutils/ansible
10
  AUTHOR: lifanov@mail.lifanov.com
18
  AUTHOR: lifanov@mail.lifanov.com
(-)security/tor/Makefile (+8 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	tor
4
PORTNAME=	tor
5
PORTVERSION=	0.2.7.6
5
PORTVERSION=	0.2.7.6
6
PORTREVISION=	1
6
CATEGORIES=	security net ipv6
7
CATEGORIES=	security net ipv6
7
MASTER_SITES=	TOR
8
MASTER_SITES=	TOR
8
9
Lines 106-111 Link Here
106
post-patch:
107
post-patch:
107
	@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \
108
	@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \
108
		${WRKSRC}/configure
109
		${WRKSRC}/configure
110
	@${REINPLACE_CMD} -e 's|lib/tor|db/tor|' \
111
		${WRKSRC}/src/config/torrc.*.in \
112
		${WRKSRC}/doc/tor.1.* \
113
		${WRKSRC}/doc/tor.html.in
109
114
110
post-patch-STATIC_TOR-off:
115
post-patch-STATIC_TOR-off:
111
	@${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \
116
	@${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \
Lines 119-124 Link Here
119
	@${REINPLACE_CMD} -e '\|^nodist_man1_MANS =|s|$$|$$(install_mans:=.1)|' \
124
	@${REINPLACE_CMD} -e '\|^nodist_man1_MANS =|s|$$|$$(install_mans:=.1)|' \
120
		${WRKSRC}/Makefile
125
		${WRKSRC}/Makefile
121
126
127
post-install:
128
	@${MKDIR} ${STAGEDIR}/var/log/tor ${STAGEDIR}/var/run/tor
129
122
.if ! ${PORT_OPTIONS:MTOR2WEB}
130
.if ! ${PORT_OPTIONS:MTOR2WEB}
123
check regression-test test: build
131
check regression-test test: build
124
	@cd ${BUILD_WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
132
	@cd ${BUILD_WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
(-)security/tor/files/pkg-message.in (-10 / +3 lines)
Lines 3-20 Link Here
3
and edit %%PREFIX%%/etc/tor/torrc as desired. (However, note that the
3
and edit %%PREFIX%%/etc/tor/torrc as desired. (However, note that the
4
%%PREFIX%%/etc/rc.d/tor rc.subr script can override some torrc
4
%%PREFIX%%/etc/rc.d/tor rc.subr script can override some torrc
5
options: see that script for details.) To use the torify script, install
5
options: see that script for details.) To use the torify script, install
6
the net/torsocks port. After installing tor for the first time, or after
6
the net/torsocks port.
7
a major update of tor, you should:
8
7
9
rm -r /var/db/tor /var/run/tor
8
Tor users are strongly advised to prevent traffic analysis that
10
mkdir -p /var/db/tor/data /var/run/tor
9
exploits sequential IP IDs by setting:
11
touch /var/log/tor
12
chown -R _tor:_tor /var/db/tor /var/log/tor /var/run/tor
13
chmod -R 700 /var/db/tor
14
10
15
before starting the tor server. Tor users are strongly advised to prevent traffic
16
analysis that exploits sequential IP IDs by setting:
17
18
sysctl net.inet.ip.random_id=1
11
sysctl net.inet.ip.random_id=1
19
12
20
(see sysctl.conf(5)).
13
(see sysctl.conf(5)).
(-)security/tor/pkg-plist (+2 lines)
Lines 9-11 Link Here
9
man/man1/torify.1.gz
9
man/man1/torify.1.gz
10
%%DATADIR%%/geoip
10
%%DATADIR%%/geoip
11
%%DATADIR%%/geoip6
11
%%DATADIR%%/geoip6
12
@dir(_tor,_tor,750) /var/run/tor
13
@dir(_tor,_tor,750) /var/log/tor
(-)security/tor-devel/Makefile (+8 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	tor
4
PORTNAME=	tor
5
PORTVERSION=	0.2.7.6
5
PORTVERSION=	0.2.7.6
6
PORTREVISION=	1
6
CATEGORIES=	security net ipv6
7
CATEGORIES=	security net ipv6
7
MASTER_SITES=	TOR
8
MASTER_SITES=	TOR
8
PKGNAMESUFFIX=	-devel
9
PKGNAMESUFFIX=	-devel
Lines 109-114 Link Here
109
post-patch:
110
post-patch:
110
	@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \
111
	@${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \
111
		${WRKSRC}/configure
112
		${WRKSRC}/configure
113
	@${REINPLACE_CMD} -e 's|lib/tor|db/tor|' \
114
		${WRKSRC}/src/config/torrc.*.in \
115
		${WRKSRC}/doc/tor.1.* \
116
		${WRKSRC}/doc/tor.html.in
112
117
113
post-patch-STATIC_TOR-off:
118
post-patch-STATIC_TOR-off:
114
	@${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \
119
	@${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \
Lines 122-127 Link Here
122
	@${REINPLACE_CMD} -e '\|^nodist_man1_MANS =|s|$$|$$(install_mans:=.1)|' \
127
	@${REINPLACE_CMD} -e '\|^nodist_man1_MANS =|s|$$|$$(install_mans:=.1)|' \
123
		${WRKSRC}/Makefile
128
		${WRKSRC}/Makefile
124
129
130
post-install:
131
	@${MKDIR} ${STAGEDIR}/var/log/tor ${STAGEDIR}/var/run/tor
132
125
.if ! ${PORT_OPTIONS:MTOR2WEB}
133
.if ! ${PORT_OPTIONS:MTOR2WEB}
126
check regression-test test: build
134
check regression-test test: build
127
	@cd ${BUILD_WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
135
	@cd ${BUILD_WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
(-)security/tor-devel/files/pkg-message.in (-10 / +3 lines)
Lines 3-20 Link Here
3
and edit %%PREFIX%%/etc/tor/torrc as desired. (However, note that the
3
and edit %%PREFIX%%/etc/tor/torrc as desired. (However, note that the
4
%%PREFIX%%/etc/rc.d/tor rc.subr script can override some torrc
4
%%PREFIX%%/etc/rc.d/tor rc.subr script can override some torrc
5
options: see that script for details.) To use the torify script, install
5
options: see that script for details.) To use the torify script, install
6
the net/torsocks port. After installing tor for the first time, or after
6
the net/torsocks port.
7
a major update of tor, you should:
8
7
9
rm -r /var/db/tor /var/run/tor
8
Tor users are strongly advised to prevent traffic analysis that
10
mkdir -p /var/db/tor/data /var/run/tor
9
exploits sequential IP IDs by setting:
11
touch /var/log/tor
12
chown -R _tor:_tor /var/db/tor /var/log/tor /var/run/tor
13
chmod -R 700 /var/db/tor
14
10
15
before starting the tor server. Tor users are strongly advised to prevent traffic
16
analysis that exploits sequential IP IDs by setting:
17
18
sysctl net.inet.ip.random_id=1
11
sysctl net.inet.ip.random_id=1
19
12
20
(see sysctl.conf(5)).
13
(see sysctl.conf(5)).
(-)security/tor-devel/pkg-plist (+2 lines)
Lines 9-11 Link Here
9
man/man1/torify.1.gz
9
man/man1/torify.1.gz
10
%%DATADIR%%/geoip
10
%%DATADIR%%/geoip
11
%%DATADIR%%/geoip6
11
%%DATADIR%%/geoip6
12
@dir(_tor,_tor,750) /var/run/tor
13
@dir(_tor,_tor,750) /var/log/tor

Return to bug 206235