diff options
Diffstat (limited to 'network/tor')
-rw-r--r-- | network/tor/README | 11 | ||||
-rw-r--r-- | network/tor/README.SLACKWARE | 4 | ||||
-rw-r--r-- | network/tor/rc.tor | 2 | ||||
-rw-r--r-- | network/tor/tor.SlackBuild | 20 | ||||
-rw-r--r-- | network/tor/tor.info | 10 |
5 files changed, 32 insertions, 15 deletions
diff --git a/network/tor/README b/network/tor/README index ef4c0eff74..69be208d9c 100644 --- a/network/tor/README +++ b/network/tor/README @@ -8,18 +8,20 @@ applications with built-in anonymity, safety, and privacy features. This script requires a 'tor' user/group to exist before running. The recommended UID/GID is 220. You can create these like so: groupadd -g 220 tor - useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor + useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null \ + -s /bin/false tor -You can pass another user/group to the script; this is however, less safe: +You can pass another user/group to the script; this is however, less +safe: TOR_USER=nobody TOR_GROUP=nogroup sh tor.SlackBuild The following can be used to start/stop tor automatically: -/etc/rc.d/rc.local +In file /etc/rc.d/rc.local, add following if [ -x /etc/rc.d/rc.tor ]; then /etc/rc.d/rc.tor start fi -/etc/rc.d/rc.local_shutdown +In /etc/rc.d/rc.local_shutdown, add following if [ -x /etc/rc.d/rc.tor ]; then /etc/rc.d/rc.tor stop fi @@ -28,7 +30,6 @@ torsocks is an optional dependency. See README.SLACKWARE for more information. optional dependencies: -- zstd for better compression ratios. - nacl may provide faster performance on 32-bit systems. Take a look at README.SLACKWARE for important notes and read also very diff --git a/network/tor/README.SLACKWARE b/network/tor/README.SLACKWARE index cc45175114..70b0f821d7 100644 --- a/network/tor/README.SLACKWARE +++ b/network/tor/README.SLACKWARE @@ -16,3 +16,7 @@ Starting from Tor 0.4.2.5 this is the default for the tor.SlackBuild. Also, since Tor 0.4.2.5 contrib/dist/torctl has been removed by upstream. Have a look at https://bugs.torproject.org/30550 + +In case your relay does not start after the upgrade to Tor 0.4.5.6+ +make sure your system is IPv6 ready. Have a look at +https://lists.torproject.org/pipermail/tor-relays/2021-February/019299.html diff --git a/network/tor/rc.tor b/network/tor/rc.tor index 11daf8a95a..53ab0ed110 100644 --- a/network/tor/rc.tor +++ b/network/tor/rc.tor @@ -34,6 +34,8 @@ else fi tor_start() { + mkdir -p /var/run/tor + chown tor.tor /var/run/tor if [ -n "$MAX_FILEDESCRIPTORS" ]; then echo -n "Raising maximum number of filedescriptors (ulimit -n) to $MAX_FILEDESCRIPTORS" if ulimit -n "$MAX_FILEDESCRIPTORS" ; then diff --git a/network/tor/tor.SlackBuild b/network/tor/tor.SlackBuild index 9d9dfdeec5..156451c169 100644 --- a/network/tor/tor.SlackBuild +++ b/network/tor/tor.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for tor # @@ -26,10 +26,13 @@ # Updated by Fernando Lopez Jr. fernando.lopezjr@gmail.com # Updated by Markus Reichelt slackbuilds@mareichelt.de +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=tor -VERSION=${VERSION:-0.4.2.7} +VERSION=${VERSION:-0.4.8.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} # Select tor's default user/group TOR_USER=${TOR_USER:-tor} @@ -45,7 +48,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -129,7 +139,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/spec -cp -a ChangeLog INSTALL LICENSE README ReleaseNotes \ +cp -a ChangeLog INSTALL LICENSE README.md ReleaseNotes \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE @@ -139,4 +149,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/tor/tor.info b/network/tor/tor.info index a2f8cc7266..837fc16dce 100644 --- a/network/tor/tor.info +++ b/network/tor/tor.info @@ -1,10 +1,10 @@ PRGNAM="tor" -VERSION="0.4.2.7" +VERSION="0.4.8.7" HOMEPAGE="https://www.torproject.org/" -DOWNLOAD="https://dist.torproject.org/tor-0.4.2.7.tar.gz" -MD5SUM="a4b338b9f7444f4f89259c9736ff74c8" +DOWNLOAD="https://dist.torproject.org/tor-0.4.8.7.tar.gz" +MD5SUM="ce259834ed76e3e65a25438cc42b6281" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Markus Reichelt" -EMAIL="slackbuilds@mareichelt.de" +MAINTAINER="MDrights" +EMAIL="psychi2009@gmail.com" |