blob: f6b2db05ff1e40af7dcc8a690bcbbec57e63bfaf (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=pgcluster
pkgver=1.9.0_rc5
_myver=1.9.0rc5
pkgrel=8
pkgdesc="PostgreSQL with multi-master cluster/replication patch"
url="http://pgfoundry.org/projects/pgcluster/"
arch="all"
license="BSD"
depends=
makedepends="readline-dev openssl-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libpq $pkgname-client"
source="http://pgfoundry.org/frs/download.php/1705/$pkgname-$_myver.tar.gz
musl-fixes.patch
$pkgname.initd
$pkgname.confd
"
[ "$ALPINE_LIBC" = "eglibc" ] && arch=
_builddir="$srcdir/$pkgname-$_myver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--with-docdir=/usr/share/doc \
--with-openssl \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
libpq() {
depends=
pkgdesc="PGCluster libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libpq.so* "$subpkgdir"/usr/lib/
}
client() {
depends=
pkgdesc="PGCluster client"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/psql "$subpkgdir"/usr/bin/
}
md5sums="d2fe705e25a01c19c8f8daa1fbcc55d1 pgcluster-1.9.0rc5.tar.gz
6f891b75d0fe520dfe4bc0ffe8c15323 musl-fixes.patch
7c7a679f3b780b967649ef9caf988cf9 pgcluster.initd
503f94824fc7a385a831d7e55b74f9a0 pgcluster.confd"
sha256sums="e8974ac01b8f93d8b8b8ce49949b251950ee3d72cd0adfb3efb700d6c3be1365 pgcluster-1.9.0rc5.tar.gz
2fca1efcb234df9db91423c51db156bffd8a5494b8660b45b6878bc74402af71 musl-fixes.patch
a7a7f83b3784b8fe3fa6ef633b14aec4129f312a3261564011cf1bfd04a57337 pgcluster.initd
9717fca2db4a30067f0e78976592467035be419949322c9973bde34eb3024e56 pgcluster.confd"
sha512sums="825b3da733c2e455bbdfca5833ec6f874d622529cc70fa6a398db458696d8398aa52101633ea703c698df0c86170b2522bb289ac3888b3f76575781f4a4c0d64 pgcluster-1.9.0rc5.tar.gz
e07a310644f6bad61a199c0d16997d2cd5105a81ad92074839c8296f7357e0abd25a17601485f6baf5b62a07e478fda1ceb36ef79dff2341f5b5ea912bd5b17e musl-fixes.patch
43768c968236c252b0cbe80eeee606a805f5e79a3e05b4c1b05e0c7d618f30b342fb2d320523ef73e5933b950c6dcb77087d3c742cdf62684386ff338d367a94 pgcluster.initd
2dfa32a7c5fb39bf0fcc91f49a8fa432a983ad7eeecffe969f030e60da6ad5502aba6160daaae19c30c8596aab0ecf246775a53a18acb841c73c409a5a959bb2 pgcluster.confd"
|