# Contributor: Sam Dodrill # Maintainer: Sam Dodrill pkgname=tor pkgver=0.2.5.10 pkgrel=0 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" install="$pkgname.pre-install" subpackages="$pkgname-doc" source=" https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz tor.initd 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 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la 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="4bde375229a7a7f77c0596ae05556527 tor-0.2.5.10.tar.gz a751084ac153270c03a3a5b02a337999 tor.initd cbcac88f5b728b1441891947a4babbcb tor.confd" sha256sums="b3dd02a5dcd2ffe14d9a37956f92779d4427edf7905c0bba9b1e3901b9c5a83b tor-0.2.5.10.tar.gz 17340bc8f05632082b0c25e3deeff9836eeea412786ad525b5900d9cb083d3a9 tor.initd 7d9e1125577252206d09e43c387fcfd8996115b46ac5d7f6ca3e46ef47316e98 tor.confd" sha512sums="0e6522964ac84231f7753ebe80239ce8c906c62bd35e5bd65ae5f85f246d488e32fbf121c58e501cbf0b8271468f6c10bef756080a7120479240486d6af22a8f tor-0.2.5.10.tar.gz 7ee767caaa874bd8b8b102ab93b08138aaebf0fee396e530bd89b4e1c982c617a6647c438a0c80c3da2a33fc24085336c2d3c87359774d89b7901cdaa02ad237 tor.initd f11f0d192cd7823307c2ce4ddc7b3fff5190f72d3f65a5524b487021a95a222aca1fd36ab1eb58ed533e7acd555bfb70f0c8a13db20338ea31527f3151fd2bd7 tor.confd"