void-packages/srcpkgs/tor/template

32 lines
890 B
Plaintext

# Template file for 'tor'
pkgname=tor
version=0.2.5.10
revision=5
build_options="systemd"
build_style=gnu-configure
makedepends="zlib-devel libressl-devel>=2.1.3 libevent-devel"
depends="ca-certificates tsocks"
conf_files="/etc/tor/tor-tsocks.conf /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@gmail.com>"
license="BSD"
homepage="http://www.torproject.org/"
distfiles="http://www.torproject.org/dist/tor-$version.tar.gz"
checksum=b3dd02a5dcd2ffe14d9a37956f92779d4427edf7905c0bba9b1e3901b9c5a83b
post_install() {
# Use our own default config file.
vinstall ${FILESDIR}/torrc 640 etc/tor
rm -f ${DESTDIR}/etc/tor/torrc.sample
if [ "$build_option_systemd" ]; then
# Install systemd service.
vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system
fi
vsv tor
}