Lines 29-35
pkg_setup() {
Link Here
|
29 |
|
29 |
|
30 |
src_prepare() { |
30 |
src_prepare() { |
31 |
epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch |
31 |
epatch "${FILESDIR}"/torrc.sample-0.1.2.6.patch |
32 |
epatch "${FILESDIR}"/${PN}-0.2.0.30-logrotate.patch |
32 |
epatch "${FILESDIR}"/${PN}-0.2.1.19-logrotate.patch |
33 |
# Normally tor uses a bundled libevent fragment to provide |
33 |
# Normally tor uses a bundled libevent fragment to provide |
34 |
# asynchronous DNS requests. This is generally a bad idea, but at |
34 |
# asynchronous DNS requests. This is generally a bad idea, but at |
35 |
# the moment the official libevent does not have the 0x20 hack, so |
35 |
# the moment the official libevent does not have the 0x20 hack, so |
Lines 61-70
src_install() {
Link Here
|
61 |
fperms 755 /var/run/tor |
61 |
fperms 755 /var/run/tor |
62 |
fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor |
62 |
fowners tor:tor /var/lib/tor /var/log/tor /var/run/tor |
63 |
|
63 |
|
64 |
sed -e "s:/lib::" \ |
|
|
65 |
-e "s:/rc.d::" \ |
66 |
-e "s:\\*:\\*.:" \ |
67 |
-e "s:sharedscripts:create 0640 tor tor\n\tsharedscripts:" -i contrib/tor.logrotate || die |
68 |
insinto /etc/logrotate.d |
64 |
insinto /etc/logrotate.d |
69 |
newins contrib/tor.logrotate tor |
65 |
newins contrib/tor.logrotate tor |
70 |
|
66 |
|