Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgpool2/
Date: Fri, 27 Apr 2018 20:59:11
Message-Id: 1524862739.1f0b3b500534f88286f870d6d610b8a15d676f62.titanofold@gentoo
1 commit: 1f0b3b500534f88286f870d6d610b8a15d676f62
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 27 20:58:59 2018 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 27 20:58:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f0b3b50
7
8 dev-db/pgpool2: Bump to 3.7.3
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-db/pgpool2/Manifest | 1 +
13 dev-db/pgpool2/pgpool2-3.7.3.ebuild | 98 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 99 insertions(+)
15
16 diff --git a/dev-db/pgpool2/Manifest b/dev-db/pgpool2/Manifest
17 index ca8f20d575b..e81a23c8628 100644
18 --- a/dev-db/pgpool2/Manifest
19 +++ b/dev-db/pgpool2/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pgpool-II-3.7.0.tar.gz 3269076 BLAKE2B f7a396e82022a35e5f46fb644ca4a9007db3abaf97f8249d88bca00abf5d33abe7d47f705e959f7fb910885bf49f68bd5f965aae3085d12076d3100cca2f25f8 SHA512 cf8eef3a2ec761b51f9e6a72b5211810de57ad9b40b1738067616478b6486a813782588bfc92f6f351334d9514b1394551230c486fa0ac2f6c18a0490f22bbe2
22 DIST pgpool-II-3.7.1.tar.gz 3237755 BLAKE2B ec196e384c9c4c03a28081fbb74b820c7480e2a98427441572142bd80bff6d2adbbda9bc19df1c70f4699af28fcac5f09161a5938df633bb9eba52c0d9dc24ac SHA512 2a83f573ca2a720ee7beb75d8d1380747e29b2bb3c809f51bd0f8e4423d67f882ce2acb7d9ea118c55313e969aba3bf94a0d5b190eb905123d43c09df25e00ef
23 +DIST pgpool-II-3.7.3.tar.gz 3259752 BLAKE2B 398257b2a647039a634d52b0e23ab1584aaa67f58d6f234f03bf2e99380b346b4ff51647f876d0789c484e88fc149a2af5a5b1b8fd3aa48323aada064ea3421d SHA512 c7fea570f11dfc348b0099fde074f61a15e6979b6f16526d24d73b26d723edfdbadbcf10e90c2111aeb72599970718d3cda4abed3e99e8a711cf03b715c29624
24
25 diff --git a/dev-db/pgpool2/pgpool2-3.7.3.ebuild b/dev-db/pgpool2/pgpool2-3.7.3.ebuild
26 new file mode 100644
27 index 00000000000..4a6fed48f20
28 --- /dev/null
29 +++ b/dev-db/pgpool2/pgpool2-3.7.3.ebuild
30 @@ -0,0 +1,98 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +POSTGRES_COMPAT=( 9.{2..6} 10 )
37 +
38 +inherit postgres-multi
39 +
40 +MY_P="${PN/2/-II}-${PV}"
41 +
42 +DESCRIPTION="Connection pool server for PostgreSQL"
43 +HOMEPAGE="http://www.pgpool.net/"
44 +SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
45 +LICENSE="BSD"
46 +SLOT="0"
47 +
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +IUSE="doc memcached pam ssl static-libs"
51 +
52 +RDEPEND="
53 + ${POSTGRES_DEP}
54 + net-libs/libnsl:0=
55 + memcached? ( dev-libs/libmemcached )
56 + pam? ( sys-auth/pambase )
57 + ssl? ( dev-libs/openssl:* )
58 +"
59 +DEPEND="${RDEPEND}
60 + sys-devel/bison
61 + !!dev-db/pgpool
62 +"
63 +
64 +S=${WORKDIR}/${MY_P}
65 +
66 +pkg_setup() {
67 + postgres_new_user pgpool
68 +
69 + postgres-multi_pkg_setup
70 +}
71 +
72 +src_prepare() {
73 + eapply "${FILESDIR}/pgpool_run_paths-3.6.5.patch"
74 +
75 + postgres-multi_src_prepare
76 +}
77 +
78 +src_configure() {
79 + local myconf
80 + use memcached && \
81 + myconf="--with-memcached=\"${EROOT%/}/usr/include/libmemcached\""
82 + use pam && myconf+=' --with-pam'
83 +
84 + postgres-multi_foreach econf \
85 + --disable-rpath \
86 + --sysconfdir="${EROOT%/}/etc/${PN}" \
87 + --with-pgsql-includedir='/usr/include/postgresql-@PG_SLOT@' \
88 + --with-pgsql-libdir="/usr/$(get_libdir)/postgresql-@PG_SLOT@/$(get_libdir)" \
89 + $(use_with ssl openssl) \
90 + $(use_enable static-libs static) \
91 + ${myconf}
92 +}
93 +
94 +src_compile() {
95 + # Even though we're only going to do an install for the best slot
96 + # available, the extension bits in src/sql need some things outside
97 + # of that directory built, too.
98 + postgres-multi_foreach emake
99 + postgres-multi_foreach emake -C src/sql
100 +}
101 +
102 +src_install() {
103 + # We only need the best stuff installed
104 + postgres-multi_forbest emake DESTDIR="${D}" install
105 +
106 + # Except for the extension and .so files that each PostgreSQL slot needs
107 + postgres-multi_foreach emake DESTDIR="${D}" -C src/sql install
108 +
109 + newinitd "${FILESDIR}/${PN}.initd" ${PN}
110 + newconfd "${FILESDIR}/${PN}.confd" ${PN}
111 +
112 + # Documentation!
113 + dodoc NEWS TODO
114 + doman doc/src/sgml/man{1,8}/*
115 + use doc && dodoc -r doc/src/sgml/html
116 +
117 + # Examples and extras
118 + # mv some files that get installed to /usr/share/pgpool-II so that
119 + # they all wind up in the same place
120 + mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die
121 + into "/usr/share/${PN}"
122 + dobin src/sample/{pgpool_recovery,pgpool_recovery_pitr,pgpool_remote_start}
123 + insinto "/usr/share/${PN}"
124 + doins src/sample/{{pcp,pgpool,pool_hba}.conf.sample*,pgpool.pam}
125 +
126 + # One more thing: Evil la files!
127 + find "${ED}" -name '*.la' -exec rm -f {} +
128 +}