ChangeLog

# ChangeLog for dev-db/postgresql-base
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.8 2008/06/14 10:42:50 dev-zero Exp $

*postgresql-base-7.4.21-r1 (14 Jun 2008)

14 Jun 2008; Tiziano Müller
-postgresql-base-7.4.21.ebuild, +postgresql-base-7.4.21-r1.ebuild,
postgresql-base-8.0.17.ebuild, postgresql-base-8.1.13.ebuild,
postgresql-base-8.2.9.ebuild, postgresql-base-8.3.3.ebuild:
Fixed 7.4.21 to install libpgport.a, don't install html-documentation
since provided by postgresql-doc (bug #225629).

*postgresql-base-8.3.3 (13 Jun 2008)
*postgresql-base-8.2.9 (13 Jun 2008)
*postgresql-base-8.1.13 (13 Jun 2008)
*postgresql-base-8.0.17 (13 Jun 2008)
*postgresql-base-7.4.21 (13 Jun 2008)

13 Jun 2008; Tiziano Müller
+files/postgresql-7.4.21-autoconf.patch,
+files/postgresql-8.0.15-common.patch, files/postgresql-8.0-common.patch,
+postgresql-base-7.4.21.ebuild, postgresql-base-8.0.15.ebuild,
+postgresql-base-8.0.17.ebuild, +postgresql-base-8.1.13.ebuild,
+postgresql-base-8.2.9.ebuild, +postgresql-base-8.3.3.ebuild:
Version bump (bug #226361)

04 Jun 2008; Tiziano Müller
postgresql-base-8.3.1.ebuild:
Re-added ~sparc-fbsd keyword since ossp-uuid got keyworded

04 Jun 2008; Tiziano Müller
postgresql-base-7.3.21.ebuild, postgresql-base-7.4.19.ebuild,
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild:
Added sys-devel/flex as a dependency (bug #221375 thanks to Flameeyes)

04 Jun 2008; Tiziano Müller
postgresql-base-7.3.21.ebuild, postgresql-base-7.4.19.ebuild,
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild:
Fixed bug #223189 (thanks to Jose Quinteiro)

19 May 2008; Tiziano Müller
postgresql-base-8.3.1.ebuild:
Keyworded for all archs having postgresql keyworded and have ossp-uuid
keyworded

19 Apr 2008; Tiziano Müller
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild:
Removed libedit USE-flag since I experienced memory leaks when having psql
linked against libedit.

*postgresql-base-8.3.1 (15 Apr 2008)
*postgresql-base-8.2.7 (15 Apr 2008)
*postgresql-base-8.1.11 (15 Apr 2008)
*postgresql-base-8.0.15 (15 Apr 2008)
*postgresql-base-7.4.19 (15 Apr 2008)
*postgresql-base-7.3.21 (15 Apr 2008)

15 Apr 2008; Tiziano Müller
+files/postgresql-7.3.21-autoconf.patch, +files/postgresql-7.3-base.patch,
+files/postgresql-7.4.19-autoconf.patch, +files/postgresql-7.4-base.patch,
+files/postgresql-7.4-common.patch, +files/postgresql-7.4-hppa.patch,
+files/postgresql-8.0-base.patch, +files/postgresql-8.0-common.patch,
+files/postgresql-8.1-base.patch, +files/postgresql-8.1-common.patch,
+files/postgresql-8.2-base.patch, +files/postgresql-8.2-common.patch,
+files/postgresql-8.3-base.patch, +files/postgresql-8.3-common.patch,
+files/postgresql-8.x-relax_ssl_perms.patch, +metadata.xml,
+postgresql-base-7.3.21.ebuild, +postgresql-base-7.4.19.ebuild,
+postgresql-base-8.0.15.ebuild, +postgresql-base-8.1.11.ebuild,
+postgresql-base-8.2.7.ebuild, +postgresql-base-8.3.1.ebuild:
Moved into the tree. Thanks to Michael Krelin (polyonymous).

10 Apr 2008; Tiziano Müller
postgresql-base-7.3.21.ebuild, postgresql-base-7.4.19.ebuild,
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild:
slot-files should be kept in /etc/eselect/postgresql/slots as from now.

07 Apr 2008; Tiziano Müller
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild,
+files/postgresql-8.x-relax_ssl_perms.patch:
Added patch to relax strict permission check on ssl key files (bug #210938).

07 Apr 2008; Tiziano Müller
files/postgresql-7.3-base.patch, files/postgresql-7.4-base.patch,
files/postgresql-8.0-base.patch, files/postgresql-8.1-base.patch,
files/postgresql-8.2-base.patch, files/postgresql-8.3-base.patch:
Standard location for unix domain socket changed to /var/run/postgresql

30 Mar 2008; Tiziano Müller
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild:
Added --with-thread-safety-force when building with threading-support to
skip the thread-safety-tests which randomly segfaults within the sandbox
(guessing that the case that someone has a strange system which reports
pthread-availability but in reality it isn't available is much less common
than that someone hits the mentioned bug). Added the option to use libedit
instead of readline for postgresql >=8.2.

27 Mar 2008; Tiziano Müller
postgresql-base-8.3.1.ebuild:
Added $(use_with kerberos gssapi)

19 Mar 2008; Tiziano Müller
postgresql-base-7.3.21.ebuild, postgresql-base-7.4.19.ebuild,
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.7.ebuild, postgresql-base-8.3.1.ebuild:
Changed deps again to allow libpq-99.99.99

19 Mar 2008; Tiziano Müller
-postgresql-base-8.2.6.ebuild, +postgresql-base-8.2.7.ebuild,
-postgresql-base-8.3.0.ebuild, +postgresql-base-8.3.1.ebuild:
Version bump.

15 Mar 2008; Tiziano Müller
postgresql-base-7.3.21.ebuild, files/postgresql-7.3-base.patch,
postgresql-base-7.4.19.ebuild, files/postgresql-7.4-base.patch,
-files/postgresql-7.4-libs.patch, postgresql-base-8.0.15.ebuild,
postgresql-base-8.1.11.ebuild, postgresql-base-8.3.0.ebuild:
Fixed the names of the env.d-files. Fixed postgresql-7.4-base by really
using the -base.patch now instead of -libs.patch which made the tests for
postgresql-7.4-server fail.

10 Mar 2008; Tiziano Müller
postgresql-base-7.3.21.ebuild, files/postgresql-7.3-base.patch,
postgresql-base-7.4.19.ebuild, files/postgresql-7.4-base.patch:
Removed initlocation manpage and pg_id.

10 Mar 2008; Tiziano Müller
files/postgresql-7.3-base.patch:
Fixed the patch.

10 Mar 2008; Tiziano Müller +metadata.xml:
Added metadata.xml

10 Mar 2008; Tiziano Müller
+postgresql-base-7.3.21.ebuild, +files/postgresql-7.3.21-autoconf.patch,
+files/postgresql-7.3-base.patch, postgresql-base-7.4.19.ebuild,
postgresql-base-8.0.15.ebuild, postgresql-base-8.1.11.ebuild,
postgresql-base-8.2.6.ebuild, postgresql-base-8.3.0.ebuild:
Added 7.3.21. Changed descriptions.

07 Mar 2008; Tiziano Müller
postgresql-base-7.4.19.ebuild, postgresql-base-8.0.15.ebuild,
postgresql-base-8.1.11.ebuild, postgresql-base-8.2.6.ebuild,
postgresql-base-8.3.0.ebuild:
Added blockers for various packages. Removed docs installation again (will
be done in dev-db/postgresql-docs).

05 Mar 2008; Tiziano Müller
postgresql-base-7.4.19.ebuild, postgresql-base-8.0.15.ebuild,
postgresql-base-8.1.11.ebuild, postgresql-base-8.2.6.ebuild,
postgresql-base-8.3.0.ebuild:
Added blockers for all kinds of postgresql-ebuilds (in-tree and overlay).

02 Mar 2008; Tiziano Müller
+files/postgresql-7.4.19-autoconf.patch, +files/postgresql-7.4-base.patch,
+files/postgresql-7.4-common.patch, +files/postgresql-7.4-hppa.patch,
+files/postgresql-7.4-libs.patch, +files/postgresql-8.0-base.patch,
+files/postgresql-8.0-common.patch, +files/postgresql-8.1-base.patch,
+files/postgresql-8.1-common.patch, files/postgresql-8.2-base.patch,
+files/postgresql-8.3-base.patch, +files/postgresql-8.3-common.patch,
+postgresql-base-7.4.19.ebuild, +postgresql-base-8.0.15.ebuild,
+postgresql-base-8.1.11.ebuild, postgresql-base-8.2.6.ebuild,
+postgresql-base-8.3.0.ebuild:
Added patches and ebuilds for 7.4, 8.0, 8.1 and 8.2. Still untested though.

24 Jan 2008; Tiziano Müller
+files/postgresql-8.2-base.patch, +files/postgresql-8.2-common.patch,
+postgresql-base-8.2.6.ebuild:
Initial commit.

Manifest

AUX postgresql-7.3-base.patch 3599 RMD160 eb858855aa5d29a9993d0387b5e554fbb00cfeb8 SHA1 5c73b367989f9d77e69dbcd052fd4d7568fd9a0d SHA256 1bb7aa4dda3f5c7c1c403d7a8e6b18d2a7a90891c44940cfd13ec3c0a984bff3
AUX postgresql-7.3.21-autoconf.patch 2141 RMD160 3bff01abeeeb094f04469960d4725c977657fb1c SHA1 aceb7ebafde14fde0efe6eefc68115fd8b4cb95a SHA256 9444af9ac2908f18fc69ef2db6fe78584384a46d28dd4c8af10740f9138796a8
AUX postgresql-7.4-base.patch 3666 RMD160 4e638b8af36565518234c92f13eb28a078d36021 SHA1 2ed85ec46df174e11d29b75a0da496c62fe652a8 SHA256 5a8ac202dbb71d9987550c002d071db824bbe7de4d8a4329dd5af3b10fca7997
AUX postgresql-7.4-common.patch 2640 RMD160 b25ba915d5d6ad9c12c1d51426363c196b830923 SHA1 7b946d57bfed34e2e7e1338c3ab3004341d7ab12 SHA256 36ca9cb4f26424c302fdd704b7c1a268e87612afa3006bf008d4594dabe080f8
AUX postgresql-7.4-hppa.patch 1433 RMD160 4c4021ab6654d4c131704d6def2b2d689df7f527 SHA1 2234eff32e0ae4bdecd4b21eb9f6c7be33023652 SHA256 4424694fecd4f16655cd5ff9603489fa644175ab344498040f2c88cb0962aa6b
AUX postgresql-7.4.19-autoconf.patch 1870 RMD160 92e49d3bc82ebfce6c798b4d56008da5c8f46d33 SHA1 a42d03a9c4d7b5df7a69a3d23c9e527c6d901eba SHA256 dccd9553b9cfdc88ffe98e445e27d1714426b4f1e6f405af438243ba06b93b6e
AUX postgresql-7.4.21-autoconf.patch 1870 RMD160 24606231223419721fa9ee6844c685368564f20c SHA1 50577930b75b4690c510132cce00475d4f3a13ab SHA256 e943c4ef9cb14fa064879c273ef5a064b5ce01b1d6af36057f0807d52eec0396
AUX postgresql-8.0-base.patch 3974 RMD160 c0f775009c6ac981959647fb6f223c84bba12ac1 SHA1 d40dc40c61f9357d096f2fa14717e95e60f49205 SHA256 0a5379ee350a591c2a094b7145d411a39fbf2294e6ca74bfbc037ba805cc2b76
AUX postgresql-8.0-common.patch 2294 RMD160 bbf24d2f0278618ec8a0eafbcbc1787adf4ff343 SHA1 5e421092c2cb12c1bd1f9639bd1a9bf1120d1ab0 SHA256 53069c1e90fd3ca37704183417e9240eae805aa3ad44533fd83b24640c7765fd
AUX postgresql-8.0.15-common.patch 2294 RMD160 4f0028f6b5e95d74328f2c3981aa558420739181 SHA1 be649bf09bd5082e6e2af58c44cc470456e37780 SHA256 eca25d56bd157a3a7883d4c4305e4e0b7d22b8dd0cbca93da88add24da28b681
AUX postgresql-8.1-base.patch 3846 RMD160 93f3b396158a03a7d4c9c2dc098491b349d24a91 SHA1 45e4a43039cfb683012653e6bf343e89f9d86415 SHA256 a4877b46d6c4f3421d8593973196862cf1790d7dce8485f207e0563531118d12
AUX postgresql-8.1-common.patch 2290 RMD160 ba1f803b045a8d3f430231b0c22b8817e2eb8cf6 SHA1 facf27b2c396fe9f2347eb4cec3b2714a8587b70 SHA256 f80c8dd5a31b88df330c15de4331db1600ae078a789650ab28d61620f27056f5
AUX postgresql-8.2-base.patch 4045 RMD160 3cad669ba0db500cd97b17dba376a554617670c4 SHA1 abd2e55ebd6b6d4c342a662b2f8772d02f8f6ed2 SHA256 4402e9d809bf0c994bcc1dea1f20002239799b626f7e494d4c38e6470a7e4010
AUX postgresql-8.2-common.patch 2640 RMD160 b25ba915d5d6ad9c12c1d51426363c196b830923 SHA1 7b946d57bfed34e2e7e1338c3ab3004341d7ab12 SHA256 36ca9cb4f26424c302fdd704b7c1a268e87612afa3006bf008d4594dabe080f8
AUX postgresql-8.3-base.patch 4130 RMD160 53cf20e4161ac9a9abd14c1a834f2e4508c5b44a SHA1 f58dbfde59f1543c8bd87527a1dfc3356c06db90 SHA256 a3bb8eca2d472a22d744a23d47d829b9931cd5bae2206e90d7e0fac4399927a5
AUX postgresql-8.3-common.patch 2641 RMD160 0822bf1512457e91d5f32f9d192de6f197db9c55 SHA1 e4bdbd5eee1023e8f0b42ef408b34b57495d1e2b SHA256 e416c26d9c3d266b306ddbc0a2b648054739b7ace35e2b4e449fbdaf094bc197
AUX postgresql-8.x-relax_ssl_perms.patch 764 RMD160 d1ce5164779c0b0c9229dc13d2eebe6b8c960616 SHA1 f28af41e549bbe3a0b4b8669a2762f71bf3e8a9e SHA256 98bc99954521db083320bd9a6b3a0a5d6eb960af3699527c16e53c567e22394a
DIST postgresql-7.3.21.tar.bz2 9284558 RMD160 f9de4676b4fbe3d96e6d1462b8bc3c05600d6525 SHA1 bdfa3bddc483c6642cc2ee271d076bfaa4c20c92 SHA256 bf44e0ac259e9f6e14ac102f2977496b6996ecea2fd227fbdcea5fa70e342888
DIST postgresql-7.4.19.tar.bz2 10307396 RMD160 c9a1c7dc8e7bf9ce93c3b4f061af0563b1cc2627 SHA1 19c563d47b0d5deeef03b5ca7707c9f1917853ce SHA256 447ac7070aa0a547f17a307e842734fc27e2716cb4a251fa9a810b178d44c389
DIST postgresql-7.4.21.tar.bz2 10282778 RMD160 b4868ac2664353b8cef4c67d59770f357293c865 SHA1 813895863832b5512838b90b2ea2300b74b856f5 SHA256 2c62d112a7addd4333d14101e508d2222a639e1698b8e4958ce1b05138f76932
DIST postgresql-8.0.15.tar.bz2 11253897 RMD160 6aff5c63dce73eea609f0b6e013cd043ae8b7a37 SHA1 66a6fef7749afb91471200005511c04fc1ac2706 SHA256 59408a00db1c73e638a11af10438a827507b7a72b53916d58f2d44c477718714
DIST postgresql-8.0.17.tar.bz2 11234855 RMD160 d22b26b38a91632b8840e9d0b1b96b4ad80eafed SHA1 d1c4530323a81b00a31003dea695875a8f87ff4f SHA256 e425602f60c034ecfd6ffe9b403d863cd99ff6fbc0891a8d59da33258a21a93b
DIST postgresql-8.1.11.tar.bz2 11735420 RMD160 9fb98eadc4f1015205970f26b31b68ea0378bda9 SHA1 73c0f09754fc8e3c7f8d7de49d70244b76927416 SHA256 3e91cdfc1353fa9c6416d9fc8ae9d6ab3171565f00aeb6c882214c2f08a03e2e
DIST postgresql-8.1.13.tar.bz2 11744780 RMD160 fe9fab1b70fa93b4dc0bd19f63a590f75511e79e SHA1 6d4b771aa4011fa3e8aed726f1521b77cd91772a SHA256 a537734da80f85c51ef72dd2d28bb2f64b73f63a727ef53a90211ccac2dcb1d1
DIST postgresql-8.2.7.tar.bz2 12576126 RMD160 96700e91c3b9e733c686b0fe377c7ba661710942 SHA1 0be0dbaa488810ebcba77ac7246180c5b2a9b669 SHA256 39528d1ba50f5abc51569e8b9bdeb47d0d4650d289a2c2e465621864b1ff3584
DIST postgresql-8.2.9.tar.bz2 12558265 RMD160 00fe295d928e77a2dff136795ba846ae3ac08569 SHA1 aeaf0487d031c56518af002f76f779c23baf6391 SHA256 95ea81e0fa00184a63dae960007be95200343b24dec6cdea41bc809db29f22c2
DIST postgresql-8.3.1.tar.bz2 13995572 RMD160 075efb67126f2b308d2a5fe4f9097fdbfbe94c89 SHA1 7397e0d8fd3c420ee845d9ae4995ae347bfaea1d SHA256 7ccf1e5c987920e4d6eb98b8589939e29d3a361d285055d5af35ddd8e1a2d992
DIST postgresql-8.3.3.tar.bz2 14004538 RMD160 8cc31cae862e328c8372245c8f953a1773dcc1f8 SHA1 b933f26a70bef9a5971c0ff2f392e293eed138b2 SHA256 e9406b93794dc4fd15b21e10512d2b694236d79b018d29b9ca86311d5cca2437
EBUILD postgresql-base-7.3.21.ebuild 4218 RMD160 5631b29631c2cd60c1fdaad9bda2b0ed95adef66 SHA1 c41c008bc7e1f49d22e623d66a698251365d1052 SHA256 65928ffb6f1b2c1027a60ae11996ac585f133d9e586ec65986d2bd4b58f05c85
EBUILD postgresql-base-7.4.19.ebuild 4407 RMD160 76525cdd0333394d0b1773b797503be3998b6e90 SHA1 3aab349310d844accfd793061cb4e563e1edda18 SHA256 da182b9ee44a4027fdfced6e2c62b2efa8116b75f9f6df1ad104e0d2aac87c0c
EBUILD postgresql-base-7.4.21-r1.ebuild 4574 RMD160 c444c51b4ad2b10b21b6dc62dbcd98aef44f32ee SHA1 7ecf0cec3850be462d8b1326f1e69ec4cb4a2a44 SHA256 f5d049aef08b9ae090f6e26dd369e68a566463dba0bab93c3e398d5099b88ccb
EBUILD postgresql-base-8.0.15.ebuild 4494 RMD160 c1ee041c3e1c6f2c851243d4b525169a3127ffad SHA1 828f74b9f4908dbb93240f10afef16d1088a7075 SHA256 8889899a94c9cb2f721c714ab5eafb272b57144724715259b3974ef99794e4e4
EBUILD postgresql-base-8.0.17.ebuild 4473 RMD160 fd5e01758fbb03b6f0051356ecad95594eaf3939 SHA1 ee7205257763526f6381a589464dfa8a8b5af1fc SHA256 c66a39d30f4f4609e4ec2484e10e7e24166415dbf4dd6fa3a784b87a4409e12c
EBUILD postgresql-base-8.1.11.ebuild 4491 RMD160 2ccab3e960b5443cc4a8af666175cd4a65a5f1af SHA1 2b3ef3029490aaadc47c6d18890b41456cf86f1c SHA256 c50f5c34972a0b010857ecc6477c3f0ea891d9dc277056f8ff63862ad1635422
EBUILD postgresql-base-8.1.13.ebuild 4473 RMD160 57e5a28eddfccad47129ce1dec83c66106ef41de SHA1 7435404400924ebf802a960333bfea754fded414 SHA256 9d7ed6811b28dc58409a774e05e0efac951f327a06b7c5a0096973f16eb1e5e0
EBUILD postgresql-base-8.2.7.ebuild 4600 RMD160 328a974cd40dec73b19c8be57b6f256e60b150e7 SHA1 53205c6e26497109a03ae6a20a0aec129fc6fa00 SHA256 6f360a81032a291037236056b43e849501f97435a22a16383d87fc4c96a55cbc
EBUILD postgresql-base-8.2.9.ebuild 4582 RMD160 82ff71c78e53fd4c9dc5a39ae0ddfc0323ecc3bd SHA1 725c299784b74f5ecc6b6b34358cd37d850682c8 SHA256 f404a3d6b8d2873f52820fae6c1a0fc0a987487a0c5b2479adb8a228267309f8
EBUILD postgresql-base-8.3.1.ebuild 4707 RMD160 18e5251bb1654d95dd440992fcaa3e51d39754b6 SHA1 14058c9560ed207db001dd3d6496296ebeddf4f6 SHA256 34b97372b5de92b92cae2dfc09d5d5d0d87ae60b4e770c4f73e27f36ea09901f
EBUILD postgresql-base-8.3.3.ebuild 4689 RMD160 dad2725dfafb1219c94c34912ad0dbb7c5e9c2e5 SHA1 cb3abc993c812e547cc572421e2d37e2c282dd12 SHA256 95e762fe07399dcad37343647187f1998f7152966dc543c07608d0d673dc5e61
MISC ChangeLog 8451 RMD160 8dd46cc83dda8d8467e44c5a6eca6824f232bd8e SHA1 27d528bdd6ac85115acfffd45ec85c6125b4dee8 SHA256 e841b396b102a688e8d03446ee3bf371518f1e0d20b2b5e93c839546427ef2be
MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b

files

metadata.xml




postgresql

postgresql-base-7.3.21.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.3.21.ebuild,v 1.3 2008/06/04 21:46:14 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_cs linguas_de linguas_es linguas_fr linguas_hr linguas_hu
linguas_pt_BR linguas_ru linguas_sv linguas_tr linguas_zh_CN
linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
>=sys-devel/bison-1.875
sys-devel/flex
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${PV}-autoconf.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch"

# to avoid collision - it only should be installed by server
rm "${S}/src/backend/nls.mk"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--host=${CHOST} \
--with-docdir=/usr/share/doc/${PF} \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,initlocation,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-99-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-99-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-7.4.19.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.19.ebuild,v 1.3 2008/06/04 21:46:14 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_cs linguas_de linguas_es linguas_fr linguas_hr linguas_hu
linguas_it linguas_nb linguas_pt_BR linguas_ru linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${PV}-autoconf.patch" \
"${FILESDIR}/postgresql-${SLOT}-hppa.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch"

# 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/"

eautoreconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--host=${CHOST} \
--with-docdir=/usr/share/doc/${PF} \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,initlocation,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-98-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-98-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-7.4.21-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.21-r1.ebuild,v 1.1 2008/06/14 10:42:50 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_cs linguas_de linguas_es linguas_fr linguas_hr linguas_hu
linguas_it linguas_nb linguas_pt_BR linguas_ru linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${PV}-autoconf.patch" \
"${FILESDIR}/postgresql-${SLOT}-hppa.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch"

# 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/"

eautoreconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--host=${CHOST} \
--docdir=/usr/share/doc/${PF} \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h

# Install missing libpgport.a
insinto /usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
doins "${S}/src/port/libpgport.a"

dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm -rf "${D}/usr/share/doc/${PF}/html"
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,initlocation,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-98-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-98-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.0.15.ebuild

# Copyright 1999-2008 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.0.15.ebuild,v 1.4 2008/06/13 21:46:29 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}.15-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--with-docdir=/usr/share/doc/${PF} \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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_enable threads thread-safety-force) \
$(use_with zlib) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-97-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-97-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.0.17.ebuild

# Copyright 1999-2008 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.0.17.ebuild,v 1.2 2008/06/14 10:42:50 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--without-docdir \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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_enable threads thread-safety-force) \
$(use_with zlib) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-97-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-97-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.1.11.ebuild

# Copyright 1999-2008 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.1.11.ebuild,v 1.3 2008/06/04 21:46:14 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--with-docdir=/usr/share/doc/${PF} \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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_enable threads thread-safety-force) \
$(use_with zlib) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-96-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-96-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.1.13.ebuild

# Copyright 1999-2008 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.1.13.ebuild,v 1.2 2008/06/14 10:42:50 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--without-docdir \
--without-tcl \
--without-perl \
--without-python \
$(use_with kerberos krb5) \
"$(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_enable threads thread-safety-force) \
$(use_with zlib) \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-96-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-96-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.2.7.ebuild

# Copyright 1999-2008 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.7.ebuild,v 1.4 2008/06/04 21:46:14 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql
ldap? ( net-nds/openldap )"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--with-docdir=/usr/share/doc/${PF} \
--enable-depend \
--without-tcl \
--without-perl \
--without-python \
--without-libedit \
$(use_with readline) \
$(use_with kerberos krb5) \
"$(use_enable nls nls "$(wanted_languages)")" \
$(use_with pam) \
$(use_enable pg-intdatetime integer-datetimes ) \
$(use_with ssl openssl) \
$(use_enable threads thread-safety) \
$(use_enable threads thread-safety-force) \
$(use_with zlib) \
$(use_with ldap) \
${myconf} \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-95-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.2.9.ebuild

# Copyright 1999-2008 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.9.ebuild,v 1.2 2008/06/14 10:42:50 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~amd64 ~x86"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql
ldap? ( net-nds/openldap )"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--without-docdir \
--enable-depend \
--without-tcl \
--without-perl \
--without-python \
--without-libedit \
$(use_with readline) \
$(use_with kerberos krb5) \
"$(use_enable nls nls "$(wanted_languages)")" \
$(use_with pam) \
$(use_enable pg-intdatetime integer-datetimes ) \
$(use_with ssl openssl) \
$(use_enable threads thread-safety) \
$(use_enable threads thread-safety-force) \
$(use_with zlib) \
$(use_with ldap) \
${myconf} \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-95-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.3.1.ebuild

# Copyright 1999-2008 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.1.ebuild,v 1.6 2008/06/04 21:56:57 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql
ldap? ( net-nds/openldap )"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--with-docdir=/usr/share/doc/${PF} \
--enable-depend \
--without-tcl \
--without-perl \
--without-python \
--without-libedit \
$(use_with readline) \
$(use_with kerberos krb5) \
$(use_with kerberos gssapi) \
"$(use_enable nls nls "$(wanted_languages)")" \
$(use_with pam) \
$(use_enable pg-intdatetime integer-datetimes ) \
$(use_with ssl openssl) \
$(use_enable threads thread-safety) \
$(use_enable threads thread-safety-force) \
$(use_with zlib) \
$(use_with ldap) \
${myconf} \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-94-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}

postgresql-base-8.3.3.ebuild

# Copyright 1999-2008 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.3.ebuild,v 1.2 2008/06/14 10:42:50 dev-zero Exp $

EAPI="1"

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="none"

inherit eutils multilib toolchain-funcs versionator autotools

KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"

DESCRIPTION="PostgreSQL libraries and clients"
HOMEPAGE="http://www.postgresql.org/"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
LICENSE="POSTGRESQL"
SLOT="$(get_version_component_range 1-2)"
IUSE_LINGUAS="
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
linguas_tr linguas_zh_CN linguas_zh_TW"
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
RESTRICT="test"

wanted_languages() {
for u in ${IUSE_LINGUAS} ; do
use $u && echo -n "${u#linguas_} "
done
}

RDEPEND="kerberos? ( virtual/krb5 )
pam? ( virtual/pam )
readline? ( >=sys-libs/readline-4.1 )
ssl? ( >=dev-libs/openssl-0.9.6-r1 )
zlib? ( >=sys-libs/zlib-1.1.3 )
>=app-admin/eselect-postgresql-0.3
!dev-db/postgresql-libs
!dev-db/postgresql-client
!dev-db/libpq
!dev-db/postgresql
ldap? ( net-nds/openldap )"
DEPEND="${RDEPEND}
sys-devel/flex
>=sys-devel/bison-1.875
nls? ( sys-devel/gettext )"
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"

S="${WORKDIR}/postgresql-${PV}"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
"${FILESDIR}/postgresql-${SLOT}-base.patch" \
"${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"

# 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/"

eautoconf
}

src_compile() {
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
--datadir=/usr/share/postgresql-${SLOT} \
--sysconfdir=/etc/postgresql-${SLOT} \
--includedir=/usr/include/postgresql-${SLOT} \
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
--mandir=/usr/share/postgresql-${SLOT}/man \
--without-docdir \
--enable-depend \
--without-tcl \
--without-perl \
--without-python \
--without-libedit \
$(use_with readline) \
$(use_with kerberos krb5) \
$(use_with kerberos gssapi) \
"$(use_enable nls nls "$(wanted_languages)")" \
$(use_with pam) \
$(use_enable pg-intdatetime integer-datetimes ) \
$(use_with ssl openssl) \
$(use_enable threads thread-safety) \
$(use_enable threads thread-safety-force) \
$(use_with zlib) \
$(use_with ldap) \
${myconf} \
|| die "configure failed"

emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"

cd "${S}/contrib"
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto /usr/include/postgresql-${SLOT}/postmaster
doins "${S}"/src/include/postmaster/*.h
dodir /usr/share/postgresql-${SLOT}/man/man1
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1

rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
dodoc README HISTORY doc/{README.*,TODO,bug.template}

cd "${S}/contrib"
emake DESTDIR="${D}" install || die "emake install failed"
cd "${S}"

dodir /etc/eselect/postgresql/slots/${SLOT}

IDIR="/usr/include/postgresql-${SLOT}"
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
postgres_ebuilds="\${postgres_ebuilds} ${PF}"
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
postgres_datadir=/usr/share/postgresql-${SLOT}
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
postgres_symlinks=(
${IDIR} /usr/include/postgresql
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
${IDIR}/libpq /usr/include/libpq
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
)
__EOF__

cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
MANPATH=/usr/share/postgresql-${SLOT}/man
__EOF__
doenvd "${T}/50postgresql-94-${SLOT}"

keepdir /etc/postgresql-${SLOT}
}

pkg_postinst() {
eselect postgresql update
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
}

pkg_postrm() {
eselect postgresql update
}