void-packages/srcpkgs/tor/template

32 lines
883 B
Text
Raw Normal View History

2012-03-08 15:50:52 +00:00
# Template file for 'tor'
pkgname=tor
2014-10-25 08:23:27 +00:00
version=0.2.5.10
2014-11-01 16:53:07 +00:00
revision=3
2014-10-25 08:23:27 +00:00
build_options="systemd"
2012-03-08 15:50:52 +00:00
build_style=gnu-configure
2014-10-25 08:23:27 +00:00
makedepends="zlib-devel libressl-devel libevent-devel"
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"
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-10-25 08:23:27 +00:00
checksum=b3dd02a5dcd2ffe14d9a37956f92779d4427edf7905c0bba9b1e3901b9c5a83b
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
2014-10-22 11:09:56 +00:00
if [ "$build_option_systemd" ]; then
# Install systemd service.
vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system
fi
2014-10-31 00:29:21 +00:00
vsv tor
2012-03-08 15:50:52 +00:00
}