2015-12-18 05:03:16 +00:00
|
|
|
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
|
|
|
|
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
|
|
|
# Contributor: simo <simo@archlinux.org>
|
|
|
|
# Contributor: Sid Karunaratne
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable seccomp on aarch64
|
|
|
|
|
|
|
|
pkgname=tor
|
2018-01-27 00:43:04 +00:00
|
|
|
pkgver=0.3.2.9
|
|
|
|
pkgrel=1
|
2015-12-18 05:03:16 +00:00
|
|
|
pkgdesc='Anonymizing overlay network.'
|
2017-12-10 14:08:55 +00:00
|
|
|
arch=('x86_64')
|
2017-06-14 01:27:05 +00:00
|
|
|
url='https://www.torproject.org/'
|
2015-12-18 05:03:16 +00:00
|
|
|
license=('BSD')
|
|
|
|
depends=('openssl' 'libevent' 'bash' 'libseccomp')
|
|
|
|
optdepends=('torsocks: for torify')
|
|
|
|
makedepends=('ca-certificates')
|
|
|
|
backup=('etc/tor/torrc'
|
|
|
|
'etc/tor/torrc-dist')
|
|
|
|
source=("https://www.torproject.org/dist/${pkgname}-${pkgver}.tar.gz"{,.asc}
|
|
|
|
'torrc'
|
2018-01-16 05:35:43 +00:00
|
|
|
'tor.service'
|
|
|
|
'tor.sysusers'
|
|
|
|
'tor.tmpfiles')
|
2018-01-27 00:43:04 +00:00
|
|
|
md5sums=('9aafe4d11464548346fdfb95a3eb9e83'
|
2015-12-18 05:03:16 +00:00
|
|
|
'SKIP'
|
|
|
|
'c1dd4004c63edaeaa829e01be5413cfc'
|
2018-01-16 05:35:43 +00:00
|
|
|
'503cedd9679f9817b2c27916ba989a74'
|
|
|
|
'5de6b0aff2a152a03d8eb7a473edc5ff'
|
|
|
|
'30e307d882c818cb44bcb2d6b81789a3')
|
2016-10-21 23:55:39 +00:00
|
|
|
validpgpkeys=('2133BC600AB133E1D826D173FE43009C4607B1FB') # Nick Mathewson
|
2015-12-18 05:03:16 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
[[ $CARCH == 'aarch64' ]] && CONFIG="--disable-seccomp"
|
|
|
|
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $CONFIG
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
mv "${pkgdir}/etc/tor/torrc.sample" "${pkgdir}/etc/tor/torrc-dist"
|
|
|
|
install -Dm0644 "${srcdir}/torrc" "${pkgdir}/etc/tor/torrc"
|
|
|
|
install -Dm0644 "${srcdir}/tor.service" "${pkgdir}/usr/lib/systemd/system/tor.service"
|
2018-01-16 05:35:43 +00:00
|
|
|
install -Dm0644 "${srcdir}/tor.sysusers" "${pkgdir}/usr/lib/sysusers.d/tor.conf"
|
|
|
|
install -Dm0644 "${srcdir}/tor.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/tor.conf"
|
2015-12-18 05:03:16 +00:00
|
|
|
|
|
|
|
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|