mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# 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
|
|
pkgver=0.2.8.9
|
|
pkgrel=1
|
|
pkgdesc='Anonymizing overlay network.'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.torproject.org/'
|
|
license=('BSD')
|
|
depends=('openssl' 'libevent' 'bash' 'libseccomp')
|
|
optdepends=('torsocks: for torify')
|
|
makedepends=('ca-certificates')
|
|
backup=('etc/tor/torrc'
|
|
'etc/tor/torrc-dist')
|
|
install='tor.install'
|
|
source=("https://www.torproject.org/dist/${pkgname}-${pkgver}.tar.gz"{,.asc}
|
|
'torrc'
|
|
'tor.service')
|
|
md5sums=('e1f8bc2b2e2b365fc916388304e5e40d'
|
|
'SKIP'
|
|
'c1dd4004c63edaeaa829e01be5413cfc'
|
|
'503cedd9679f9817b2c27916ba989a74')
|
|
validpgpkeys=('2133BC600AB133E1D826D173FE43009C4607B1FB') # Nick Mathewson
|
|
|
|
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
|
|
|
|
install -dm0700 -o 43 -g 43 "${pkgdir}/var/lib/tor"
|
|
|
|
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"
|
|
|
|
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|