# Contributor: Cameron # Maintainer: Jakub Jirutka pkgname="pgpool" _opkgname="${pkgname}-II" pkgver=3.7.9 pkgrel=0 pkgdesc="A connection pooling/replication server for PostgreSQL" url="https://www.pgpool.net/" arch="all" license="BSD" makedepends="postgresql-dev linux-headers" subpackages="${pkgname}-dev" source="${pkgname}-${pkgver}.tar.gz::https://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 \ --with-openssl 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="7c2c502f4a6224ca4ed5fd6e630961475f5fd7eba6f075e9c37e75f594f08ac57cfdbe1f9ecf7427632ca38f3c228c08c5c4ebc0274e97f16f684e858b59042f pgpool-3.7.9.tar.gz de36d7aab6806f1e303901ac80284bb9861edaf9b682901db9f1ead3843ba8cb528c814e5dabfc2c450ebed6450daf3fff14166d08a530e1c44a29e4d4e29a2c pgpool.initd"