Hopefully fixes bug 341729
authorAaron Swenson <titanofold@gentoo.org>
Tue, 2 Aug 2011 02:51:02 +0000 (02:51 +0000)
committerAaron Swenson <titanofold@gentoo.org>
Tue, 2 Aug 2011 02:51:02 +0000 (02:51 +0000)
Package-Manager: portage-2.1.10.3/cvs/Linux i686

dev-db/postgresql-base/ChangeLog
dev-db/postgresql-base/Manifest
dev-db/postgresql-base/postgresql-base-8.2.21-r3.ebuild [new file with mode: 0644]
dev-db/postgresql-base/postgresql-base-8.3.15-r3.ebuild [new file with mode: 0644]
dev-db/postgresql-base/postgresql-base-8.4.8-r3.ebuild [new file with mode: 0644]
dev-db/postgresql-base/postgresql-base-9.0.4-r3.ebuild [new file with mode: 0644]
dev-db/postgresql-base/postgresql-base-9.1_beta3-r1.ebuild [new file with mode: 0644]

index f5033ab10c8fefd84b0e1ad4c35a7349aae67577..6455fef5832137b68ab7a9876a4bffb7dbc3f747 100644 (file)
@@ -1,6 +1,18 @@
 # ChangeLog for dev-db/postgresql-base
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.130 2011/07/23 17:04:54 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.131 2011/08/02 02:51:02 titanofold Exp $
+
+*postgresql-base-9.1_beta3-r1 (02 Aug 2011)
+*postgresql-base-9.0.4-r3 (02 Aug 2011)
+*postgresql-base-8.4.8-r3 (02 Aug 2011)
+*postgresql-base-8.3.15-r3 (02 Aug 2011)
+*postgresql-base-8.2.21-r3 (02 Aug 2011)
+
+  02 Aug 2011; Aaron W. Swenson <titanofold@gentoo.org>
+  +postgresql-base-8.2.21-r3.ebuild, +postgresql-base-8.3.15-r3.ebuild,
+  +postgresql-base-8.4.8-r3.ebuild, +postgresql-base-9.0.4-r3.ebuild,
+  +postgresql-base-9.1_beta3-r1.ebuild:
+  Hopefully fixes bug 341729
 
   23 Jul 2011; Aaron W. Swenson <titanofold@gentoo.org>
   -postgresql-base-8.2.21-r1.ebuild, -postgresql-base-8.3.15-r1.ebuild,
index 9cd1041c55f2a3f3a69beb6ca90e8fd5e86e2013..b0d636e45fe2407fe1c5b2efc0ba38dd078ef315 100644 (file)
@@ -27,29 +27,39 @@ DIST postgresql-9.0.4.tar.bz2 14040871 RMD160 0f11efb7634b9acb2080d07771c0355a3b
 DIST postgresql-9.1beta1.tar.bz2 14384089 RMD160 ab0f0b12e45ac291b03ed9a4a82d72ad3e88343a SHA1 165d1cad5629c51bcc0a876d8c43b5a016a07448 SHA256 1b7dcabe7826b9e5111754aa92c0ad68015047bf26f0dc8e98f7a77af2913adb
 DIST postgresql-9.1beta2.tar.bz2 14767102 RMD160 e1d884838772c2e7208b1afcf0e24dd060cd8284 SHA1 f1105f5185f0cd1c5159bc37dccdaa42d3f8255b SHA256 56607a2707f3ffd76eb622401e40292cf3e027b93639c6e0f065020d8adee5ca
 DIST postgresql-9.1beta3.tar.bz2 14773133 RMD160 3582981068dde58abc7d43d3bb39c7517a41d51a SHA1 62dac43b151619aae3e40acd86feb3f34f79f027 SHA256 05bcb16dcd22e58a56ca25e30bbc81177e08c309b961fa36e9a4ec7a99949bd1
+DIST postgresql-patches-8.2-r1.tbz2 4859 RMD160 864f166e01219b1f8f9ca2732a1d6b9c6de0cf7f SHA1 27977244ef48cb1a232542657d76267faa7e9d3d SHA256 7b9f46ca16d7adf29cfd2a3f57f2b54bbf349b4dbbe679f4e31302376bda51cf
 DIST postgresql-patches-8.2.tbz2 4640 RMD160 d00ff2f4e573ba33bb77cb39374d20d28cd8e771 SHA1 e69fc03250a360d8b9bfed047c8ed6c18a8d7c9d SHA256 00bc4a97e0270310117d9114da7c5540aa990619d85670d871f7208c28703f42
+DIST postgresql-patches-8.3-r1.tbz2 5491 RMD160 6a05ec9a9c0dd587cc86e7684a353cb5e3cd7fa3 SHA1 a60e5f813e77f8b1edc9483f62e067b04457fb1d SHA256 522d4563f2e5fa857751091d1344799d8e22846de20c4fb360a7451d746fd176
 DIST postgresql-patches-8.3.tbz2 5274 RMD160 b12f362a9f6795ef2180d2e9f09b049fffb328e8 SHA1 de6aba5ee191995758f79844b748d067ea8a8707 SHA256 fb29b45e6cdb58ed46a035e946e1e15c58fdf61328ab55fe81de88c96a352cc2
+DIST postgresql-patches-8.4-r1.tbz2 4826 RMD160 4cd4d9e890ef9010c89d88944a75bf6482b18742 SHA1 0ce0eefcc64b506b612b4da9e74fb8127dc514cb SHA256 00b915c2232c0f5c0a4fbcfbc66cff451429d544a2658aec6900858fb4c7224a
 DIST postgresql-patches-8.4.tbz2 4615 RMD160 ce13939969e19125099afcf8629b5f0955d83788 SHA1 381913b49dd2c9a5c6b105b6f45cc7b2784bb55b SHA256 6173fbc38d7eef912b51501f155f1c35a2dd891c4d4f31dd9758243e5becade8
+DIST postgresql-patches-9.0-r2.tbz2 4527 RMD160 781181b32326e0e2dd4e0624b78604cc4c8bf4c7 SHA1 3f3ebbb2ad83a4a8d94ebe05c23d7d753835ac86 SHA256 c7f5e77d16ecc384a8b7802ac2c35ed5b0de68f3dc30cb767a96b49501f8219f
 DIST postgresql-patches-9.0.tbz2 4306 RMD160 225f3d9af435d2628b9841619589af4472049ad7 SHA1 b8492037190382c0fba851f85945bdba643f2a2f SHA256 b8e35bf966caa3e434d4b76527a0b234658db6b3a82e6c3486731ed618a839a9
 DIST postgresql-patches-9.1beta2-r1.tbz2 4365 RMD160 9035223b33e3096ec58db767446aecd8c8a241e0 SHA1 36495d6716646bcc622a246e9e8f0e2f10686a5c SHA256 3cee8c6b8b2aab765bc8d9ebf75f97a4428baae0cd9b2610b03d019b68f7931e
+DIST postgresql-patches-9.1beta3-r1.tbz2 4648 RMD160 9c98d2d5c0691618dc8aa86a5abdd956d2232fe6 SHA1 2fb476ac25a1263e0a14db4dbb8937002da31880 SHA256 db0a0ed4047181951dafdf72055f7c18ffd0b1ad63930aa839a437e5c16395cc
 DIST postgresql-patches-9.1beta3.tbz2 4421 RMD160 b9a95839861a5c0ecfcd9a0573bd080f17e0fc53 SHA1 e9cf9232825811eb20ad8323360cc82ad5a971f0 SHA256 a02be062a773e26adbe22616dabc8b78421d404964820ef885dea5540111b5ae
 EBUILD postgresql-base-8.2.20.ebuild 4534 RMD160 91df15e17b9a0d5dad60decc95def78fc077248b SHA1 1cc1620f2b8423b4921e9a9894ff2902bb020800 SHA256 89553d881551507928cce6b828a565cefaf6080c7f029e3e6494f6324f5d93d5
 EBUILD postgresql-base-8.2.21-r2.ebuild 3805 RMD160 7ebc7899be97e9228dad18940899531068113701 SHA1 34ffc07d7bfa782cd8fdd86d3f52cddb125187be SHA256 3d6ff7212cfb26cd65762766b8d12b0fc6ffe6bb8bb10f4398ee63e23954f055
+EBUILD postgresql-base-8.2.21-r3.ebuild 3761 RMD160 98477fde31ff7a22ba33280bde7252a7cb3d58b9 SHA1 0f1e4d6c856d18c0fe543fb8e0321581ac72c87e SHA256 2e85aac56aa047070ed92f137874b6e737dcf0da030f1e4190f7d278156fab21
 EBUILD postgresql-base-8.3.14.ebuild 4600 RMD160 7d6e89b8242016be1f9f718bc1a65dee22ec4817 SHA1 e0a2a48b13f4d20ee231c17f92e269ecc797370d SHA256 4f435a5e8bd3c958edd3284fe611920762253f794ca8728cb569198670515dc7
 EBUILD postgresql-base-8.3.15-r2.ebuild 3919 RMD160 86be9bbd9065f1d44e1eed5b81e603eeb32e9fa4 SHA1 bd3ab4a4dd786725a1d5b4b5d1cb570d4de98f4f SHA256 1455d834cb8db9a0eeb4ace30f54b1781c366c79edb390f97a54aa57c6c9bcb7
+EBUILD postgresql-base-8.3.15-r3.ebuild 3877 RMD160 bdf2d804ff2ee81f997d428ff31350c8a7992769 SHA1 c5be45862e80d139feccd8ecf9464abf777433e1 SHA256 5d4ba15966b0f9d1c5e1fac7f09f65d2c58273c40d17d5c55121113306ed2fb6
 EBUILD postgresql-base-8.4.7.ebuild 4715 RMD160 2241df78cd2c80d49bd136521a984434772fb01e SHA1 27fccf76ac58a1a103bf2e9d6555bd92776cf993 SHA256 21120f15f2f8661a7eb3ce00c165002a944b5a5b051c14f65eee718ad1f56012
 EBUILD postgresql-base-8.4.8-r2.ebuild 3853 RMD160 d2f000da1a6876a3d2de561d7505b175be0fb629 SHA1 a859ced285b8504cc63356cc86238ca021e0f85f SHA256 27ff2c57c58bc6a783caa5f46f6f2a6334139970f73c1edfc774327ca2c19ea0
+EBUILD postgresql-base-8.4.8-r3.ebuild 3878 RMD160 c00eb5f6141ff3d286c6337a537ef89c5396408e SHA1 54fb3dfd29c123e2dbf44f22d94fa7e83f1b5922 SHA256 14b1c0b39a6b0211cc60b97ddf676b4cf3d132fdff070509ce6f99ec07163895
 EBUILD postgresql-base-9.0.3.ebuild 4490 RMD160 2d3b32cc159fad56dd1e0aa96fb43f45417c1a00 SHA1 fc0da39210ac50efa19b00b7c46f965d7f938b6e SHA256 1a034e639b76df1aad6e6c4fc865a1da914b5525b56a3bc2e2d9de773b9dc56f
 EBUILD postgresql-base-9.0.4-r2.ebuild 4044 RMD160 e29fe8b1a056f5392d1355dc00d51dd0d5a12a29 SHA1 18c9ead2584edff0b397c84e6542a93f21583837 SHA256 ebdea8ec5790da8850a762babff513f413080084562d86a14d0b60a97404c49f
+EBUILD postgresql-base-9.0.4-r3.ebuild 4032 RMD160 866e77312a3e3dd6abeb7aef7da45709304e3f08 SHA1 2fef8fe72de4c2bb87f011027d4da227501a4b26 SHA256 4c464e5f67511b18aede00b6f56215b3ef00c979b6101d7618242ecdc7e695db
 EBUILD postgresql-base-9.1_beta1-r3.ebuild 4156 RMD160 e4704321dd43e4cdadc106d53437ebe4a419f62a SHA1 74e7713083ddd47d3a1f2841480f3c8d2b825d83 SHA256 8b30e0df595c94175813249267a11fa1493b1b97fa5c5684b5e477c8c21c3b67
 EBUILD postgresql-base-9.1_beta2-r1.ebuild 4160 RMD160 2023f8c42ffa228009c61c2b08cc686db5f56d97 SHA1 2ea66634cd63592a3d89525dc83a070c1e16b00d SHA256 c85be11e1100cce908d1b053c349a62a4a86b7296f5b273e57c6fa9bf4860ffb
+EBUILD postgresql-base-9.1_beta3-r1.ebuild 4123 RMD160 60238aee1c3403db0e75745e984c1d0b0cea245a SHA1 f02552ba2acac11aaf16cfca8295f6b873245fa3 SHA256 3c3a9efb4ba906010c569c20e15c5e8c8c1e9a9aef442c1613cd58268d522705
 EBUILD postgresql-base-9.1_beta3.ebuild 4174 RMD160 6c2b958a8b401bdec99eff77f8b45384a9652800 SHA1 8a40116313d52c7926187a62d5d9d7c3fcbbcd5c SHA256 d94f8ce174850abeba3b89c9c505821c956168524815c2ac97fa852158aeb296
-MISC ChangeLog 36699 RMD160 e31aeb4183bfda83e12b24b72f8df8b2c5c541a3 SHA1 c505cfd8f1fee304a9ab98052c87cff9d1484299 SHA256 5eb88813783c2bbe4b57e1ef1a2196b3b4986c4ab53990ef7986f800818ddd3d
+MISC ChangeLog 37174 RMD160 4adc4e5551d0111c2d065a93751ee76cba26f832 SHA1 c3ee9caad5d53e0d548baa63e7dbad060182add6 SHA256 85f2ed9519a0d251b528ca4f39faec5f51e4fb469509304f04d89fbdf6c7269c
 MISC metadata.xml 472 RMD160 fe3dc42a49cd1445788d023578d878c6226c72e0 SHA1 f03eda301fc89bf31cfb64bb6cc2cc4ca33cb632 SHA256 ee20753f4083988318c4c30155901e99a800dc8fb19fd77c80f9947c72abbf4c
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (GNU/Linux)
 
-iF4EAREIAAYFAk4q/zwACgkQCOhwUhu5AEn5IwD+OfKM3QOAfIg+VMn5FsN4yM/f
-fFFhxgzbWd8pze3Za60A/0xVeofdtOhakf36wOHNl2BNNcVQTlcthhTD796B31rV
-=BAA/
+iF4EAREIAAYFAk43ZiAACgkQCOhwUhu5AElDGAD8Ce8hZE8ipF1s5baokgFUByY8
+cXBpHyPbHnTqXzBoqyMBAJsevHLyUBp2huePUeFftDRqctOBaUSGiAWtChzPP0jb
+=dk+L
 -----END PGP SIGNATURE-----
diff --git a/dev-db/postgresql-base/postgresql-base-8.2.21-r3.ebuild b/dev-db/postgresql-base/postgresql-base-8.2.21-r3.ebuild
new file mode 100644 (file)
index 0000000..c636f30
--- /dev/null
@@ -0,0 +1,140 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.21-r3.ebuild,v 1.1 2011/08/02 02:51:02 titanofold Exp $
+
+EAPI="4"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+                http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2"
+LICENSE="POSTGRESQL"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+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"
+IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib"
+
+for lingua in ${LINGUAS} ; do
+       IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+       local enable_langs
+
+       for lingua in ${LINGUAS} ; do
+               use linguas_${lingua} && enable_langs+="${lingua} "
+       done
+
+       echo -n ${enable_langs}
+}
+
+RDEPEND=">=app-admin/eselect-postgresql-1.0.10
+                virtual/libintl
+                !!dev-db/libpq
+                !!dev-db/postgresql
+                !!dev-db/postgresql-client
+                !!dev-db/postgresql-libs
+                kerberos? ( virtual/krb5 )
+                ldap? ( net-nds/openldap )
+                pam? ( virtual/pam )
+                readline? ( >=sys-libs/readline-4.1 )
+                ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+                zlib? ( >=sys-libs/zlib-1.1.3 )"
+
+DEPEND="${RDEPEND}
+               >=sys-apps/sandbox-2.0
+               >=sys-devel/bison-1.875
+               sys-devel/flex
+               nls? ( sys-devel/gettext )"
+
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+       epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
+               "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \
+               "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch"
+
+       eprefixify src/include/pg_config_manual.h
+
+       # to avoid collision - it only should be installed by server
+       rm "${S}/src/backend/nls.mk"
+
+       # because psql/help.c includes the file
+       ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
+
+       eautoconf
+}
+
+src_configure() {
+       export LDFLAGS_SL="${LDFLAGS}"
+       local PO="${EPREFIX%/}"
+       econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
+               --datadir="${PO}/usr/share/postgresql-${SLOT}" \
+               --includedir="${PO}/usr/include/postgresql-${SLOT}" \
+               --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
+               --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
+               --without-docdir \
+               --without-perl \
+               --without-python \
+               --without-tcl \
+               $(use_with kerberos krb5) \
+               $(use_with ldap) \
+               "$(use_enable nls nls "$(wanted_languages)")" \
+               $(use_with pam) \
+               $(use_enable pg-intdatetime integer-datetimes ) \
+               $(use_with readline) \
+               $(use_with ssl openssl) \
+               $(use_enable threads thread-safety) \
+               $(use_with zlib)
+}
+
+src_compile() {
+       emake
+
+       cd "${S}/contrib"
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       insinto /usr/include/postgresql-${SLOT}/postmaster
+       doins "${S}"/src/include/postmaster/*.h
+
+       rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
+       docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
+       dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+       cd "${S}/contrib"
+       emake DESTDIR="${D}" install
+       cd "${S}"
+
+       dodir /etc/eselect/postgresql/slots/${SLOT}
+
+       echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
+               > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
+
+       keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+       postgresql-config update
+
+       elog "If you need a global psqlrc-file, you can place it in:"
+       elog "    ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+       postgresql-config update
+}
diff --git a/dev-db/postgresql-base/postgresql-base-8.3.15-r3.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.15-r3.ebuild
new file mode 100644 (file)
index 0000000..b9f3b11
--- /dev/null
@@ -0,0 +1,143 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.15-r3.ebuild,v 1.1 2011/08/02 02:51:02 titanofold Exp $
+
+EAPI="4"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+                http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2"
+LICENSE="POSTGRESQL"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+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"
+IUSE="doc kerberos ldap nls pam pg-intdatetime readline ssl threads zlib"
+
+for lingua in ${LINGUAS} ; do
+       IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+       local enable_langs
+
+       for lingua in ${LINGUAS} ; do
+               use linguas_${lingua} && enable_langs+="${lingua} "
+       done
+
+       echo -n ${enable_langs}
+}
+
+RDEPEND=">=app-admin/eselect-postgresql-1.0.10
+                virtual/libintl
+                !!dev-db/libpq
+                !!dev-db/postgresql
+                !!dev-db/postgresql-client
+                !!dev-db/postgresql-libs
+                kerberos? ( virtual/krb5 )
+                ldap? ( net-nds/openldap )
+                pam? ( virtual/pam )
+                readline? ( >=sys-libs/readline-4.1 )
+                ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+                zlib? ( >=sys-libs/zlib-1.1.3 )"
+
+DEPEND="${RDEPEND}
+               >=sys-apps/sandbox-2.0
+               >=sys-devel/bison-1.875
+               sys-devel/flex
+               nls? ( sys-devel/gettext )"
+
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+       epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
+               "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \
+               "${WORKDIR}/relax_ssl_perms.patch" "${WORKDIR}/SuperH.patch" \
+
+       eprefixify src/include/pg_config_manual.h
+
+       # to avoid collision - it only should be installed by server
+       rm "${S}/src/backend/nls.mk"
+
+       # because psql/help.c includes the file
+       ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
+
+       eautoconf
+}
+
+src_configure() {
+       export LDFLAGS_SL="${LDFLAGS}"
+       local PO="${EPREFIX%/}"
+       econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
+               --datadir="${PO}/usr/share/postgresql-${SLOT}" \
+               --includedir="${PO}/usr/include/postgresql-${SLOT}" \
+               --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
+               --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
+               --without-docdir \
+               --without-perl \
+               --without-python \
+               --without-tcl \
+               $(use_with kerberos krb5) \
+               $(use_with kerberos gssapi) \
+               $(use_with ldap) \
+               "$(use_enable nls nls "$(wanted_languages)")" \
+               $(use_with pam) \
+               $(use_enable pg-intdatetime integer-datetimes ) \
+               $(use_with readline) \
+               $(use_with ssl openssl) \
+               $(use_enable threads thread-safety) \
+               $(use_with zlib)
+}
+
+src_compile() {
+       emake
+
+       cd "${S}/contrib"
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       insinto /usr/include/postgresql-${SLOT}/postmaster
+       doins "${S}"/src/include/postmaster/*.h
+       dodir /usr/share/postgresql-${SLOT}/man/man1
+
+       rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
+       docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
+
+       dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+       cd "${S}/contrib"
+       emake DESTDIR="${D}" install
+       cd "${S}"
+
+       dodir /etc/eselect/postgresql/slots/${SLOT}
+
+       echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
+               > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
+
+       keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+       postgresql-config update
+
+       elog "If you need a global psqlrc-file, you can place it in:"
+       elog "    ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+       postgresql-config update
+}
diff --git a/dev-db/postgresql-base/postgresql-base-8.4.8-r3.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.8-r3.ebuild
new file mode 100644 (file)
index 0000000..fa09b79
--- /dev/null
@@ -0,0 +1,143 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.8-r3.ebuild,v 1.1 2011/08/02 02:51:02 titanofold Exp $
+
+EAPI="4"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+                http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2"
+LICENSE="POSTGRESQL"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+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"
+IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib"
+
+for lingua in ${LINGUAS} ; do
+       IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+       local enable_langs
+
+       for lingua in ${LINGUAS} ; do
+               use linguas_${lingua} && enable_langs+="${lingua} "
+       done
+
+       echo -n ${enable_langs}
+}
+
+RDEPEND=">=app-admin/eselect-postgresql-1.0.7
+                virtual/libintl
+                !!dev-db/libpq
+                !!dev-db/postgresql
+                !!dev-db/postgresql-client
+                !!dev-db/postgresql-libs
+                kerberos? ( virtual/krb5 )
+                ldap? ( net-nds/openldap )
+                pam? ( virtual/pam )
+                readline? ( >=sys-libs/readline-4.1 )
+                ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+                zlib? ( >=sys-libs/zlib-1.1.3 )"
+
+DEPEND="${RDEPEND}
+               >=sys-apps/sandbox-2.0
+               >=sys-devel/bison-1.875
+               sys-devel/flex
+               nls? ( sys-devel/gettext )"
+
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+       epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
+               "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \
+               "${WORKDIR}/SuperH.patch"
+
+       eprefixify src/include/pg_config_manual.h
+
+       # to avoid collision - it only should be installed by server
+       rm "${S}/src/backend/nls.mk"
+
+       # because psql/help.c includes the file
+       ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
+
+       eautoconf
+}
+
+src_configure() {
+       export LDFLAGS_SL="${LDFLAGS}"
+       local PO="${EPREFIX%/}"
+       econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
+               --datadir="${PO}/usr/share/postgresql-${SLOT}" \
+               --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
+               --includedir="${PO}/usr/include/postgresql-${SLOT}" \
+               --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
+               --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
+               --without-tcl \
+               --without-perl \
+               --without-python \
+               $(use_with kerberos krb5) \
+               $(use_with kerberos gssapi) \
+               $(use_with ldap) \
+               "$(use_enable nls nls "$(wanted_languages)")" \
+               $(use_with pam) \
+               $(use_enable !pg_legacytimestamp integer-datetimes ) \
+               $(use_with readline) \
+               $(use_with ssl openssl) \
+               $(use_enable threads thread-safety) \
+               $(use_with zlib)
+}
+
+src_compile() {
+       emake
+
+       cd "${S}/contrib"
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       insinto /usr/include/postgresql-${SLOT}/postmaster
+       doins "${S}"/src/include/postmaster/*.h
+
+       rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html"
+       rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
+       docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
+
+       dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+       cd "${S}/contrib"
+       emake DESTDIR="${D}" install
+       cd "${S}"
+
+       dodir /etc/eselect/postgresql/slots/${SLOT}
+
+       echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
+               > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
+
+       keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+       postgresql-config update
+
+       elog "If you need a global psqlrc-file, you can place it in:"
+       elog "    ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+       postgresql-config update
+}
diff --git a/dev-db/postgresql-base/postgresql-base-9.0.4-r3.ebuild b/dev-db/postgresql-base/postgresql-base-9.0.4-r3.ebuild
new file mode 100644 (file)
index 0000000..5a804aa
--- /dev/null
@@ -0,0 +1,149 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.4-r3.ebuild,v 1.1 2011/08/02 02:51:02 titanofold Exp $
+
+EAPI="4"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils flag-o-matic multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+                http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r2.tbz2"
+LICENSE="POSTGRESQL"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+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"
+IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib"
+
+for lingua in ${LINGUAS} ; do
+       IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+       local enable_langs
+
+       for lingua in ${LINGUAS} ; do
+               use linguas_${lingua} && enable_langs+="${lingua} "
+       done
+
+       echo -n ${enable_langs}
+}
+
+RDEPEND=">=app-admin/eselect-postgresql-1.0.7
+                virtual/libintl
+                !!dev-db/libpq
+                !!dev-db/postgresql
+                !!dev-db/postgresql-client
+                !!dev-db/postgresql-libs
+                kerberos? ( virtual/krb5 )
+                ldap? ( net-nds/openldap )
+                pam? ( virtual/pam )
+                readline? ( sys-libs/readline )
+                ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+                zlib? ( sys-libs/zlib )"
+
+DEPEND="${RDEPEND}
+               sys-devel/bison
+               sys-devel/flex
+               >=sys-apps/sandbox-2.0
+               nls? ( sys-devel/gettext )"
+
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+       epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
+               "${WORKDIR}/bool.patch"
+
+       eprefixify src/include/pg_config_manual.h
+
+       # to avoid collision - it only should be installed by server
+       rm "${S}/src/backend/nls.mk"
+
+       # because psql/help.c includes the file
+       ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
+
+       eautoconf
+}
+
+src_configure() {
+       case ${CHOST} in
+               *-darwin*|*-solaris*)
+                       use nls && append-libs intl
+               ;;
+       esac
+       export LDFLAGS_SL="${LDFLAGS}"
+       export LDFLAGS_EX="${LDFLAGS}"
+       local PO="${EPREFIX%/}"
+       econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
+               --datadir="${PO}/usr/share/postgresql-${SLOT}" \
+               --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
+               --includedir="${PO}/usr/include/postgresql-${SLOT}" \
+               --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
+               --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
+               --without-tcl \
+               --without-perl \
+               --without-python \
+               $(use_with kerberos krb5) \
+               $(use_with kerberos gssapi) \
+               $(use_with ldap) \
+               "$(use_enable nls nls "$(wanted_languages)")" \
+               $(use_with pam) \
+               $(use_enable !pg_legacytimestamp integer-datetimes) \
+               $(use_with readline) \
+               $(use_with ssl openssl) \
+               $(use_enable threads thread-safety) \
+               $(use_with zlib)
+}
+
+src_compile() {
+       emake
+
+       cd "${S}/contrib"
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       insinto /usr/include/postgresql-${SLOT}/postmaster
+       doins "${S}"/src/include/postmaster/*.h
+
+       dodir /usr/share/postgresql-${SLOT}/man/
+       cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
+       rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1
+       docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
+
+       dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+       cd "${S}/contrib"
+       emake DESTDIR="${D}" install
+       cd "${S}"
+
+       dodir /etc/eselect/postgresql/slots/${SLOT}
+
+       echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
+               > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
+
+       keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+       postgresql-config update
+
+       elog "If you need a global psqlrc-file, you can place it in:"
+       elog "    ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+       postgresql-config update
+}
diff --git a/dev-db/postgresql-base/postgresql-base-9.1_beta3-r1.ebuild b/dev-db/postgresql-base/postgresql-base-9.1_beta3-r1.ebuild
new file mode 100644 (file)
index 0000000..2b5bf28
--- /dev/null
@@ -0,0 +1,155 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1_beta3-r1.ebuild,v 1.1 2011/08/02 02:51:02 titanofold Exp $
+
+EAPI="4"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils flag-o-matic multilib prefix versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
+
+# Upstream doesn't have an underscore in the file name
+MY_PV=${PV/_/}
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2
+                http://dev.gentoo.org/~titanofold/postgresql-patches-${MY_PV}-r1.tbz2"
+LICENSE="POSTGRESQL"
+
+S="${WORKDIR}/postgresql-${MY_PV}"
+SLOT="$(get_version_component_range 1-2)"
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+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"
+IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib"
+
+for lingua in ${LINGUAS} ; do
+       IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+       local enable_langs
+
+       for lingua in ${LINGUAS} ; do
+               use linguas_${lingua} && enable_langs+="${lingua} "
+       done
+
+       echo -n ${enable_langs}
+}
+
+RDEPEND="!!dev-db/libpq
+                !!dev-db/postgresql
+                !!dev-db/postgresql-client
+                !!dev-db/postgresql-libs
+                >=app-admin/eselect-postgresql-1.0.10
+                virtual/libintl
+                kerberos? ( virtual/krb5 )
+                ldap? ( net-nds/openldap )
+                pam? ( virtual/pam )
+                readline? ( sys-libs/readline )
+                ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+                zlib? ( sys-libs/zlib )
+"
+
+DEPEND="${RDEPEND}
+               >=sys-apps/sandbox-2.0
+               sys-devel/bison
+               sys-devel/flex
+               nls? ( sys-devel/gettext )
+"
+
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+       epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
+               "${WORKDIR}/bool.patch"
+
+       eprefixify src/include/pg_config_manual.h
+
+       # to avoid collision - it only should be installed by server
+       rm "${S}/src/backend/nls.mk"
+
+       # because psql/help.c includes the file
+       ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
+
+       eautoconf
+}
+
+src_configure() {
+       case ${CHOST} in
+               *-darwin*|*-solaris*)
+                       use nls && append-libs intl
+                       ;;
+       esac
+
+       export LDFLAGS_SL="${LDFLAGS}"
+       export LDFLAGS_EX="${LDFLAGS}"
+
+       local PO="${EPREFIX%/}"
+
+       econf \
+               --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
+               --datadir="${PO}/usr/share/postgresql-${SLOT}" \
+               --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
+               --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
+               --includedir="${PO}/usr/include/postgresql-${SLOT}" \
+               --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
+               --without-tcl \
+               --without-perl \
+               --without-python \
+               $(use_with readline) \
+               $(use_with kerberos krb5) \
+               $(use_with kerberos gssapi) \
+               "$(use_enable nls nls "$(wanted_languages)")" \
+               $(use_with pam) \
+               $(use_enable !pg_legacytimestamp integer-datetimes) \
+               $(use_with ssl openssl) \
+               $(use_enable threads thread-safety) \
+               $(use_with zlib) \
+               $(use_with ldap)
+}
+
+src_compile() {
+       emake -j1
+
+       cd "${S}/contrib"
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       insinto /usr/include/postgresql-${SLOT}/postmaster
+       doins "${S}"/src/include/postmaster/*.h
+
+       dodir /usr/share/postgresql-${SLOT}/man/
+       cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
+       rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
+       docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
+       dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+       cd "${S}/contrib"
+       emake DESTDIR="${D}" install
+       cd "${S}"
+
+       dodir /etc/eselect/postgresql/slots/${SLOT}
+       echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
+               "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
+
+       keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+       postgresql-config update
+
+       elog "If you need a global psqlrc-file, you can place it in:"
+       elog "    ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+       postgresql-config update
+}