void-packages/srcpkgs/tor/template

27 lines
860 B
Text
Raw Normal View History

2012-03-08 15:50:52 +00:00
# Template file for 'tor'
pkgname=tor
2014-05-27 16:15:32 +00:00
version=0.2.4.22
2012-11-21 12:51:10 +00:00
revision=1
2012-03-08 15:50:52 +00:00
build_style=gnu-configure
makedepends="zlib-devel openssl-devel libevent-devel ca-certificates tsocks"
2014-02-16 10:52:15 +00:00
depends="ca-certificates tsocks"
conf_files="/etc/tor/tor-tsocks.conf /etc/tor/torrc"
system_accounts="tor"
tor_homedir="/var/lib/tor"
systemd_services="tor.service on"
make_dirs="/var/lib/tor 0700 tor tor"
2012-03-08 15:50:52 +00:00
short_desc="Anonymity Online"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
2012-07-09 21:06:54 +00:00
homepage="http://www.torproject.org/"
distfiles="http://www.torproject.org/dist/tor-$version.tar.gz"
2014-05-27 16:15:32 +00:00
checksum=6bf7942e93b8919a7d01a601390c2a8e7c32d6d53713a73c02d734bad9bd694c
2012-03-08 15:50:52 +00:00
post_install() {
# Use our own default config file.
vinstall ${FILESDIR}/torrc 640 etc/tor
rm -f ${DESTDIR}/etc/tor/torrc.sample
# Install systemd service.
2012-07-09 21:06:54 +00:00
vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system
2012-03-08 15:50:52 +00:00
}