aboutsummaryrefslogtreecommitdiffstats
path: root/community/repmgr/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/repmgr/APKBUILD')
-rw-r--r--community/repmgr/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/repmgr/APKBUILD b/community/repmgr/APKBUILD
index 5414c9a72e..fcab854ec0 100644
--- a/community/repmgr/APKBUILD
+++ b/community/repmgr/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=repmgr
pkgver=5.2.1
-pkgrel=0
+pkgrel=1
pkgdesc="Replication Manager for PostgreSQL"
url="http://www.repmgr.org/"
arch="all"
license="GPL-3.0"
-depends="postgresql-client"
+depends="cmd:ssh postgresql-client sudo"
makedepends="postgresql-dev flex libxml2-dev libedit-dev"
pkgusers="postgres"
pkggroups="postgres"
@@ -15,6 +15,7 @@ subpackages="$pkgname-doc $pkgname-daemon"
source="$pkgname-$pkgver.tar.gz::https://github.com/2ndQuadrant/repmgr/archive/v$pkgver.tar.gz
repmgr.conf.patch
repmgrd.initd
+ repmgr.sudoers
"
build() {
@@ -37,11 +38,13 @@ package() {
mkdir -p usr/share/doc/$pkgname
cp "$builddir"/*.md "$builddir"/doc/*.md usr/share/doc/$pkgname/
+
+ install -D -m 600 "$srcdir"/repmgr.sudoers etc/sudoers.d/$pkgname
}
daemon() {
pkgdesc="A management and monitoring daemon for PostgreSQL Replication Manager"
- depends="$pkgname"
+ depends="$pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/repmgrd "$subpkgdir"/usr/bin/
@@ -50,5 +53,6 @@ daemon() {
}
sha512sums="609ca27322087a042ede3a54565e425e9f39d74df510cbc103390cf60a31b35ce311cd942d5efd062bec2026864bd45466dbaf323963060d3ce89ce167c2a0b1 repmgr-5.2.1.tar.gz
-d378e6109b2e664424b902ae940b71a336fbf93ec7405b8be2f8d36ce3e34bf05257be7dc5c55da47d5a0798383a4fea634b1fdaa0f8f0c39b8e6f0f435e13e9 repmgr.conf.patch
-20399aa51351532a35412f09e1c8217a651687d03f545ee250f1d8e22cf73eddb6415848d7c0b8a38b961f1eb5ad3e8c6bec490801a810ad26a37783dc32d5ec repmgrd.initd"
+ce16af48eff1ac7a54281f7a7b184b15aa4841b190a4b83024657ddb8d12c3fa91976d815f93d64f4ef255d9a710493d5a2f75c509f891d020f3a35e9fb05df3 repmgr.conf.patch
+988d68205290aef2f1f63281d2dc7da7267ba2738d44a8908b0506e968d8acd895c03d9ee821d7ef5d240ec82b67e51fdfb2d9219e71237c1b0aa3f458ad134b repmgrd.initd
+1542e6742b01b9d780ab7d9bd81b1c7e134cdf2dcd234e10704273e34c3f7ee8f87cf4f07cdc22d8a10e0f1dcef605f50ccaada09c3f1ee10267477443ce3e78 repmgr.sudoers"