# Maintainer: Cameron Banta pkgname=pgcluster pkgver=1.9.0_rc5 _myver=1.9.0rc5 pkgrel=3 pkgdesc="PostgreSQL with multi-master cluster/replication patch" url="http://pgfoundry.org/projects/pgcluster/" 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 " build() { cd "$srcdir"/$pkgname-$_myver || return 1 ./configure --prefix=/usr \ --mandir=/usr/share/man \ --with-docdir=/usr/share/doc \ --with-openssl \ || return 1 make || 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 594be4c70a80fdd2d315d78793ef4421 pgcluster.initd 503f94824fc7a385a831d7e55b74f9a0 pgcluster.confd"