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

Levente Polyak anthraxx at archlinux.org
Sun Aug 11 08:23:41 UTC 2019


    Date: Sunday, August 11, 2019 @ 08:23:40
  Author: anthraxx
Revision: 359440

upgpkg: pgbouncer 1.10.0-1

Added:
  pgbouncer/trunk/pgbouncer.sysusers
Modified:
  pgbouncer/trunk/PKGBUILD
  pgbouncer/trunk/pgbouncer.tmpfiles.conf
Deleted:
  pgbouncer/trunk/pgbouncer.install

-------------------------+
 PKGBUILD                |   17 +++++++++--------
 pgbouncer.install       |   25 -------------------------
 pgbouncer.sysusers      |    3 +++
 pgbouncer.tmpfiles.conf |    2 ++
 4 files changed, 14 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-10 22:55:22 UTC (rev 359439)
+++ PKGBUILD	2019-08-11 08:23:40 UTC (rev 359440)
@@ -2,8 +2,8 @@
 # Contributor: Dan McGee <dan at archlinux.org>
 
 pkgname=pgbouncer
-pkgver=1.9.0
-pkgrel=2
+pkgver=1.10.0
+pkgrel=1
 pkgdesc='Lightweight connection pooler for PostgreSQL'
 url='https://pgbouncer.github.io/'
 arch=('x86_64')
@@ -13,17 +13,18 @@
 checkdepends=('postgresql-libs')
 backup=('etc/pgbouncer/pgbouncer.ini'
         'etc/logrotate.d/pgbouncer')
-install=${pkgname}.install
 source=(https://pgbouncer.github.io/downloads/files/${pkgver}/pgbouncer-${pkgver}.tar.gz
         pgbouncer.ini
         pgbouncer.logrotate
         pgbouncer.service
-        pgbouncer.tmpfiles.conf)
-sha512sums=('b127f4cb60ca5cdf339da76727918f0a3797a3e0a89f8ed6fdcaa80f3391d2c5bb51e19731915775210c0e5070dd611ee2e410c9a947624e45b5cf11aecdacf9'
+        pgbouncer.tmpfiles.conf
+        pgbouncer.sysusers)
+sha512sums=('8ec9f102b57ca5f92fb689588ec090056ac29f21825400ec67bca413fe076ad50e0b491e65c4cfebc488cc245eb3c88c36db2ee0ba1cb737f35404be0983dd1d'
             '39abc7b11c9d7a2593941b4d2a82db998ac1b1e3da131ae276da73c7afc4eda7b69bbfd0acd39f7bce20ecb911baf0adba341ff58dcab1a57e419708e7c8d26f'
             '1dc86704fce211b23afe7962c947c7de80a15bef219928acbf486b915d80d44a6590fbc509fe650c97b694a508bcf95d2152663863f0c372323286e644c6d60a'
             '2b4baaaa7129eda54b34405aa4e15a4d37b2173b529ecae070e766f1dcebd0af8f6898ee1b665a60d5f633036a52662e89967f33caacf2841dad441960230ef7'
-            '4e5bcb7690335b43a017795b377857c241ce571465363e01e35829c2c210781fefd6880d085e5928db417b69458d1e79069b5494f6be6f0ae19e0894522e7971')
+            '421d10fd3b77fc4bec18122f39d237f5eed5130b059dddee5243b17a5a76894ae9262b6f584f5d872ead5028a431a30ce66c8c8e662607573352e739e578bede'
+            '05551189022bd160ca0d64831d2559480ae2dcfe8a489aa4c22cc375c3def31d1169e48e17e6502ccd18237d79afef5bc4587f3cf14274c125eb71311d00503b')
 
 build() {
   cd ${pkgname}-${pkgver}
@@ -42,13 +43,13 @@
 package() {
   cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
-  install -Dm 644 NEWS.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 NEWS.md -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -Dm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -Dm 644 ../pgbouncer.ini "${pkgdir}/etc/pgbouncer/pgbouncer.ini"
   install -Dm 644 ../pgbouncer.logrotate "${pkgdir}/etc/logrotate.d/pgbouncer"
   install -Dm 644 ../pgbouncer.service "${pkgdir}/usr/lib/systemd/system/pgbouncer.service"
   install -Dm 644 ../pgbouncer.tmpfiles.conf "${pkgdir}/usr/lib/tmpfiles.d/pgbouncer.conf"
-  install -d "${pkgdir}/var/log/pgbouncer"
+  install -Dm 644 ../pgbouncer.sysusers "${pkgdir}/usr/lib/sysusers.d/pgbouncer.conf"
 }
 
 # vim: ts=2 sw=2 et:

Deleted: pgbouncer.install
===================================================================
--- pgbouncer.install	2019-08-10 22:55:22 UTC (rev 359439)
+++ pgbouncer.install	2019-08-11 08:23:40 UTC (rev 359440)
@@ -1,25 +0,0 @@
-post_install() {
-  if [ ! -d '/var/lib/postgres' ]; then
-    mkdir -p '/var/lib/postgres'
-  fi
-  if ! getent group postgres >/dev/null; then
-    groupadd -g 88 postgres
-  fi
-  if ! getent passwd postgres >/dev/null; then
-    useradd -c 'PostgreSQL user' -u 88 -g postgres -d '/var/lib/postgres' -s /bin/bash postgres
-    passwd -l postgres >/dev/null
-  fi
-  if ! getent group pgbouncer >/dev/null; then
-    groupadd -r pgbouncer
-  fi
-  if ! getent passwd pgbouncer >/dev/null; then
-    useradd -c 'PGBouncer user' -r -g pgbouncer -d '/etc/pgbouncer' -s /bin/bash pgbouncer
-    passwd -l pgbouncer >/dev/null
-  fi
-  chown pgbouncer:pgbouncer /var/log/pgbouncer
-  gpasswd -a pgbouncer postgres
-}
-
-post_upgrade() {
-  post_install $1
-}

Added: pgbouncer.sysusers
===================================================================
--- pgbouncer.sysusers	                        (rev 0)
+++ pgbouncer.sysusers	2019-08-11 08:23:40 UTC (rev 359440)
@@ -0,0 +1,3 @@
+u pgbouncer - "PGBouncer user" /etc/pgbouncer /bin/bash
+u postgres - "PostgreSQL user" /var/lib/postgres /bin/bash
+m pgbouncer postgres

Modified: pgbouncer.tmpfiles.conf
===================================================================
--- pgbouncer.tmpfiles.conf	2019-08-10 22:55:22 UTC (rev 359439)
+++ pgbouncer.tmpfiles.conf	2019-08-11 08:23:40 UTC (rev 359440)
@@ -1 +1,3 @@
 d /run/pgbouncer  0755 pgbouncer pgbouncer -
+d /var/lib/postgres/data 700 postgres postgres
+z /var/log/pgbouncer 0750 pgbouncer pgbouncer



More information about the arch-commits mailing list