network/vidalia: Added to 12.2 repository

This commit is contained in:
Larry Hajali 2010-05-12 23:32:51 +02:00 committed by David Somero
parent a349398ca9
commit d397484dca
6 changed files with 136 additions and 0 deletions

9
network/vidalia/README Normal file
View file

@ -0,0 +1,9 @@
Vidalia is a GUI for the Tor software. Using Vidalia, you can start and stop
the Tor software, view its status at a glance, and monitor bandwidth usage.
Vidalia also makes it easy to contribute to the Tor network by helping you
set up and manage your own relay.
This requires qt4 and tor (both available at SlackBuilds.org).
See README.SBo (which is also installed with the package documentation)
for some configuration hints.

View file

@ -0,0 +1,18 @@
vidalia README.SBo
Once vidalia is installed then edit the ~/.vidalia/torrc file.
Add the following to torrc or use the torrc file from /etc/tor/torrc.
# Set the Tor Circuit Build time to find faster tor servers, increments of
# seconds.
CircuitBuildTimeout 2
# connections while Tor is not in use.
KeepalivePeriod 60
# Force Tor to consider whether to build a new circuit every NUM seconds.
NewCircuitPeriod 15
# Set How many entry guards we should we keep at a time.
NumEntryGuards 8
To use vidalia and tor with Firefox then add the FoxyProxy extension
and use the FoxyProxy's Tor Wizard. For extra anonimity in Firefox then try
Torbutton extension and Privoxy.

View file

@ -0,0 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -0,0 +1,20 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
vidalia: vidalia (Gui frontend for tor)
vidalia:
vidalia: Using Vidalia, you can start and stop the Tor software, view its
vidalia: status at a glance, and monitor bandwidth usage. Vidalia also makes
vidalia: it easy to contribute to the Tor network by helping you set up and
vidalia: manage your own relay.
vidalia:
vidalia: Homepage: http://vidalia-project.net/
vidalia:
vidalia:
vidalia:

View file

@ -0,0 +1,77 @@
#!/bin/sh
# Slackware build script for vidalia
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=vidalia
VERSION=${VERSION:-0.1.13}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd -
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/man/man1
gzip -9c doc/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CHANGELOG CREDITS HACKING INSTALL LICENSE* README doc/TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/README.SBo > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir -p $PKG/install
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.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="vidalia"
VERSION="0.1.13"
HOMEPAGE="http://vidalia-project.net/"
DOWNLOAD="http://www.torproject.org/vidalia/dist/vidalia-0.1.13.tar.gz"
MD5SUM="b0fcd0a9c30b1ed545981fa7d8ac7d71"
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="dsomero"