diff --git a/net-vpn/tor/tor-0.2.4.20.recipe b/net-vpn/tor/tor-0.2.4.20.recipe deleted file mode 100644 index 223500ed2..000000000 --- a/net-vpn/tor/tor-0.2.4.20.recipe +++ /dev/null @@ -1,97 +0,0 @@ -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. -Individuals use Tor to keep websites from tracking them and their family \ -members, or to connect to news sites, instant messaging services, or the like \ -when these are blocked by their local Internet providers. Tor's hidden \ -services let users publish web sites and other services without needing to \ -reveal the location of the site. Individuals also use Tor for socially \ -sensitive communication: chat rooms and web forums for rape and abuse \ -survivors, or people with illnesses. -Journalists use Tor to communicate more safely with whistleblowers and \ -dissidents. Non-governmental organizations (NGOs) use Tor to allow their \ -workers to connect to their home website while they're in a foreign country, \ -without notifying everybody nearby that they're working with that organization. -Groups such as Indymedia recommend Tor for safeguarding their members' online \ -privacy and security. Activist groups like the Electronic Frontier Foundation \ -(EFF) recommend Tor as a mechanism for maintaining civil liberties online. \ -Corporations use Tor as a safe way to conduct competitive analysis, and to \ -protect sensitive procurement patterns from eavesdroppers. They also use it to \ -replace traditional VPNs, which reveal the exact amount and timing of \ -communication. Which locations have employees working late? Which locations \ -have employees consulting job-hunting websites? Which research divisions are \ -communicating with the company's patent lawyers? -A branch of the U.S. Navy uses Tor for open source intelligence gathering, and \ -one of its teams used Tor while deployed in the Middle East recently. Law \ -enforcement uses Tor for visiting or surveilling web sites without leaving \ -government IP addresses in their web logs, and for security during sting \ -operations. -The variety of people who use Tor is actually part of what makes it so secure. \ -Tor hides you among the other users on the network, so the more populous and \ -diverse the user base for Tor is, the more your anonymity will be protected." -HOMEPAGE="https://www.torproject.org" -SOURCE_URI="https://archive.torproject.org/tor-package-archive/tor-0.2.4.20.tar.gz" -CHECKSUM_SHA256="ccc51747cbcbf98f658c34d5c693ff8a868698da0349d056e98287ef2e294d9f" - -REVISION="1" - -ARCHITECTURES="!x86_gcc2 x86 ?x86_64" -SECONDARY_ARCHITECTURES="x86" - -PROVIDES=" - tor = $portVersion - cmd:tor = $portVersion - cmd:tor_gencert = $portVersion - cmd:tor_resolve = $portVersion - cmd:torify = $portVersion - " -REQUIRES=" - haiku$secondaryArchSuffix - lib:libevent$secondaryArchSuffix - lib:libz$secondaryArchSuffix - lib:libssl$secondaryArchSuffix - lib:libcrypto$secondaryArchSuffix - " -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel - devel:libevent$secondaryArchSuffix - devel:libssl$secondaryArchSuffix - devel:libz$secondaryArchSuffix - " -BUILD_PREREQUIRES=" - cmd:awk - cmd:gcc$secondaryArchSuffix - cmd:ld$secondaryArchSuffix - cmd:make - cmd:awk - " - -LICENSE="Tor" -COPYRIGHT=" - 2001-2004, Roger Dingledine - 2004-2006, Roger Dingledine, Nick Mathewson - 2007-2013, The Tor Project, Inc. - " - -#USER_SETTINGS_FILES=" -# settings/tor directory -# " - -#GLOBAL_WRITABLE_FILES=" -# settings/tor/torrc.sample auto-merge -# " - -BUILD() -{ - runConfigure ./configure - make -} - -INSTALL() -{ - make install -} diff --git a/net-vpn/tor/tor-0.2.5.10.recipe b/net-vpn/tor/tor-0.3.1.9.recipe similarity index 67% rename from net-vpn/tor/tor-0.2.5.10.recipe rename to net-vpn/tor/tor-0.3.1.9.recipe index cc7f7d76b..bab81b60b 100644 --- a/net-vpn/tor/tor-0.2.5.10.recipe +++ b/net-vpn/tor/tor-0.3.1.9.recipe @@ -6,10 +6,16 @@ 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" -SOURCE_URI="https://www.torproject.org/dist/tor-0.2.5.10.tar.gz" -CHECKSUM_SHA256="b3dd02a5dcd2ffe14d9a37956f92779d4427edf7905c0bba9b1e3901b9c5a83b" - +COPYRIGHT=" + 2001-2004, Roger Dingledine + 2004-2006, Roger Dingledine, Nick Mathewson + 2007-2017, The Tor Project, Inc. + " +LICENSE="Tor" REVISION="1" +SOURCE_URI="https://www.torproject.org/dist/tor-$portVersion.tar.gz" +CHECKSUM_SHA256="6e1b04f7890e782fd56014a0de5075e4ab29b52a35d8bca1f6b80c93f58f3d26" +PATCHES="tor-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 ?x86_64" SECONDARY_ARCHITECTURES="x86" @@ -22,33 +28,30 @@ PROVIDES=" cmd:torify$secondaryArchSuffix " REQUIRES=" - haiku$secondaryArchSuffix >= $haikuVersion + haiku$secondaryArchSuffix lib:libevent$secondaryArchSuffix lib:libz$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix + lib:liblzma$secondaryArchSuffix + lib:libzstd$secondaryArchSuffix " BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel >= $haikuVersion + haiku${secondaryArchSuffix}_devel devel:libevent$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:ld$secondaryArchSuffix - cmd:libtoolize + cmd:libtoolize$secondaryArchSuffix cmd:make - " - -LICENSE="BSD (3-clause)" -COPYRIGHT=" - 2001-2004, Roger Dingledine - 2004-2006, Roger Dingledine, Nick Mathewson - 2007-2014, The Tor Project, Inc. + cmd:pkg_config$secondaryArchSuffix " USER_SETTINGS_FILES=" @@ -61,11 +64,11 @@ GLOBAL_WRITABLE_FILES=" BUILD() { - libtoolize --force --copy --install - aclocal - autoconf - automake --add-missing - runConfigure ./configure + export CFLAGS="-D_BSD_SOURCE" + export CXXFLAGS="-D_BSD_SOURCE" + export LDFLAGS="-lbsd" + autoreconf -vfi + runConfigure ./configure --disable-gcc-hardening make } @@ -73,3 +76,8 @@ INSTALL() { make install } + +TEST() +{ + make check +}