void-packages/srcpkgs/tor/template
Alessio Sergi a558146e28 tor: disable seccomp on aarch64
Fails with: error: 'mcontext_t' has no member named 'M_SYSCALL'.
2016-09-24 12:02:29 +02:00

29 lines
824 B
Bash

# Template file for 'tor'
pkgname=tor
version=0.2.8.8
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="http://www.torproject.org/"
distfiles="https://www.torproject.org/dist/tor-$version.tar.gz"
checksum=b1af02c61253dcdb4e1a4f552adaba4e07aed0e5468e45c0764550161480e3de
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
}