Files
haikuports/net-vpn/tor/tor-0.3.3.6.recipe
Sergei Reznikov 02685796a5 tor: enable x86_64
2018-05-31 09:46:19 +03:00

84 lines
2.1 KiB
Bash

SUMMARY="A virtual layer that helps you improve privacy and anonymity"
DESCRIPTION="Tor is a network of virtual tunnels that allows people and groups to improve \
their privacy and security on the Internet. It also enables software \
developers to create new communication tools with built-in privacy features. \
Tor provides the foundation for a range of applications that allow \
organizations and individuals to share information over public networks \
without compromising their privacy."
HOMEPAGE="https://www.torproject.org"
COPYRIGHT="
2001-2004, Roger Dingledine
2004-2006, Roger Dingledine, Nick Mathewson
2007-2018, The Tor Project, Inc.
"
LICENSE="Tor"
REVISION="1"
SOURCE_URI="https://www.torproject.org/dist/tor-$portVersion.tar.gz"
CHECKSUM_SHA256="99bc59f6dbf395894de12f3a83b3251a82dfd93dc7f6d3afcbbd80f6111433b7"
PATCHES="tor-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
tor$secondaryArchSuffix = $portVersion
cmd:tor$secondaryArchSuffix
cmd:tor_gencert$secondaryArchSuffix
cmd:tor_resolve$secondaryArchSuffix
cmd:torify$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libevent_2.1$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:liblzma$secondaryArchSuffix
lib:libzstd$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libevent_2.1$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:liblzma$secondaryArchSuffix
devel:libzstd$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
USER_SETTINGS_FILES="
settings/tor directory
"
GLOBAL_WRITABLE_FILES="
settings/tor/torrc.sample auto-merge
"
BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
export CXXFLAGS="-D_BSD_SOURCE"
export LDFLAGS="-lbsd"
autoreconf -vfi
runConfigure ./configure --disable-gcc-hardening --disable-unittests
make
}
INSTALL()
{
make install
}
TEST()
{
make check
}