# Copyright 2020 Maxime Sorin # Distributed under the terms of the GNU General Public License v2 require postgresql [ work="pgpool-II-${PV}" multibuild=false ] require systemd-service [ systemd_files=[ ${FILES}/systemd/${PN}.service ] ] DOWNLOADS="https://www.pgpool.net/source/pgpool-II-${PV}.tar.gz -> ${PNV}.tar.gz" DESCRIPTION="Pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client" SUMMARY="Connection pool server for PostgreSQL" PLATFORMS="~amd64" LICENCES="BSD" SLOT="0" MYOPTIONS=" pam [[ description = [ Enable PAM access control ] ]] ssl ssl? ( ( providers: libressl openssl ) [[ number-selected = exactly-one ]] ) " DEPENDENCIES=" build+run: dev-db/postgresql-client dev-libs/libxcrypt:= pam? ( sys-libs/pam ) ssl? ( providers:libressl? ( dev-libs/libressl:= ) providers:openssl? ( dev-libs/openssl:= ) ) group/postgres user/postgres " prepare_one_multibuild() { default edo sed -e "s:/var/run:/run:g" -i src/sample/pgpool.conf.sample } DEFAULT_SRC_CONFIGURE_PARAMS=( --disable-rpath --sysconfdir="/etc/${PN}" ) DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( 'pam' 'ssl openssl' ) install_one_multibuild() { default install_systemd_files diropts -m 0755 -o postgres -g postgres dodir /var/log/pgpool keepdir /var/log/pgpool/oiddir }