network/tor: Updated for version 0.2.0.32
This commit is contained in:
parent
08732a7b5c
commit
1c737991b6
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
PIDFILE="/var/lib/tor/tor.pid"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue