tor: final fixes (I hope) READ README file\!

This commit is contained in:
Danny Rawlins 2008-07-18 19:49:00 +10:00
parent 195b6ca1d4
commit d8714f7b01
5 changed files with 28 additions and 8 deletions

View File

@ -6,10 +6,10 @@ drwxr-xr-x root/root etc/tor/
-rw-r----- root/tor etc/tor/torrc
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-- root/root usr/bin/tor
-rwxr-xr-- root/root usr/bin/tor-gencert
-rwxr-xr-- root/root usr/bin/tor-resolve
-rwxr-xr-- root/root usr/bin/torify
-rwxr-xr-- root/tor usr/bin/tor
-rwxr-xr-- root/tor usr/bin/tor-gencert
-rwxr-xr-- root/tor usr/bin/tor-resolve
-rwxr-xr-- root/tor usr/bin/torify
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
@ -22,6 +22,12 @@ drwxr-xr-x root/root usr/share/tor/
drwxr-xr-x root/root usr/var/
drwxr-xr-x root/root usr/var/lib/
drwxr-xr-x tor/tor usr/var/lib/tor/
-rw------- tor/tor usr/var/lib/tor/cached-certs (EMPTY)
-rw------- tor/tor usr/var/lib/tor/cached-consensus (EMPTY)
-rw------- tor/tor usr/var/lib/tor/cached-descriptors (EMPTY)
-rw------- tor/tor usr/var/lib/tor/cached-descriptors.new (EMPTY)
-rw------- tor/tor usr/var/lib/tor/cached-routers.new (EMPTY)
-rw------- tor/tor usr/var/lib/tor/state (EMPTY)
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/log/
drwxr-xr-x tor/tor var/log/tor/

View File

@ -1,3 +1,3 @@
d37b582ee35b4f69564b0635a449b5f6 tor-0.2.0.30.tar.gz
53f221aeaaaede055c810cd1858b294c tor-config.patch
9a9942f93a063c2d88ec8b3c1e228fd0 tor.rc
64a6fed3c6c30ea20f3e1362dcbf0a93 tor.rc

View File

@ -30,13 +30,21 @@ build() {
# data
install -d $PKG/usr/var/lib/tor
chown tor:tor $PKG/usr/var/lib/tor
touch \
$PKG/usr/var/lib/tor/cached-certs \
$PKG/usr/var/lib/tor/cached-consensus \
$PKG/usr/var/lib/tor/cached-descriptors \
$PKG/usr/var/lib/tor/cached-descriptors.new \
$PKG/usr/var/lib/tor/cached-routers.new \
$PKG/usr/var/lib/tor/state
find $PKG/usr/var/lib/tor/ -type f -execdir chown tor:tor {} \; -execdir chmod 0600 {} \;
# configuration
mv $PKG/etc/tor/torrc.sample $PKG/etc/tor/torrc
find $PKG/etc/tor/ -type f -exec chown root:tor {} \; -execdir chmod 0640 {} \;
# programs
find $PKG/usr/bin -type f -execdir chmod 0754 {} \;
find $PKG/usr/bin -type f -execdir chown root:tor {} \; -execdir chmod 0754 {} \;
# logs
install -d $PKG/var/log/tor

View File

@ -2,6 +2,12 @@ REQUIREMENTS:
PRECAUTION:
Make sue you edit /etc/pkgmk.conf annd add the following line.
UPGRADE ^usr/var/lib/tor/.*$ NO
Falure todo so will result in the loss of your tor data!
If you edit the torrc file for extra logging, make sure you:
chmod 640 /var/log/tor/* files, for security reasons.

View File

@ -8,8 +8,8 @@ DAEMON=tor
RUN_AS_USER=tor
# Check for configuration files
[ -f /usr/etc/tor/tor-tsocks.conf ] || exit 1
[ -f /usr/etc/tor/torrc ] || exit 1
[ -f /etc/tor/tor-tsocks.conf ] || exit 1
[ -f /etc/tor/torrc ] || exit 1
# If you have to edit this section for this or any other
# port useage let me know, with a patch or added lines,