1 |
commit: 7e93450a4ccb0caa85bea75fcaa01c4c551b721b |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 28 11:23:48 2018 +0000 |
4 |
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 28 11:25:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e93450a |
7 |
|
8 |
dev-db/pgpool2: Bump to 3.7.7, 4.0.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
11 |
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org> |
12 |
|
13 |
dev-db/pgpool2/Manifest | 2 + |
14 |
dev-db/pgpool2/pgpool2-3.7.7.ebuild | 104 ++++++++++++++++++++++++++++++++++++ |
15 |
dev-db/pgpool2/pgpool2-4.0.2.ebuild | 104 ++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 210 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/pgpool2/Manifest b/dev-db/pgpool2/Manifest |
19 |
index 120a39ebe5b..6a2000ddfbc 100644 |
20 |
--- a/dev-db/pgpool2/Manifest |
21 |
+++ b/dev-db/pgpool2/Manifest |
22 |
@@ -2,3 +2,5 @@ DIST pgpool-II-3.7.0.tar.gz 3269076 BLAKE2B f7a396e82022a35e5f46fb644ca4a9007db3 |
23 |
DIST pgpool-II-3.7.1.tar.gz 3237755 BLAKE2B ec196e384c9c4c03a28081fbb74b820c7480e2a98427441572142bd80bff6d2adbbda9bc19df1c70f4699af28fcac5f09161a5938df633bb9eba52c0d9dc24ac SHA512 2a83f573ca2a720ee7beb75d8d1380747e29b2bb3c809f51bd0f8e4423d67f882ce2acb7d9ea118c55313e969aba3bf94a0d5b190eb905123d43c09df25e00ef |
24 |
DIST pgpool-II-3.7.3.tar.gz 3259752 BLAKE2B 398257b2a647039a634d52b0e23ab1584aaa67f58d6f234f03bf2e99380b346b4ff51647f876d0789c484e88fc149a2af5a5b1b8fd3aa48323aada064ea3421d SHA512 c7fea570f11dfc348b0099fde074f61a15e6979b6f16526d24d73b26d723edfdbadbcf10e90c2111aeb72599970718d3cda4abed3e99e8a711cf03b715c29624 |
25 |
DIST pgpool-II-3.7.5.tar.gz 3276279 BLAKE2B d9c52684985e0a74ef115792f79a71305fbcc5f44663971e5fee41d543c7c290999091c387f5da6c73c88466880a24b21d469046de7981983d9984a606ae357e SHA512 4840047f11b5e176803c03073d1ef6ef54f9d0be3d9bd622fedc9fd0ad4f835090fbf671bfd71cda0d994af6ea9a1658b0d5e5d09ec317b345c41fb0fa4b7b70 |
26 |
+DIST pgpool-II-3.7.7.tar.gz 3325039 BLAKE2B 47f4d48b811af0fb6626a6ea4b46bd81d13997fa8756f533711f733eed7526ea79bbc929cf894911cc5697c37fd5fde0306eaee485f00b6c41c2701bf08c972c SHA512 9766d011f8a93ae292770b24915f6825d037d55ad3f75be131a58a9dcfb4d1a61f572f2c48f69ee0d3c6cbdfe76da15e417c26f102c646c3d9e1a2f71d205374 |
27 |
+DIST pgpool-II-4.0.2.tar.gz 3576212 BLAKE2B 4027b8d02f4422900e674ee49a1946521b0737e73c9cd73363cd1ad1328de294bdec219bb8df55db58c6b2da365f8094e6b2228e13f1d24f35f7fb373280bd66 SHA512 9014c34f69cdcb3064a3713ed97fa0847f5572866db709c53f703b2ff996dbb31988d6573fcd85c9bb715bb54b9c215adaf11eb2f90193371be804ec37ac955e |
28 |
|
29 |
diff --git a/dev-db/pgpool2/pgpool2-3.7.7.ebuild b/dev-db/pgpool2/pgpool2-3.7.7.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..79ac82b6529 |
32 |
--- /dev/null |
33 |
+++ b/dev-db/pgpool2/pgpool2-3.7.7.ebuild |
34 |
@@ -0,0 +1,104 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+POSTGRES_COMPAT=( 9.{3..6} 10 ) |
41 |
+ |
42 |
+inherit autotools postgres-multi |
43 |
+ |
44 |
+MY_P="${PN/2/-II}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="Connection pool server for PostgreSQL" |
47 |
+HOMEPAGE="http://www.pgpool.net/" |
48 |
+SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz" |
49 |
+LICENSE="BSD" |
50 |
+SLOT="0" |
51 |
+ |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+ |
54 |
+IUSE="doc libressl memcached pam ssl static-libs" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ ${POSTGRES_DEP} |
58 |
+ net-libs/libnsl:0= |
59 |
+ memcached? ( dev-libs/libmemcached ) |
60 |
+ pam? ( sys-auth/pambase ) |
61 |
+ ssl? ( |
62 |
+ !libressl? ( dev-libs/openssl:* ) |
63 |
+ libressl? ( dev-libs/libressl:= ) |
64 |
+ ) |
65 |
+" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ !!dev-db/pgpool |
68 |
+ sys-devel/bison |
69 |
+ virtual/pkgconfig |
70 |
+" |
71 |
+ |
72 |
+S=${WORKDIR}/${MY_P} |
73 |
+ |
74 |
+pkg_setup() { |
75 |
+ postgres_new_user pgpool |
76 |
+ |
77 |
+ postgres-multi_pkg_setup |
78 |
+} |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ eapply \ |
82 |
+ "${FILESDIR}/pgpool-configure-memcached.patch" \ |
83 |
+ "${FILESDIR}/pgpool-configure-pam.patch" \ |
84 |
+ "${FILESDIR}/pgpool-configure-pthread.patch" \ |
85 |
+ "${FILESDIR}/pgpool_run_paths-3.6.5.patch" |
86 |
+ |
87 |
+ eautoreconf |
88 |
+ |
89 |
+ postgres-multi_src_prepare |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ postgres-multi_foreach econf \ |
94 |
+ --disable-rpath \ |
95 |
+ --sysconfdir="${EROOT%/}/etc/${PN}" \ |
96 |
+ --with-pgsql-includedir='/usr/include/postgresql-@PG_SLOT@' \ |
97 |
+ --with-pgsql-libdir="/usr/$(get_libdir)/postgresql-@PG_SLOT@/$(get_libdir)" \ |
98 |
+ $(use_enable static-libs static) \ |
99 |
+ $(use_with memcached) \ |
100 |
+ $(use_with pam) \ |
101 |
+ $(use_with ssl openssl) |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ # Even though we're only going to do an install for the best slot |
106 |
+ # available, the extension bits in src/sql need some things outside |
107 |
+ # of that directory built, too. |
108 |
+ postgres-multi_foreach emake |
109 |
+ postgres-multi_foreach emake -C src/sql |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ # We only need the best stuff installed |
114 |
+ postgres-multi_forbest emake DESTDIR="${D}" install |
115 |
+ |
116 |
+ # Except for the extension and .so files that each PostgreSQL slot needs |
117 |
+ postgres-multi_foreach emake DESTDIR="${D}" -C src/sql install |
118 |
+ |
119 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
120 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
121 |
+ |
122 |
+ # Documentation! |
123 |
+ dodoc NEWS TODO |
124 |
+ doman doc/src/sgml/man{1,8}/* |
125 |
+ use doc && dodoc -r doc/src/sgml/html |
126 |
+ |
127 |
+ # Examples and extras |
128 |
+ # mv some files that get installed to /usr/share/pgpool-II so that |
129 |
+ # they all wind up in the same place |
130 |
+ mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die |
131 |
+ into "/usr/share/${PN}" |
132 |
+ dobin src/sample/{pgpool_recovery,pgpool_recovery_pitr,pgpool_remote_start} |
133 |
+ insinto "/usr/share/${PN}" |
134 |
+ doins src/sample/{{pcp,pgpool,pool_hba}.conf.sample*,pgpool.pam} |
135 |
+ |
136 |
+ # One more thing: Evil la files! |
137 |
+ find "${ED}" -name '*.la' -exec rm -f {} + |
138 |
+} |
139 |
|
140 |
diff --git a/dev-db/pgpool2/pgpool2-4.0.2.ebuild b/dev-db/pgpool2/pgpool2-4.0.2.ebuild |
141 |
new file mode 100644 |
142 |
index 00000000000..099a14d0870 |
143 |
--- /dev/null |
144 |
+++ b/dev-db/pgpool2/pgpool2-4.0.2.ebuild |
145 |
@@ -0,0 +1,104 @@ |
146 |
+# Copyright 1999-2018 Gentoo Authors |
147 |
+# Distributed under the terms of the GNU General Public License v2 |
148 |
+ |
149 |
+EAPI=6 |
150 |
+ |
151 |
+POSTGRES_COMPAT=( 9.{3..6} {10..11} ) |
152 |
+ |
153 |
+inherit autotools postgres-multi |
154 |
+ |
155 |
+MY_P="${PN/2/-II}-${PV}" |
156 |
+ |
157 |
+DESCRIPTION="Connection pool server for PostgreSQL" |
158 |
+HOMEPAGE="http://www.pgpool.net/" |
159 |
+SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz" |
160 |
+LICENSE="BSD" |
161 |
+SLOT="0" |
162 |
+ |
163 |
+KEYWORDS="~amd64 ~x86" |
164 |
+ |
165 |
+IUSE="doc libressl memcached pam ssl static-libs" |
166 |
+ |
167 |
+RDEPEND=" |
168 |
+ ${POSTGRES_DEP} |
169 |
+ net-libs/libnsl:0= |
170 |
+ memcached? ( dev-libs/libmemcached ) |
171 |
+ pam? ( sys-auth/pambase ) |
172 |
+ ssl? ( |
173 |
+ !libressl? ( dev-libs/openssl:* ) |
174 |
+ libressl? ( dev-libs/libressl:= ) |
175 |
+ ) |
176 |
+" |
177 |
+DEPEND="${RDEPEND} |
178 |
+ !!dev-db/pgpool |
179 |
+ sys-devel/bison |
180 |
+ virtual/pkgconfig |
181 |
+" |
182 |
+ |
183 |
+S=${WORKDIR}/${MY_P} |
184 |
+ |
185 |
+pkg_setup() { |
186 |
+ postgres_new_user pgpool |
187 |
+ |
188 |
+ postgres-multi_pkg_setup |
189 |
+} |
190 |
+ |
191 |
+src_prepare() { |
192 |
+ eapply \ |
193 |
+ "${FILESDIR}/pgpool-configure-memcached.patch" \ |
194 |
+ "${FILESDIR}/pgpool-configure-pam.patch" \ |
195 |
+ "${FILESDIR}/pgpool-configure-pthread.patch" \ |
196 |
+ "${FILESDIR}/pgpool_run_paths-3.6.5.patch" |
197 |
+ |
198 |
+ eautoreconf |
199 |
+ |
200 |
+ postgres-multi_src_prepare |
201 |
+} |
202 |
+ |
203 |
+src_configure() { |
204 |
+ postgres-multi_foreach econf \ |
205 |
+ --disable-rpath \ |
206 |
+ --sysconfdir="${EROOT%/}/etc/${PN}" \ |
207 |
+ --with-pgsql-includedir='/usr/include/postgresql-@PG_SLOT@' \ |
208 |
+ --with-pgsql-libdir="/usr/$(get_libdir)/postgresql-@PG_SLOT@/$(get_libdir)" \ |
209 |
+ $(use_enable static-libs static) \ |
210 |
+ $(use_with memcached) \ |
211 |
+ $(use_with pam) \ |
212 |
+ $(use_with ssl openssl) |
213 |
+} |
214 |
+ |
215 |
+src_compile() { |
216 |
+ # Even though we're only going to do an install for the best slot |
217 |
+ # available, the extension bits in src/sql need some things outside |
218 |
+ # of that directory built, too. |
219 |
+ postgres-multi_foreach emake |
220 |
+ postgres-multi_foreach emake -C src/sql |
221 |
+} |
222 |
+ |
223 |
+src_install() { |
224 |
+ # We only need the best stuff installed |
225 |
+ postgres-multi_forbest emake DESTDIR="${D}" install |
226 |
+ |
227 |
+ # Except for the extension and .so files that each PostgreSQL slot needs |
228 |
+ postgres-multi_foreach emake DESTDIR="${D}" -C src/sql install |
229 |
+ |
230 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
231 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
232 |
+ |
233 |
+ # Documentation! |
234 |
+ dodoc NEWS TODO |
235 |
+ doman doc/src/sgml/man{1,8}/* |
236 |
+ use doc && dodoc -r doc/src/sgml/html |
237 |
+ |
238 |
+ # Examples and extras |
239 |
+ # mv some files that get installed to /usr/share/pgpool-II so that |
240 |
+ # they all wind up in the same place |
241 |
+ mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die |
242 |
+ into "/usr/share/${PN}" |
243 |
+ dobin src/sample/{pgpool_recovery,pgpool_recovery_pitr,pgpool_remote_start} |
244 |
+ insinto "/usr/share/${PN}" |
245 |
+ doins src/sample/{{pcp,pgpool,pool_hba}.conf.sample*,pgpool.pam} |
246 |
+ |
247 |
+ # One more thing: Evil la files! |
248 |
+ find "${ED}" -name '*.la' -exec rm -f {} + |
249 |
+} |