summaryrefslogtreecommitdiffstats
path: root/network/tor
diff options
context:
space:
mode:
Diffstat (limited to 'network/tor')
-rw-r--r--network/tor/README1
-rw-r--r--network/tor/rc.tor2
-rw-r--r--network/tor/tor.SlackBuild20
-rw-r--r--network/tor/tor.info10
4 files changed, 22 insertions, 11 deletions
diff --git a/network/tor/README b/network/tor/README
index 425c746d6f..69be208d9c 100644
--- a/network/tor/README
+++ b/network/tor/README
@@ -30,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/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 20a1f978dc..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.5.6}
+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 5729b62251..837fc16dce 100644
--- a/network/tor/tor.info
+++ b/network/tor/tor.info
@@ -1,10 +1,10 @@
PRGNAM="tor"
-VERSION="0.4.5.6"
+VERSION="0.4.8.7"
HOMEPAGE="https://www.torproject.org/"
-DOWNLOAD="https://dist.torproject.org/tor-0.4.5.6.tar.gz"
-MD5SUM="22a04ef62c714b7d9d8928ebe238e4c4"
+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"