# Contributor: Cameron # Maintainer: Cameron pkgname=pgpool _opkgname=pgpool-II pkgver=3.6.7 pkgrel=0 pkgdesc="A connection pooling/replication server for PostgreSQL" url="http://www.pgpool.net" arch="all" license="BSD" makedepends="postgresql-dev linux-headers" subpackages="$pkgname-dev" source="$_opkgname-$pkgver.tar.gz::http://www.pgpool.net/download.php?f=$_opkgname-$pkgver.tar.gz $pkgname.initd" builddir="$srcdir"/$_opkgname-$pkgver prepare() { cd "$builddir" default_prepare update_config_sub } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } sha512sums="4bc80f4b47f4b37e4efe1af137c2af076dc98c438bf094236223bba0facfaea91546a86d7604e67453b67e82a24ac5ee6e4325d81f90358a3a0d7a6c34acd7fc pgpool-II-3.6.7.tar.gz de36d7aab6806f1e303901ac80284bb9861edaf9b682901db9f1ead3843ba8cb528c814e5dabfc2c450ebed6450daf3fff14166d08a530e1c44a29e4d4e29a2c pgpool.initd"