aboutsummaryrefslogtreecommitdiffstats
path: root/community/pgbouncer
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-10-09 06:42:13 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-10-09 06:42:13 +0000
commitcd710cc725c70ceff4ae346bbc91c7f81b3f9416 (patch)
tree5428de440905462c18998bc705feaa51d0b253d6 /community/pgbouncer
parent712a99e25461ae27bd9674f8870fd7abefc6013d (diff)
downloadaports-cd710cc725c70ceff4ae346bbc91c7f81b3f9416.tar.bz2
aports-cd710cc725c70ceff4ae346bbc91c7f81b3f9416.tar.xz
community/pgbouncer: upgarde to 1.9.0, added -openrc subpackage
Diffstat (limited to 'community/pgbouncer')
-rw-r--r--community/pgbouncer/APKBUILD14
-rw-r--r--community/pgbouncer/pgbouncer-dirs.patch18
2 files changed, 14 insertions, 18 deletions
diff --git a/community/pgbouncer/APKBUILD b/community/pgbouncer/APKBUILD
index eb99ac3f42..612ff6822f 100644
--- a/community/pgbouncer/APKBUILD
+++ b/community/pgbouncer/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pgbouncer
-pkgver=1.7.2
-pkgrel=4
+pkgver=1.9.0
+pkgrel=0
pkgdesc="A lightweight connection pooler for PostgreSQL"
url="https://wiki.postgresql.org/wiki/PgBouncer"
arch="all"
@@ -11,7 +11,7 @@ pkgusers="pgbouncer"
pkggroups="postgres"
install="$pkgname.pre-install"
makedepends="c-ares-dev libevent-dev libressl-dev udns-dev"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-openrc"
source="https://pgbouncer.github.io/downloads/files/$pkgver/$pkgname-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
@@ -23,7 +23,6 @@ builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
-
./configure \
--prefix=/usr \
--disable-debug
@@ -32,18 +31,15 @@ build() {
check() {
cd "$builddir"
-
./pgbouncer --version
make -C test
}
package() {
cd "$builddir"
-
make DESTDIR="$pkgdir" install
cd "$pkgdir"
-
install -m 755 -D "$srcdir"/$pkgname.initd ./etc/init.d/$pkgname
install -m 644 -D "$srcdir"/$pkgname.confd ./etc/conf.d/$pkgname
install -m 644 -D "$srcdir"/$pkgname.logrotate ./etc/logrotate.d/$pkgname
@@ -52,9 +48,9 @@ package() {
install -d -m 755 -o $pkgusers -g $pkggroups ./var/log/$pkgname
}
-sha512sums="11c89606599f424b34f39a4b072ec6293fea0b14ee52ae4fbc44775e6d83771a22d194f4e8eabe410e0d6a70657508cf1a3b1012543d91873c36f644afb5675d pgbouncer-1.7.2.tar.gz
+sha512sums="b127f4cb60ca5cdf339da76727918f0a3797a3e0a89f8ed6fdcaa80f3391d2c5bb51e19731915775210c0e5070dd611ee2e410c9a947624e45b5cf11aecdacf9 pgbouncer-1.9.0.tar.gz
a6dbfa477c2f0a405e4bf9ee0037165531802366565d0f192931ccd8a7cb3edf9e9b628655e4169592e9370cc71fb73d4424bfd3f20bb5a43eb26a52251e539d pgbouncer.initd
808621351b0f5973427fa22f63128432b00ac20fd25af437e8148dad9e55185775aba612b6ecdd58e4a6f2450b8c7838fcace288845b9b3cd0236bbe168aa574 pgbouncer.confd
83b869466b59c1b1d6e316a9368f725181128c1f5a7af230e3fa9c58ccda1bc097db182806c1c51a5121692791ec83d9eb0f5718fb3031f521bb537001153e2d pgbouncer.logrotate
-fdee368ce422960ebc06547765a7e5eabc59d10ae8730948be1c5f9083adcac3aa373f41fd9972d1b9ef635a062f1e021d787085a5beb5d80edf4203f284c7c4 pgbouncer-dirs.patch
+fc80bef08d2f053564f4622c62dde1db9f19a34850a96dc4adb14b9766e5cecfa7fd65c49b70dd51a25e40cb4f5c47bec6dd3f92854620de532c0895b3e5ed80 pgbouncer-dirs.patch
97caf142578f2f9d1500979ce88244554f316f999837707137dc4c3ec6ebc45bcef16678e61fdd1118bf4e26c7df733bd399f4a82b9b5a8e44c3497ab0922524 libressl-2.5.patch"
diff --git a/community/pgbouncer/pgbouncer-dirs.patch b/community/pgbouncer/pgbouncer-dirs.patch
index 7945376d87..fabaad3fdc 100644
--- a/community/pgbouncer/pgbouncer-dirs.patch
+++ b/community/pgbouncer/pgbouncer-dirs.patch
@@ -1,7 +1,8 @@
-diff -Naruw a/etc/pgbouncer.ini b/etc/pgbouncer.ini
---- a/etc/pgbouncer.ini 2012-06-10 19:57:01.000000000 +0000
-+++ b/etc/pgbouncer.ini 2013-07-17 02:25:59.598888628 +0000
-@@ -29,7 +29,7 @@
+diff --git a/etc/pgbouncer.ini b/etc/pgbouncer.ini
+index 1ce88a7..f7c9409 100644
+--- a/etc/pgbouncer.ini
++++ b/etc/pgbouncer.ini
+@@ -34,7 +34,7 @@
;;;
logfile = /var/log/pgbouncer/pgbouncer.log
@@ -10,11 +11,10 @@ diff -Naruw a/etc/pgbouncer.ini b/etc/pgbouncer.ini
;;;
;;; Where to wait for clients
-@@ -40,10 +40,9 @@
- listen_port = 6432
+@@ -46,9 +46,9 @@ listen_port = 6432
- ; unix socket is also used for -R.
--; On debian it should be /var/run/postgresql
+ ; Unix socket is also used for -R.
+ ; On Debian it should be /var/run/postgresql
-;unix_socket_dir = /tmp
-;unix_socket_mode = 0777
-;unix_socket_group =
@@ -23,4 +23,4 @@ diff -Naruw a/etc/pgbouncer.ini b/etc/pgbouncer.ini
+unix_socket_group = postgres
;;;
- ;;; Authentication settings
+ ;;; TLS settings for accepting clients