From 4319f36e44d4e7c70bf010c3286bb1739c59d4de Mon Sep 17 00:00:00 2001 From: root Date: Sun, 24 Jun 2012 00:04:12 +0000 Subject: Sun Jun 24 00:04:11 UTC 2012 --- community/tor/PKGBUILD | 16 ++++++++++------ community/tor/tor.service | 13 +++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 community/tor/tor.service (limited to 'community/tor') 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 # Contributor: simo 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 -- cgit v1.2.3-54-g00ecf