blob: 911885efc093ebe94f563debcefff58dbe9ed038 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=repmgr
pkgver=4.2.0
pkgrel=0
pkgdesc="Replication Manager for PostgreSQL"
url="http://www.repmgr.org/"
arch="all"
license="GPL-3.0"
depends="postgresql-client"
makedepends="postgresql-dev libxml2-dev libedit-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"
build() {
cd "$builddir"
./configure
make USE_PGXS=1
}
check() {
cd "$builddir"
./repmgr --version
./repmgrd --version
}
package() {
cd "$builddir"
make USE_PGXS=1 DESTDIR="$pkgdir" install
install -D -m 640 -o postgres -g postgres \
repmgr.conf.sample "$pkgdir"/etc/repmgr.conf
cd "$pkgdir"
mkdir -p usr/share/doc/$pkgname
cp "$builddir"/*.md "$builddir"/doc/*.md usr/share/doc/$pkgname/
}
daemon() {
pkgdesc="A management and monitoring daemon for PostgreSQL Replication Manager"
depends="$pkgname"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/repmgrd "$subpkgdir"/usr/bin/
install -D -m 755 "$srcdir"/repmgrd.initd "$subpkgdir"/etc/init.d/repmgrd
}
sha512sums="457feeffbde0010d1017603da7a4739284e81f7dfb91c12f2703ebd688bdd53d79c3776d5d8a7efe8ff10799aae8760c1c413418dd6f5b1de125a8fbbef0677c repmgr-4.2.0.tar.gz
1186036f8f3629092d5f03c476104bb04b790b589af1ec7cf0cc00333c694808562cd05c6cd4fdda82861b217d1c55bc08df28e932aeab6ee0c46a1cf155535b repmgr.conf.patch
d35ff4918f5bbaae58d462b984bd8da09c7847b0ef99783eccf1429c3fb3aaabeedbe99fc17bf82629a3633cf6821108e840774569cb3894c859386d10439a26 repmgrd.initd"
|