tor: 0.1.2.19 -> 0.2.0.21-rc
This commit is contained in:
parent
50bba7a9dc
commit
5e3922bf6c
@ -1,16 +1,19 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/tor
|
||||
drwxr-xr-x _tor/daemon etc/tor/
|
||||
-rw-r--r-- _tor/daemon etc/tor/tor-tsocks.conf
|
||||
-rw-r--r-- _tor/daemon etc/tor/torrc
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x _tor/daemon usr/bin/tor
|
||||
-rwxr-xr-x _tor/daemon usr/bin/tor-resolve
|
||||
-rwxr-xr-x _tor/daemon usr/bin/torify
|
||||
-rwxr--r-- _tor/daemon usr/bin/tor
|
||||
-rwxr--r-- _tor/daemon usr/bin/tor-gencert
|
||||
-rwxr--r-- _tor/daemon usr/bin/tor-resolve
|
||||
-rwxr--r-- _tor/daemon usr/bin/torify
|
||||
drwxr-xr-x root/root usr/etc/
|
||||
drwxr-xr-x _tor/daemon usr/etc/tor/
|
||||
-rw------- _tor/daemon usr/etc/tor/tor-tsocks.conf
|
||||
-rw------- _tor/daemon usr/etc/tor/torrc
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man1/
|
||||
-rw-r--r-- root/root usr/man/man1/tor-gencert.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/tor-resolve.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/tor.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/torify.1.gz
|
||||
|
@ -1,2 +1,2 @@
|
||||
4b3f9963b843010af5aa3bd6266d11e0 tor-0.1.2.19.tar.gz
|
||||
cfedbbc30e687b427e0aa0d006fde0c6 tor-0.2.0.21-rc.tar.gz
|
||||
128bcc0a2ae7a3a6fa86935cabeb9a4b tor.rc
|
||||
|
26
tor/Pkgfile
26
tor/Pkgfile
@ -5,7 +5,7 @@
|
||||
# Depends on: libevent
|
||||
|
||||
name=tor
|
||||
version=0.1.2.19
|
||||
version=0.2.0.21-rc
|
||||
release=1
|
||||
source=(http://tor.eff.org/dist/tor-$version.tar.gz \
|
||||
tor.rc)
|
||||
@ -15,7 +15,7 @@ build() {
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sysconfdir=/usr/etc \
|
||||
--mandir=/usr/man
|
||||
|
||||
make
|
||||
@ -30,22 +30,24 @@ build() {
|
||||
chown -R root:root $PKG
|
||||
|
||||
chown _tor:daemon \
|
||||
$PKG/var/log/{tor,tor/notices.log} \
|
||||
$PKG/etc/tor \
|
||||
$PKG/var/log/tor \
|
||||
$PKG/usr/etc/tor \
|
||||
$PKG/usr/var/lib/tor
|
||||
|
||||
find $PKG/usr/bin/ -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/etc/tor/ -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/usr/bin -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/usr/etc -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/var/log/tor -type f -exec chown _tor:daemon {} \;
|
||||
find $PKG/usr/bin -type f -exec chmod 0744 {} \;
|
||||
find $PKG/usr/etc/tor -type f -exec chmod 0600 {} \;
|
||||
|
||||
chmod 640 $PKG/var/log/tor/notices.log
|
||||
install -m755 $SRC/tor.rc $PKG/etc/rc.d/tor
|
||||
chmod 0640 $PKG/var/log/tor/notices.log
|
||||
install -m 0755 $SRC/tor.rc $PKG/etc/rc.d/tor
|
||||
mv $PKG/usr/etc/tor/torrc.sample $PKG/usr/etc/tor/torrc
|
||||
|
||||
# edit the config file
|
||||
sed -i \
|
||||
sed -i $PKG/usr/etc/tor/torrc \
|
||||
-e's/#RunAsDaemon 1/RunAsDaemon 1/' \
|
||||
-e 's:#Log notice file /usr/var/log/tor/notices.log:Log notice file /var/log/tor/notices.log:' \
|
||||
-e 's:#DataDirectory /usr/var/lib/tor:DataDirectory /usr/var/lib/tor:' $PKG/etc/tor/torrc.sample
|
||||
|
||||
mv $PKG/etc/tor/torrc.sample $PKG/etc/tor/torrc
|
||||
-e 's:#DataDirectory /usr/var/lib/tor:DataDirectory /usr/var/lib/tor:'
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user