# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=pgbouncer pkgver=1.7.2 pkgrel=1 pkgdesc="A lightweight connection pooler for PostgreSQL" url="https://wiki.postgresql.org/wiki/PgBouncer" arch="all" license="BSD" pkgusers="pgbouncer" pkggroups="postgres" install="$pkgname.pre-install" makedepends="c-ares-dev libevent-dev libressl-dev udns-dev" subpackages="$pkgname-doc" source="https://pgbouncer.github.io/downloads/files/$pkgver/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd $pkgname.logrotate pgbouncer-dirs.patch libressl-2.5.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --prefix=/usr \ --disable-debug make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/var/log/pgbouncer chown $pkgusers:$pkggroups "$pkgdir"/var/log/pgbouncer install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -m644 -D "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname install -m644 -D etc/$pkgname.ini "$pkgdir"/etc/$pkgname/$pkgname.ini } sha512sums="11c89606599f424b34f39a4b072ec6293fea0b14ee52ae4fbc44775e6d83771a22d194f4e8eabe410e0d6a70657508cf1a3b1012543d91873c36f644afb5675d pgbouncer-1.7.2.tar.gz ecd34f017316b2c0aad172e5bf5393137da5ab841f4d6de93eb82a07abe9f234a2426ca7dada2dc047c33ea4c7dc0af3040b249ec1f9d7e0c1782fb0463a7293 pgbouncer.initd dbcd7f5860b7f1ec6b6372b718678ba74c5268e89eed0fe291cd292a50460f0e81876367cb86e97f1cfefc0ace8d698c41a313642ec64d2de0747c348665afba pgbouncer.confd 5aa4226ab2d168a88a3b64deb114d3901431d2afb2571cf8ae411c989549bc465ee05104a6863cc8fce6d769d809b4ab536973280f50cb4415c6698c34e1a5b8 pgbouncer.logrotate 6a475bf5cff10b464177af619051529ad78e802c56655500ad23130c5989721f41592387f9bf6719810eae2d876a8dd36219b87ae1fdb29304b2adc98c49ae4c pgbouncer-dirs.patch 97caf142578f2f9d1500979ce88244554f316f999837707137dc4c3ec6ebc45bcef16678e61fdd1118bf4e26c7df733bd399f4a82b9b5a8e44c3497ab0922524 libressl-2.5.patch"