Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/postgresql-base: postgresql-base-8.3.12.ebuild postgresql-base-9.0.1.ebuild postgresql-base-8.1.22.ebuild postgresql-base-8.2.18.ebuild ChangeLog postgresql-base-8.4.5.ebuild
Date: Wed, 06 Oct 2010 15:03:07
Message-Id: 20101006145713.7C18820051@flycatcher.gentoo.org
1 patrick 10/10/06 14:57:13
2
3 Modified: ChangeLog
4 Added: postgresql-base-8.3.12.ebuild
5 postgresql-base-9.0.1.ebuild
6 postgresql-base-8.1.22.ebuild
7 postgresql-base-8.2.18.ebuild
8 postgresql-base-8.4.5.ebuild
9 Log:
10 Bump
11
12 (Portage version: 2.2_rc88/cvs/Linux x86_64)
13
14 Revision Changes Path
15 1.77 dev-db/postgresql-base/ChangeLog
16
17 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.77&view=markup
18 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.77&content-type=text/plain
19 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.76&r2=1.77
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
24 retrieving revision 1.76
25 retrieving revision 1.77
26 diff -u -r1.76 -r1.77
27 --- ChangeLog 5 Oct 2010 13:49:35 -0000 1.76
28 +++ ChangeLog 6 Oct 2010 14:57:13 -0000 1.77
29 @@ -1,6 +1,18 @@
30 # ChangeLog for dev-db/postgresql-base
31 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.76 2010/10/05 13:49:35 scarabeus Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.77 2010/10/06 14:57:13 patrick Exp $
34 +
35 +*postgresql-base-9.0.1 (06 Oct 2010)
36 +*postgresql-base-8.4.5 (06 Oct 2010)
37 +*postgresql-base-8.3.12 (06 Oct 2010)
38 +*postgresql-base-8.2.18 (06 Oct 2010)
39 +*postgresql-base-8.1.22 (06 Oct 2010)
40 +
41 + 06 Oct 2010; Patrick Lauer <patrick@g.o>
42 + +postgresql-base-8.1.22.ebuild, +postgresql-base-8.2.18.ebuild,
43 + +postgresql-base-8.3.12.ebuild, +postgresql-base-8.4.5.ebuild,
44 + +postgresql-base-9.0.1.ebuild:
45 + Bump
46
47 05 Oct 2010; Tomáš Chvátal <scarabeus@g.o>
48 postgresql-base-9.0.0.ebuild:
49
50
51
52 1.1 dev-db/postgresql-base/postgresql-base-8.3.12.ebuild
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.12.ebuild?rev=1.1&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.12.ebuild?rev=1.1&content-type=text/plain
56
57 Index: postgresql-base-8.3.12.ebuild
58 ===================================================================
59 # Copyright 1999-2010 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.12.ebuild,v 1.1 2010/10/06 14:57:13 patrick Exp $
62
63 EAPI="2"
64
65 WANT_AUTOMAKE="none"
66
67 inherit eutils multilib versionator autotools
68
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
70
71 DESCRIPTION="PostgreSQL libraries and clients"
72 HOMEPAGE="http://www.postgresql.org/"
73 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
74 LICENSE="POSTGRESQL"
75 SLOT="$(get_version_component_range 1-2)"
76 IUSE_LINGUAS="
77 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
78 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
79 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
80 linguas_tr linguas_zh_CN linguas_zh_TW"
81 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
82 RESTRICT="test"
83
84 wanted_languages() {
85 for u in ${IUSE_LINGUAS} ; do
86 use $u && echo -n "${u#linguas_} "
87 done
88 }
89
90 RDEPEND="kerberos? ( virtual/krb5 )
91 pam? ( virtual/pam )
92 readline? ( >=sys-libs/readline-4.1 )
93 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
94 zlib? ( >=sys-libs/zlib-1.1.3 )
95 >=app-admin/eselect-postgresql-0.3
96 virtual/libintl
97 !!dev-db/postgresql-libs
98 !!dev-db/postgresql-client
99 !!dev-db/libpq
100 !!dev-db/postgresql
101 ldap? ( net-nds/openldap )"
102 DEPEND="${RDEPEND}
103 sys-devel/flex
104 >=sys-devel/bison-1.875
105 nls? ( sys-devel/gettext )"
106 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
107
108 S="${WORKDIR}/postgresql-${PV}"
109
110 src_prepare() {
111
112 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
113 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
114 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
115
116 # to avoid collision - it only should be installed by server
117 rm "${S}/src/backend/nls.mk"
118
119 # because psql/help.c includes the file
120 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
121
122 eautoconf
123 }
124
125 src_configure() {
126 export LDFLAGS_SL="${LDFLAGS}"
127 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
128 --datadir=/usr/share/postgresql-${SLOT} \
129 --sysconfdir=/etc/postgresql-${SLOT} \
130 --includedir=/usr/include/postgresql-${SLOT} \
131 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
132 --mandir=/usr/share/postgresql-${SLOT}/man \
133 --without-docdir \
134 --enable-depend \
135 --without-tcl \
136 --without-perl \
137 --without-python \
138 $(use_with readline) \
139 $(use_with kerberos krb5) \
140 $(use_with kerberos gssapi) \
141 "$(use_enable nls nls "$(wanted_languages)")" \
142 $(use_with pam) \
143 $(use_enable pg-intdatetime integer-datetimes ) \
144 $(use_with ssl openssl) \
145 $(use_enable threads thread-safety) \
146 $(use_with zlib) \
147 $(use_with ldap) \
148 || die "configure failed"
149 }
150
151 src_compile() {
152 emake || die "emake failed"
153
154 cd "${S}/contrib"
155 emake || die "emake failed"
156 }
157
158 src_install() {
159 emake DESTDIR="${D}" install || die "emake install failed"
160 insinto /usr/include/postgresql-${SLOT}/postmaster
161 doins "${S}"/src/include/postmaster/*.h
162 dodir /usr/share/postgresql-${SLOT}/man/man1
163 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
164
165 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
166 dodoc README HISTORY doc/{README.*,TODO,bug.template}
167
168 cd "${S}/contrib"
169 emake DESTDIR="${D}" install || die "emake install failed"
170 cd "${S}"
171
172 dodir /etc/eselect/postgresql/slots/${SLOT}
173
174 IDIR="/usr/include/postgresql-${SLOT}"
175 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
176 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
177 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
178 postgres_datadir=/usr/share/postgresql-${SLOT}
179 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
180 postgres_symlinks=(
181 ${IDIR} /usr/include/postgresql
182 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
183 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
184 ${IDIR}/libpq /usr/include/libpq
185 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
186 )
187 __EOF__
188
189 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
190 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
191 MANPATH=/usr/share/postgresql-${SLOT}/man
192 __EOF__
193 doenvd "${T}/50postgresql-94-${SLOT}"
194
195 keepdir /etc/postgresql-${SLOT}
196 }
197
198 pkg_postinst() {
199 eselect postgresql update
200 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
201 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
202 }
203
204 pkg_postrm() {
205 eselect postgresql update
206 }
207
208
209
210 1.1 dev-db/postgresql-base/postgresql-base-9.0.1.ebuild
211
212 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.1.ebuild?rev=1.1&view=markup
213 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.1.ebuild?rev=1.1&content-type=text/plain
214
215 Index: postgresql-base-9.0.1.ebuild
216 ===================================================================
217 # Copyright 1999-2010 Gentoo Foundation
218 # Distributed under the terms of the GNU General Public License v2
219 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.1.ebuild,v 1.1 2010/10/06 14:57:13 patrick Exp $
220
221 EAPI="2"
222
223 WANT_AUTOMAKE="none"
224
225 inherit eutils multilib versionator autotools
226
227 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
228
229 DESCRIPTION="PostgreSQL libraries and clients"
230 HOMEPAGE="http://www.postgresql.org/"
231
232 MY_PV=${PV/_/}
233 SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2"
234 S=${WORKDIR}/postgresql-${MY_PV}
235
236 LICENSE="POSTGRESQL"
237 SLOT="$(get_version_component_range 1-2)"
238 LINGUAS="af cs de es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
239 IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib"
240
241 for lingua in ${LINGUAS}; do
242 IUSE+=" linguas_${lingua}"
243 done
244
245 RESTRICT="test"
246
247 wanted_languages() {
248 local enable_langs
249
250 for lingua in ${LINGUAS} ; do
251 use linguas_${lingua} && enable_langs+="${lingua} "
252 done
253
254 echo -n ${enable_langs}
255 }
256
257 RDEPEND="!!dev-db/postgresql-libs
258 !!dev-db/postgresql-client
259 !!dev-db/libpq
260 !!dev-db/postgresql
261 >=app-admin/eselect-postgresql-0.3
262 virtual/libintl
263 kerberos? ( virtual/krb5 )
264 ldap? ( net-nds/openldap )
265 pam? ( virtual/pam )
266 readline? ( sys-libs/readline )
267 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
268 zlib? ( sys-libs/zlib )"
269 DEPEND="${RDEPEND}
270 sys-devel/bison
271 sys-devel/flex
272 nls? ( sys-devel/gettext )"
273 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
274
275 src_prepare() {
276 epatch "${FILESDIR}/postgresql-9.0-common.3.patch" \
277 "${FILESDIR}/postgresql-${SLOT}-base.3.patch"
278
279 # to avoid collision - it only should be installed by server
280 rm "${S}/src/backend/nls.mk"
281
282 # because psql/help.c includes the file
283 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
284
285 eautoconf
286 }
287
288 src_configure() {
289 export LDFLAGS_SL="${LDFLAGS}"
290 econf \
291 --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
292 --datadir=/usr/share/postgresql-${SLOT} \
293 --docdir=/usr/share/doc/postgresql-${SLOT} \
294 --sysconfdir=/etc/postgresql-${SLOT} \
295 --includedir=/usr/include/postgresql-${SLOT} \
296 --mandir=/usr/share/postgresql-${SLOT}/man \
297 --enable-depend \
298 --without-tcl \
299 --without-perl \
300 --without-python \
301 $(use_with readline) \
302 $(use_with kerberos krb5) \
303 $(use_with kerberos gssapi) \
304 "$(use_enable nls nls "$(wanted_languages)")" \
305 $(use_with pam) \
306 $(use_enable !pg_legacytimestamp integer-datetimes) \
307 $(use_with ssl openssl) \
308 $(use_enable threads thread-safety) \
309 $(use_with zlib) \
310 $(use_with ldap)
311 }
312
313 src_compile() {
314 emake || die "emake failed"
315
316 cd "${S}/contrib"
317 emake || die "emake failed"
318 }
319
320 src_install() {
321 emake DESTDIR="${D}" install || die "emake install failed"
322 insinto /usr/include/postgresql-${SLOT}/postmaster
323 doins "${S}"/src/include/postmaster/*.h || die
324
325 dodir /usr/share/postgresql-${SLOT}/man/man1/ || die
326 cp "${S}"/doc/src/sgml/man1/* "${D}"/usr/share/postgresql-${SLOT}/man/man1/ || die
327
328 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
329 dodoc README HISTORY doc/{README.*,TODO,bug.template} || die
330
331 cd "${S}/contrib"
332 emake DESTDIR="${D}" install || die "emake install failed"
333 cd "${S}"
334
335 dodir /etc/eselect/postgresql/slots/${SLOT} || die
336
337 IDIR="/usr/include/postgresql-${SLOT}"
338 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
339 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
340 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
341 postgres_datadir=/usr/share/postgresql-${SLOT}
342 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
343 postgres_symlinks=(
344 ${IDIR} /usr/include/postgresql
345 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
346 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
347 ${IDIR}/libpq /usr/include/libpq
348 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
349 )
350 __EOF__
351
352 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
353 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
354 MANPATH=/usr/share/postgresql-${SLOT}/man
355 __EOF__
356 doenvd "${T}/50postgresql-94-${SLOT}" || die
357
358 keepdir /etc/postgresql-${SLOT} || die
359 }
360
361 pkg_postinst() {
362 eselect postgresql update
363 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
364 elog "If you need a global psqlrc-file, you can place it in:"
365 elog " '${ROOT}/etc/postgresql-${SLOT}/'"
366 elog
367 }
368
369 pkg_postrm() {
370 eselect postgresql update
371 }
372
373
374
375 1.1 dev-db/postgresql-base/postgresql-base-8.1.22.ebuild
376
377 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.1.22.ebuild?rev=1.1&view=markup
378 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.1.22.ebuild?rev=1.1&content-type=text/plain
379
380 Index: postgresql-base-8.1.22.ebuild
381 ===================================================================
382 # Copyright 1999-2010 Gentoo Foundation
383 # Distributed under the terms of the GNU General Public License v2
384 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.1.22.ebuild,v 1.1 2010/10/06 14:57:13 patrick Exp $
385
386 EAPI="2"
387
388 WANT_AUTOMAKE="none"
389
390 inherit eutils multilib versionator autotools
391
392 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
393
394 DESCRIPTION="PostgreSQL libraries and clients"
395 HOMEPAGE="http://www.postgresql.org/"
396 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
397 LICENSE="POSTGRESQL"
398 SLOT="$(get_version_component_range 1-2)"
399 IUSE_LINGUAS="
400 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
401 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
402 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
403 linguas_tr linguas_zh_CN linguas_zh_TW"
404 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
405 RESTRICT="test"
406
407 wanted_languages() {
408 for u in ${IUSE_LINGUAS} ; do
409 use $u && echo -n "${u#linguas_} "
410 done
411 }
412
413 RDEPEND="kerberos? ( virtual/krb5 )
414 pam? ( virtual/pam )
415 readline? ( >=sys-libs/readline-4.1 )
416 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
417 zlib? ( >=sys-libs/zlib-1.1.3 )
418 >=app-admin/eselect-postgresql-0.3
419 virtual/libintl
420 !!dev-db/postgresql-libs
421 !!dev-db/postgresql-client
422 !!dev-db/libpq
423 !!dev-db/postgresql"
424 DEPEND="${RDEPEND}
425 sys-devel/flex
426 >=sys-devel/bison-1.875
427 nls? ( sys-devel/gettext )"
428 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
429
430 S="${WORKDIR}/postgresql-${PV}"
431
432 src_prepare() {
433
434 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
435 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
436 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
437
438 # to avoid collision - it only should be installed by server
439 rm "${S}/src/backend/nls.mk"
440
441 # because psql/help.c includes the file
442 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
443
444 eautoconf
445 }
446
447 src_configure() {
448 export LDFLAGS_SL="${LDFLAGS}"
449 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
450 --datadir=/usr/share/postgresql-${SLOT} \
451 --sysconfdir=/etc/postgresql-${SLOT} \
452 --includedir=/usr/include/postgresql-${SLOT} \
453 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
454 --mandir=/usr/share/postgresql-${SLOT}/man \
455 --without-docdir \
456 --without-tcl \
457 --without-perl \
458 --without-python \
459 $(use_with kerberos krb5) \
460 "$(use_enable nls nls "$(wanted_languages)")" \
461 $(use_with pam) \
462 $(use_enable pg-intdatetime integer-datetimes ) \
463 $(use_with readline) \
464 $(use_with ssl openssl) \
465 $(use_enable threads thread-safety) \
466 $(use_with zlib) \
467 || die "configure failed"
468 }
469
470 src_compile() {
471 emake || die "emake failed"
472
473 cd "${S}/contrib"
474 emake || die "emake failed"
475 }
476
477 src_install() {
478 emake DESTDIR="${D}" install || die "emake install failed"
479 insinto /usr/include/postgresql-${SLOT}/postmaster
480 doins "${S}"/src/include/postmaster/*.h
481 dodir /usr/share/postgresql-${SLOT}/man/man1
482 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
483
484 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
485 dodoc README HISTORY doc/{README.*,TODO,bug.template}
486
487 cd "${S}/contrib"
488 emake DESTDIR="${D}" install || die "emake install failed"
489 cd "${S}"
490
491 dodir /etc/eselect/postgresql/slots/${SLOT}
492
493 IDIR="/usr/include/postgresql-${SLOT}"
494 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
495 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
496 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
497 postgres_datadir=/usr/share/postgresql-${SLOT}
498 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
499 postgres_symlinks=(
500 ${IDIR} /usr/include/postgresql
501 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
502 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
503 ${IDIR}/libpq /usr/include/libpq
504 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
505 )
506 __EOF__
507
508 cat >"${T}/50postgresql-96-${SLOT}" <<-__EOF__
509 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
510 MANPATH=/usr/share/postgresql-${SLOT}/man
511 __EOF__
512 doenvd "${T}/50postgresql-96-${SLOT}"
513
514 keepdir /etc/postgresql-${SLOT}
515 }
516
517 pkg_postinst() {
518 eselect postgresql update
519 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
520 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
521 }
522
523 pkg_postrm() {
524 eselect postgresql update
525 }
526
527
528
529 1.1 dev-db/postgresql-base/postgresql-base-8.2.18.ebuild
530
531 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.18.ebuild?rev=1.1&view=markup
532 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.18.ebuild?rev=1.1&content-type=text/plain
533
534 Index: postgresql-base-8.2.18.ebuild
535 ===================================================================
536 # Copyright 1999-2010 Gentoo Foundation
537 # Distributed under the terms of the GNU General Public License v2
538 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.18.ebuild,v 1.1 2010/10/06 14:57:13 patrick Exp $
539
540 EAPI="2"
541
542 WANT_AUTOMAKE="none"
543
544 inherit eutils multilib versionator autotools
545
546 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
547
548 DESCRIPTION="PostgreSQL libraries and clients"
549 HOMEPAGE="http://www.postgresql.org/"
550 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
551 LICENSE="POSTGRESQL"
552 SLOT="$(get_version_component_range 1-2)"
553 IUSE_LINGUAS="
554 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
555 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
556 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
557 linguas_tr linguas_zh_CN linguas_zh_TW"
558 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
559 RESTRICT="test"
560
561 wanted_languages() {
562 for u in ${IUSE_LINGUAS} ; do
563 use $u && echo -n "${u#linguas_} "
564 done
565 }
566
567 RDEPEND="kerberos? ( virtual/krb5 )
568 pam? ( virtual/pam )
569 readline? ( >=sys-libs/readline-4.1 )
570 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
571 zlib? ( >=sys-libs/zlib-1.1.3 )
572 >=app-admin/eselect-postgresql-0.3
573 virtual/libintl
574 !!dev-db/postgresql-libs
575 !!dev-db/postgresql-client
576 !!dev-db/libpq
577 !!dev-db/postgresql
578 ldap? ( net-nds/openldap )"
579 DEPEND="${RDEPEND}
580 sys-devel/flex
581 >=sys-devel/bison-1.875
582 nls? ( sys-devel/gettext )"
583 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
584
585 S="${WORKDIR}/postgresql-${PV}"
586
587 src_prepare() {
588
589 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
590 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
591 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
592
593 # to avoid collision - it only should be installed by server
594 rm "${S}/src/backend/nls.mk"
595
596 # because psql/help.c includes the file
597 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
598
599 eautoconf
600 }
601
602 src_configure() {
603 export LDFLAGS_SL="${LDFLAGS}"
604 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
605 --datadir=/usr/share/postgresql-${SLOT} \
606 --sysconfdir=/etc/postgresql-${SLOT} \
607 --includedir=/usr/include/postgresql-${SLOT} \
608 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
609 --mandir=/usr/share/postgresql-${SLOT}/man \
610 --without-docdir \
611 --enable-depend \
612 --without-tcl \
613 --without-perl \
614 --without-python \
615 $(use_with readline) \
616 $(use_with kerberos krb5) \
617 "$(use_enable nls nls "$(wanted_languages)")" \
618 $(use_with pam) \
619 $(use_enable pg-intdatetime integer-datetimes ) \
620 $(use_with ssl openssl) \
621 $(use_enable threads thread-safety) \
622 $(use_with zlib) \
623 $(use_with ldap) \
624 || die "configure failed"
625 }
626
627 src_compile() {
628 emake || die "emake failed"
629
630 cd "${S}/contrib"
631 emake || die "emake failed"
632 }
633
634 src_install() {
635 emake DESTDIR="${D}" install || die "emake install failed"
636 insinto /usr/include/postgresql-${SLOT}/postmaster
637 doins "${S}"/src/include/postmaster/*.h
638 dodir /usr/share/postgresql-${SLOT}/man/man1
639 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
640
641 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
642 dodoc README HISTORY doc/{README.*,TODO,bug.template}
643
644 cd "${S}/contrib"
645 emake DESTDIR="${D}" install || die "emake install failed"
646 cd "${S}"
647
648 dodir /etc/eselect/postgresql/slots/${SLOT}
649
650 IDIR="/usr/include/postgresql-${SLOT}"
651 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
652 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
653 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
654 postgres_datadir=/usr/share/postgresql-${SLOT}
655 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
656 postgres_symlinks=(
657 ${IDIR} /usr/include/postgresql
658 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
659 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
660 ${IDIR}/libpq /usr/include/libpq
661 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
662 )
663 __EOF__
664
665 cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__
666 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
667 MANPATH=/usr/share/postgresql-${SLOT}/man
668 __EOF__
669 doenvd "${T}/50postgresql-95-${SLOT}"
670
671 keepdir /etc/postgresql-${SLOT}
672 }
673
674 pkg_postinst() {
675 eselect postgresql update
676 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
677 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
678 }
679
680 pkg_postrm() {
681 eselect postgresql update
682 }
683
684
685
686 1.1 dev-db/postgresql-base/postgresql-base-8.4.5.ebuild
687
688 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.5.ebuild?rev=1.1&view=markup
689 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.5.ebuild?rev=1.1&content-type=text/plain
690
691 Index: postgresql-base-8.4.5.ebuild
692 ===================================================================
693 # Copyright 1999-2010 Gentoo Foundation
694 # Distributed under the terms of the GNU General Public License v2
695 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.5.ebuild,v 1.1 2010/10/06 14:57:13 patrick Exp $
696
697 EAPI="2"
698
699 WANT_AUTOMAKE="none"
700
701 inherit eutils multilib versionator autotools
702
703 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
704
705 DESCRIPTION="PostgreSQL libraries and clients"
706 HOMEPAGE="http://www.postgresql.org/"
707 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
708 LICENSE="POSTGRESQL"
709 SLOT="$(get_version_component_range 1-2)"
710 IUSE_LINGUAS="
711 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
712 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
713 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
714 linguas_tr linguas_zh_CN linguas_zh_TW"
715 IUSE="doc kerberos nls pam readline ssl threads zlib ldap pg_legacytimestamp ${IUSE_LINGUAS}"
716 RESTRICT="test"
717
718 wanted_languages() {
719 for u in ${IUSE_LINGUAS} ; do
720 use $u && echo -n "${u#linguas_} "
721 done
722 }
723
724 RDEPEND="kerberos? ( virtual/krb5 )
725 pam? ( virtual/pam )
726 readline? ( >=sys-libs/readline-4.1 )
727 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
728 zlib? ( >=sys-libs/zlib-1.1.3 )
729 >=app-admin/eselect-postgresql-0.3
730 virtual/libintl
731 !!dev-db/postgresql-libs
732 !!dev-db/postgresql-client
733 !!dev-db/libpq
734 !!dev-db/postgresql
735 ldap? ( net-nds/openldap )"
736 DEPEND="${RDEPEND}
737 sys-devel/flex
738 >=sys-devel/bison-1.875
739 nls? ( sys-devel/gettext )"
740 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
741
742 S="${WORKDIR}/postgresql-${PV}"
743
744 src_prepare() {
745
746 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
747 "${FILESDIR}/postgresql-${SLOT}-base.patch"
748
749 if use kerberos && has_version "<app-crypt/heimdal-1.3.2-r1" ; then
750 epatch "${FILESDIR}/postgresql-base-8.4-9.0-heimdal_strlcpy.patch"
751 fi
752
753 # to avoid collision - it only should be installed by server
754 rm "${S}/src/backend/nls.mk"
755
756 # because psql/help.c includes the file
757 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
758
759 eautoconf
760 }
761
762 src_configure() {
763 export LDFLAGS_SL="${LDFLAGS}"
764 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
765 --datadir=/usr/share/postgresql-${SLOT} \
766 --docdir=/usr/share/doc/postgresql-${SLOT} \
767 --sysconfdir=/etc/postgresql-${SLOT} \
768 --includedir=/usr/include/postgresql-${SLOT} \
769 --mandir=/usr/share/postgresql-${SLOT}/man \
770 --enable-depend \
771 --without-tcl \
772 --without-perl \
773 --without-python \
774 $(use_with readline) \
775 $(use_with kerberos krb5) \
776 $(use_with kerberos gssapi) \
777 "$(use_enable nls nls "$(wanted_languages)")" \
778 $(use_with pam) \
779 $(use_enable !pg_legacytimestamp integer-datetimes ) \
780 $(use_with ssl openssl) \
781 $(use_enable threads thread-safety) \
782 $(use_with zlib) \
783 $(use_with ldap) \
784 || die "configure failed"
785 }
786
787 src_compile() {
788 emake || die "emake failed"
789
790 cd "${S}/contrib"
791 emake || die "emake failed"
792 }
793
794 src_install() {
795 emake DESTDIR="${D}" install || die "emake install failed"
796 insinto /usr/include/postgresql-${SLOT}/postmaster
797 doins "${S}"/src/include/postmaster/*.h
798 dodir /usr/share/postgresql-${SLOT}/man/man1
799 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
800
801 rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html"
802 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
803 dodoc README HISTORY doc/{README.*,TODO,bug.template}
804
805 cd "${S}/contrib"
806 emake DESTDIR="${D}" install || die "emake install failed"
807 cd "${S}"
808
809 dodir /etc/eselect/postgresql/slots/${SLOT}
810
811 IDIR="/usr/include/postgresql-${SLOT}"
812 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
813 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
814 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
815 postgres_datadir=/usr/share/postgresql-${SLOT}
816 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
817 postgres_symlinks=(
818 ${IDIR} /usr/include/postgresql
819 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
820 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
821 ${IDIR}/libpq /usr/include/libpq
822 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
823 )
824 __EOF__
825
826 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
827 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
828 MANPATH=/usr/share/postgresql-${SLOT}/man
829 __EOF__
830 doenvd "${T}/50postgresql-94-${SLOT}"
831
832 keepdir /etc/postgresql-${SLOT}
833 }
834
835 pkg_postinst() {
836 eselect postgresql update
837 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
838 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
839 }
840
841 pkg_postrm() {
842 eselect postgresql update
843 }