main/pgpool: build PostgreSQL extentions

This commit is contained in:
Leonardo Arena 2024-05-21 10:24:32 +00:00 committed by Natanael Copa
parent 2fb6423efc
commit 0041cae6b3

View file

@ -3,7 +3,7 @@
pkgname=pgpool
pkgver=4.5.2
_pkgver="${pkgver//./_}"
pkgrel=0
pkgrel=1
pkgdesc="A connection pooling/replication server for PostgreSQL"
url="https://www.pgpool.net/"
arch="all"
@ -17,6 +17,7 @@ makedepends="
libtool
linux-headers
openssl-dev
postgresql-dev
"
pkgusers="postgres"
pkggroups="postgres"
@ -51,6 +52,7 @@ build() {
--with-openssl \
--disable-rpath
make -j1
make PG_CONFIG=/usr/bin/pg_config -C "$builddir"/src/sql
}
check() {
@ -60,6 +62,8 @@ check() {
package() {
make DESTDIR="$pkgdir" install
make DESTDIR="${pkgdir}/" PG_CONFIG=/usr/bin/pg_config -C "$builddir"/src/sql install
touch "$pkgdir"/etc/$pkgname/pool_passwd
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname