aboutsummaryrefslogtreecommitdiffstats
path: root/community/tor/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2017-10-26 12:31:02 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-10-27 12:46:38 +0000
commitbc02bd3e1de24bd21fb74f1b7c92f80ccffd9a5f (patch)
tree8418797f3c0c73092f04521f2c3af704a8b552f6 /community/tor/APKBUILD
parent781fcfe9f689fb78091b3d0fadb27edcad0e044d (diff)
downloadaports-bc02bd3e1de24bd21fb74f1b7c92f80ccffd9a5f.tar.gz
aports-bc02bd3e1de24bd21fb74f1b7c92f80ccffd9a5f.tar.bz2
aports-bc02bd3e1de24bd21fb74f1b7c92f80ccffd9a5f.tar.xz
community/tor: upgrade to 0.3.1.8; modernize
Diffstat (limited to 'community/tor/APKBUILD')
-rw-r--r--community/tor/APKBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/community/tor/APKBUILD b/community/tor/APKBUILD
index 1e24f1bfc7..c585662adf 100644
--- a/community/tor/APKBUILD
+++ b/community/tor/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Christine Dodrill <me@christine.website>
# Maintainer: Christine Dodrill <me@christine.website>
pkgname=tor
-pkgver=0.3.1.7
+pkgver=0.3.1.8
pkgrel=0
pkgdesc="Anonymous network connectivity"
url="https://www.torproject.org"
@@ -18,7 +18,6 @@ source="https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz
tor.confd
torrc.sample.patch"
builddir="$srcdir/$pkgname-$pkgver"
-options="!check"
# secfixes:
# 0.3.0.8-r0:
@@ -26,6 +25,7 @@ options="!check"
build() {
cd "$builddir"
+
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -34,27 +34,32 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --enable-transparent \
- || return 1
- make || return 1
+ --enable-transparent
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ make test
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -dm755 -o $pkgusers \
"$pkgdir"/var/lib/$pkgname \
- "$pkgdir"/var/log/$pkgname || return 1
+ "$pkgdir"/var/log/$pkgname
install -m755 -D "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname || return 1
+ "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname || return 1
+ "$pkgdir"/etc/conf.d/$pkgname
}
-sha512sums="a835526984187fad88cffc39ea8f6a4b61d5f8d2579b5a66425612607a22ff82e0f9da96e029e134e04d25ae0f59a1b4f771e9e8c19ebb563e1a0f5b3a3849e4 tor-0.3.1.7.tar.gz
+sha512sums="0c2d5f6e444815f0812b0f8bb2102f2013c890375cf20b62025d0704e8ee7742bbf7173764795e3e63606a47d0695a5a982c318c55a30ca50600eb6de5b94b16 tor-0.3.1.8.tar.gz
6de4ada16ba58264a247da70343eabd763e992d6b6683977fc1c67b7b4a9731748a7ec9751e869ad4b4ae9c72cf71b2e12dc289bb6e2aee499917f7663f4a735 tor.initd
2b0de119bfdf9eb57e13317b7392190b1b8272c8f96023c71d3fc29215d887e9a3d0ffcef37cdb50b18d34e4b2251f75a739e258e0bb72aabd3339418b22fd67 tor.confd
da386ff7e387312e647f04d360517a1f4cb1efbee36f4a3a6feb89a979bb12fa350fe6dfed49af0cb076ae30bb0c527b5d54127683eaa5aa45d6940dddd89dfb torrc.sample.patch"