0
0
Fork 0
haikuports/net-proxy/torsocks/torsocks-1.2.recipe

75 lines
1.6 KiB
Bash

SUMMARY="A transparent socks proxy for use with tor"
DESCRIPTION="Torsocks allows you to use most socks-friendly applications \
in a safe way with Tor. It ensures that DNS requests are handled safely \
and explicitly rejects UDP traffic from the application you're using."
HOMEPAGE="https://www.torproject.org"
COPYRIGHT="
2000-2008 Shaun Clowes
2008-2011 Robert Hogan
2005 Total Information Security Ltd.
2010 Alex Rosenberg
2004, 2006 Peter Palfrader
2000 Alessandro Iurlano
2004 Tomasz Kojm
"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://torsocks.googlecode.com/files/torsocks-1.2.tar.gz"
CHECKSUM_SHA256="bea57d3624d723724fd1e260f0e6b2a354c0da742c023aa994c7692270d111d4"
PATCHES="torsocks-1.2.patch"
ARCHITECTURES="?all x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
GLOBAL_WRITABLE_FILES="
settings/torsocks.conf manual
"
PROVIDES="
torsocks$secondaryArchSuffix = $portVersion
cmd:torsocks$secondaryArchSuffix
cmd:usewithtor$secondaryArchSuffix
lib:libtorsocks$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
automake
runConfigure ./configure
make
}
INSTALL()
{
make install
# Documentation is put into $dataDir/torsocks
# as opposed to $dataDir
mkdir /temp
mv $dataDir/* /temp
mkdir $dataDir/torsocks
mv /temp/* $dataDir/torsocks
rm -r /temp
}