aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tor/APKBUILD
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2016-06-08 14:49:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-15 10:06:42 +0000
commit0d39eee5c3cb11aae719d3857458a70ce39f0d69 (patch)
tree2b64690ba8633bfe384fa286f8125d02326b985b /testing/tor/APKBUILD
parent64b012b29afa4b01abd962bf8efefe0209610398 (diff)
downloadaports-0d39eee5c3cb11aae719d3857458a70ce39f0d69.tar.gz
aports-0d39eee5c3cb11aae719d3857458a70ce39f0d69.tar.bz2
aports-0d39eee5c3cb11aae719d3857458a70ce39f0d69.tar.xz
testing/tor: enable transparent proxy at build time
-Adds linux-headers as build dep. to enable transparent proxy support in tor as requested in bug #5664. -Minor clean up of APKBUILD file.
Diffstat (limited to 'testing/tor/APKBUILD')
-rw-r--r--testing/tor/APKBUILD22
1 files changed, 7 insertions, 15 deletions
diff --git a/testing/tor/APKBUILD b/testing/tor/APKBUILD
index 591e1926f4..116bffdc41 100644
--- a/testing/tor/APKBUILD
+++ b/testing/tor/APKBUILD
@@ -2,15 +2,15 @@
# Maintainer: Sam Dodrill <shadow.h511@gmail.com>
pkgname=tor
pkgver=0.2.7.6
-pkgrel=2
+pkgrel=3
pkgdesc="Anonymous network connectivity"
url="https://www.torproject.org"
arch="all"
license="BSD"
pkgusers="tor"
depends=""
-depends_dev="bash libevent-dev openssl-dev ca-certificates"
-makedepends="$depends_dev"
+depends_dev=""
+makedepends="linux-headers bash libevent-dev openssl-dev ca-certificates"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz
@@ -18,19 +18,10 @@ source="https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz
tor.confd
"
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -39,12 +30,13 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
+ --enable-transparent \
|| return 1
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
mkdir -p "$pkgdir"/var/lib/$pkgname
mkdir -p "$pkgdir"/var/log/$pkgname