blob: f3fdf8be7f1bf264717ddea4e5e858eb279de3a4 (
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
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=pgcluster
pkgver=1.9.0_rc5
_myver=1.9.0rc5
pkgrel=7
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
$pkgname.initd
$pkgname.confd
"
[ "$ALPINE_LIBC" = "eglibc" ] && arch=
build() {
cd "$srcdir"/$pkgname-$_myver || return 1
./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 "$srcdir"/$pkgname-$_myver || return 1
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
7c7a679f3b780b967649ef9caf988cf9 pgcluster.initd
503f94824fc7a385a831d7e55b74f9a0 pgcluster.confd"
|