void-packages/srcpkgs/tor/template
Helmut Pozimski d6ba5f86f8 tor: update to 0.3.1.7
Closes: #7905 [via git-merge-pr]
2017-10-02 01:01:52 +02:00

29 lines
825 B
Bash

# Template file for 'tor'
pkgname=tor
version=0.3.1.7
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=1df5dd4894bb2f5e0dc96c466955146353cf33ac50cd997cfc1b28ea3ed9c08f
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
}