29 lines
819 B
Bash
29 lines
819 B
Bash
# Template file for 'tor'
|
|
pkgname=tor
|
|
version=0.3.3.7
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="libevent-devel libseccomp-devel zlib-devel"
|
|
depends="ca-certificates torsocks"
|
|
short_desc="Anonymity Online"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.torproject.org/"
|
|
distfiles="https://www.torproject.org/dist/tor-${version}.tar.gz"
|
|
checksum=ea6bb512c4adfbc4e05b22e4c2d06bddff5b358a53de982273fec846b75bde0c
|
|
conf_files="/etc/tor/torrc"
|
|
system_accounts="tor"
|
|
tor_homedir=/var/lib/tor
|
|
make_dirs="/var/lib/tor 0700 tor tor"
|
|
|
|
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
|
|
}
|