void-packages/srcpkgs/tor/template
David Flatz 054c80ccd4 tor: make torrc readable for group tor
on SIGHUP tor tries to reload its torrc but since it runs as tor:tor and
torrc is 640 root:root this fails and tor then continues with a default
config. this change should fix this behavior.
2018-03-18 23:44:40 +01:00

29 lines
826 B
Bash

# Template file for 'tor'
pkgname=tor
version=0.3.2.10
revision=2
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=60df77c31dcf94fdd686c8ca8c34f3b70243b33a7344ecc0b719d5ca2617cbee
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
}