[arch-commits] Commit in polipo/trunk (4 files)

Eli Schwartz eschwartz at archlinux.org
Tue Jan 9 03:58:11 UTC 2018


    Date: Tuesday, January 9, 2018 @ 03:58:10
  Author: eschwartz
Revision: 280639

upgpkg: polipo 1.1.1-3

migrate to systemd-sysusers/systemd-tmpfiles

Added:
  polipo/trunk/polipo.sysusers
  polipo/trunk/polipo.tmpfiles
Modified:
  polipo/trunk/PKGBUILD
Deleted:
  polipo/trunk/polipo.install

-----------------+
 PKGBUILD        |   11 ++++++++---
 polipo.install  |   17 -----------------
 polipo.sysusers |    1 +
 polipo.tmpfiles |    1 +
 4 files changed, 10 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-09 03:56:52 UTC (rev 280638)
+++ PKGBUILD	2018-01-09 03:58:10 UTC (rev 280639)
@@ -8,7 +8,7 @@
 
 pkgname=polipo
 pkgver=1.1.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A small and fast caching web proxy."
 arch=('x86_64')
 url="http://www.pps.jussieu.fr/~jch/software/polipo/"
@@ -15,12 +15,15 @@
 license=('GPL')
 depends=('bash')
 makedepends=('texinfo')
-install=polipo.install
 source=(http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-$pkgver.tar.gz{,.asc}
+        polipo.sysusers
+        polipo.tmpfiles
         polipo.service)
 validpgpkeys=('F8E70AAD74D32CAC27B9AFD62652C881EADB5526')
 md5sums=('86939e331e656f638271f578b6e3f893'
          'SKIP'
+         '3287e00f0e103a0e52c625efdabe5a37'
+         '6cc953fb59920f4448d8cac53ac3fbc1'
          '3861a067f6cdd2b8afcee1de97678902')
 
 build() {
@@ -47,7 +50,9 @@
   # install systemd service
   install -Dm 644 "$srcdir/polipo.service" "$pkgdir/usr/lib/systemd/system/polipo.service"
 
-  install -dm 700 -o 185 -g 185 "$pkgdir/var/cache/polipo"
+  # install system user
+  install -Dm644 "$srcdir/polipo.sysusers" "$pkgdir/usr/lib/sysusers.d/polipo.conf"
+  install -Dm644 "$srcdir/polipo.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/polipo.conf"
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: polipo.install
===================================================================
--- polipo.install	2018-01-09 03:56:52 UTC (rev 280638)
+++ polipo.install	2018-01-09 03:58:10 UTC (rev 280639)
@@ -1,17 +0,0 @@
-create_polipo_user() {
-  getent group polipo &>/dev/null || groupadd -g 185 polipo >/dev/null
-  getent passwd polipo &>/dev/null || useradd -u 185 -g polipo \
-                                              -d /var/cache/polipo \
-                                              -c 'Caching web proxy' \
-                                              -s /bin/nologin polipo >/dev/null
-}
-
-post_install() {
-  post_upgrade $1 ''
-}
-
-post_upgrade() {
-  create_polipo_user
-}
-
-# vim:set ts=2 sw=2 et:

Added: polipo.sysusers
===================================================================
--- polipo.sysusers	                        (rev 0)
+++ polipo.sysusers	2018-01-09 03:58:10 UTC (rev 280639)
@@ -0,0 +1 @@
+u polipo 185 "Caching web proxy" /var/cache/polipo

Added: polipo.tmpfiles
===================================================================
--- polipo.tmpfiles	                        (rev 0)
+++ polipo.tmpfiles	2018-01-09 03:58:10 UTC (rev 280639)
@@ -0,0 +1 @@
+d /var/cache/polipo 0755 polipo polipo - -



More information about the arch-commits mailing list