aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 22:25:49 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:25:49 +0200
commit1c737991b62532b061b37955c3c6cf19797ccea6 (patch)
tree68747aa788c306fdc356336c733588e0ced4c5fe /network
parent08732a7b5c905aa7b3e9117536c30c12ddc61be1 (diff)
network/tor: Updated for version 0.2.0.32
Diffstat (limited to 'network')
-rw-r--r--network/tor/rc.tor3
-rw-r--r--network/tor/tor.SlackBuild41
-rw-r--r--network/tor/tor.info8
3 files changed, 23 insertions, 29 deletions
diff --git a/network/tor/rc.tor b/network/tor/rc.tor
index 5c2d99eb0a37f..d7ef906aae51e 100644
--- a/network/tor/rc.tor
+++ b/network/tor/rc.tor
@@ -1,4 +1,5 @@
-#!/bin/bash
+
+#!/bin/sh
PIDFILE="/var/lib/tor/tor.pid"
diff --git a/network/tor/tor.SlackBuild b/network/tor/tor.SlackBuild
index 8be9c6471c600..576351449f432 100644
--- a/network/tor/tor.SlackBuild
+++ b/network/tor/tor.SlackBuild
@@ -3,13 +3,14 @@
# Slackware build script for tor
# Written by Erik Hanson erik@slackbuilds.org
-# Modified by the SlackBuilds.org project
+set -eu
PRGNAM=tor
-VERSION=0.1.2.14
+VERSION=0.2.0.32
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -19,14 +20,16 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -35,30 +38,20 @@ CFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man \
- || exit 1
+ --mandir=/usr/man
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
-if [ -d $PKG/usr/man ]; then
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
-fi
+gzip -9 $PKG/usr/man/man?/*.?
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS LICENSE README doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/spec
+cp -a AUTHORS ChangeLog INSTALL LICENSE README ReleaseNotes \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/spec/*txt $PKG/usr/doc/$PRGNAM-$VERSION/spec
+cp -a doc/website $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Remove doc/ cruft
-( cd $PKG/usr/doc
- find . -name Makefile* -exec rm {} \;
- find . -name *.1 -exec rm {} \;
- find . -name *.in -exec rm {} \;
-)
-
mkdir -p $PKG/install $PKG/etc/rc.d
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/network/tor/tor.info b/network/tor/tor.info
index 2a61c8956f1f3..eace5374752e3 100644
--- a/network/tor/tor.info
+++ b/network/tor/tor.info
@@ -1,8 +1,8 @@
PRGNAM="tor"
-VERSION="0.1.2.14"
+VERSION="0.2.0.32"
HOMEPAGE="http://tor.eff.org/"
-DOWNLOAD="http://tor.eff.org/dist/tor-0.1.2.14.tar.gz"
-MD5SUM="dc93a52f9c12ec7fe73b3905a28f09ec"
+DOWNLOAD="http://www.torproject.org/dist/tor-0.2.0.32.tar.gz"
+MD5SUM="fd55489f7ad1ef53c0b0dac857696fc9"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
-APPROVED="rworkman"
+APPROVED="dsomero" \ No newline at end of file