From 054c80ccd4286cf21be09e78e9e82324cd23a1bb Mon Sep 17 00:00:00 2001 From: David Flatz Date: Wed, 7 Mar 2018 15:44:13 +0100 Subject: [PATCH] tor: make torrc readable for group tor on SIGHUP tor tries to reload its torrc but since it runs as tor:tor and torrc is 640 root:root this fails and tor then continues with a default config. this change should fix this behavior. --- srcpkgs/tor/INSTALL | 5 +++++ srcpkgs/tor/template | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/tor/INSTALL diff --git a/srcpkgs/tor/INSTALL b/srcpkgs/tor/INSTALL new file mode 100644 index 00000000000..ed6014bef7e --- /dev/null +++ b/srcpkgs/tor/INSTALL @@ -0,0 +1,5 @@ +case "${ACTION}" in +post) + chgrp tor etc/tor/torrc + ;; +esac diff --git a/srcpkgs/tor/template b/srcpkgs/tor/template index f7020cb4745..bfa7ea50c0e 100644 --- a/srcpkgs/tor/template +++ b/srcpkgs/tor/template @@ -1,7 +1,7 @@ # Template file for 'tor' pkgname=tor version=0.3.2.10 -revision=1 +revision=2 build_style=gnu-configure makedepends="zlib-devel libressl-devel libevent-devel libseccomp-devel" depends="ca-certificates torsocks"