void-packages/srcpkgs/tor/template
maxice8 5f0fd173b8 tor: update to 0.3.2.9.
Closes: #10637 [via git-merge-pr]
2018-01-11 12:09:15 +01:00

29 lines
825 B
Bash

# Template file for 'tor'
pkgname=tor
version=0.3.2.9
revision=1
build_style=gnu-configure
makedepends="zlib-devel libressl-devel libevent-devel libseccomp-devel"
depends="ca-certificates torsocks"
conf_files="/etc/tor/torrc"
system_accounts="tor"
tor_homedir="/var/lib/tor"
make_dirs="/var/lib/tor 0700 tor tor"
short_desc="Anonymity Online"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD"
homepage="https://www.torproject.org/"
distfiles="https://www.torproject.org/dist/tor-$version.tar.gz"
checksum=435a7b91aa98d8b1a0ac1f60ca30c0ff3665b18a02e570bab5fe27935829160f
case "$XBPS_TARGET_MACHINE" in
aarch64*) configure_args="--disable-seccomp";;
esac
post_install() {
# Use our own default config file.
vinstall ${FILESDIR}/torrc 640 etc/tor
rm -f ${DESTDIR}/etc/tor/torrc.sample
vlicense LICENSE
vsv tor
}