Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgbouncer/
Date: Thu, 04 Jul 2019 12:01:21
Message-Id: 1562241666.653a5109e1016920aa790099a3f56bca8cd9216b.titanofold@gentoo
1 commit: 653a5109e1016920aa790099a3f56bca8cd9216b
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 4 12:00:47 2019 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 4 12:01:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653a5109
7
8 dev-db/pgbouncer: Bump to 1.10.0
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.11
11 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
12
13 dev-db/pgbouncer/Manifest | 1 +
14 dev-db/pgbouncer/pgbouncer-1.10.0.ebuild | 86 ++++++++++++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/dev-db/pgbouncer/Manifest b/dev-db/pgbouncer/Manifest
18 index 11cc6304a31..8336f7b1320 100644
19 --- a/dev-db/pgbouncer/Manifest
20 +++ b/dev-db/pgbouncer/Manifest
21 @@ -1 +1,2 @@
22 +DIST pgbouncer-1.10.0.tar.gz 480571 BLAKE2B a0c1dadc48f38cfe0ba2641791b4734da84cfe6674198bb2a8014bc92543850e909d7b4649b99e78d58febaa0f89f62b6694f6333b1111cbd62ff2f22741984d SHA512 8ec9f102b57ca5f92fb689588ec090056ac29f21825400ec67bca413fe076ad50e0b491e65c4cfebc488cc245eb3c88c36db2ee0ba1cb737f35404be0983dd1d
23 DIST pgbouncer-1.9.0.tar.gz 469300 BLAKE2B 466f171a49ec9ce9be9a9d3208780cfbff956da7c74ec4332c7104ea537cb47a5cfdc0d80bbd96d233769b6f430f1ad99b623caefa2dc93af7ba336dd0f49514 SHA512 b127f4cb60ca5cdf339da76727918f0a3797a3e0a89f8ed6fdcaa80f3391d2c5bb51e19731915775210c0e5070dd611ee2e410c9a947624e45b5cf11aecdacf9
24
25 diff --git a/dev-db/pgbouncer/pgbouncer-1.10.0.ebuild b/dev-db/pgbouncer/pgbouncer-1.10.0.ebuild
26 new file mode 100644
27 index 00000000000..caae5f40fcf
28 --- /dev/null
29 +++ b/dev-db/pgbouncer/pgbouncer-1.10.0.ebuild
30 @@ -0,0 +1,86 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit user
37 +
38 +DESCRIPTION="Lightweight connection pooler for PostgreSQL"
39 +HOMEPAGE="https://pgbouncer.github.io"
40 +SRC_URI="https://pgbouncer.github.io/downloads/files/${PV}/${P}.tar.gz"
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="+c-ares debug doc pam ssl -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 + c-ares? ( >=net-dns/c-ares-1.10 )
53 + ssl? ( >=dev-libs/openssl-1.0.1:=[-bindist] )
54 + udns? ( >=net-libs/udns-0.1 )
55 +"
56 +
57 +DEPEND="${RDEPEND}"
58 +
59 +pkg_setup() {
60 + enewgroup postgres 70
61 + enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
62 +
63 + enewuser pgbouncer -1 -1 -1 postgres
64 +}
65 +
66 +src_prepare() {
67 + eapply "${FILESDIR}/pgbouncer-1.8-dirs.patch"
68 +
69 + default
70 +}
71 +
72 +src_configure() {
73 + # --enable-debug is only used to disable stripping
74 + econf \
75 + --docdir=/usr/share/doc/${PF} \
76 + --enable-debug \
77 + $(use_with c-ares cares) \
78 + $(use_enable debug cassert) \
79 + $(use_with pam) \
80 + $(use_with ssl openssl) \
81 + $(use_with udns)
82 +}
83 +
84 +src_test() {
85 + cd "${S}/test"
86 + emake
87 +}
88 +
89 +src_install() {
90 + emake DESTDIR="${D}" install
91 +
92 + dodoc AUTHORS
93 + use doc && dodoc doc/*.rst
94 +
95 + newconfd "${FILESDIR}/${PN}.confd-r1" "${PN}"
96 + newinitd "${FILESDIR}/${PN}.initd-r2" "${PN}"
97 +
98 + insinto /etc
99 + doins etc/pgbouncer.ini
100 +
101 + insinto /etc/logrotate.d
102 + newins "${FILESDIR}/logrotate" pgbouncer
103 +}
104 +
105 +pkg_postinst() {
106 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
107 + einfo "Please read the config.txt for Configuration Directives"
108 + einfo
109 + einfo "For Administration Commands, see:"
110 + einfo " man pgbouncer"
111 + einfo
112 + einfo "By default, PgBouncer does not have access to any database."
113 + einfo "GRANT the permissions needed for your application and make sure that it"
114 + einfo "exists in PgBouncer's auth_file."
115 + fi
116 +}