void-packages/srcpkgs/tor/template
2015-05-25 08:42:44 +02:00

33 lines
909 B
Bash

# Template file for 'tor'
pkgname=tor
version=0.2.6.8
revision=1
build_pie=yes
build_options="systemd"
build_style=gnu-configure
makedepends="zlib-devel libressl-devel libevent-devel libseccomp-devel"
depends="ca-certificates tsocks"
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="http://www.torproject.org/dist/tor-$version.tar.gz"
checksum=b88b363896454250c3f561b0b48479f18295c93596d2e81baa10c5a3ae609a76
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
vlicense LICENSE
vsv tor
}