1 |
patrick 11/01/31 17:44:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-8.3.14.ebuild |
5 |
postgresql-base-8.2.20.ebuild |
6 |
postgresql-base-9.0.3.ebuild |
7 |
postgresql-base-8.4.7.ebuild |
8 |
Log: |
9 |
Bump |
10 |
|
11 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.93 dev-db/postgresql-base/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.93&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.93&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.92&r2=1.93 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
23 |
retrieving revision 1.92 |
24 |
retrieving revision 1.93 |
25 |
diff -u -r1.92 -r1.93 |
26 |
--- ChangeLog 31 Jan 2011 16:42:41 -0000 1.92 |
27 |
+++ ChangeLog 31 Jan 2011 17:44:01 -0000 1.93 |
28 |
@@ -1,6 +1,16 @@ |
29 |
# ChangeLog for dev-db/postgresql-base |
30 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.92 2011/01/31 16:42:41 patrick Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.93 2011/01/31 17:44:01 patrick Exp $ |
33 |
+ |
34 |
+*postgresql-base-9.0.3 (31 Jan 2011) |
35 |
+*postgresql-base-8.4.7 (31 Jan 2011) |
36 |
+*postgresql-base-8.3.14 (31 Jan 2011) |
37 |
+*postgresql-base-8.2.20 (31 Jan 2011) |
38 |
+ |
39 |
+ 31 Jan 2011; Patrick Lauer <patrick@g.o> |
40 |
+ +postgresql-base-8.2.20.ebuild, +postgresql-base-8.3.14.ebuild, |
41 |
+ +postgresql-base-8.4.7.ebuild, +postgresql-base-9.0.3.ebuild: |
42 |
+ Bump |
43 |
|
44 |
31 Jan 2011; Patrick Lauer <patrick@g.o> |
45 |
-postgresql-base-8.1.21-r1.ebuild, -postgresql-base-8.2.17-r1.ebuild, |
46 |
|
47 |
|
48 |
|
49 |
1.1 dev-db/postgresql-base/postgresql-base-8.3.14.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.14.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.14.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: postgresql-base-8.3.14.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2011 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-8.3.14.ebuild,v 1.1 2011/01/31 17:44:01 patrick Exp $ |
59 |
|
60 |
EAPI="2" |
61 |
|
62 |
WANT_AUTOMAKE="none" |
63 |
|
64 |
inherit eutils multilib versionator autotools |
65 |
|
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
67 |
|
68 |
DESCRIPTION="PostgreSQL libraries and clients" |
69 |
HOMEPAGE="http://www.postgresql.org/" |
70 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" |
71 |
LICENSE="POSTGRESQL" |
72 |
SLOT="$(get_version_component_range 1-2)" |
73 |
IUSE_LINGUAS=" |
74 |
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr |
75 |
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl |
76 |
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv |
77 |
linguas_tr linguas_zh_CN linguas_zh_TW" |
78 |
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}" |
79 |
RESTRICT="test" |
80 |
|
81 |
wanted_languages() { |
82 |
for u in ${IUSE_LINGUAS} ; do |
83 |
use $u && echo -n "${u#linguas_} " |
84 |
done |
85 |
} |
86 |
|
87 |
RDEPEND="kerberos? ( virtual/krb5 ) |
88 |
pam? ( virtual/pam ) |
89 |
readline? ( >=sys-libs/readline-4.1 ) |
90 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
91 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
92 |
>=app-admin/eselect-postgresql-0.3 |
93 |
virtual/libintl |
94 |
!!dev-db/postgresql-libs |
95 |
!!dev-db/postgresql-client |
96 |
!!dev-db/libpq |
97 |
!!dev-db/postgresql |
98 |
ldap? ( net-nds/openldap )" |
99 |
DEPEND="${RDEPEND} |
100 |
sys-devel/flex |
101 |
>=sys-devel/bison-1.875 |
102 |
nls? ( sys-devel/gettext )" |
103 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
104 |
|
105 |
S="${WORKDIR}/postgresql-${PV}" |
106 |
|
107 |
src_prepare() { |
108 |
|
109 |
epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ |
110 |
"${FILESDIR}/postgresql-${SLOT}-base.patch" \ |
111 |
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch" |
112 |
|
113 |
# to avoid collision - it only should be installed by server |
114 |
rm "${S}/src/backend/nls.mk" |
115 |
|
116 |
# because psql/help.c includes the file |
117 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
118 |
|
119 |
eautoconf |
120 |
} |
121 |
|
122 |
src_configure() { |
123 |
export LDFLAGS_SL="${LDFLAGS}" |
124 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
125 |
--datadir=/usr/share/postgresql-${SLOT} \ |
126 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
127 |
--includedir=/usr/include/postgresql-${SLOT} \ |
128 |
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ |
129 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
130 |
--without-docdir \ |
131 |
--enable-depend \ |
132 |
--without-tcl \ |
133 |
--without-perl \ |
134 |
--without-python \ |
135 |
$(use_with readline) \ |
136 |
$(use_with kerberos krb5) \ |
137 |
$(use_with kerberos gssapi) \ |
138 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
139 |
$(use_with pam) \ |
140 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
141 |
$(use_with ssl openssl) \ |
142 |
$(use_enable threads thread-safety) \ |
143 |
$(use_with zlib) \ |
144 |
$(use_with ldap) \ |
145 |
|| die "configure failed" |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
emake || die "emake failed" |
150 |
|
151 |
cd "${S}/contrib" |
152 |
emake || die "emake failed" |
153 |
} |
154 |
|
155 |
src_install() { |
156 |
emake DESTDIR="${D}" install || die "emake install failed" |
157 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
158 |
doins "${S}"/src/include/postmaster/*.h |
159 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
160 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
161 |
|
162 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
163 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
164 |
|
165 |
cd "${S}/contrib" |
166 |
emake DESTDIR="${D}" install || die "emake install failed" |
167 |
cd "${S}" |
168 |
|
169 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
170 |
|
171 |
IDIR="/usr/include/postgresql-${SLOT}" |
172 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
173 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
174 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
175 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
176 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
177 |
postgres_symlinks=( |
178 |
${IDIR} /usr/include/postgresql |
179 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
180 |
${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h |
181 |
${IDIR}/libpq /usr/include/libpq |
182 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
183 |
) |
184 |
__EOF__ |
185 |
|
186 |
cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ |
187 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
188 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
189 |
__EOF__ |
190 |
doenvd "${T}/50postgresql-94-${SLOT}" |
191 |
|
192 |
keepdir /etc/postgresql-${SLOT} |
193 |
} |
194 |
|
195 |
pkg_postinst() { |
196 |
eselect postgresql update |
197 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
198 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
199 |
} |
200 |
|
201 |
pkg_postrm() { |
202 |
eselect postgresql update |
203 |
} |
204 |
|
205 |
|
206 |
|
207 |
1.1 dev-db/postgresql-base/postgresql-base-8.2.20.ebuild |
208 |
|
209 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.20.ebuild?rev=1.1&view=markup |
210 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.20.ebuild?rev=1.1&content-type=text/plain |
211 |
|
212 |
Index: postgresql-base-8.2.20.ebuild |
213 |
=================================================================== |
214 |
# Copyright 1999-2011 Gentoo Foundation |
215 |
# Distributed under the terms of the GNU General Public License v2 |
216 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.20.ebuild,v 1.1 2011/01/31 17:44:01 patrick Exp $ |
217 |
|
218 |
EAPI="2" |
219 |
|
220 |
WANT_AUTOMAKE="none" |
221 |
|
222 |
inherit eutils multilib versionator autotools |
223 |
|
224 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86" |
225 |
|
226 |
DESCRIPTION="PostgreSQL libraries and clients" |
227 |
HOMEPAGE="http://www.postgresql.org/" |
228 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" |
229 |
LICENSE="POSTGRESQL" |
230 |
SLOT="$(get_version_component_range 1-2)" |
231 |
IUSE_LINGUAS=" |
232 |
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr |
233 |
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl |
234 |
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv |
235 |
linguas_tr linguas_zh_CN linguas_zh_TW" |
236 |
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}" |
237 |
RESTRICT="test" |
238 |
|
239 |
wanted_languages() { |
240 |
for u in ${IUSE_LINGUAS} ; do |
241 |
use $u && echo -n "${u#linguas_} " |
242 |
done |
243 |
} |
244 |
|
245 |
RDEPEND="kerberos? ( virtual/krb5 ) |
246 |
pam? ( virtual/pam ) |
247 |
readline? ( >=sys-libs/readline-4.1 ) |
248 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
249 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
250 |
>=app-admin/eselect-postgresql-0.3 |
251 |
virtual/libintl |
252 |
!!dev-db/postgresql-libs |
253 |
!!dev-db/postgresql-client |
254 |
!!dev-db/libpq |
255 |
!!dev-db/postgresql |
256 |
ldap? ( net-nds/openldap )" |
257 |
DEPEND="${RDEPEND} |
258 |
sys-devel/flex |
259 |
>=sys-devel/bison-1.875 |
260 |
nls? ( sys-devel/gettext )" |
261 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
262 |
|
263 |
S="${WORKDIR}/postgresql-${PV}" |
264 |
|
265 |
src_prepare() { |
266 |
|
267 |
epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ |
268 |
"${FILESDIR}/postgresql-${SLOT}-base.patch" \ |
269 |
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch" |
270 |
|
271 |
# to avoid collision - it only should be installed by server |
272 |
rm "${S}/src/backend/nls.mk" |
273 |
|
274 |
# because psql/help.c includes the file |
275 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
276 |
|
277 |
eautoconf |
278 |
} |
279 |
|
280 |
src_configure() { |
281 |
export LDFLAGS_SL="${LDFLAGS}" |
282 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
283 |
--datadir=/usr/share/postgresql-${SLOT} \ |
284 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
285 |
--includedir=/usr/include/postgresql-${SLOT} \ |
286 |
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ |
287 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
288 |
--without-docdir \ |
289 |
--enable-depend \ |
290 |
--without-tcl \ |
291 |
--without-perl \ |
292 |
--without-python \ |
293 |
$(use_with readline) \ |
294 |
$(use_with kerberos krb5) \ |
295 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
296 |
$(use_with pam) \ |
297 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
298 |
$(use_with ssl openssl) \ |
299 |
$(use_enable threads thread-safety) \ |
300 |
$(use_with zlib) \ |
301 |
$(use_with ldap) \ |
302 |
|| die "configure failed" |
303 |
} |
304 |
|
305 |
src_compile() { |
306 |
emake || die "emake failed" |
307 |
|
308 |
cd "${S}/contrib" |
309 |
emake || die "emake failed" |
310 |
} |
311 |
|
312 |
src_install() { |
313 |
emake DESTDIR="${D}" install || die "emake install failed" |
314 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
315 |
doins "${S}"/src/include/postmaster/*.h |
316 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
317 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
318 |
|
319 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
320 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
321 |
|
322 |
cd "${S}/contrib" |
323 |
emake DESTDIR="${D}" install || die "emake install failed" |
324 |
cd "${S}" |
325 |
|
326 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
327 |
|
328 |
IDIR="/usr/include/postgresql-${SLOT}" |
329 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
330 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
331 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
332 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
333 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
334 |
postgres_symlinks=( |
335 |
${IDIR} /usr/include/postgresql |
336 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
337 |
${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h |
338 |
${IDIR}/libpq /usr/include/libpq |
339 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
340 |
) |
341 |
__EOF__ |
342 |
|
343 |
cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__ |
344 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
345 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
346 |
__EOF__ |
347 |
doenvd "${T}/50postgresql-95-${SLOT}" |
348 |
|
349 |
keepdir /etc/postgresql-${SLOT} |
350 |
} |
351 |
|
352 |
pkg_postinst() { |
353 |
eselect postgresql update |
354 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
355 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
356 |
} |
357 |
|
358 |
pkg_postrm() { |
359 |
eselect postgresql update |
360 |
} |
361 |
|
362 |
|
363 |
|
364 |
1.1 dev-db/postgresql-base/postgresql-base-9.0.3.ebuild |
365 |
|
366 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.3.ebuild?rev=1.1&view=markup |
367 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.3.ebuild?rev=1.1&content-type=text/plain |
368 |
|
369 |
Index: postgresql-base-9.0.3.ebuild |
370 |
=================================================================== |
371 |
# Copyright 1999-2011 Gentoo Foundation |
372 |
# Distributed under the terms of the GNU General Public License v2 |
373 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.3.ebuild,v 1.1 2011/01/31 17:44:01 patrick Exp $ |
374 |
|
375 |
EAPI="2" |
376 |
|
377 |
WANT_AUTOMAKE="none" |
378 |
|
379 |
inherit eutils multilib versionator autotools |
380 |
|
381 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
382 |
|
383 |
DESCRIPTION="PostgreSQL libraries and clients" |
384 |
HOMEPAGE="http://www.postgresql.org/" |
385 |
|
386 |
MY_PV=${PV/_/} |
387 |
SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2" |
388 |
S=${WORKDIR}/postgresql-${MY_PV} |
389 |
|
390 |
LICENSE="POSTGRESQL" |
391 |
SLOT="$(get_version_component_range 1-2)" |
392 |
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" |
393 |
IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" |
394 |
|
395 |
for lingua in ${LINGUAS}; do |
396 |
IUSE+=" linguas_${lingua}" |
397 |
done |
398 |
|
399 |
RESTRICT="test" |
400 |
|
401 |
wanted_languages() { |
402 |
local enable_langs |
403 |
|
404 |
for lingua in ${LINGUAS} ; do |
405 |
use linguas_${lingua} && enable_langs+="${lingua} " |
406 |
done |
407 |
|
408 |
echo -n ${enable_langs} |
409 |
} |
410 |
|
411 |
RDEPEND="!!dev-db/postgresql-libs |
412 |
!!dev-db/postgresql-client |
413 |
!!dev-db/libpq |
414 |
!!dev-db/postgresql |
415 |
>=app-admin/eselect-postgresql-0.3 |
416 |
virtual/libintl |
417 |
kerberos? ( virtual/krb5 ) |
418 |
ldap? ( net-nds/openldap ) |
419 |
pam? ( virtual/pam ) |
420 |
readline? ( sys-libs/readline ) |
421 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
422 |
zlib? ( sys-libs/zlib )" |
423 |
DEPEND="${RDEPEND} |
424 |
sys-devel/bison |
425 |
sys-devel/flex |
426 |
nls? ( sys-devel/gettext )" |
427 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
428 |
|
429 |
src_prepare() { |
430 |
epatch "${FILESDIR}/postgresql-9.0-common.3.patch" \ |
431 |
"${FILESDIR}/postgresql-${SLOT}-base.3.patch" |
432 |
|
433 |
# to avoid collision - it only should be installed by server |
434 |
rm "${S}/src/backend/nls.mk" |
435 |
|
436 |
# because psql/help.c includes the file |
437 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
438 |
|
439 |
eautoconf |
440 |
} |
441 |
|
442 |
src_configure() { |
443 |
export LDFLAGS_SL="${LDFLAGS}" |
444 |
econf \ |
445 |
--prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
446 |
--datadir=/usr/share/postgresql-${SLOT} \ |
447 |
--docdir=/usr/share/doc/postgresql-${SLOT} \ |
448 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
449 |
--includedir=/usr/include/postgresql-${SLOT} \ |
450 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
451 |
--enable-depend \ |
452 |
--without-tcl \ |
453 |
--without-perl \ |
454 |
--without-python \ |
455 |
$(use_with readline) \ |
456 |
$(use_with kerberos krb5) \ |
457 |
$(use_with kerberos gssapi) \ |
458 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
459 |
$(use_with pam) \ |
460 |
$(use_enable !pg_legacytimestamp integer-datetimes) \ |
461 |
$(use_with ssl openssl) \ |
462 |
$(use_enable threads thread-safety) \ |
463 |
$(use_with zlib) \ |
464 |
$(use_with ldap) |
465 |
} |
466 |
|
467 |
src_compile() { |
468 |
emake || die "emake failed" |
469 |
|
470 |
cd "${S}/contrib" |
471 |
emake || die "emake failed" |
472 |
} |
473 |
|
474 |
src_install() { |
475 |
emake DESTDIR="${D}" install || die "emake install failed" |
476 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
477 |
doins "${S}"/src/include/postmaster/*.h || die |
478 |
|
479 |
dodir /usr/share/postgresql-${SLOT}/man/man1/ || die |
480 |
cp "${S}"/doc/src/sgml/man1/* "${D}"/usr/share/postgresql-${SLOT}/man/man1/ || die |
481 |
|
482 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
483 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} || die |
484 |
|
485 |
cd "${S}/contrib" |
486 |
emake DESTDIR="${D}" install || die "emake install failed" |
487 |
cd "${S}" |
488 |
|
489 |
dodir /etc/eselect/postgresql/slots/${SLOT} || die |
490 |
|
491 |
IDIR="/usr/include/postgresql-${SLOT}" |
492 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
493 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
494 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
495 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
496 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
497 |
postgres_symlinks=( |
498 |
${IDIR} /usr/include/postgresql |
499 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
500 |
${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h |
501 |
${IDIR}/libpq /usr/include/libpq |
502 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
503 |
) |
504 |
__EOF__ |
505 |
|
506 |
cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ |
507 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
508 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
509 |
__EOF__ |
510 |
doenvd "${T}/50postgresql-94-${SLOT}" || die |
511 |
|
512 |
keepdir /etc/postgresql-${SLOT} || die |
513 |
} |
514 |
|
515 |
pkg_postinst() { |
516 |
eselect postgresql update |
517 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
518 |
elog "If you need a global psqlrc-file, you can place it in:" |
519 |
elog " '${ROOT}/etc/postgresql-${SLOT}/'" |
520 |
elog |
521 |
} |
522 |
|
523 |
pkg_postrm() { |
524 |
eselect postgresql update |
525 |
} |
526 |
|
527 |
|
528 |
|
529 |
1.1 dev-db/postgresql-base/postgresql-base-8.4.7.ebuild |
530 |
|
531 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.7.ebuild?rev=1.1&view=markup |
532 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.7.ebuild?rev=1.1&content-type=text/plain |
533 |
|
534 |
Index: postgresql-base-8.4.7.ebuild |
535 |
=================================================================== |
536 |
# Copyright 1999-2011 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.4.7.ebuild,v 1.1 2011/01/31 17:44:01 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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
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 readline ssl threads zlib ldap pg_legacytimestamp ${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 |
|
592 |
if use kerberos && has_version "<app-crypt/heimdal-1.3.2-r1" ; then |
593 |
epatch "${FILESDIR}/postgresql-base-8.4-9.0-heimdal_strlcpy.patch" |
594 |
fi |
595 |
|
596 |
# to avoid collision - it only should be installed by server |
597 |
rm "${S}/src/backend/nls.mk" |
598 |
|
599 |
# because psql/help.c includes the file |
600 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
601 |
|
602 |
eautoconf |
603 |
} |
604 |
|
605 |
src_configure() { |
606 |
export LDFLAGS_SL="${LDFLAGS}" |
607 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
608 |
--datadir=/usr/share/postgresql-${SLOT} \ |
609 |
--docdir=/usr/share/doc/postgresql-${SLOT} \ |
610 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
611 |
--includedir=/usr/include/postgresql-${SLOT} \ |
612 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
613 |
--enable-depend \ |
614 |
--without-tcl \ |
615 |
--without-perl \ |
616 |
--without-python \ |
617 |
$(use_with readline) \ |
618 |
$(use_with kerberos krb5) \ |
619 |
$(use_with kerberos gssapi) \ |
620 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
621 |
$(use_with pam) \ |
622 |
$(use_enable !pg_legacytimestamp integer-datetimes ) \ |
623 |
$(use_with ssl openssl) \ |
624 |
$(use_enable threads thread-safety) \ |
625 |
$(use_with zlib) \ |
626 |
$(use_with ldap) \ |
627 |
|| die "configure failed" |
628 |
} |
629 |
|
630 |
src_compile() { |
631 |
emake || die "emake failed" |
632 |
|
633 |
cd "${S}/contrib" |
634 |
emake || die "emake failed" |
635 |
} |
636 |
|
637 |
src_install() { |
638 |
emake DESTDIR="${D}" install || die "emake install failed" |
639 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
640 |
doins "${S}"/src/include/postmaster/*.h |
641 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
642 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
643 |
|
644 |
rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html" |
645 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
646 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
647 |
|
648 |
cd "${S}/contrib" |
649 |
emake DESTDIR="${D}" install || die "emake install failed" |
650 |
cd "${S}" |
651 |
|
652 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
653 |
|
654 |
IDIR="/usr/include/postgresql-${SLOT}" |
655 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
656 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
657 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
658 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
659 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
660 |
postgres_symlinks=( |
661 |
${IDIR} /usr/include/postgresql |
662 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
663 |
${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h |
664 |
${IDIR}/libpq /usr/include/libpq |
665 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
666 |
) |
667 |
__EOF__ |
668 |
|
669 |
cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ |
670 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
671 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
672 |
__EOF__ |
673 |
doenvd "${T}/50postgresql-94-${SLOT}" |
674 |
|
675 |
keepdir /etc/postgresql-${SLOT} |
676 |
} |
677 |
|
678 |
pkg_postinst() { |
679 |
eselect postgresql update |
680 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
681 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
682 |
} |
683 |
|
684 |
pkg_postrm() { |
685 |
eselect postgresql update |
686 |
} |