1 |
patrick 12/06/05 09:15:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-9.0.8.ebuild |
5 |
postgresql-base-8.3.19.ebuild |
6 |
postgresql-base-9.1.4.ebuild |
7 |
postgresql-base-8.4.12.ebuild |
8 |
Log: |
9 |
Bump for #419727 |
10 |
|
11 |
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.180 dev-db/postgresql-base/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.180&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.180&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.179&r2=1.180 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
23 |
retrieving revision 1.179 |
24 |
retrieving revision 1.180 |
25 |
diff -u -r1.179 -r1.180 |
26 |
--- ChangeLog 23 May 2012 14:33:20 -0000 1.179 |
27 |
+++ ChangeLog 5 Jun 2012 09:15:49 -0000 1.180 |
28 |
@@ -1,6 +1,16 @@ |
29 |
# ChangeLog for dev-db/postgresql-base |
30 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.179 2012/05/23 14:33:20 titanofold Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.180 2012/06/05 09:15:49 patrick Exp $ |
33 |
+ |
34 |
+*postgresql-base-9.0.8 (05 Jun 2012) |
35 |
+*postgresql-base-8.4.12 (05 Jun 2012) |
36 |
+*postgresql-base-9.1.4 (05 Jun 2012) |
37 |
+*postgresql-base-8.3.19 (05 Jun 2012) |
38 |
+ |
39 |
+ 05 Jun 2012; Patrick Lauer <patrick@g.o> |
40 |
+ +postgresql-base-8.3.19.ebuild, +postgresql-base-8.4.12.ebuild, |
41 |
+ +postgresql-base-9.0.8.ebuild, +postgresql-base-9.1.4.ebuild: |
42 |
+ Bump for #419727 |
43 |
|
44 |
*postgresql-base-9.2.0_beta1 (23 May 2012) |
45 |
|
46 |
|
47 |
|
48 |
|
49 |
1.1 dev-db/postgresql-base/postgresql-base-9.0.8.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.8.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.8.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: postgresql-base-9.0.8.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2012 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.8.ebuild,v 1.1 2012/06/05 09:15:49 patrick Exp $ |
59 |
|
60 |
EAPI="4" |
61 |
|
62 |
WANT_AUTOMAKE="none" |
63 |
|
64 |
inherit autotools eutils flag-o-matic multilib prefix versionator |
65 |
|
66 |
SLOT="$(get_version_component_range 1-2)" |
67 |
|
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" |
69 |
|
70 |
DESCRIPTION="PostgreSQL libraries and clients" |
71 |
HOMEPAGE="http://www.postgresql.org/" |
72 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 |
73 |
http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r3.tbz2" |
74 |
LICENSE="POSTGRESQL" |
75 |
|
76 |
S="${WORKDIR}/postgresql-${PV}" |
77 |
|
78 |
# No tests to be done for clients and libraries |
79 |
RESTRICT="test" |
80 |
|
81 |
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" |
82 |
IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" |
83 |
|
84 |
for lingua in ${LINGUAS} ; do |
85 |
IUSE+=" linguas_${lingua}" |
86 |
done |
87 |
|
88 |
wanted_languages() { |
89 |
local enable_langs |
90 |
|
91 |
for lingua in ${LINGUAS} ; do |
92 |
use linguas_${lingua} && enable_langs+="${lingua} " |
93 |
done |
94 |
|
95 |
echo -n ${enable_langs} |
96 |
} |
97 |
|
98 |
RDEPEND=">=app-admin/eselect-postgresql-1.0.7 |
99 |
virtual/libintl |
100 |
!!dev-db/libpq |
101 |
!!dev-db/postgresql |
102 |
!!dev-db/postgresql-client |
103 |
!!dev-db/postgresql-libs |
104 |
kerberos? ( virtual/krb5 ) |
105 |
ldap? ( net-nds/openldap ) |
106 |
pam? ( virtual/pam ) |
107 |
readline? ( sys-libs/readline ) |
108 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
109 |
zlib? ( sys-libs/zlib )" |
110 |
|
111 |
DEPEND="${RDEPEND} |
112 |
sys-devel/bison |
113 |
sys-devel/flex |
114 |
!!<sys-apps/sandbox-2.0 |
115 |
nls? ( sys-devel/gettext )" |
116 |
|
117 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
118 |
|
119 |
# Support /var/run or /run for the socket directory |
120 |
[[ ! -d /run ]] && RUNDIR=/var |
121 |
|
122 |
src_prepare() { |
123 |
epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ |
124 |
"${WORKDIR}/bool.patch" |
125 |
|
126 |
eprefixify src/include/pg_config_manual.h |
127 |
|
128 |
# to avoid collision - it only should be installed by server |
129 |
rm "${S}/src/backend/nls.mk" |
130 |
|
131 |
# because psql/help.c includes the file |
132 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
133 |
|
134 |
sed -e "s|@RUNDIR@|${RUNDIR}|g" \ |
135 |
-i src/include/pg_config_manual.h || \ |
136 |
die "RUNDIR sed failed" |
137 |
|
138 |
eautoconf |
139 |
} |
140 |
|
141 |
src_configure() { |
142 |
case ${CHOST} in |
143 |
*-darwin*|*-solaris*) |
144 |
use nls && append-libs intl |
145 |
;; |
146 |
esac |
147 |
export LDFLAGS_SL="${LDFLAGS}" |
148 |
export LDFLAGS_EX="${LDFLAGS}" |
149 |
local PO="${EPREFIX%/}" |
150 |
econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ |
151 |
--datadir="${PO}/usr/share/postgresql-${SLOT}" \ |
152 |
--docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ |
153 |
--includedir="${PO}/usr/include/postgresql-${SLOT}" \ |
154 |
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ |
155 |
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \ |
156 |
--without-tcl \ |
157 |
--without-perl \ |
158 |
--without-python \ |
159 |
$(use_with kerberos krb5) \ |
160 |
$(use_with kerberos gssapi) \ |
161 |
$(use_with ldap) \ |
162 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
163 |
$(use_with pam) \ |
164 |
$(use_enable !pg_legacytimestamp integer-datetimes) \ |
165 |
$(use_with readline) \ |
166 |
$(use_with ssl openssl) \ |
167 |
$(use_enable threads thread-safety) \ |
168 |
$(use_with zlib) |
169 |
} |
170 |
|
171 |
src_compile() { |
172 |
emake |
173 |
|
174 |
cd "${S}/contrib" |
175 |
emake |
176 |
} |
177 |
|
178 |
src_install() { |
179 |
emake DESTDIR="${D}" install |
180 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
181 |
doins "${S}"/src/include/postmaster/*.h |
182 |
|
183 |
dodir /usr/share/postgresql-${SLOT}/man/ |
184 |
cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die |
185 |
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1 |
186 |
docompress /usr/share/postgresql-${SLOT}/man/man{1,7} |
187 |
|
188 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
189 |
|
190 |
cd "${S}/contrib" |
191 |
emake DESTDIR="${D}" install |
192 |
cd "${S}" |
193 |
|
194 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
195 |
|
196 |
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ |
197 |
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" |
198 |
|
199 |
keepdir /etc/postgresql-${SLOT} |
200 |
} |
201 |
|
202 |
pkg_postinst() { |
203 |
postgresql-config update |
204 |
|
205 |
elog "If you need a global psqlrc-file, you can place it in:" |
206 |
elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
207 |
} |
208 |
|
209 |
pkg_postrm() { |
210 |
postgresql-config update |
211 |
} |
212 |
|
213 |
|
214 |
|
215 |
1.1 dev-db/postgresql-base/postgresql-base-8.3.19.ebuild |
216 |
|
217 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.19.ebuild?rev=1.1&view=markup |
218 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.19.ebuild?rev=1.1&content-type=text/plain |
219 |
|
220 |
Index: postgresql-base-8.3.19.ebuild |
221 |
=================================================================== |
222 |
# Copyright 1999-2012 Gentoo Foundation |
223 |
# Distributed under the terms of the GNU General Public License v2 |
224 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.19.ebuild,v 1.1 2012/06/05 09:15:49 patrick Exp $ |
225 |
|
226 |
EAPI="4" |
227 |
|
228 |
WANT_AUTOMAKE="none" |
229 |
|
230 |
inherit autotools eutils multilib prefix versionator |
231 |
|
232 |
SLOT="$(get_version_component_range 1-2)" |
233 |
|
234 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
235 |
|
236 |
DESCRIPTION="PostgreSQL libraries and clients" |
237 |
HOMEPAGE="http://www.postgresql.org/" |
238 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 |
239 |
http://dev.gentoo.org/~titanofold/postgresql-patches-8.3-r2.tbz2" |
240 |
LICENSE="POSTGRESQL" |
241 |
|
242 |
S="${WORKDIR}/postgresql-${PV}" |
243 |
|
244 |
# No tests to be done for clients and libraries |
245 |
RESTRICT="test" |
246 |
|
247 |
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" |
248 |
IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib" |
249 |
|
250 |
for lingua in ${LINGUAS} ; do |
251 |
IUSE+=" linguas_${lingua}" |
252 |
done |
253 |
|
254 |
wanted_languages() { |
255 |
local enable_langs |
256 |
|
257 |
for lingua in ${LINGUAS} ; do |
258 |
use linguas_${lingua} && enable_langs+="${lingua} " |
259 |
done |
260 |
|
261 |
echo -n ${enable_langs} |
262 |
} |
263 |
|
264 |
RDEPEND=">=app-admin/eselect-postgresql-1.0.10 |
265 |
virtual/libintl |
266 |
!!dev-db/libpq |
267 |
!!dev-db/postgresql |
268 |
!!dev-db/postgresql-client |
269 |
!!dev-db/postgresql-libs |
270 |
kerberos? ( virtual/krb5 ) |
271 |
ldap? ( net-nds/openldap ) |
272 |
pam? ( virtual/pam ) |
273 |
readline? ( >=sys-libs/readline-4.1 ) |
274 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
275 |
zlib? ( >=sys-libs/zlib-1.1.3 )" |
276 |
|
277 |
DEPEND="${RDEPEND} |
278 |
!!<sys-apps/sandbox-2.0 |
279 |
>=sys-devel/bison-1.875 |
280 |
sys-devel/flex |
281 |
nls? ( sys-devel/gettext )" |
282 |
|
283 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
284 |
|
285 |
# Support /var/run or /run for the socket directory |
286 |
[[ ! -d /run ]] && RUNDIR=/var |
287 |
|
288 |
src_prepare() { |
289 |
epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ |
290 |
"${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ |
291 |
"${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" \ |
292 |
|
293 |
eprefixify src/include/pg_config_manual.h |
294 |
|
295 |
# to avoid collision - it only should be installed by server |
296 |
rm "${S}/src/backend/nls.mk" |
297 |
|
298 |
# because psql/help.c includes the file |
299 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
300 |
|
301 |
sed -e "s|@RUNDIR@|${RUNDIR}|g" \ |
302 |
-i src/include/pg_config_manual.h || \ |
303 |
die "RUNDIR sed failed" |
304 |
|
305 |
eautoconf |
306 |
} |
307 |
|
308 |
src_configure() { |
309 |
export LDFLAGS_SL="${LDFLAGS}" |
310 |
local PO="${EPREFIX%/}" |
311 |
econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ |
312 |
--datadir="${PO}/usr/share/postgresql-${SLOT}" \ |
313 |
--includedir="${PO}/usr/include/postgresql-${SLOT}" \ |
314 |
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ |
315 |
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \ |
316 |
--without-docdir \ |
317 |
--without-perl \ |
318 |
--without-python \ |
319 |
--without-tcl \ |
320 |
$(use_with kerberos krb5) \ |
321 |
$(use_with kerberos gssapi) \ |
322 |
$(use_with ldap) \ |
323 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
324 |
$(use_with pam) \ |
325 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
326 |
$(use_with readline) \ |
327 |
$(use_with ssl openssl) \ |
328 |
$(use_enable threads thread-safety) \ |
329 |
$(use_with zlib) |
330 |
} |
331 |
|
332 |
src_compile() { |
333 |
emake |
334 |
|
335 |
cd "${S}/contrib" |
336 |
emake |
337 |
} |
338 |
|
339 |
src_install() { |
340 |
emake DESTDIR="${D}" install |
341 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
342 |
doins "${S}"/src/include/postmaster/*.h |
343 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
344 |
|
345 |
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 |
346 |
docompress /usr/share/postgresql-${SLOT}/man/man{1,7} |
347 |
|
348 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
349 |
|
350 |
cd "${S}/contrib" |
351 |
emake DESTDIR="${D}" install |
352 |
cd "${S}" |
353 |
|
354 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
355 |
|
356 |
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ |
357 |
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" |
358 |
|
359 |
keepdir /etc/postgresql-${SLOT} |
360 |
} |
361 |
|
362 |
pkg_postinst() { |
363 |
postgresql-config update |
364 |
|
365 |
elog "If you need a global psqlrc-file, you can place it in:" |
366 |
elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
367 |
} |
368 |
|
369 |
pkg_postrm() { |
370 |
postgresql-config update |
371 |
} |
372 |
|
373 |
|
374 |
|
375 |
1.1 dev-db/postgresql-base/postgresql-base-9.1.4.ebuild |
376 |
|
377 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.4.ebuild?rev=1.1&view=markup |
378 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.4.ebuild?rev=1.1&content-type=text/plain |
379 |
|
380 |
Index: postgresql-base-9.1.4.ebuild |
381 |
=================================================================== |
382 |
# Copyright 1999-2012 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-9.1.4.ebuild,v 1.1 2012/06/05 09:15:49 patrick Exp $ |
385 |
|
386 |
EAPI="4" |
387 |
|
388 |
WANT_AUTOMAKE="none" |
389 |
|
390 |
inherit autotools eutils flag-o-matic multilib prefix versionator |
391 |
|
392 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" |
393 |
|
394 |
SLOT="$(get_version_component_range 1-2)" |
395 |
S="${WORKDIR}/postgresql-${PV}" |
396 |
|
397 |
DESCRIPTION="PostgreSQL libraries and clients" |
398 |
HOMEPAGE="http://www.postgresql.org/" |
399 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 |
400 |
http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r1.tbz2" |
401 |
LICENSE="POSTGRESQL" |
402 |
|
403 |
# No tests to be done for clients and libraries |
404 |
RESTRICT="test" |
405 |
|
406 |
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" |
407 |
IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" |
408 |
|
409 |
for lingua in ${LINGUAS} ; do |
410 |
IUSE+=" linguas_${lingua}" |
411 |
done |
412 |
|
413 |
wanted_languages() { |
414 |
local enable_langs |
415 |
|
416 |
for lingua in ${LINGUAS} ; do |
417 |
use linguas_${lingua} && enable_langs+="${lingua} " |
418 |
done |
419 |
|
420 |
echo -n ${enable_langs} |
421 |
} |
422 |
|
423 |
RDEPEND="!!dev-db/libpq |
424 |
!!dev-db/postgresql |
425 |
!!dev-db/postgresql-client |
426 |
!!dev-db/postgresql-libs |
427 |
>=app-admin/eselect-postgresql-1.0.10 |
428 |
virtual/libintl |
429 |
kerberos? ( virtual/krb5 ) |
430 |
ldap? ( net-nds/openldap ) |
431 |
pam? ( virtual/pam ) |
432 |
readline? ( sys-libs/readline ) |
433 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
434 |
zlib? ( sys-libs/zlib ) |
435 |
" |
436 |
|
437 |
DEPEND="${RDEPEND} |
438 |
!!<sys-apps/sandbox-2.0 |
439 |
sys-devel/bison |
440 |
sys-devel/flex |
441 |
nls? ( sys-devel/gettext ) |
442 |
" |
443 |
|
444 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
445 |
|
446 |
# Support /var/run or /run for the socket directory |
447 |
[[ ! -d /run ]] && RUNDIR=/var |
448 |
|
449 |
src_prepare() { |
450 |
epatch "${WORKDIR}/autoconf.patch" \ |
451 |
"${WORKDIR}/base.patch" \ |
452 |
"${WORKDIR}/bool.patch" |
453 |
|
454 |
eprefixify src/include/pg_config_manual.h |
455 |
|
456 |
# to avoid collision - it only should be installed by server |
457 |
rm "${S}/src/backend/nls.mk" |
458 |
|
459 |
# because psql/help.c includes the file |
460 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
461 |
|
462 |
sed -e "s|@RUNDIR@|${RUNDIR}|g" \ |
463 |
-i src/include/pg_config_manual.h || \ |
464 |
die "RUNDIR sed failed" |
465 |
|
466 |
eautoconf |
467 |
} |
468 |
|
469 |
src_configure() { |
470 |
case ${CHOST} in |
471 |
*-darwin*|*-solaris*) |
472 |
use nls && append-libs intl |
473 |
;; |
474 |
esac |
475 |
|
476 |
export LDFLAGS_SL="${LDFLAGS}" |
477 |
export LDFLAGS_EX="${LDFLAGS}" |
478 |
|
479 |
local PO="${EPREFIX%/}" |
480 |
|
481 |
econf \ |
482 |
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ |
483 |
--datadir="${PO}/usr/share/postgresql-${SLOT}" \ |
484 |
--docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ |
485 |
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \ |
486 |
--includedir="${PO}/usr/include/postgresql-${SLOT}" \ |
487 |
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ |
488 |
--without-tcl \ |
489 |
--without-perl \ |
490 |
--without-python \ |
491 |
$(use_with readline) \ |
492 |
$(use_with kerberos krb5) \ |
493 |
$(use_with kerberos gssapi) \ |
494 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
495 |
$(use_with pam) \ |
496 |
$(use_enable !pg_legacytimestamp integer-datetimes) \ |
497 |
$(use_with ssl openssl) \ |
498 |
$(use_enable threads thread-safety) \ |
499 |
$(use_with zlib) \ |
500 |
$(use_with ldap) |
501 |
} |
502 |
|
503 |
src_compile() { |
504 |
emake -j1 |
505 |
|
506 |
cd "${S}/contrib" |
507 |
emake |
508 |
} |
509 |
|
510 |
src_install() { |
511 |
emake DESTDIR="${D}" install |
512 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
513 |
doins "${S}"/src/include/postmaster/*.h |
514 |
|
515 |
dodir /usr/share/postgresql-${SLOT}/man/ |
516 |
cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die |
517 |
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 |
518 |
docompress /usr/share/postgresql-${SLOT}/man/man{1,7} |
519 |
dodoc README HISTORY doc/{TODO,bug.template} |
520 |
|
521 |
cd "${S}/contrib" |
522 |
emake DESTDIR="${D}" install |
523 |
cd "${S}" |
524 |
|
525 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
526 |
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ |
527 |
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base" |
528 |
|
529 |
keepdir /etc/postgresql-${SLOT} |
530 |
} |
531 |
|
532 |
pkg_postinst() { |
533 |
postgresql-config update |
534 |
|
535 |
elog "If you need a global psqlrc-file, you can place it in:" |
536 |
elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
537 |
} |
538 |
|
539 |
pkg_postrm() { |
540 |
postgresql-config update |
541 |
} |
542 |
|
543 |
|
544 |
|
545 |
1.1 dev-db/postgresql-base/postgresql-base-8.4.12.ebuild |
546 |
|
547 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.12.ebuild?rev=1.1&view=markup |
548 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.12.ebuild?rev=1.1&content-type=text/plain |
549 |
|
550 |
Index: postgresql-base-8.4.12.ebuild |
551 |
=================================================================== |
552 |
# Copyright 1999-2012 Gentoo Foundation |
553 |
# Distributed under the terms of the GNU General Public License v2 |
554 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.12.ebuild,v 1.1 2012/06/05 09:15:49 patrick Exp $ |
555 |
|
556 |
EAPI="4" |
557 |
|
558 |
WANT_AUTOMAKE="none" |
559 |
|
560 |
inherit autotools eutils multilib prefix versionator |
561 |
|
562 |
SLOT="$(get_version_component_range 1-2)" |
563 |
|
564 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
565 |
|
566 |
DESCRIPTION="PostgreSQL libraries and clients" |
567 |
HOMEPAGE="http://www.postgresql.org/" |
568 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2 |
569 |
http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r2.tbz2" |
570 |
LICENSE="POSTGRESQL" |
571 |
|
572 |
S="${WORKDIR}/postgresql-${PV}" |
573 |
|
574 |
# No tests to be done for clients and libraries |
575 |
RESTRICT="test" |
576 |
|
577 |
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" |
578 |
IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" |
579 |
|
580 |
for lingua in ${LINGUAS} ; do |
581 |
IUSE+=" linguas_${lingua}" |
582 |
done |
583 |
|
584 |
wanted_languages() { |
585 |
local enable_langs |
586 |
|
587 |
for lingua in ${LINGUAS} ; do |
588 |
use linguas_${lingua} && enable_langs+="${lingua} " |
589 |
done |
590 |
|
591 |
echo -n ${enable_langs} |
592 |
} |
593 |
|
594 |
RDEPEND=">=app-admin/eselect-postgresql-1.0.7 |
595 |
virtual/libintl |
596 |
!!dev-db/libpq |
597 |
!!dev-db/postgresql |
598 |
!!dev-db/postgresql-client |
599 |
!!dev-db/postgresql-libs |
600 |
kerberos? ( virtual/krb5 ) |
601 |
ldap? ( net-nds/openldap ) |
602 |
pam? ( virtual/pam ) |
603 |
readline? ( >=sys-libs/readline-4.1 ) |
604 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
605 |
zlib? ( >=sys-libs/zlib-1.1.3 )" |
606 |
|
607 |
DEPEND="${RDEPEND} |
608 |
!!<sys-apps/sandbox-2.0 |
609 |
>=sys-devel/bison-1.875 |
610 |
sys-devel/flex |
611 |
nls? ( sys-devel/gettext )" |
612 |
|
613 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
614 |
|
615 |
# Support /var/run or /run for the socket directory |
616 |
[[ ! -d /run ]] && RUNDIR=/var |
617 |
|
618 |
src_prepare() { |
619 |
epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \ |
620 |
"${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \ |
621 |
"${WORKDIR}/SuperH.patch" |
622 |
|
623 |
eprefixify src/include/pg_config_manual.h |
624 |
|
625 |
# to avoid collision - it only should be installed by server |
626 |
rm "${S}/src/backend/nls.mk" |
627 |
|
628 |
# because psql/help.c includes the file |
629 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
630 |
|
631 |
sed -e "s|@RUNDIR@|${RUNDIR}|g" \ |
632 |
-i src/include/pg_config_manual.h || \ |
633 |
die "RUNDIR sed failed" |
634 |
|
635 |
eautoconf |
636 |
} |
637 |
|
638 |
src_configure() { |
639 |
export LDFLAGS_SL="${LDFLAGS}" |
640 |
local PO="${EPREFIX%/}" |
641 |
econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \ |
642 |
--datadir="${PO}/usr/share/postgresql-${SLOT}" \ |
643 |
--docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \ |
644 |
--includedir="${PO}/usr/include/postgresql-${SLOT}" \ |
645 |
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \ |
646 |
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \ |
647 |
--without-tcl \ |
648 |
--without-perl \ |
649 |
--without-python \ |
650 |
$(use_with kerberos krb5) \ |
651 |
$(use_with kerberos gssapi) \ |
652 |
$(use_with ldap) \ |
653 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
654 |
$(use_with pam) \ |
655 |
$(use_enable !pg_legacytimestamp integer-datetimes ) \ |
656 |
$(use_with readline) \ |
657 |
$(use_with ssl openssl) \ |
658 |
$(use_enable threads thread-safety) \ |
659 |
$(use_with zlib) |
660 |
} |
661 |
|
662 |
src_compile() { |
663 |
emake |
664 |
|
665 |
cd "${S}/contrib" |
666 |
emake |
667 |
} |
668 |
|
669 |
src_install() { |
670 |
emake DESTDIR="${D}" install |
671 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
672 |
doins "${S}"/src/include/postmaster/*.h |
673 |
|
674 |
rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html" |
675 |
rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 |
676 |
docompress /usr/share/postgresql-${SLOT}/man/man{1,7} |
677 |
|
678 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
679 |
|
680 |
cd "${S}/contrib" |
681 |
emake DESTDIR="${D}" install |
682 |
cd "${S}" |
683 |
|
684 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
685 |
|
686 |
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \ |
687 |
> "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" |
688 |
|
689 |
keepdir /etc/postgresql-${SLOT} |
690 |
} |
691 |
|
692 |
pkg_postinst() { |
693 |
postgresql-config update |
694 |
|
695 |
elog "If you need a global psqlrc-file, you can place it in:" |
696 |
elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
697 |
} |
698 |
|
699 |
pkg_postrm() { |
700 |
postgresql-config update |
701 |
} |