0
0
Fork 0
haikuports/net-vpn/tor/tor-0.4.2.7.recipe

102 lines
2.6 KiB
Bash
Raw Permalink Normal View History

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."
2018-06-14 00:53:19 +00:00
HOMEPAGE="https://www.torproject.org/"
2020-05-02 06:45:23 +00:00
COPYRIGHT="2007-2020 The Tor Project, Inc.
2018-06-14 00:53:19 +00:00
2004-2006 Nick Mathewson
2001-2006 Roger Dingledine"
2017-12-18 20:29:37 +00:00
LICENSE="Tor"
2020-05-02 06:45:23 +00:00
REVISION="1"
SOURCE_URI="https://dist.torproject.org/tor-$portVersion.tar.gz"
CHECKSUM_SHA256="06a1d835ddf382f6bca40a62e8fb40b71b2f73d56f0d53523c8bd5caf9b3026d"
2017-12-18 20:29:37 +00:00
PATCHES="tor-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
2018-06-14 00:53:19 +00:00
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
GLOBAL_WRITABLE_FILES="
settings/tor/torrc.sample auto-merge
"
USER_SETTINGS_FILES="
settings/tor directory
"
PROVIDES="
tor$secondaryArchSuffix = $portVersion
2018-06-14 00:53:19 +00:00
cmd:tor$commandSuffix
cmd:tor_gencert$commandSuffix
2019-05-02 07:32:34 +00:00
cmd:tor_print_ed_signing_cert$commandSuffix
2018-06-14 00:53:19 +00:00
cmd:tor_resolve$commandSuffix
cmd:torify$commandSuffix
"
REQUIRES="
2017-12-18 20:29:37 +00:00
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
2019-05-02 07:32:34 +00:00
lib:libexecinfo$secondaryArchSuffix
2018-06-14 00:53:19 +00:00
lib:libevent_2.1$secondaryArchSuffix
2017-12-18 20:29:37 +00:00
lib:liblzma$secondaryArchSuffix
2018-06-14 00:53:19 +00:00
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
2017-12-18 20:29:37 +00:00
lib:libzstd$secondaryArchSuffix
"
2018-06-14 00:53:19 +00:00
BUILD_REQUIRES="
2017-12-18 20:29:37 +00:00
haiku${secondaryArchSuffix}_devel
2019-05-02 07:32:34 +00:00
devel:libexecinfo$secondaryArchSuffix
devel:libevent_2.1$secondaryArchSuffix
2018-06-14 00:53:19 +00:00
devel:liblzma$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
2017-12-18 20:29:37 +00:00
devel:libzstd$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
2017-12-18 20:29:37 +00:00
cmd:libtoolize$secondaryArchSuffix
cmd:make
2017-12-18 20:29:37 +00:00
cmd:pkg_config$secondaryArchSuffix
"
2018-06-14 00:53:19 +00:00
defineDebugInfoPackage tor$secondaryArchSuffix \
"$commandBinDir"/tor \
"$commandBinDir"/tor-gencert \
"$commandBinDir"/tor-resolve
BUILD()
{
2018-06-14 00:53:19 +00:00
export CPPFLAGS="-D_BSD_SOURCE"
2017-12-18 20:29:37 +00:00
export LDFLAGS="-lbsd"
2018-06-14 00:53:19 +00:00
2017-12-18 20:29:37 +00:00
autoreconf -vfi
2018-06-14 00:53:19 +00:00
runConfigure --omit-dirs "binDir sbinDir" ./configure \
--bindir="$commandBinDir" --sbindir="$commandBinDir" \
--disable-gcc-hardening \
make $jobArgs
}
INSTALL()
{
make install
}
2017-12-18 20:29:37 +00:00
TEST()
{
make check
}