[arch-commits] Commit in tor/trunk (PKGBUILD torservice.patch)

Frederik Schwan freswa at archlinux.org
Thu Oct 8 19:20:20 UTC 2020


    Date: Thursday, October 8, 2020 @ 19:20:19
  Author: freswa
Revision: 721898

fix FS#68157

Added:
  tor/trunk/torservice.patch
Modified:
  tor/trunk/PKGBUILD

------------------+
 PKGBUILD         |   24 +++++++++++++++---------
 torservice.patch |   11 +++++++++++
 2 files changed, 26 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-08 19:19:31 UTC (rev 721897)
+++ PKGBUILD	2020-10-08 19:20:19 UTC (rev 721898)
@@ -5,7 +5,7 @@
 
 pkgname=tor
 pkgver=0.4.4.5
-pkgrel=3
+pkgrel=4
 pkgdesc='Anonymizing overlay network.'
 arch=('x86_64')
 url='https://www.torproject.org/'
@@ -16,13 +16,15 @@
 backup=('etc/tor/torrc')
 source=("https://www.torproject.org/dist/${pkgname}-${pkgver}.tar.gz"{,.asc}
         'torrc.patch'
+        'torservice.patch'
         'tor.sysusers'
         'tor.tmpfiles')
-md5sums=('b061b7c4ce6102fb7c800b73c8573388'
-         'SKIP'
-         '88b17cb8d6c73ec4687c135f9a3c57e5'
-         '5de6b0aff2a152a03d8eb7a473edc5ff'
-         '30e307d882c818cb44bcb2d6b81789a3')
+b2sums=('b1c7342d5f1998b372529a8da1719a4f31c4e2516f9b666755b0edf29c7d66fa84a730fceed11e5c0bd1346f6fe06d7c96dd6a2161b0b2c3824468cd2f88f077'
+        'SKIP'
+        'ac2f3008108e736de3dd37895ad543d5c8cdcfa5ec3e09c93eed227d00a30a31636e3ef1db4cf8649a3c666e7844ea692ecd632a0ddba672efa3cfc1a64c529d'
+        '941e1b3ffdb9035219f484888c942db9c295b23feff571de0af8d3fe8836e1a4b0e606b6a3583aa581f2cd6e4f975aca0b883ef6ee7f2d5b50a4ef677fb5db52'
+        '9053da53926f2120ac57b6c1442238f5bbd89bf9270347c4e00b721b39939bebc6adfcf814a9d7289dfd14d085d91c193529305336db93190da5b7f586a031df'
+        '5d55d9a7e42b6ce78b8ab985bab37afe8f0bacddb5abd895c4a490adb8f98b9422f90b40066fef05ecf37b7b21e80aadc615c4b7f6e12b05581304113a1b1f1d')
 validpgpkeys=('2133BC600AB133E1D826D173FE43009C4607B1FB'  # Nick Mathewson
               'F65CE37F04BA5B360AE6EE17C218525819F78451') # Roger Dingledine
 
@@ -38,13 +40,17 @@
   install -Dm0644 tor.sysusers "${pkgdir}"/usr/lib/sysusers.d/tor.conf
   install -Dm0644 tor.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/tor.conf
   
+  cd ${pkgname}-${pkgver}
+  # patch service file to fix FS#68157
+  patch -Np1 < "${srcdir}/torservice.patch"
+  # uncomment essential config sections in the torrc file
+  patch -Np1 < "${srcdir}/torrc.patch"
+
   # invoke upstream install routine
-  cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
   install -Dm0644 contrib/dist/tor.service "${pkgdir}"/usr/lib/systemd/system/tor.service
 
-  # install torrc and uncomment essential config sections
-  patch -Np1 < "${srcdir}/torrc.patch"
+  # install torrc
   install -Dm0644 src/config/torrc.sample "${pkgdir}"/etc/tor/torrc
   rm "${pkgdir}"/etc/tor/torrc.sample
 

Added: torservice.patch
===================================================================
--- torservice.patch	                        (rev 0)
+++ torservice.patch	2020-10-08 19:20:19 UTC (rev 721898)
@@ -0,0 +1,11 @@
+--- a/contrib/dist/tor.service	2020-10-08 21:12:40.414833733 +0200
++++ b/contrib/dist/tor.service	2020-10-08 21:12:42.751547264 +0200
+@@ -29,7 +29,7 @@
+ ReadWriteDirectories=-/var/lib/tor
+ ReadWriteDirectories=-/var/log/tor
+ NoNewPrivileges=yes
+-CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE
++CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE CAP_DAC_READ_SEARCH
+ 
+ [Install]
+ WantedBy=multi-user.target


More information about the arch-commits mailing list