40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'tor'
|
|
pkgname=tor
|
|
version=0.4.6.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-zstd"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libcap-devel libevent-devel libscrypt-devel libseccomp-devel liblzma-devel zlib-devel libzstd-devel"
|
|
depends="ca-certificates torsocks"
|
|
checkdepends="coccinelle python3"
|
|
short_desc="Anonymizing overlay network"
|
|
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.torproject.org/"
|
|
changelog="https://gitweb.torproject.org/tor.git/plain/ReleaseNotes"
|
|
distfiles="https://dist.torproject.org/tor-${version}.tar.gz"
|
|
checksum=7b6d354e0d9791eace4b51e92211909308297b7aa257993937163d7ee0694cf9
|
|
|
|
conf_files="/etc/tor/torrc"
|
|
system_accounts="tor"
|
|
tor_homedir=/var/lib/tor
|
|
make_dirs="/var/lib/tor 0700 tor tor"
|
|
|
|
pre_configure() {
|
|
# ensure convenient config
|
|
printf '%s\n' \
|
|
"## On startup, setuid to this user and setgid to their primary group." \
|
|
"## Can not be changed while tor is running." \
|
|
"User tor" >> src/config/torrc.sample.in
|
|
vsed -i src/config/torrc.sample.in \
|
|
-e 's:#Log notice syslog:Log notice syslog:' \
|
|
-e "s:#DataDirectory :DataDirectory :"
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/etc/tor/torrc.sample ${DESTDIR}/etc/tor/torrc
|
|
vlicense LICENSE
|
|
vdoc doc/torrc_format.txt
|
|
vsv tor
|
|
}
|