Commit 0d39eee5 authored by Scrumpy Jack's avatar Scrumpy Jack Committed by Natanael Copa

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.
parent 64b012b2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment