1 |
commit: b03c9ec0f79c55570f4c69469bdd990941a4ebdc |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 21 17:37:53 2017 +0000 |
4 |
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 21 17:37:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b03c9ec0 |
7 |
|
8 |
dev-db/postgresql: Bump to 10_rc1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
dev-db/postgresql/Manifest | 3 +- |
13 |
dev-db/postgresql/postgresql-10_beta4.ebuild | 464 --------------------- |
14 |
...ql-10_beta3.ebuild => postgresql-10_rc1.ebuild} | 0 |
15 |
3 files changed, 1 insertion(+), 466 deletions(-) |
16 |
|
17 |
diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest |
18 |
index 7c11a65df4e..6e1a9da4930 100644 |
19 |
--- a/dev-db/postgresql/Manifest |
20 |
+++ b/dev-db/postgresql/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
-DIST postgresql-10beta3.tar.bz2 19914123 SHA256 6722546739f8e2dd379e8031784e86c5c588638df6c477046ebdd479586bcb3e SHA512 cdbda1c17d58f2999ad71a208d6aa3b18b82bfc8f185eb4ce36496b27ae23bca03f76925e4b242a4c3c2eec96ca0b135e696f55b59282b208ecfe7f8b642f24f WHIRLPOOL 5db99df6c8d0b455a3e6c8d4a734be52bb5dc6b3225cb0f3d547ea22e87e4eae45709667bad71bc1fe8e7f024345c1b9e186b07faf9c23a9db046c9bfc01e8af |
23 |
-DIST postgresql-10beta4.tar.bz2 20024694 SHA256 e70ffa84d439033533279ccb3ae7beaa0278585b2b176a767bcd0cbddb1252d2 SHA512 23c09299b6e5f36d112588fdde0f0be14ebd0561a1d4f06535043427b802635d6da832de0e0bcf90338cf2450821d51c26e1aa959d805009e4c8e6ef1d5129fa WHIRLPOOL ff5ed8a473627141993ea747a17d6b6324c1611709944af89a1f1082ab28b93d91f65484b6e823cd471ac08f1afd0e1ebf98a4cd27b3c341d614f20a7656e53d |
24 |
+DIST postgresql-10rc1.tar.bz2 19631683 SHA256 ebdb44dccb64a31c9c524f996121e7d58c21045826d6c36e3a5ea46afbb2445b SHA512 bd374510fcb95d6d125b3f4a58cf544e3c2b96e3b1b56801264fc031da919d0df25f47654cdd616ebee5e3df85353a20c248dc85c2737f37ab6c8d5585828d87 WHIRLPOOL d92d8d04b59c476c5580678e8fdd7cf8e11331aeb381d002b7b01e78ed6636669643fda731790dc7caf23ef09ded07ff1b8fbad5e4ead78055eeadb304a5e4fc |
25 |
DIST postgresql-9.2.19.tar.bz2 16466698 SHA256 1d29d73a4f590fcc348280f13ac2ff6a0f72c94908c54e3c20b7ab1560e8dbad SHA512 d3b4c5578bf6d6580028e775bff81a921258cb53b6b06567d96a352d14f3b63063adb480b2f5e2029baf8a034e14b5cd75eebc04f1ed7b16c849e1a5ec1f4867 WHIRLPOOL c13b45fd7aee08ea472557c9f40d79c45abd572fefcc215002b562b8046b1937bf522f6f7f6e280ff1e434c9698734cda9f1c3dacd3c8fee5f33dad0da21f75f |
26 |
DIST postgresql-9.2.21.tar.bz2 16508040 SHA256 0697e843523ee60c563f987f9c65bc4201294b18525d6e5e4b2c50c6d4058ef9 SHA512 c548cd1ba34ad71dd3f1acde5775ba2e71121f004324fac44dbe123a91d599ced0f1b8be675ed07b77712e8c23f376ff6221349385c19a88c4edbbb186f17861 WHIRLPOOL c46fd4909e2d534b98c8a97f0f5410ab40285c118517a36ee73d0e1234483144d1f58785a59df53fdbfab7c2876a60d000bf574dff0be3030f8c909509b1bfe6 |
27 |
DIST postgresql-9.2.22.tar.bz2 16531224 SHA256 a70e94fa58776b559a8f7b5301371ac4922c9e3ed313ccbef20862514de7c192 SHA512 3e5ab04c2be2719579b2ebbf64b220522acfd9ea74029dd2ed699f60230da224bdc99de4ee5529b513e5586de0377764c4e54deb3dd93d5c53c4d666dce2b6b7 WHIRLPOOL ff1817463b488f4793cd0851df846b961d5510b7c1cf4a560717755ca47c363eb782bc1f2cd7a5d8cbc49727dea64394c6b30038105fc584749157157948964d |
28 |
|
29 |
diff --git a/dev-db/postgresql/postgresql-10_beta4.ebuild b/dev-db/postgresql/postgresql-10_beta4.ebuild |
30 |
deleted file mode 100644 |
31 |
index 0252237d80b..00000000000 |
32 |
--- a/dev-db/postgresql/postgresql-10_beta4.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,464 +0,0 @@ |
35 |
-# Copyright 1999-2017 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI="6" |
39 |
- |
40 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
41 |
- |
42 |
-inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \ |
43 |
- systemd user versionator |
44 |
- |
45 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" |
46 |
- |
47 |
-SLOT=$(get_major_version) |
48 |
- |
49 |
-MY_PV=${PV/_/} |
50 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
51 |
- |
52 |
-SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2" |
53 |
- |
54 |
-LICENSE="POSTGRESQL GPL-2" |
55 |
-DESCRIPTION="PostgreSQL RDBMS" |
56 |
-HOMEPAGE="http://www.postgresql.org/" |
57 |
- |
58 |
-LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN |
59 |
- zh_TW" |
60 |
-IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp |
61 |
- python +readline selinux +server systemd ssl static-libs tcl threads uuid |
62 |
- xml zlib" |
63 |
- |
64 |
-for lingua in ${LINGUAS}; do |
65 |
- IUSE+=" linguas_${lingua}" |
66 |
-done |
67 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
68 |
- |
69 |
-wanted_languages() { |
70 |
- local enable_langs |
71 |
- |
72 |
- for lingua in ${LINGUAS} ; do |
73 |
- use linguas_${lingua} && enable_langs+="${lingua} " |
74 |
- done |
75 |
- |
76 |
- echo -n ${enable_langs} |
77 |
-} |
78 |
- |
79 |
-CDEPEND=" |
80 |
->=app-eselect/eselect-postgresql-2.0 |
81 |
-sys-apps/less |
82 |
-virtual/libintl |
83 |
-kerberos? ( virtual/krb5 ) |
84 |
-ldap? ( net-nds/openldap ) |
85 |
-pam? ( virtual/pam ) |
86 |
-perl? ( >=dev-lang/perl-5.8:= ) |
87 |
-python? ( ${PYTHON_DEPS} ) |
88 |
-readline? ( sys-libs/readline:0= ) |
89 |
-server? ( systemd? ( sys-apps/systemd ) ) |
90 |
-ssl? ( |
91 |
- !libressl? ( >=dev-libs/openssl-0.9.6-r1:0= ) |
92 |
- libressl? ( dev-libs/libressl:= ) |
93 |
-) |
94 |
-tcl? ( >=dev-lang/tcl-8:0= ) |
95 |
-xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
96 |
-zlib? ( sys-libs/zlib ) |
97 |
-" |
98 |
- |
99 |
-# uuid flags -- depend on sys-apps/util-linux for Linux libcs, or if no |
100 |
-# supported libc in use depend on dev-libs/ossp-uuid. For BSD systems, |
101 |
-# the libc includes UUID functions. |
102 |
-UTIL_LINUX_LIBC=( elibc_{glibc,uclibc,musl} ) |
103 |
-BSD_LIBC=( elibc_{Free,Net,Open}BSD ) |
104 |
- |
105 |
-nest_usedep() { |
106 |
- local front back |
107 |
- while [[ ${#} -gt 1 ]]; do |
108 |
- front+="${1}? ( " |
109 |
- back+=" )" |
110 |
- shift |
111 |
- done |
112 |
- echo "${front}${1}${back}" |
113 |
-} |
114 |
- |
115 |
-IUSE+=" ${UTIL_LINUX_LIBC[@]} ${BSD_LIBC[@]}" |
116 |
-CDEPEND+=" |
117 |
-uuid? ( |
118 |
- ${UTIL_LINUX_LIBC[@]/%/? ( sys-apps/util-linux )} |
119 |
- $(nest_usedep ${UTIL_LINUX_LIBC[@]/#/!} ${BSD_LIBC[@]/#/!} dev-libs/ossp-uuid) |
120 |
-)" |
121 |
- |
122 |
-DEPEND="${CDEPEND} |
123 |
-!!<sys-apps/sandbox-2.0 |
124 |
-sys-devel/bison |
125 |
-sys-devel/flex |
126 |
-nls? ( sys-devel/gettext ) |
127 |
-xml? ( virtual/pkgconfig ) |
128 |
-" |
129 |
- |
130 |
-RDEPEND="${CDEPEND} |
131 |
-!dev-db/postgresql-docs:${SLOT} |
132 |
-!dev-db/postgresql-base:${SLOT} |
133 |
-!dev-db/postgresql-server:${SLOT} |
134 |
-selinux? ( sec-policy/selinux-postgresql ) |
135 |
-" |
136 |
- |
137 |
-pkg_setup() { |
138 |
- use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup |
139 |
- |
140 |
- enewgroup postgres 70 |
141 |
- enewuser postgres 70 /bin/sh /var/lib/postgresql postgres |
142 |
- |
143 |
- use python && python-single-r1_pkg_setup |
144 |
-} |
145 |
- |
146 |
-src_prepare() { |
147 |
- # Work around PPC{,64} compilation bug where bool is already defined |
148 |
- sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die |
149 |
- |
150 |
- # Set proper run directory |
151 |
- sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \ |
152 |
- -i src/include/pg_config_manual.h || die |
153 |
- |
154 |
- # Rely on $PATH being in the proper order so that the correct |
155 |
- # install program is used for modules utilizing PGXS in both |
156 |
- # hardened and non-hardened environments. (Bug #528786) |
157 |
- sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die |
158 |
- |
159 |
- use server || eapply "${FILESDIR}/${PN}-${SLOT}beta2-no-server.patch" |
160 |
- |
161 |
- if use pam ; then |
162 |
- sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \ |
163 |
- -i src/backend/libpq/auth.c || \ |
164 |
- die 'PGSQL_PAM_SERVICE rename failed.' |
165 |
- fi |
166 |
- |
167 |
- eapply_user |
168 |
-} |
169 |
- |
170 |
-src_configure() { |
171 |
- case ${CHOST} in |
172 |
- *-darwin*|*-solaris*) |
173 |
- use nls && append-libs intl |
174 |
- ;; |
175 |
- esac |
176 |
- |
177 |
- export LDFLAGS_SL="${LDFLAGS}" |
178 |
- export LDFLAGS_EX="${LDFLAGS}" |
179 |
- |
180 |
- local PO="${EPREFIX%/}" |
181 |
- |
182 |
- local i uuid_config="" |
183 |
- if use uuid; then |
184 |
- for i in ${UTIL_LINUX_LIBC[@]}; do |
185 |
- use ${i} && uuid_config="--with-uuid=e2fs" |
186 |
- done |
187 |
- for i in ${BSD_LIBC[@]}; do |
188 |
- use ${i} && uuid_config="--with-uuid=bsd" |
189 |
- done |
190 |
- [[ -z $uuid_config ]] && uuid_config="--with-uuid=ossp" |
191 |
- fi |
192 |
- |
193 |
- econf \ |
194 |
- --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ |
195 |
- --datadir="${PO}/usr/share/postgresql-${SLOT}" \ |
196 |
- --docdir="${PO}/usr/share/doc/${PF}" \ |
197 |
- --includedir="${PO}/usr/include/postgresql-${SLOT}" \ |
198 |
- --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ |
199 |
- --sysconfdir="${PO}/etc/postgresql-${SLOT}" \ |
200 |
- --with-system-tzdata="${PO}/usr/share/zoneinfo" \ |
201 |
- $(use_enable !alpha spinlocks) \ |
202 |
- $(use_enable !pg_legacytimestamp integer-datetimes) \ |
203 |
- $(use_enable threads thread-safety) \ |
204 |
- $(use_with kerberos gssapi) \ |
205 |
- $(use_with ldap) \ |
206 |
- $(use_with pam) \ |
207 |
- $(use_with perl) \ |
208 |
- $(use_with python) \ |
209 |
- $(use_with readline) \ |
210 |
- $(use_with ssl openssl) \ |
211 |
- $(usex server "$(use_with systemd)" '--without-systemd') \ |
212 |
- $(use_with tcl) \ |
213 |
- ${uuid_config} \ |
214 |
- $(use_with xml libxml) \ |
215 |
- $(use_with xml libxslt) \ |
216 |
- $(use_with zlib) \ |
217 |
- "$(use_enable nls nls "$(wanted_languages)")" |
218 |
-} |
219 |
- |
220 |
-src_compile() { |
221 |
- emake |
222 |
- emake -C contrib |
223 |
-} |
224 |
- |
225 |
-src_install() { |
226 |
- emake DESTDIR="${D}" install |
227 |
- emake DESTDIR="${D}" install -C contrib |
228 |
- |
229 |
- dodoc README HISTORY doc/{TODO,bug.template} |
230 |
- |
231 |
- # man pages are already built, but if we have the target make them, |
232 |
- # they'll be generated from source before being installed so we |
233 |
- # manually install man pages. |
234 |
- # We use ${SLOT} instead of doman for postgresql.eselect |
235 |
- insinto /usr/share/postgresql-${SLOT}/man/ |
236 |
- doins -r doc/src/sgml/man{1,3,7} |
237 |
- if ! use server; then |
238 |
- # Remove man pages for non-existent binaries |
239 |
- serverman=( |
240 |
- initdb |
241 |
- pg_{archivecleanup,controldata,ctl,resetwal,rewind,standby} |
242 |
- pg_{test_{fsync,timing},upgrade,waldump} |
243 |
- post{gres,master} |
244 |
- ) |
245 |
- for m in ${serverman[@]} ; do |
246 |
- rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1" |
247 |
- done |
248 |
- fi |
249 |
- docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7} |
250 |
- |
251 |
- # Create slot specific man pages |
252 |
- local bn f mansec slotted_name |
253 |
- for mansec in 1 3 7 ; do |
254 |
- local rel_manpath="../../postgresql-${SLOT}/man/man${mansec}" |
255 |
- |
256 |
- mkdir -p "${ED}"/usr/share/man/man${mansec} || die "making man dir" |
257 |
- pushd "${ED}"/usr/share/man/man${mansec} > /dev/null || die "pushd failed" |
258 |
- |
259 |
- for f in "${ED}/usr/share/postgresql-${SLOT}/man/man${mansec}"/* ; do |
260 |
- bn=$(basename "${f}") |
261 |
- slotted_name=${bn%.${mansec}}${SLOT}.${mansec} |
262 |
- case ${bn} in |
263 |
- TABLE.7|WITH.7) |
264 |
- echo ".so ${rel_manpath}/SELECT.7" > ${slotted_name} |
265 |
- ;; |
266 |
- *) |
267 |
- echo ".so ${rel_manpath}/${bn}" > ${slotted_name} |
268 |
- ;; |
269 |
- esac |
270 |
- done |
271 |
- |
272 |
- popd > /dev/null |
273 |
- done |
274 |
- |
275 |
- insinto /etc/postgresql-${SLOT} |
276 |
- newins src/bin/psql/psqlrc.sample psqlrc |
277 |
- |
278 |
- use static-libs || find "${ED}" -name '*.a' -delete |
279 |
- |
280 |
- local f bn |
281 |
- for f in $(find "${ED}/usr/$(get_libdir)/postgresql-${SLOT}/bin" \ |
282 |
- -mindepth 1 -maxdepth 1) |
283 |
- do |
284 |
- bn=$(basename "${f}") |
285 |
- # Temporarily tack on tmp to workaround a file collision |
286 |
- # issue. This is only necessary for 9.7 and earlier. 10 never |
287 |
- # had this issue. |
288 |
- dosym "../$(get_libdir)/postgresql-${SLOT}/bin/${bn}" \ |
289 |
- "/usr/bin/${bn}${SLOT/.}" |
290 |
- done |
291 |
- |
292 |
- if use doc ; then |
293 |
- docinto html |
294 |
- dodoc doc/src/sgml/html/* |
295 |
- fi |
296 |
- |
297 |
- if use server; then |
298 |
- sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \ |
299 |
- "${FILESDIR}/${PN}.confd-9.3" | newconfd - ${PN}-${SLOT} |
300 |
- |
301 |
- sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \ |
302 |
- "${FILESDIR}/${PN}.init-9.3-r1" | newinitd - ${PN}-${SLOT} |
303 |
- |
304 |
- if use systemd; then |
305 |
- sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \ |
306 |
- "${FILESDIR}/${PN}.service-9.6" | \ |
307 |
- systemd_newunit - ${PN}-${SLOT}.service |
308 |
- newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir |
309 |
- fi |
310 |
- |
311 |
- use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session |
312 |
- |
313 |
- if use prefix ; then |
314 |
- keepdir /run/postgresql |
315 |
- fperms 0775 /run/postgresql |
316 |
- fi |
317 |
- fi |
318 |
-} |
319 |
- |
320 |
-pkg_postinst() { |
321 |
- postgresql-config update |
322 |
- |
323 |
- elog "If you need a global psqlrc-file, you can place it in:" |
324 |
- elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
325 |
- |
326 |
- if use server ; then |
327 |
- elog |
328 |
- elog "Gentoo specific documentation:" |
329 |
- elog "https://wiki.gentoo.org/wiki/PostgreSQL" |
330 |
- elog |
331 |
- elog "Official documentation:" |
332 |
- elog "http://www.postgresql.org/docs/${SLOT}/static/index.html" |
333 |
- elog |
334 |
- elog "The default location of the Unix-domain socket is:" |
335 |
- elog " ${EROOT%/}/run/postgresql/" |
336 |
- elog |
337 |
- elog "Before initializing the database, you may want to edit PG_INITDB_OPTS" |
338 |
- elog "so that it contains your preferred locale in:" |
339 |
- elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" |
340 |
- elog |
341 |
- elog "Then, execute the following command to setup the initial database" |
342 |
- elog "environment:" |
343 |
- elog " emerge --config =${CATEGORY}/${PF}" |
344 |
- fi |
345 |
-} |
346 |
- |
347 |
-pkg_prerm() { |
348 |
- if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then |
349 |
- ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?" |
350 |
- ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL" |
351 |
- |
352 |
- ebegin "Resuming removal in 10 seconds (Control-C to cancel)" |
353 |
- sleep 10 |
354 |
- eend 0 |
355 |
- fi |
356 |
-} |
357 |
- |
358 |
-pkg_postrm() { |
359 |
- postgresql-config update |
360 |
-} |
361 |
- |
362 |
-pkg_config() { |
363 |
- use server || die "USE flag 'server' not enabled. Nothing to configure." |
364 |
- |
365 |
- [[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \ |
366 |
- && source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" |
367 |
- [[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/" |
368 |
- [[ -z "${DATA_DIR}" ]] \ |
369 |
- && DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data" |
370 |
- |
371 |
- # environment.bz2 may not contain the same locale as the current system |
372 |
- # locale. Unset and source from the current system locale. |
373 |
- if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then |
374 |
- unset LANG |
375 |
- unset LC_CTYPE |
376 |
- unset LC_NUMERIC |
377 |
- unset LC_TIME |
378 |
- unset LC_COLLATE |
379 |
- unset LC_MONETARY |
380 |
- unset LC_MESSAGES |
381 |
- unset LC_ALL |
382 |
- source "${EROOT%/}/etc/env.d/02locale" |
383 |
- [ -n "${LANG}" ] && export LANG |
384 |
- [ -n "${LC_CTYPE}" ] && export LC_CTYPE |
385 |
- [ -n "${LC_NUMERIC}" ] && export LC_NUMERIC |
386 |
- [ -n "${LC_TIME}" ] && export LC_TIME |
387 |
- [ -n "${LC_COLLATE}" ] && export LC_COLLATE |
388 |
- [ -n "${LC_MONETARY}" ] && export LC_MONETARY |
389 |
- [ -n "${LC_MESSAGES}" ] && export LC_MESSAGES |
390 |
- [ -n "${LC_ALL}" ] && export LC_ALL |
391 |
- fi |
392 |
- |
393 |
- einfo "You can modify the paths and options passed to initdb by editing:" |
394 |
- einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}" |
395 |
- einfo |
396 |
- einfo "Information on options that can be passed to initdb are found at:" |
397 |
- einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html" |
398 |
- einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html" |
399 |
- einfo |
400 |
- einfo "PG_INITDB_OPTS is currently set to:" |
401 |
- if [[ -z "${PG_INITDB_OPTS}" ]] ; then |
402 |
- einfo " (none)" |
403 |
- else |
404 |
- einfo " ${PG_INITDB_OPTS}" |
405 |
- fi |
406 |
- einfo |
407 |
- einfo "Configuration files will be installed to:" |
408 |
- einfo " ${PGDATA}" |
409 |
- einfo |
410 |
- einfo "The database cluster will be created in:" |
411 |
- einfo " ${DATA_DIR}" |
412 |
- einfo |
413 |
- |
414 |
- ebegin "Continuing initialization in 5 seconds (Control-C to cancel)" |
415 |
- sleep 5 |
416 |
- eend 0 |
417 |
- |
418 |
- if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then |
419 |
- eerror "The given directory, '${DATA_DIR}', is not empty." |
420 |
- eerror "Modify DATA_DIR to point to an empty directory." |
421 |
- die "${DATA_DIR} is not empty." |
422 |
- fi |
423 |
- |
424 |
- einfo "Creating the data directory ..." |
425 |
- if [[ ${EUID} == 0 ]] ; then |
426 |
- mkdir -p "${DATA_DIR}" |
427 |
- chown -Rf postgres:postgres "${DATA_DIR}" |
428 |
- chmod 0700 "${DATA_DIR}" |
429 |
- fi |
430 |
- |
431 |
- einfo "Initializing the database ..." |
432 |
- |
433 |
- if [[ ${EUID} == 0 ]] ; then |
434 |
- su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}" |
435 |
- else |
436 |
- "${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS} |
437 |
- fi |
438 |
- |
439 |
- if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then |
440 |
- mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}" |
441 |
- ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}" |
442 |
- fi |
443 |
- |
444 |
- # unix_socket_directory has no effect in postgresql.conf as it's |
445 |
- # overridden in the initscript |
446 |
- sed '/^#unix_socket_directories/,+1d' -i "${PGDATA%/}"/postgresql.conf |
447 |
- |
448 |
- cat <<- EOF >> "${PGDATA%/}"/postgresql.conf |
449 |
- # This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522 |
450 |
- # On the off-chance that you might need to work with UTF-8 encoded |
451 |
- # characters in PL/Perl |
452 |
- plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";' |
453 |
- EOF |
454 |
- |
455 |
- einfo "The autovacuum function, which was in contrib, has been moved to the main" |
456 |
- einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled" |
457 |
- einfo "by default. You can disable it in the cluster's:" |
458 |
- einfo " ${PGDATA%/}/postgresql.conf" |
459 |
- einfo |
460 |
- if ! use systemd; then |
461 |
- einfo "The PostgreSQL server, by default, will log events to:" |
462 |
- einfo " ${DATA_DIR%/}/postmaster.log" |
463 |
- einfo |
464 |
- fi |
465 |
- if use prefix ; then |
466 |
- einfo "The location of the configuration files have moved to:" |
467 |
- einfo " ${PGDATA}" |
468 |
- einfo "To start the server:" |
469 |
- einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'" |
470 |
- einfo "To stop:" |
471 |
- einfo " pg_ctl stop -D ${DATA_DIR}" |
472 |
- einfo |
473 |
- einfo "Or move the configuration files back:" |
474 |
- einfo "mv ${PGDATA}*.conf ${DATA_DIR}" |
475 |
- elif use systemd; then |
476 |
- einfo "You should use the 'postgresql-${SLOT}.service' unit to run PostgreSQL" |
477 |
- einfo "instead of 'pg_ctl'." |
478 |
- else |
479 |
- einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL" |
480 |
- einfo "instead of 'pg_ctl'." |
481 |
- fi |
482 |
-} |
483 |
- |
484 |
-src_test() { |
485 |
- if use server && [[ ${UID} -ne 0 ]] ; then |
486 |
- emake check |
487 |
- |
488 |
- einfo "If you think other tests besides the regression tests are necessary, please" |
489 |
- einfo "submit a bug including a patch for this ebuild to enable them." |
490 |
- else |
491 |
- use server || \ |
492 |
- ewarn 'Tests cannot be run without the "server" use flag enabled.' |
493 |
- [[ ${UID} -eq 0 ]] || \ |
494 |
- ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.' |
495 |
- |
496 |
- ewarn 'Skipping.' |
497 |
- fi |
498 |
-} |
499 |
|
500 |
diff --git a/dev-db/postgresql/postgresql-10_beta3.ebuild b/dev-db/postgresql/postgresql-10_rc1.ebuild |
501 |
similarity index 100% |
502 |
rename from dev-db/postgresql/postgresql-10_beta3.ebuild |
503 |
rename to dev-db/postgresql/postgresql-10_rc1.ebuild |