# Contributor: Sam Dodrill # Maintainer: Sam Dodrill pkgname=tor pkgver=0.2.8.12 pkgrel=0 pkgdesc="Anonymous network connectivity" url="https://www.torproject.org" arch="all" license="BSD" pkgusers="tor" depends="" makedepends="linux-headers bash libevent-dev libressl-dev ca-certificates zlib-dev" install="$pkgname.post-upgrade $pkgname.pre-install" subpackages="$pkgname-doc" source="https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz tor.initd tor.confd torrc.sample.patch" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-transparent \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 install -dm755 -o $pkgusers \ "$pkgdir"/var/lib/$pkgname \ "$pkgdir"/var/log/$pkgname || return 1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 } md5sums="476f5074c2f77350010dcb52f6f8651d tor-0.2.8.12.tar.gz 1cecd1e1d7765128a35995c0b1a02d38 tor.initd 9e3f6716ba5a50bd0d4d5643dea124d9 tor.confd 4f5eaefecd46503afe7d6fd22875b775 torrc.sample.patch" sha256sums="b35748f2839cf8ce9910b677ea873463495ac88689244c007ed038f6887f4aaf tor-0.2.8.12.tar.gz b6619d72d4f99e956328a555ea495e82d9f0b578e3697bbcbca80379df9f4c3f tor.initd 864d7ff6c8a6b06734c3f314365304c6ba8b3b893e8f29ed5f6fb9869e647b4b tor.confd c1a7a5fab97ff328daf86fe4d2d2c7bc4580ba43d860d77c0b3f451525d6d058 torrc.sample.patch" sha512sums="b0cfa34914208bbb28f74178a87ece2a320a44606a94c35de715548fc5a3517cd3d9bf27512d9efe2f1c4685620a62ed591927f828e72fe5ac0a1fffa543eb26 tor-0.2.8.12.tar.gz 6de4ada16ba58264a247da70343eabd763e992d6b6683977fc1c67b7b4a9731748a7ec9751e869ad4b4ae9c72cf71b2e12dc289bb6e2aee499917f7663f4a735 tor.initd 2b0de119bfdf9eb57e13317b7392190b1b8272c8f96023c71d3fc29215d887e9a3d0ffcef37cdb50b18d34e4b2251f75a739e258e0bb72aabd3339418b22fd67 tor.confd da386ff7e387312e647f04d360517a1f4cb1efbee36f4a3a6feb89a979bb12fa350fe6dfed49af0cb076ae30bb0c527b5d54127683eaa5aa45d6940dddd89dfb torrc.sample.patch"