mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/tor to 0.3.1.9-2
This commit is contained in:
parent
9f3b8a63a8
commit
5ac09ff8bd
4 changed files with 11 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
pkgname=tor
|
||||
pkgver=0.3.1.9
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Anonymizing overlay network.'
|
||||
arch=('x86_64')
|
||||
url='https://www.torproject.org/'
|
||||
|
@ -18,14 +18,17 @@ 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')
|
||||
'tor.service'
|
||||
'tor.sysusers'
|
||||
'tor.tmpfiles')
|
||||
md5sums=('585e62d086ae7df7cd873f735d726118'
|
||||
'SKIP'
|
||||
'c1dd4004c63edaeaa829e01be5413cfc'
|
||||
'503cedd9679f9817b2c27916ba989a74')
|
||||
'503cedd9679f9817b2c27916ba989a74'
|
||||
'5de6b0aff2a152a03d8eb7a473edc5ff'
|
||||
'30e307d882c818cb44bcb2d6b81789a3')
|
||||
validpgpkeys=('2133BC600AB133E1D826D173FE43009C4607B1FB') # Nick Mathewson
|
||||
|
||||
build() {
|
||||
|
@ -42,11 +45,11 @@ package() {
|
|||
|
||||
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 "${srcdir}/tor.sysusers" "${pkgdir}/usr/lib/sysusers.d/tor.conf"
|
||||
install -Dm0644 "${srcdir}/tor.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/tor.conf"
|
||||
|
||||
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
post_install() {
|
||||
groupadd -g 43 tor &>/dev/null
|
||||
useradd -u 43 -g tor -d /var/lib/tor -s /bin/false tor &> /dev/null
|
||||
}
|
1
community/tor/tor.sysusers
Normal file
1
community/tor/tor.sysusers
Normal file
|
@ -0,0 +1 @@
|
|||
u tor 43 - /var/lib/tor
|
1
community/tor/tor.tmpfiles
Normal file
1
community/tor/tor.tmpfiles
Normal file
|
@ -0,0 +1 @@
|
|||
d /var/lib/tor 0700 tor tor - -
|
Loading…
Reference in a new issue