# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=pgbouncer pkgver=1.11.0 pkgrel=0 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 openssl-dev udns-dev" subpackages="$pkgname-doc $pkgname-openrc" source="https://pgbouncer.github.io/downloads/files/$pkgver/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd $pkgname.logrotate pgbouncer-dirs.patch const_free.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --prefix=/usr \ --disable-debug make } check() { cd "$builddir" ./pgbouncer --version make -C test } package() { cd "$builddir" make DESTDIR="$pkgdir" install cd "$pkgdir" install -m 755 -D "$srcdir"/$pkgname.initd ./etc/init.d/$pkgname install -m 644 -D "$srcdir"/$pkgname.confd ./etc/conf.d/$pkgname install -m 644 -D "$srcdir"/$pkgname.logrotate ./etc/logrotate.d/$pkgname install -m 644 -D "$builddir"/etc/$pkgname.ini ./etc/$pkgname/$pkgname.ini install -d -m 755 -o $pkgusers -g $pkggroups ./var/log/$pkgname } sha512sums="2373157f952a39dbb5d9afad7db2eba7459c28bcc302487c3bf15b64dca98940f65c9f7a1d142237f7053b6d2b290eaec15f930a341025f1665b501a26919115 pgbouncer-1.11.0.tar.gz a6dbfa477c2f0a405e4bf9ee0037165531802366565d0f192931ccd8a7cb3edf9e9b628655e4169592e9370cc71fb73d4424bfd3f20bb5a43eb26a52251e539d pgbouncer.initd 808621351b0f5973427fa22f63128432b00ac20fd25af437e8148dad9e55185775aba612b6ecdd58e4a6f2450b8c7838fcace288845b9b3cd0236bbe168aa574 pgbouncer.confd 83b869466b59c1b1d6e316a9368f725181128c1f5a7af230e3fa9c58ccda1bc097db182806c1c51a5121692791ec83d9eb0f5718fb3031f521bb537001153e2d pgbouncer.logrotate f45170465fda5190257e3f4c10e22fe7df57657efc90bdd6a3f0727375a25143e07480ecd998995cec0ddb2ed2d472f996b21e4fe712681418215823b88d0fc3 pgbouncer-dirs.patch 5b5a1460ac22ce8b027d1a1d6069e826e7e1ca1fe33b99fbc40c4fb3615821530c0978b0311504db4da39af7f5413dd8c5c1e45a60af18a73f1c01527ad9bb13 const_free.patch"