tor: deleted unmaintained port
This commit is contained in:
parent
9f53dbb0de
commit
03555a4b65
@ -1,28 +0,0 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-x--- root/root etc/rc.d/tor
|
||||
drwxr-xr-x root/root etc/tor/
|
||||
-rw------- tor/tor etc/tor/torrc
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/tor
|
||||
-rwxr-xr-x root/root usr/bin/tor-gencert
|
||||
-rwxr-xr-x root/root usr/bin/tor-print-ed-signing-cert
|
||||
-rwxr-xr-x root/root usr/bin/tor-resolve
|
||||
-rwxr-xr-x root/root usr/bin/torify
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/man/
|
||||
drwxr-xr-x root/root usr/share/man/man1/
|
||||
-rw-r--r-- root/root usr/share/man/man1/tor-gencert.1.gz
|
||||
-rw-r--r-- root/root usr/share/man/man1/tor-print-ed-signing-cert.1.gz
|
||||
-rw-r--r-- root/root usr/share/man/man1/tor-resolve.1.gz
|
||||
-rw-r--r-- root/root usr/share/man/man1/tor.1.gz
|
||||
-rw-r--r-- root/root usr/share/man/man1/torify.1.gz
|
||||
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 var/
|
||||
drwxr-xr-x root/root var/lib/
|
||||
drwx------ tor/tor var/lib/tor/
|
||||
drwxr-xr-x root/root var/log/
|
||||
drwx------ tor/tor var/log/tor/
|
@ -1,6 +0,0 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3yS1BQONQLY2IaQlgCRr4kKjyus2AJ+g0nMv3fENtjasyWILuL5Kj31o6C538nMS1kDwmFOB9Eu/y2apcqTGcwo=
|
||||
SHA256 (Pkgfile) = 14e4a1075b8cacdb1d771e47e25378b21716abcbec38685d1d075c1637592250
|
||||
SHA256 (.footprint) = 8dacf6216fbd3b37d314b191dcbf9c2d073a58fd4bff4b3f9031e15784c6b315
|
||||
SHA256 (tor-0.4.4.7.tar.gz) = 326d2926177f0c7838cac213456d0056817d57f3f2e46714a2911c7d7a9b05ee
|
||||
SHA256 (rc.tor) = ca0c0fdc632c5464e69fcc37daddd21bd097597e9e224a13acfb45f9884c4f1d
|
45
tor/Pkgfile
45
tor/Pkgfile
@ -1,45 +0,0 @@
|
||||
# Description: Anonymizing overlay network
|
||||
# URL: https://www.torproject.org
|
||||
# Maintainer: UNMAINTAINED
|
||||
# Depends on: libcap libevent libseccomp
|
||||
|
||||
name=tor
|
||||
version=0.4.4.7
|
||||
release=1
|
||||
source=(https://www.torproject.org/dist/$name-$version.tar.gz
|
||||
rc.tor)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--enable-system-torrc \
|
||||
--disable-libfuzzer \
|
||||
--disable-android \
|
||||
--disable-html-manual \
|
||||
--disable-rust \
|
||||
--disable-zstd-advanced-apis
|
||||
|
||||
make V=1
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# data
|
||||
install -dm0700 -o tor -g tor $PKG/var/lib/tor
|
||||
install -dm0700 -o tor -g tor $PKG/var/log/tor
|
||||
|
||||
# config
|
||||
install -m600 -o tor -g tor $PKG/etc/tor/torrc.sample $PKG/etc/tor/torrc
|
||||
rm $PKG/etc/tor/torrc.sample
|
||||
sed -i \
|
||||
-e 's/^#Log notice file/Log notice file/' \
|
||||
-e 's/^#DataDirectory/DataDirectory/' \
|
||||
$PKG/etc/tor/torrc
|
||||
|
||||
# service
|
||||
install -Dm0750 $SRC/rc.tor $PKG/etc/rc.d/tor
|
||||
}
|
34
tor/README
34
tor/README
@ -1,34 +0,0 @@
|
||||
README for tor
|
||||
|
||||
PRECAUTION
|
||||
|
||||
Make sure you edit /etc/pkgadd.conf and add the following lines:
|
||||
|
||||
UPGRADE ^var/lib/tor/.*$ NO
|
||||
UPGRADE ^etc/tor/torrc$ NO
|
||||
UPGRADE ^etc/tor/torifyrc$ NO
|
||||
|
||||
Failure to do so will result in the loss of your tor data and
|
||||
configuration upon update!
|
||||
|
||||
If you edit the torrc file for extra logging, make sure you:
|
||||
chmod 0640 /var/log/tor/* files, for security reasons.
|
||||
|
||||
Make sure that in torrc file this option is commented, because
|
||||
the tor's rc script already do that:
|
||||
# RunAsDaemon=1
|
||||
|
||||
PRE-INSTALL
|
||||
|
||||
Tor expects to have a user and group dedicated to it.
|
||||
pre-install script takes care of this.
|
||||
|
||||
NOTES
|
||||
|
||||
DNS
|
||||
---
|
||||
|
||||
If you want to use Tor DNS as default nameserver on port 53,
|
||||
dont forget to allow non-root process to bind a privileged port:
|
||||
|
||||
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/tor
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/bin/getent group tor || /usr/sbin/groupadd -r tor
|
||||
/usr/bin/getent passwd tor || /usr/sbin/useradd -r -d /var/lib/tor -s /bin/false tor
|
||||
|
||||
/usr/bin/passwd -l tor
|
||||
|
||||
# End of file
|
43
tor/rc.tor
43
tor/rc.tor
@ -1,43 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/tor: start/stop tor daemon
|
||||
#
|
||||
|
||||
SSD=/sbin/start-stop-daemon
|
||||
PROG=/usr/bin/tor
|
||||
PID=/var/run/tor.pid
|
||||
OPTS=
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
$SSD --start --make-pidfile --pidfile $PID --chuid tor:tor \
|
||||
--exec $PROG --background -- $OPTS
|
||||
;;
|
||||
stop)
|
||||
$SSD --stop --retry 10 --pidfile $PID --remove-pidfile
|
||||
;;
|
||||
reload)
|
||||
$SSD --stop --signal HUP --pidfile $PID
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
check-config)
|
||||
su tor -c "$PROG --verify-config"
|
||||
;;
|
||||
status)
|
||||
$SSD --status --pidfile $PID
|
||||
case $? in
|
||||
0) echo "$PROG is running with pid $(cat $PID)" ;;
|
||||
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||
3) echo "$PROG is not running" ;;
|
||||
4) echo "Unable to determine the program status" ;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|reload|restart|check-config|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user