tor: 0.3.1.9 -> 0.3.2.10; new maintainer
This commit is contained in:
parent
27325c4b5e
commit
c392cbaffb
@ -19,16 +19,15 @@ drwxr-xr-x root/root usr/share/man/man1/
|
||||
drwxr-xr-x root/root usr/share/tor/
|
||||
-rw-r--r-- root/root usr/share/tor/geoip
|
||||
-rw-r--r-- root/root usr/share/tor/geoip6
|
||||
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/lib/
|
||||
drwxr-xr-x tor/tor var/lib/tor/
|
||||
-rw------- tor/tor var/lib/tor/cached-certs (EMPTY)
|
||||
-rw------- tor/tor var/lib/tor/cached-consensus (EMPTY)
|
||||
-rw------- tor/tor var/lib/tor/cached-descriptors (EMPTY)
|
||||
-rw------- tor/tor var/lib/tor/cached-descriptors.new (EMPTY)
|
||||
-rw------- tor/tor var/lib/tor/cached-routers.new (EMPTY)
|
||||
-rw------- tor/tor var/lib/tor/state (EMPTY)
|
||||
drwxr-xr-x root/root var/log/
|
||||
drwxr-xr-x tor/tor var/log/tor/
|
||||
-rw-r----- tor/tor var/log/tor/notices.log (EMPTY)
|
||||
|
@ -1,3 +1,2 @@
|
||||
585e62d086ae7df7cd873f735d726118 tor-0.3.1.9.tar.gz
|
||||
53f221aeaaaede055c810cd1858b294c tor-config.patch
|
||||
a8b8b3db93f87a5c061109dbd8cd5309 tor-0.3.2.10.tar.gz
|
||||
7c7044055ada4eb8e65513763401739b tor.rc
|
||||
|
@ -1,7 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF360tWtE0+N/vY/Qf79tv3BYNqVjEhF80jsY5hOltjfZ8Q5fm9id0G93go6PY9wvuSx78d4rQOfsES/A+8wqAng8=
|
||||
SHA256 (Pkgfile) = 08c158170f1e744749494765c3094fd6dff4159f43e2febb090a9b253c9106c3
|
||||
SHA256 (.footprint) = 8777b2f1635f67817289e62733ad284f1452b4e5a2f96f570ff5eb13ee6e2e75
|
||||
SHA256 (tor-0.3.1.9.tar.gz) = 6e1b04f7890e782fd56014a0de5075e4ab29b52a35d8bca1f6b80c93f58f3d26
|
||||
RWSagIOpLGJF39X7c+gYExa0yEHjy/Hxh39dJoc71vcT41WPRMz3A+KDsaUDX1J5jQTGom1C/XVSs853/PRySslhJ9CKAhDYvww=
|
||||
SHA256 (Pkgfile) = 0f795e8ada0d2c1106beb08cf20bd46261f0437aa9741832b828aeefa80e6afc
|
||||
SHA256 (.footprint) = 5991db76fd34fc8f7a3baa8c3de7300861c5821b184dfb52352577d9c2e6e346
|
||||
SHA256 (tor-0.3.2.10.tar.gz) = 60df77c31dcf94fdd686c8ca8c34f3b70243b33a7344ecc0b719d5ca2617cbee
|
||||
SHA256 (tor.rc) = 0876c5addd85633c135a0e4c167643fb0708dc469662c256f4cefc1fd96e8b89
|
||||
SHA256 (tor-config.patch) = f0ac914981edd3fe6c17192fbb284941c04f6a8c05990b063ee85ab68633f6f0
|
||||
|
95
tor/Pkgfile
95
tor/Pkgfile
@ -1,59 +1,66 @@
|
||||
# Description: Tor is a anonymous network and proxy.
|
||||
# URL: http://www.torproject.org/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Packager: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: libevent openssl zlib
|
||||
# Description: Tor is a anonymous network and proxy
|
||||
# URL: http://www.torproject.org/
|
||||
# Maintainer: Alexandr Savca, alexandr dot savca89 at gmail dot com
|
||||
# Depends on: libevent openssl zlib
|
||||
|
||||
name=tor
|
||||
version=0.3.1.9
|
||||
version=0.3.2.10
|
||||
release=1
|
||||
source=(https://www.torproject.org/dist/tor-$version.tar.gz
|
||||
tor.rc tor-config.patch)
|
||||
tor.rc)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -p 1 -i $SRC/tor-config.patch
|
||||
cd $name-$version
|
||||
|
||||
# fix for find: The relative path `~/bin' is included in the PATH
|
||||
# environment variable, which is insecure in combination with the
|
||||
# -execdir action of find. Please remove that entry from $PATH
|
||||
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/~/ {next} {print}' | sed 's/:*$//')
|
||||
# fix for find: The relative path `~/bin' is included in the PATH
|
||||
# environment variable, which is insecure in combination with the
|
||||
# -execdir action of find. Please remove that entry from $PATH
|
||||
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/~/ {next} {print}' | sed 's/:*$//')
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir="/var" \
|
||||
--enable-system-torrc \
|
||||
--disable-libfuzzer \
|
||||
--disable-rust
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# 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 {} \;
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# configuration
|
||||
mv $PKG/etc/tor/torrc.sample $PKG/etc/tor/torrc
|
||||
find $PKG/etc/tor/ -type f -exec chown root:tor {} \; -execdir chmod 0640 {} \;
|
||||
# data
|
||||
install -d $PKG/var/lib/tor
|
||||
chown tor:tor $PKG/var/lib/tor
|
||||
touch \
|
||||
$PKG/var/lib/tor/cached-certs \
|
||||
$PKG/var/lib/tor/cached-consensus \
|
||||
$PKG/var/lib/tor/cached-descriptors \
|
||||
$PKG/var/lib/tor/cached-descriptors.new \
|
||||
$PKG/var/lib/tor/cached-routers.new \
|
||||
$PKG/var/lib/tor/state
|
||||
find $PKG/var/lib/tor/ -type f -execdir chown tor:tor {} \; -execdir chmod 0600 {} \;
|
||||
|
||||
# programs
|
||||
find $PKG/usr/bin -type f -execdir chown root:tor {} \; -execdir chmod 0750 {} \;
|
||||
# configuration
|
||||
mv $PKG/etc/tor/torrc.sample $PKG/etc/tor/torrc
|
||||
sed -i -e 's|^#RunAsDaemon 1$|RunAsDaemon 1|' \
|
||||
-e 's|^#Log notice file /|Log notice file /|' \
|
||||
-e 's|^#DataDirectory /|DataDirectory /|' \
|
||||
$PKG/etc/tor/torrc
|
||||
|
||||
# logs
|
||||
install -d $PKG/var/log/tor
|
||||
chown tor:tor $PKG/var/log/tor
|
||||
touch $PKG/var/log/tor/notices.log
|
||||
find $PKG/var/log/tor/ -type f -exec chown tor:tor {} \; -execdir chmod 0640 {} \;
|
||||
find $PKG/etc/tor/ -type f -exec chown root:tor {} \; -execdir chmod 0640 {} \;
|
||||
|
||||
# service
|
||||
install -m 0750 -D $SRC/tor.rc $PKG/etc/rc.d/tor
|
||||
# programs
|
||||
find $PKG/usr/bin -type f -execdir chown root:tor {} \; -execdir chmod 0750 {} \;
|
||||
|
||||
# docs
|
||||
rm -r $PKG/usr/share/doc
|
||||
# logs
|
||||
install -d $PKG/var/log/tor
|
||||
chown tor:tor $PKG/var/log/tor
|
||||
touch $PKG/var/log/tor/notices.log
|
||||
find $PKG/var/log/tor/ -type f -exec chown tor:tor {} \; -execdir chmod 0640 {} \;
|
||||
|
||||
# service
|
||||
install -m 0750 -D $SRC/tor.rc $PKG/etc/rc.d/tor
|
||||
|
||||
# docs
|
||||
rm -r $PKG/usr/share/doc
|
||||
}
|
||||
|
40
tor/README
40
tor/README
@ -1,30 +1,22 @@
|
||||
REQUIREMENTS:
|
||||
README for tor
|
||||
|
||||
PRECAUTION:
|
||||
PRECAUTION
|
||||
Make sure you edit /etc/pkgadd.conf and add the following line.
|
||||
|
||||
Make sure you edit /etc/pkgadd.conf and add the following line.
|
||||
UPGRADE ^var/lib/tor/.*$ NO
|
||||
UPGRADE ^etc/tor/torrc$ NO
|
||||
|
||||
UPGRADE ^usr/var/lib/tor/.*$ NO
|
||||
Failure to do so will result in the loss of your tor data and
|
||||
configuration upon update!
|
||||
|
||||
Failure to do so will result in the loss of your tor data upon update!
|
||||
If you edit the torrc file for extra logging, make sure you:
|
||||
chmod 0640 /var/log/tor/* files, for security reasons.
|
||||
|
||||
If you edit the torrc file for extra logging, make sure you:
|
||||
chmod 0640 /var/log/tor/* files, for security reasons.
|
||||
|
||||
PRE-INSTALL:
|
||||
|
||||
Tor expects to have a user and group dedicated to it, a
|
||||
pre-install script has been added to the port which takes
|
||||
care of this.
|
||||
|
||||
POST-INSTALL:
|
||||
|
||||
PRE-REMOVE:
|
||||
|
||||
POST-REMOVE:
|
||||
|
||||
NOTES:
|
||||
|
||||
Please edit /etc/tor/torrc and add "tor" to the SERVICES
|
||||
array in /etc/rc.conf
|
||||
PRE-INSTALL
|
||||
Tor expects to have a user and group dedicated to it, a
|
||||
pre-install script has been added to the port which takes
|
||||
care of this.
|
||||
|
||||
NOTES
|
||||
Please edit /etc/tor/torrc and add "tor" to the SERVICES
|
||||
array in /etc/rc.conf
|
||||
|
@ -1,26 +0,0 @@
|
||||
diff -pruN tor-0.2.0.30.orig/src/config/torrc.sample.in tor-0.2.0.30/src/config/torrc.sample.in
|
||||
--- tor-0.2.0.30.orig/src/config/torrc.sample.in 2008-07-17 13:50:58.055386603 +0000
|
||||
+++ tor-0.2.0.30/src/config/torrc.sample.in 2008-07-17 13:55:17.578388974 +0000
|
||||
@@ -33,7 +33,7 @@ SocksListenAddress 127.0.0.1 # accept co
|
||||
## may provide sensitive information to an attacker who obtains the logs.
|
||||
##
|
||||
## Send all messages of level 'notice' or higher to @LOCALSTATEDIR@/log/tor/notices.log
|
||||
-#Log notice file @LOCALSTATEDIR@/log/tor/notices.log
|
||||
+Log notice file /var/log/tor/notices.log
|
||||
## Send every possible message to @LOCALSTATEDIR@/log/tor/debug.log
|
||||
#Log debug file @LOCALSTATEDIR@/log/tor/debug.log
|
||||
## Use the system log instead of Tor's logfiles
|
||||
@@ -44,11 +44,11 @@ SocksListenAddress 127.0.0.1 # accept co
|
||||
## Uncomment this to start the process in the background... or use
|
||||
## --runasdaemon 1 on the command line. This is ignored on Windows;
|
||||
## see the FAQ entry if you want Tor to run as an NT service.
|
||||
-#RunAsDaemon 1
|
||||
+RunAsDaemon 1
|
||||
|
||||
## The directory for keeping all the keys/etc. By default, we store
|
||||
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
|
||||
-#DataDirectory @LOCALSTATEDIR@/lib/tor
|
||||
+DataDirectory @LOCALSTATEDIR@/lib/tor
|
||||
|
||||
## The port on which Tor will listen for local connections from Tor
|
||||
## controller applications, as documented in control-spec.txt.
|
Loading…
x
Reference in New Issue
Block a user