[arch-commits] Commit in pgbouncer/repos (7 files)
Jan Steffens
heftig at archlinux.org
Mon Aug 12 04:20:47 UTC 2019
Date: Monday, August 12, 2019 @ 04:20:47
Author: heftig
Revision: 359740
archrelease: copy trunk to testing-x86_64
Added:
pgbouncer/repos/testing-x86_64/
pgbouncer/repos/testing-x86_64/PKGBUILD
(from rev 359739, pgbouncer/trunk/PKGBUILD)
pgbouncer/repos/testing-x86_64/pgbouncer.ini
(from rev 359739, pgbouncer/trunk/pgbouncer.ini)
pgbouncer/repos/testing-x86_64/pgbouncer.logrotate
(from rev 359739, pgbouncer/trunk/pgbouncer.logrotate)
pgbouncer/repos/testing-x86_64/pgbouncer.service
(from rev 359739, pgbouncer/trunk/pgbouncer.service)
pgbouncer/repos/testing-x86_64/pgbouncer.sysusers
(from rev 359739, pgbouncer/trunk/pgbouncer.sysusers)
pgbouncer/repos/testing-x86_64/pgbouncer.tmpfiles.conf
(from rev 359739, pgbouncer/trunk/pgbouncer.tmpfiles.conf)
-------------------------+
PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++++++++++
pgbouncer.ini | 52 +++++++++++++++++++++++++++++++++++++++++++
pgbouncer.logrotate | 8 ++++++
pgbouncer.service | 11 +++++++++
pgbouncer.sysusers | 3 ++
pgbouncer.tmpfiles.conf | 4 +++
6 files changed, 133 insertions(+)
Copied: pgbouncer/repos/testing-x86_64/PKGBUILD (from rev 359739, pgbouncer/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-08-12 04:20:47 UTC (rev 359740)
@@ -0,0 +1,55 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Dan McGee <dan at archlinux.org>
+
+pkgname=pgbouncer
+pkgver=1.10.0
+pkgrel=2
+pkgdesc='Lightweight connection pooler for PostgreSQL'
+url='https://pgbouncer.github.io/'
+arch=('x86_64')
+license=('BSD')
+depends=('libevent>=2.0' 'c-ares' 'systemd' 'pam')
+makedepends=('asciidoc' 'xmlto')
+checkdepends=('postgresql-libs')
+backup=('etc/pgbouncer/pgbouncer.ini'
+ 'etc/logrotate.d/pgbouncer')
+source=(https://pgbouncer.github.io/downloads/files/${pkgver}/pgbouncer-${pkgver}.tar.gz
+ pgbouncer.ini
+ pgbouncer.logrotate
+ pgbouncer.service
+ pgbouncer.tmpfiles.conf
+ pgbouncer.sysusers)
+sha512sums=('8ec9f102b57ca5f92fb689588ec090056ac29f21825400ec67bca413fe076ad50e0b491e65c4cfebc488cc245eb3c88c36db2ee0ba1cb737f35404be0983dd1d'
+ '39abc7b11c9d7a2593941b4d2a82db998ac1b1e3da131ae276da73c7afc4eda7b69bbfd0acd39f7bce20ecb911baf0adba341ff58dcab1a57e419708e7c8d26f'
+ '1dc86704fce211b23afe7962c947c7de80a15bef219928acbf486b915d80d44a6590fbc509fe650c97b694a508bcf95d2152663863f0c372323286e644c6d60a'
+ '2b4baaaa7129eda54b34405aa4e15a4d37b2173b529ecae070e766f1dcebd0af8f6898ee1b665a60d5f633036a52662e89967f33caacf2841dad441960230ef7'
+ '3d339e84b3ba426cfbbba406ef65a59aacaf68650afd2b3c6096e8babd2c8d39eaad13f60cd2718d7cdc8dc10eeba569da537b25f67c0a1a2884c885b2bc7136'
+ '05551189022bd160ca0d64831d2559480ae2dcfe8a489aa4c22cc375c3def31d1169e48e17e6502ccd18237d79afef5bc4587f3cf14274c125eb71311d00503b')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --disable-debug \
+ --with-pam
+ make
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ make -C test run_test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ 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 -Dm 644 ../pgbouncer.sysusers "${pkgdir}/usr/lib/sysusers.d/pgbouncer.conf"
+}
+
+# vim: ts=2 sw=2 et:
Copied: pgbouncer/repos/testing-x86_64/pgbouncer.ini (from rev 359739, pgbouncer/trunk/pgbouncer.ini)
===================================================================
--- testing-x86_64/pgbouncer.ini (rev 0)
+++ testing-x86_64/pgbouncer.ini 2019-08-12 04:20:47 UTC (rev 359740)
@@ -0,0 +1,52 @@
+[pgbouncer]
+logfile = /var/log/pgbouncer/pgbouncer.log
+pidfile = /run/pgbouncer/pgbouncer.pid
+
+;; ip address or * which means all ip-s
+;listen_addr = 127.0.0.1
+;listen_port = 6432
+
+unix_socket_dir = /run/postgresql
+unix_socket_mode = 0777
+
+; any, trust, plain, crypt, md5
+auth_type = trust
+auth_file = /etc/pgbouncer/userlist.txt
+
+; comma-separated list of users, who are allowed to change settings
+admin_users = postgres
+
+; comma-separated list of users who are just allowed to use SHOW command
+stats_users = stats, postgres
+
+; total number of clients that can connect
+max_client_conn = 100
+
+; default pool size. 20 is good number when transaction pooling
+; is in use, in session pooling it needs to be the number of
+; max clients you want to handle at any moment
+default_pool_size = 20
+
+
+;; database name = connect string
+;;
+;; connect string params:
+;; dbname= host= port= user= password=
+;; client_encoding= datestyle= timezone=
+;; pool_size= connect_query=
+[databases]
+
+; foodb over unix socket
+;foodb =
+
+; redirect bardb to bazdb on localhost
+;bardb = host=localhost dbname=bazdb
+
+; acceess to dest database will go with single user
+;forcedb = host=127.0.0.1 port=300 user=baz password=foo client_encoding=UNICODE datestyle=ISO connect_query='SELECT 1'
+
+; use custom pool sizes
+;nondefaultdb = pool_size=50 reserve_pool=10
+
+; fallback connect string
+;* = host=testserver
Copied: pgbouncer/repos/testing-x86_64/pgbouncer.logrotate (from rev 359739, pgbouncer/trunk/pgbouncer.logrotate)
===================================================================
--- testing-x86_64/pgbouncer.logrotate (rev 0)
+++ testing-x86_64/pgbouncer.logrotate 2019-08-12 04:20:47 UTC (rev 359740)
@@ -0,0 +1,8 @@
+/var/log/pgbouncer/pgbouncer.log {
+ copytruncate
+ missingok
+ notifempty
+ postrotate
+ /bin/kill -HUP $(cat /run/pgbouncer/pgbouncer.pid 2>/dev/null) 2> /dev/null || true
+ endscript
+}
Copied: pgbouncer/repos/testing-x86_64/pgbouncer.service (from rev 359739, pgbouncer/trunk/pgbouncer.service)
===================================================================
--- testing-x86_64/pgbouncer.service (rev 0)
+++ testing-x86_64/pgbouncer.service 2019-08-12 04:20:47 UTC (rev 359740)
@@ -0,0 +1,11 @@
+[Unit]
+Description=A lightweight connection pooler for PostgreSQL
+After=network.target
+
+[Service]
+User=pgbouncer
+ExecStart=/usr/bin/pgbouncer /etc/pgbouncer/pgbouncer.ini
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
Copied: pgbouncer/repos/testing-x86_64/pgbouncer.sysusers (from rev 359739, pgbouncer/trunk/pgbouncer.sysusers)
===================================================================
--- testing-x86_64/pgbouncer.sysusers (rev 0)
+++ testing-x86_64/pgbouncer.sysusers 2019-08-12 04:20:47 UTC (rev 359740)
@@ -0,0 +1,3 @@
+u pgbouncer - "PGBouncer user" /etc/pgbouncer /bin/bash
+u postgres - "PostgreSQL user" /var/lib/postgres /bin/bash
+m pgbouncer postgres
Copied: pgbouncer/repos/testing-x86_64/pgbouncer.tmpfiles.conf (from rev 359739, pgbouncer/trunk/pgbouncer.tmpfiles.conf)
===================================================================
--- testing-x86_64/pgbouncer.tmpfiles.conf (rev 0)
+++ testing-x86_64/pgbouncer.tmpfiles.conf 2019-08-12 04:20:47 UTC (rev 359740)
@@ -0,0 +1,4 @@
+d /run/pgbouncer 755 pgbouncer pgbouncer
+d /var/lib/postgres/data 700 postgres postgres
+h /var/lib/postgres/data - - - +C
+z /var/log/pgbouncer 750 pgbouncer pgbouncer
More information about the arch-commits
mailing list