27 lines
860 B
Plaintext
27 lines
860 B
Plaintext
# Template file for 'tor'
|
|
pkgname=tor
|
|
version=0.2.4.20
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="zlib-devel openssl-devel libevent-devel ca-certificates tsocks"
|
|
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"
|
|
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=ccc51747cbcbf98f658c34d5c693ff8a868698da0349d056e98287ef2e294d9f
|
|
|
|
post_install() {
|
|
# Use our own default config file.
|
|
vinstall ${FILESDIR}/torrc 640 etc/tor
|
|
rm -f ${DESTDIR}/etc/tor/torrc.sample
|
|
# Install systemd service.
|
|
vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system
|
|
}
|