summaryrefslogtreecommitdiff
path: root/community/tor
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
committerroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
commit4319f36e44d4e7c70bf010c3286bb1739c59d4de (patch)
tree570e5a756192067d69cbabeab8fcf6b81cec3c51 /community/tor
parent11357a5ab02a7d536375fb8333b2fb67278b4a36 (diff)
Sun Jun 24 00:04:11 UTC 2012
Diffstat (limited to 'community/tor')
-rw-r--r--community/tor/PKGBUILD16
-rw-r--r--community/tor/tor.service13
2 files changed, 23 insertions, 6 deletions
diff --git a/community/tor/PKGBUILD b/community/tor/PKGBUILD
index 77ca33e7e..b167bf38d 100644
--- a/community/tor/PKGBUILD
+++ b/community/tor/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 71511 2012-05-27 21:52:24Z lfleischer $
+# $Id: PKGBUILD 72796 2012-06-22 12:52:15Z dreisner $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: simo <simo@archlinux.org>
pkgname=tor
-pkgver=0.2.2.36
+pkgver=0.2.2.37
pkgrel=1
pkgdesc='Anonymizing overlay network.'
arch=('i686' 'x86_64')
@@ -19,12 +19,14 @@ install='tor.install'
source=("http://www.torproject.org/dist/${pkgname}-${pkgver}.tar.gz"{,.asc}
'torrc'
'tor'
- 'tor.conf.d')
-md5sums=('620b2110086aba01236b57f1d5aba416'
- '0401cf01ad0bcc9aba4f9c1bb5e8e810'
+ 'tor.conf.d'
+ 'tor.service')
+md5sums=('5aafdca4fb6af6e12b503d32b03f14a7'
+ '8d3adf70109d16e860dbf414f9d70eac'
'56c75d4e8a66f34167d31e38c43793dd'
'f8e6868a389877346e7eebaacd1078bb'
- '5c7c6834064b3530c442def6079ac3aa')
+ '5c7c6834064b3530c442def6079ac3aa'
+ 'cf23b97a1da09670214da6229a3ecb09')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -46,4 +48,6 @@ package() {
install -Dm0644 "${srcdir}/tor.conf.d" "${pkgdir}/etc/conf.d/tor"
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -Dm0644 "${srcdir}/tor.service" "${pkgdir}/usr/lib/systemd/system/tor.service"
}
diff --git a/community/tor/tor.service b/community/tor/tor.service
new file mode 100644
index 000000000..eb9b556b5
--- /dev/null
+++ b/community/tor/tor.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Anonymizing Overlay Network
+
+[Service]
+Type=forking
+GuessMainPID=yes
+EnvironmentFile=/etc/conf.d/tor
+ExecStart=/usr/bin/tor -f $TOR_CONF $TOR_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+KillSignal=SIGINT
+
+[Install]
+WantedBy=multi-user.target