Gentoo Archives: gentoo-commits

From: "罗百科" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgbouncer/
Date: Thu, 07 Oct 2021 14:23:58
Message-Id: 1633616632.818aff7e81b904bc5b145b068b3114fce92125a3.patrick@gentoo
1 commit: 818aff7e81b904bc5b145b068b3114fce92125a3
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 7 14:23:40 2021 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 7 14:23:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=818aff7e
7
8 dev-db/pgbouncer: Bump to 1.16.0
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
12
13 dev-db/pgbouncer/Manifest | 1 +
14 dev-db/pgbouncer/pgbouncer-1.16.0.ebuild | 81 ++++++++++++++++++++++++++++++++
15 2 files changed, 82 insertions(+)
16
17 diff --git a/dev-db/pgbouncer/Manifest b/dev-db/pgbouncer/Manifest
18 index 91aec86d5e0..8b5fb7e6634 100644
19 --- a/dev-db/pgbouncer/Manifest
20 +++ b/dev-db/pgbouncer/Manifest
21 @@ -1 +1,2 @@
22 DIST pgbouncer-1.15.0.tar.gz 588042 BLAKE2B 3dac09303e1c86126dd9cb44823c6f3fca4195e3155b360719c736c6e1327cc10d05e7f1e45c08d14c1dd0cb5c074b32263eee3be9e6350db9a8c5cbdfe61aa1 SHA512 5f78018ab80ab8d81f20ef3df1314ffc9557f1c6469d485d11ac822f596e3d4b554743fd9e9fe19b008a8aaf93bcf3673b42a8fb82bbd9611bd735cd2cbb98c6
23 +DIST pgbouncer-1.16.0.tar.gz 592136 BLAKE2B 752d5cfa18dacfdb72e9e9f12d5a1ac5346649e3a0c49ef530dd29ca16039949af0993d54080a7cf558c6eb6a919254c1dc4a36ab22f38992e790469ecd973bf SHA512 3b6f23052ca3b8af40a618da6bed2577b92ffe27b627f8980cda2d645991434bf298f720c1d423a272961c9f3f52a9d1b28154ed7f355d539f71dc68c028b617
24
25 diff --git a/dev-db/pgbouncer/pgbouncer-1.16.0.ebuild b/dev-db/pgbouncer/pgbouncer-1.16.0.ebuild
26 new file mode 100644
27 index 00000000000..abad489902b
28 --- /dev/null
29 +++ b/dev-db/pgbouncer/pgbouncer-1.16.0.ebuild
30 @@ -0,0 +1,81 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit systemd
37 +
38 +DESCRIPTION="Lightweight connection pooler for PostgreSQL"
39 +HOMEPAGE="https://www.pgbouncer.org/"
40 +SRC_URI="https://www.pgbouncer.org/downloads/files/${PV}/pgbouncer-${PV}.tar.gz"
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="+c-ares debug doc pam ssl systemd udns"
45 +
46 +# At-most-one-of, one can be enabled but not both
47 +REQUIRED_USE="?? ( c-ares udns )"
48 +
49 +RDEPEND="
50 + >=dev-libs/libevent-2.0:=
51 + >=sys-libs/glibc-2.10
52 + acct-user/pgbouncer
53 + c-ares? ( >=net-dns/c-ares-1.10 )
54 + ssl? ( >=dev-libs/openssl-1.0.1:=[-bindist(-)] )
55 + systemd? ( sys-apps/systemd )
56 + udns? ( >=net-libs/udns-0.1 )
57 +"
58 +
59 +DEPEND="${RDEPEND}"
60 +
61 +# Tests require a local database server, wants to fiddle with iptables,
62 +# and doesn't support overriding.
63 +RESTRICT="test"
64 +
65 +src_prepare() {
66 + eapply "${FILESDIR}"/pgbouncer-1.12-dirs.patch
67 +
68 + default
69 +}
70 +
71 +src_configure() {
72 + # --enable-debug is only used to disable stripping
73 + econf \
74 + --docdir=/usr/share/doc/${PF} \
75 + --enable-debug \
76 + $(use_with c-ares cares) \
77 + $(use_enable debug cassert) \
78 + $(use_with pam) \
79 + $(use_with ssl openssl) \
80 + $(use_with systemd) \
81 + $(use_with udns)
82 +}
83 +
84 +src_install() {
85 + emake DESTDIR="${D}" install
86 +
87 + dodoc AUTHORS
88 + use doc && dodoc doc/*.rst
89 +
90 + newconfd "${FILESDIR}/${PN}.confd-r1" "${PN}"
91 + newinitd "${FILESDIR}/${PN}.initd-r2" "${PN}"
92 +
93 + insinto /etc
94 + doins etc/pgbouncer.ini
95 +
96 + insinto /etc/logrotate.d
97 + newins "${FILESDIR}/logrotate" pgbouncer
98 +}
99 +
100 +pkg_postinst() {
101 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
102 + einfo "Please read the config.txt for Configuration Directives"
103 + einfo
104 + einfo "For Administration Commands, see:"
105 + einfo " man pgbouncer"
106 + einfo
107 + einfo "By default, PgBouncer does not have access to any database."
108 + einfo "GRANT the permissions needed for your application and make sure that it"
109 + einfo "exists in PgBouncer's auth_file."
110 + fi
111 +}