mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
dev-db/pgbouncer: add 1.25.0
Unkeyworded as manpages need pandoc, which is a rather huge dependency for two text files. Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
parent
4f4591b1b1
commit
68a2db3234
@ -1,2 +1,3 @@
|
||||
DIST pgbouncer-1.23.1.tar.gz 700025 BLAKE2B 60fd69362fe6c4bacdda33064cb0b871ceabe086b22b6fff8762a129e0d1d8332fba1b0abf6dac1ac4426654d84cb283bd86b02fde5229e6c97a7a310c6bf0f1 SHA512 efcd4efa3871a43f2498e4cbbae0c85b98bb7eefa46b6081ceeafd652179e215fcaa74de63941c7e14a919e41f550aff182e2b940c9f8bb0fbf5fffb6440e99b
|
||||
DIST pgbouncer-1.24.1.tar.gz 717796 BLAKE2B ae4d4d113f9ca8078106f4510adc5cd3d3ddc709a2a647bb6ae1512b311b9ebdccfbf98829d1490d8b09da7fe80962017fc56d0e5fb0a1e7009d01171154cbcd SHA512 122ee030c1919affe4c51ea6f8afa58be123e539577ea4c416a516068d3ae24403d443a002cd074a3ec6d1986232cafd6707006fc7bc373caf2985e594fa5199
|
||||
DIST pgbouncer-1.25.0.tar.gz 863322 BLAKE2B e19ffd557f11505c87d15101afaecbc08c12cde1654550b37855f8c73c6282585b320050fc74d3991c9593fa2e8b929dda85d13c31fbe6a980c2cb3b2bbad34f SHA512 5dcf9fa410c620289808ed07b74079355cfa3ffb42a44ab370531c262a0441bb0c6c7d049f4c1df056c5b629557cb6758eeb8198fc7f8956a6c78eb25142e909
|
||||
|
||||
74
dev-db/pgbouncer/pgbouncer-1.25.0.ebuild
Normal file
74
dev-db/pgbouncer/pgbouncer-1.25.0.ebuild
Normal file
@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Lightweight connection pooler for PostgreSQL"
|
||||
HOMEPAGE="https://www.pgbouncer.org/"
|
||||
SRC_URI="https://www.pgbouncer.org/downloads/files/${PV}/pgbouncer-${PV}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="+c-ares debug doc pam ssl systemd"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/pgbouncer
|
||||
>=dev-libs/libevent-2.0:=
|
||||
app-text/pandoc-cli
|
||||
c-ares? ( >=net-dns/c-ares-1.10 )
|
||||
ssl? ( >=dev-libs/openssl-1.0.1:=[-bindist(-)] )
|
||||
systemd? ( sys-apps/systemd )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# Tests require a local database server, wants to fiddle with iptables,
|
||||
# and doesn't support overriding.
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/pgbouncer-1.12-dirs.patch
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --enable-debug is only used to disable stripping
|
||||
econf \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--enable-debug \
|
||||
$(use_with c-ares cares) \
|
||||
$(use_enable debug cassert) \
|
||||
$(use_with pam) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with systemd)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dodoc AUTHORS
|
||||
use doc && dodoc doc/*.md
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd-r1" "${PN}"
|
||||
newinitd "${FILESDIR}/${PN}.initd-r2" "${PN}"
|
||||
|
||||
insinto /etc
|
||||
doins etc/pgbouncer.ini
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate" pgbouncer
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
einfo "Please read the config.txt for Configuration Directives"
|
||||
einfo
|
||||
einfo "For Administration Commands, see:"
|
||||
einfo " man pgbouncer"
|
||||
einfo
|
||||
einfo "By default, PgBouncer does not have access to any database."
|
||||
einfo "GRANT the permissions needed for your application and make sure that it"
|
||||
einfo "exists in PgBouncer's auth_file."
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user