32 lines
905 B
Bash
32 lines
905 B
Bash
# Template file for 'tor'
|
|
pkgname=tor
|
|
version=0.4.3.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="libevent-devel libseccomp-devel zlib-devel"
|
|
depends="ca-certificates torsocks"
|
|
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=6a2d0637d4e514be2ec574723a05065245cce51da78a21cec1dc831be5ccac62
|
|
|
|
conf_files="/etc/tor/torrc"
|
|
system_accounts="tor"
|
|
tor_homedir=/var/lib/tor
|
|
make_dirs="/var/lib/tor 0700 tor tor"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) configure_args="--disable-seccomp";;
|
|
esac
|
|
|
|
post_install() {
|
|
# Use our own default config file.
|
|
vinstall ${FILESDIR}/torrc 640 etc/tor
|
|
rm -f ${DESTDIR}/etc/tor/torrc.sample
|
|
vlicense LICENSE
|
|
vsv tor
|
|
}
|