summaryrefslogtreecommitdiff
path: root/extra/pgbouncer
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-30 00:08:41 -0800
committerroot <root@rshg054.dnsready.net>2013-01-30 00:08:41 -0800
commitc25b7aa323ab71b1a524d15dbbe942dbebd55761 (patch)
treec7dd8d810c5d08168ee757083d3b6bce150c1915 /extra/pgbouncer
parentcb333f0d5d536b1436262e1b3e45647b22f136b0 (diff)
Wed Jan 30 00:08:41 PST 2013
Diffstat (limited to 'extra/pgbouncer')
-rw-r--r--extra/pgbouncer/PKGBUILD10
-rw-r--r--extra/pgbouncer/pgbouncer.install4
-rw-r--r--extra/pgbouncer/pgbouncer.logrotate8
3 files changed, 16 insertions, 6 deletions
diff --git a/extra/pgbouncer/PKGBUILD b/extra/pgbouncer/PKGBUILD
index fb0277192..e03c9c9c1 100644
--- a/extra/pgbouncer/PKGBUILD
+++ b/extra/pgbouncer/PKGBUILD
@@ -1,23 +1,24 @@
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=pgbouncer
-_dlid=3393
pkgver=1.5.4
-pkgrel=4
+pkgrel=5
pkgdesc="A lightweight connection pooler for PostgreSQL"
arch=('i686' 'x86_64')
url="http://pgfoundry.org/projects/pgbouncer"
license=('BSD')
depends=('libevent>=2.0' 'postgresql')
makedepends=('asciidoc' 'xmlto')
-backup=('etc/pgbouncer/pgbouncer.ini')
+backup=('etc/pgbouncer/pgbouncer.ini' 'etc/logrotate.d/pgbouncer')
install=$pkgname.install
-source=("http://pgfoundry.org/frs/download.php/${_dlid}/${pkgname}-${pkgver}.tar.gz"
+source=("http://ftp.postgresql.org/pub/projects/pgFoundry/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
pgbouncer.ini
+ pgbouncer.logrotate
pgbouncer.service
pgbouncer.tmpfiles.conf)
md5sums=('9ffaf2e6232e18e676651429813732df'
'810813b9ef8891be382be9ffdd425edc'
+ '6c65fe91821591bde0b5bcf70f23e959'
'eede238f5ff3709dbfeef6dad3fbefc7'
'472659f4c5de2b59a420f5ca42327ec1')
@@ -32,6 +33,7 @@ package() {
make DESTDIR="$pkgdir/" install
install -D -m644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m644 ../pgbouncer.ini "$pkgdir/etc/pgbouncer/pgbouncer.ini"
+ install -D -m644 ../pgbouncer.logrotate "$pkgdir/etc/logrotate.d/pgbouncer"
install -D -m644 ../pgbouncer.service "$pkgdir/usr/lib/systemd/system/pgbouncer.service"
install -D -m644 ../pgbouncer.tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/pgbouncer.conf"
mkdir -p "$pkgdir/var/log/pgbouncer"
diff --git a/extra/pgbouncer/pgbouncer.install b/extra/pgbouncer/pgbouncer.install
index 2f77ae50f..6374fdf94 100644
--- a/extra/pgbouncer/pgbouncer.install
+++ b/extra/pgbouncer/pgbouncer.install
@@ -8,10 +8,10 @@ post_install() {
fi
chown pgbouncer:pgbouncer /var/log/pgbouncer
systemd-tmpfiles --create pgbouncer.conf
- post_update
+ post_upgrade
}
-post_update() {
+post_upgrade() {
gpasswd -a pgbouncer postgres
}
diff --git a/extra/pgbouncer/pgbouncer.logrotate b/extra/pgbouncer/pgbouncer.logrotate
new file mode 100644
index 000000000..2037875eb
--- /dev/null
+++ b/extra/pgbouncer/pgbouncer.logrotate
@@ -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
+}