# Contributor: Christine Dodrill # Maintainer: Christine Dodrill setvar pkgname = 'tor' setvar pkgver = '0.3.1.7' setvar pkgrel = '0' setvar pkgdesc = ""Anonymous network connectivity"" setvar url = ""https://www.torproject.org"" setvar arch = ""all"" setvar license = ""BSD"" setvar pkgusers = ""tor"" setvar depends = """" setvar makedepends = ""linux-headers bash libevent-dev libressl-dev ca-certificates zlib-dev"" setvar install = ""$pkgname.post-upgrade $pkgname.pre-install"" setvar subpackages = ""$pkgname-doc"" setvar source = ""https://www.torproject.org/dist/$pkgname-$pkgver.tar.gz tor.initd tor.confd torrc.sample.patch"" setvar builddir = ""$srcdir/$pkgname-$pkgver"" setvar options = ""!check"" # secfixes: # 0.3.0.8-r0: # - CVE-2017-0376 proc 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 } proc 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 } setvar sha512sums = ""a835526984187fad88cffc39ea8f6a4b61d5f8d2579b5a66425612607a22ff82e0f9da96e029e134e04d25ae0f59a1b4f771e9e8c19ebb563e1a0f5b3a3849e4 tor-0.3.1.7.tar.gz 6de4ada16ba58264a247da70343eabd763e992d6b6683977fc1c67b7b4a9731748a7ec9751e869ad4b4ae9c72cf71b2e12dc289bb6e2aee499917f7663f4a735 tor.initd 2b0de119bfdf9eb57e13317b7392190b1b8272c8f96023c71d3fc29215d887e9a3d0ffcef37cdb50b18d34e4b2251f75a739e258e0bb72aabd3339418b22fd67 tor.confd da386ff7e387312e647f04d360517a1f4cb1efbee36f4a3a6feb89a979bb12fa350fe6dfed49af0cb076ae30bb0c527b5d54127683eaa5aa45d6940dddd89dfb torrc.sample.patch""