void-packages/srcpkgs/tor/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

33 lines
931 B
Bash

# Template file for 'tor'
pkgname=tor
version=0.2.6.6
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/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=c3349e457c71b8e5c138c656927b2bbca0bfa03539ffee8579b0e568ffb10283
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
}