[arch-commits] Commit in tor/repos (5 files)

Frederik Schwan freswa at archlinux.org
Tue Oct 6 16:47:50 UTC 2020


    Date: Tuesday, October 6, 2020 @ 16:47:49
  Author: freswa
Revision: 719367

archrelease: copy trunk to community-testing-x86_64

Added:
  tor/repos/community-testing-x86_64/
  tor/repos/community-testing-x86_64/PKGBUILD
    (from rev 719366, tor/trunk/PKGBUILD)
  tor/repos/community-testing-x86_64/tor.sysusers
    (from rev 719366, tor/trunk/tor.sysusers)
  tor/repos/community-testing-x86_64/tor.tmpfiles
    (from rev 719366, tor/trunk/tor.tmpfiles)
  tor/repos/community-testing-x86_64/torrc.patch
    (from rev 719366, tor/trunk/torrc.patch)

--------------+
 PKGBUILD     |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 tor.sysusers |    1 +
 tor.tmpfiles |    1 +
 torrc.patch  |   28 ++++++++++++++++++++++++++++
 4 files changed, 82 insertions(+)

Copied: tor/repos/community-testing-x86_64/PKGBUILD (from rev 719366, tor/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-10-06 16:47:49 UTC (rev 719367)
@@ -0,0 +1,52 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: simo <simo at archlinux.org>
+# Contributor: Sid Karunaratne
+
+pkgname=tor
+pkgver=0.4.4.5
+pkgrel=2
+pkgdesc='Anonymizing overlay network.'
+arch=('x86_64')
+url='https://www.torproject.org/'
+license=('BSD')
+depends=('openssl' 'libevent' 'bash' 'libseccomp' 'zstd' 'libcap')
+optdepends=('torsocks: for torify')
+makedepends=('ca-certificates')
+backup=('etc/tor/torrc')
+source=("https://www.torproject.org/dist/${pkgname}-${pkgver}.tar.gz"{,.asc}
+        'torrc.patch'
+        'tor.sysusers'
+        'tor.tmpfiles')
+md5sums=('b061b7c4ce6102fb7c800b73c8573388'
+         'SKIP'
+         '88b17cb8d6c73ec4687c135f9a3c57e5'
+         '5de6b0aff2a152a03d8eb7a473edc5ff'
+         '30e307d882c818cb44bcb2d6b81789a3')
+validpgpkeys=('2133BC600AB133E1D826D173FE43009C4607B1FB'  # Nick Mathewson
+              'F65CE37F04BA5B360AE6EE17C218525819F78451') # Roger Dingledine
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+  make
+}
+
+package() {
+  # install arch custom files
+  install -Dm0644 tor.sysusers "${pkgdir}"/usr/lib/sysusers.d/tor.conf
+  install -Dm0644 tor.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/tor.conf
+  
+  # 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 -Dm0644 src/config/torrc.sample "${pkgdir}"/etc/tor/torrc
+  rm "${pkgdir}"/etc/tor/torrc.sample
+
+  install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: tor/repos/community-testing-x86_64/tor.sysusers (from rev 719366, tor/trunk/tor.sysusers)
===================================================================
--- community-testing-x86_64/tor.sysusers	                        (rev 0)
+++ community-testing-x86_64/tor.sysusers	2020-10-06 16:47:49 UTC (rev 719367)
@@ -0,0 +1 @@
+u tor 43 - /var/lib/tor

Copied: tor/repos/community-testing-x86_64/tor.tmpfiles (from rev 719366, tor/trunk/tor.tmpfiles)
===================================================================
--- community-testing-x86_64/tor.tmpfiles	                        (rev 0)
+++ community-testing-x86_64/tor.tmpfiles	2020-10-06 16:47:49 UTC (rev 719367)
@@ -0,0 +1 @@
+d /var/lib/tor 0700 tor tor - -

Copied: tor/repos/community-testing-x86_64/torrc.patch (from rev 719366, tor/trunk/torrc.patch)
===================================================================
--- community-testing-x86_64/torrc.patch	                        (rev 0)
+++ community-testing-x86_64/torrc.patch	2020-10-06 16:47:49 UTC (rev 719367)
@@ -0,0 +1,28 @@
+--- a/src/config/torrc.sample 2020-10-06 18:11:24.173821006 +0200
++++ b/src/config/torrc.sample 2020-10-06 18:11:06.000000000 +0200
+@@ -11,6 +11,7 @@
+ ##
+ ## Tor will look for this file in various places based on your platform:
+ ## https://www.torproject.org/docs/faq#torrc
++User tor
+
+ ## Tor opens a SOCKS proxy on port 9050 by default -- even if you don't
+ ## configure one below. Set "SOCKSPort 0" if you plan to run Tor only
+@@ -39,7 +40,7 @@
+ ## Send every possible message to /var/log/tor/debug.log
+ #Log debug file /var/log/tor/debug.log
+ ## Use the system log instead of Tor's logfiles
+-#Log notice syslog
++Log notice syslog
+ ## To send all messages to stderr:
+ #Log debug stderr
+
+@@ -50,7 +51,7 @@
+ 
+ ## The directory for keeping all the keys/etc. By default, we store
+ ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
+-#DataDirectory /var/lib/tor
++DataDirectory /var/lib/tor
+ 
+ ## The port on which Tor will listen for local connections from Tor
+ ## controller applications, as documented in control-spec.txt.



More information about the arch-commits mailing list