From 9920ff31650eef4fd5e2ccee3045a08352f26112 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Wed, 22 Oct 2014 11:09:56 +0000 Subject: [PATCH] tor: update to 0.2.4.25. --- srcpkgs/tor/template | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template index e9f8a1d67c..195eb0f24f 100644 --- a/srcpkgs/tor/template +++ b/srcpkgs/tor/template @@ -1,6 +1,6 @@ # Template file for 'tor' pkgname=tor -version=0.2.4.24 +version=0.2.4.25 revision=1 build_style=gnu-configure makedepends="zlib-devel libressl-devel libevent-devel ca-certificates tsocks" @@ -15,12 +15,17 @@ maintainer="Juan RP " license="BSD" homepage="http://www.torproject.org/" distfiles="http://www.torproject.org/dist/tor-$version.tar.gz" -checksum=99b15c6858c04e93a31d3ae90dd69f5021faa2237da93a24fbd246f4f1670ad1 +checksum=84693bf5875857bf1aef3a8ff8109da4cc10e64269208054bbcf94fb615da627 + +build_options="systemd" post_install() { # Use our own default config file. vinstall ${FILESDIR}/torrc 640 etc/tor rm -f ${DESTDIR}/etc/tor/torrc.sample - # Install systemd service. - vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system + + if [ "$build_option_systemd" ]; then + # Install systemd service. + vinstall ${FILESDIR}/tor.service 644 usr/lib/systemd/system + fi }