[crux-commits] ports/contrib (refs/remotes/origin/3.6): tor: deleted unmaintained port

crux at crux.nu crux at crux.nu
Sat Apr 10 19:05:51 UTC 2021


commit 03555a4b650435fc07636120bec17ad37b414871
Author: Tim Biermann <tbier at posteo.de>
Date:   Mon Feb 15 09:50:41 2021 +0000

    tor: deleted unmaintained port

diff --git a/tor/.footprint b/tor/.footprint
deleted file mode 100644
index eebf5b9f7..000000000
--- a/tor/.footprint
+++ /dev/null
@@ -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/
diff --git a/tor/.signature b/tor/.signature
deleted file mode 100644
index 696530e44..000000000
--- a/tor/.signature
+++ /dev/null
@@ -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
diff --git a/tor/Pkgfile b/tor/Pkgfile
deleted file mode 100644
index 16a7eaf3d..000000000
--- a/tor/Pkgfile
+++ /dev/null
@@ -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
-}
diff --git a/tor/README b/tor/README
deleted file mode 100644
index 53b9efdb2..000000000
--- a/tor/README
+++ /dev/null
@@ -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
diff --git a/tor/pre-install b/tor/pre-install
deleted file mode 100755
index b00990533..000000000
--- a/tor/pre-install
+++ /dev/null
@@ -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
diff --git a/tor/rc.tor b/tor/rc.tor
deleted file mode 100644
index 34271a5b4..000000000
--- a/tor/rc.tor
+++ /dev/null
@@ -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


More information about the crux-commits mailing list