diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-20 00:37:43 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-20 00:38:26 +0200 |
commit | ab6a3c4d4a73e61eb2c388be80822eda21669e89 (patch) | |
tree | e3bab24cf3e7730c6a1e27bb391dddb9431f97eb | |
parent | a296738ed8d156709e27ae5d5ca7f9be20bb53d8 (diff) | |
download | aports-ab6a3c4d4a73e61eb2c388be80822eda21669e89.tar.bz2 aports-ab6a3c4d4a73e61eb2c388be80822eda21669e89.tar.xz |
testing/repmgr: patch default config, add rsync to depends
-rw-r--r-- | testing/repmgr/APKBUILD | 6 | ||||
-rw-r--r-- | testing/repmgr/repmgr.conf.patch | 38 |
2 files changed, 42 insertions, 2 deletions
diff --git a/testing/repmgr/APKBUILD b/testing/repmgr/APKBUILD index fa96ed6cd7..587d24b6af 100644 --- a/testing/repmgr/APKBUILD +++ b/testing/repmgr/APKBUILD @@ -2,16 +2,17 @@ # Maintainer: Jakub Jirutka <jakub@jirutka.cz> pkgname=repmgr pkgver=3.3.2 -pkgrel=0 +pkgrel=1 pkgdesc="Replication Manager for PostgreSQL" url="http://www.repmgr.org/" arch="all" license="GPL-3" -depends="postgresql-client" +depends="postgresql-client rsync" makedepends="postgresql-dev" pkgusers="postgres" subpackages="$pkgname-doc $pkgname-daemon" source="$pkgname-$pkgver.tar.gz::https://github.com/2ndQuadrant/$pkgname/archive/v$pkgver.tar.gz + repmgr.conf.patch repmgrd.initd" builddir="$srcdir/$pkgname-$pkgver" options="!checkroot" @@ -52,4 +53,5 @@ daemon() { } sha512sums="98fba8fc0d9074e496c66762dbec45734fe279f39c9c51adb3e66dca929ac37f66a609789c8c658545856fd81f5afc5b35f6b5e389e52bce8c04ce8c52acd8dd repmgr-3.3.2.tar.gz +235a17d54ccce9e23b59919c0406fc3618f722e4f7559af6102c561668319a47beca7b70a9564432cb45bbbee091de9fc748935e7c771f1c84cfd40ab6e401a7 repmgr.conf.patch 74a03cfd36d739ddfad2078ba88980c7dea983ebc664bc3ab4dc6792bf36f144d1cd9d2b1bfbd30dda7e2b1198e7eb388dbea616d9ad710602b775ad30b1a3ab repmgrd.initd" diff --git a/testing/repmgr/repmgr.conf.patch b/testing/repmgr/repmgr.conf.patch new file mode 100644 index 0000000000..ec0eff0f83 --- /dev/null +++ b/testing/repmgr/repmgr.conf.patch @@ -0,0 +1,38 @@ +--- a/repmgr.conf.sample ++++ b/repmgr.conf.sample +@@ -78,7 +78,7 @@ + + # stderr can be redirected to an arbitrary file: + # +-#logfile='/var/log/repmgr/repmgr.log' ++logfile='/var/log/postgresql/repmgr.log' + + # event notifications can be passed to an arbitrary external program + # together with the following parameters: +@@ -121,19 +121,17 @@ + # If you use sudo, the user repmgr runs as (usually 'postgres') must have + # passwordless sudo access to execute the command + # +-# For example, to use systemd, you may use the following configuration: ++# For example, to use OpenRC, you may use the following configuration: + # + # # this is required when running sudo over ssh without -t: + # Defaults:postgres !requiretty +-# postgres ALL = NOPASSWD: /usr/bin/systemctl stop postgresql-9.5, \ +-# /usr/bin/systemctl start postgresql-9.5, \ +-# /usr/bin/systemctl restart postgresql-9.5 ++# postgres ALL = NOPASSWD: /etc/init.d/postgresql + # +-# service_start_command = systemctl start postgresql-9.5 +-# service_stop_command = systemctl stop postgresql-9.5 +-# service_restart_command = systemctl restart postgresql-9.5 +-# service_reload_command = pg_ctlcluster 9.5 main reload +-# service_promote_command = pg_ctlcluster 9.5 main promote ++service_start_command = /etc/init.d/postgresql start ++service_stop_command = /etc/init.d/postgresql stop ++service_restart_command = /etc/init.d/postgresql restart ++# service_reload_command = pg_ctl reload ++# service_promote_command = pg_ctl promote + + # external command options + |