Commit 1cd2b658 authored by Jakub Jirutka's avatar Jakub Jirutka

main/pgpool: upgrade to 4.2.0

parent ace0a131
......@@ -2,7 +2,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pgpool
_pkgname="$pkgname-II"
pkgver=4.1.4
pkgver=4.2.0
pkgrel=0
pkgdesc="A connection pooling/replication server for PostgreSQL"
url="https://www.pgpool.net/"
......@@ -18,13 +18,17 @@ source="$pkgname-$pkgver.tar.gz::https://www.pgpool.net/download.php?f=$_pkgname
$pkgname.confd
$pkgname.logrotated
musl-compat.patch
fix-listen_address.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
update_config_sub
# Fix listen address.
# pgpool resolves localhost to ::1 (IPv6) and fails to bind on ::1:9999.
sed -Ei "s/^(listen_addresses\s*=\s*)'localhost'/\1'127.0.0.1'/" \
src/sample/pgpool.conf*
}
build() {
......@@ -67,9 +71,8 @@ doc() {
done
}
sha512sums="44c06fe8eb98e3c24109fa12f25ff51b6aaf43eb1dd8b1dedb8dd6e40bbe1a544152db3b870a66f71b943e0b7a9e52700f8e45dea78c025dab1d5f84b0ea9909 pgpool-4.1.4.tar.gz
sha512sums="73179c3968441b592503512c5e0dfcc95ef778ecfd077024df0485fe831c9af12e708b51607c96c7bebf26f3cc81aefc53f50c7ad0a670d304cbbcf852170abf pgpool-4.2.0.tar.gz
71b8239b1b29e2c4a8312b300122ced1452bbe60fc7937e80172c7c5e3d6be71e5aee58f6d3d687b0e35df6ccdc27125a12ae9098f7c2d07e76b8103abca3556 pgpool.initd
0e40a681b068ce5c7f03c342c1217b170601a507cacdf120b9a308df65f2065e6085b292a393802d1955079f7ec434a412e6d871f688ad83bc33fa34aca37cfe pgpool.confd
c9aa2ea9484ed29cb57cdff4004fa9dd4780d73c69db3378effb2e0ecd3ae178771c6a847a28e1a9cc6492ada4321584afb92c9b592119fb11898b42191f22b1 pgpool.logrotated
37e8314f2dab6889c35edb679906db3997c4d5eba704a7337ff82926d400f2ab780103b6a162b1effa74c0d7f8d6655b62cddd2017d3ea7a5de5f370871ab088 musl-compat.patch
625447bd0e5ef7687bcff2d020ddbdf788eec05abeb4f7979f078c15e6969fada8569fe233a543f133a939dac1fae4eb6513d7bbd7333f6f976c9d583ba5857a fix-listen_address.patch"
37e8314f2dab6889c35edb679906db3997c4d5eba704a7337ff82926d400f2ab780103b6a162b1effa74c0d7f8d6655b62cddd2017d3ea7a5de5f370871ab088 musl-compat.patch"
pgpool resolves localhost to ::1 (IPv6) and fails to bind on ::1:9999.
--- a/src/sample/pgpool.conf.sample
+++ b/src/sample/pgpool.conf.sample
@@ -24,7 +24,7 @@
# - pgpool Connection Settings -
-listen_addresses = 'localhost'
+listen_addresses = '127.0.0.1'
# Host name or IP address to listen on:
# '*' for all, '' for no TCP/IP connections
# (change requires restart)
--- a/src/sample/pgpool.conf.sample-logical
+++ b/src/sample/pgpool.conf.sample-logical
@@ -24,7 +24,7 @@
# - pgpool Connection Settings -
-listen_addresses = 'localhost'
+listen_addresses = '127.0.0.1'
# Host name or IP address to listen on:
# '*' for all, '' for no TCP/IP connections
# (change requires restart)
--- a/src/sample/pgpool.conf.sample-master-slave
+++ b/src/sample/pgpool.conf.sample-master-slave
@@ -24,7 +24,7 @@
# - pgpool Connection Settings -
-listen_addresses = 'localhost'
+listen_addresses = '127.0.0.1'
# Host name or IP address to listen on:
# '*' for all, '' for no TCP/IP connections
# (change requires restart)
--- a/src/sample/pgpool.conf.sample-replication
+++ b/src/sample/pgpool.conf.sample-replication
@@ -24,7 +24,7 @@
# - pgpool Connection Settings -
-listen_addresses = 'localhost'
+listen_addresses = '127.0.0.1'
# Host name or IP address to listen on:
# '*' for all, '' for no TCP/IP connections
# (change requires restart)
--- a/src/sample/pgpool.conf.sample-stream
+++ b/src/sample/pgpool.conf.sample-stream
@@ -24,7 +24,7 @@
# - pgpool Connection Settings -
-listen_addresses = 'localhost'
+listen_addresses = '127.0.0.1'
# Host name or IP address to listen on:
# '*' for all, '' for no TCP/IP connections
# (change requires restart)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment