[arch-commits] Commit in privoxy/repos (6 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:00:28 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:00:27
  Author: felixonmars
Revision: 658317

archrelease: copy trunk to community-staging-x86_64

Added:
  privoxy/repos/community-staging-x86_64/
  privoxy/repos/community-staging-x86_64/PKGBUILD
    (from rev 658315, privoxy/trunk/PKGBUILD)
  privoxy/repos/community-staging-x86_64/privoxy.install
    (from rev 658315, privoxy/trunk/privoxy.install)
  privoxy/repos/community-staging-x86_64/privoxy.logrotate.d
    (from rev 658315, privoxy/trunk/privoxy.logrotate.d)
  privoxy/repos/community-staging-x86_64/privoxy.service
    (from rev 658316, privoxy/trunk/privoxy.service)
  privoxy/repos/community-staging-x86_64/privoxy.sysusers
    (from rev 658316, privoxy/trunk/privoxy.sysusers)

---------------------+
 PKGBUILD            |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++
 privoxy.install     |    3 ++
 privoxy.logrotate.d |    9 +++++++
 privoxy.service     |   12 +++++++++
 privoxy.sysusers    |    1 
 5 files changed, 87 insertions(+)

Copied: privoxy/repos/community-staging-x86_64/PKGBUILD (from rev 658315, privoxy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:00:27 UTC (rev 658317)
@@ -0,0 +1,62 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at hoetzel.info>
+# Contributor: basilburn (basilburn), Paul Bredbury (brebs)
+# Contributor: lolilolicon
+
+pkgname=privoxy
+pkgver=3.0.28
+pkgrel=2
+pkgdesc='A web proxy with advanced filtering capabilities.'
+arch=('x86_64')
+url='https://www.privoxy.org'
+license=('GPL2')
+depends=('pcre' 'zlib')
+makedepends=('autoconf')
+backup=('etc/privoxy/'{config,trust,match-all.action,{default,user}.{action,filter}}
+        'etc/logrotate.d/privoxy')
+source=("https://downloads.sourceforge.net/ijbswa/${pkgname}-${pkgver}-stable-src.tar.gz"
+        'privoxy.logrotate.d'
+        'privoxy.sysusers'
+        'privoxy.service')
+md5sums=('c7e8900d5aff33d9a5fc37ac28154f21'
+         'e8196e745c765b398b3bfac68f370279'
+         'b16776164ab677282c44a8729743eca1'
+         '99ecefbdab8d2260d9b217895b3adc73')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}-stable"
+
+  autoheader
+  autoconf
+  ./configure --prefix=/usr --sysconfdir=/etc/privoxy --enable-compression
+
+  make
+  sed -i '
+    s+^confdir \.+confdir /etc/privoxy+
+    s+^logdir \.+logdir /var/log/privoxy+
+    s+^#\?user-manual .*+user-manual /usr/share/doc/privoxy/user-manual/+' config
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}-stable"
+
+  install -Dm644 "$srcdir/privoxy.service" "$pkgdir/usr/lib/systemd/system/privoxy.service"
+  install -Dm644 "$srcdir/privoxy.sysusers" "$pkgdir/usr/lib/sysusers.d/privoxy.conf"
+  install -Dm644 "$srcdir/privoxy.logrotate.d" "$pkgdir/etc/logrotate.d/privoxy"
+
+  install -Dm755 {,"$pkgdir"/usr/bin/}privoxy
+  install -Dm644 {,"$pkgdir"/usr/share/man/man1/}privoxy.1
+  install -d -o42 -g42 "$pkgdir"/var/log/privoxy
+
+  install -d "$pkgdir"/etc/privoxy/
+  install -m644 config trust *.{action,filter} "$pkgdir"/etc/privoxy/ # -m0660 upstream
+  find templates -type f -exec install -Dm644 '{}' "$pkgdir"/etc/privoxy/'{}' \;
+
+  (d="$pkgdir"/usr/share/doc/privoxy
+  cd doc/webserver
+  install -Dm644 {privoxy-,"$d"/}index.html
+  install -m644 p_doc.css ../../{AUTHORS,README,ChangeLog} "$d"/
+  install -Dm644 {,"$d"/user-manual/}p_doc.css
+  find user-manual developer-manual faq man-page \( -name '*.html' -o -name '*.jpg' \) \
+    -exec install -Dm644 '{}' "$d"/'{}' \;)
+}

Copied: privoxy/repos/community-staging-x86_64/privoxy.install (from rev 658315, privoxy/trunk/privoxy.install)
===================================================================
--- community-staging-x86_64/privoxy.install	                        (rev 0)
+++ community-staging-x86_64/privoxy.install	2020-07-07 13:00:27 UTC (rev 658317)
@@ -0,0 +1,3 @@
+post_install() {
+  systemd-sysusers privoxy.conf
+}

Copied: privoxy/repos/community-staging-x86_64/privoxy.logrotate.d (from rev 658315, privoxy/trunk/privoxy.logrotate.d)
===================================================================
--- community-staging-x86_64/privoxy.logrotate.d	                        (rev 0)
+++ community-staging-x86_64/privoxy.logrotate.d	2020-07-07 13:00:27 UTC (rev 658317)
@@ -0,0 +1,9 @@
+/var/log/privoxy/logfile {
+   missingok
+   create 660 root privoxy
+   notifempty
+   compress
+   postrotate
+     /bin/kill -HUP `cat /var/run/privoxy.pid 2>/dev/null` 2> /dev/null || true
+   endscript
+}

Copied: privoxy/repos/community-staging-x86_64/privoxy.service (from rev 658316, privoxy/trunk/privoxy.service)
===================================================================
--- community-staging-x86_64/privoxy.service	                        (rev 0)
+++ community-staging-x86_64/privoxy.service	2020-07-07 13:00:27 UTC (rev 658317)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Privoxy Web Proxy With Advanced Filtering Capabilities
+After=network.target
+
+[Service]
+User=privoxy
+Type=simple
+ExecStart=/usr/bin/privoxy --no-daemon /etc/privoxy/config
+PrivateDevices=yes
+
+[Install]
+WantedBy=multi-user.target

Copied: privoxy/repos/community-staging-x86_64/privoxy.sysusers (from rev 658316, privoxy/trunk/privoxy.sysusers)
===================================================================
--- community-staging-x86_64/privoxy.sysusers	                        (rev 0)
+++ community-staging-x86_64/privoxy.sysusers	2020-07-07 13:00:27 UTC (rev 658317)
@@ -0,0 +1 @@
+u privoxy 42 "Privoxy"



More information about the arch-commits mailing list