summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheracles <heracles@localhost>2007-01-21 12:08:33 +0000
committerheracles <heracles@localhost>2007-01-21 12:08:33 +0000
commiteb140dee24ce6430836c4f3130b432f331ca11bf (patch)
treef83a8388895c44bb565d76b9acc0b581522a90ca
parentAdded repo_name and categories (diff)
downloadexperimental-eb140dee24ce6430836c4f3130b432f331ca11bf.tar.gz
experimental-eb140dee24ce6430836c4f3130b432f331ca11bf.tar.bz2
experimental-eb140dee24ce6430836c4f3130b432f331ca11bf.zip
Squashed commit of the master branch
svn path=/experimental/; revision=169
-rw-r--r--app-admin/eselect-postgresql/Manifest15
-rw-r--r--app-admin/eselect-postgresql/eselect-postgresql-0.ebuild23
-rwxr-xr-xapp-admin/eselect-postgresql/files/binwrapper16
-rw-r--r--app-admin/eselect-postgresql/files/digest-eselect-postgresql-01
-rw-r--r--app-admin/eselect-postgresql/files/postgresql.eselect160
-rw-r--r--dev-db/libpq/Manifest52
-rw-r--r--dev-db/libpq/files/digest-libpq-7.3.15-r13
-rw-r--r--dev-db/libpq/files/digest-libpq-7.4.13-r13
-rw-r--r--dev-db/libpq/files/digest-libpq-8.0.8-r13
-rw-r--r--dev-db/libpq/files/digest-libpq-8.1.4-r13
-rw-r--r--dev-db/libpq/files/libpq-7.3-gentoo.patch72
-rw-r--r--dev-db/libpq/files/libpq-7.4-gentoo.patch85
-rw-r--r--dev-db/libpq/files/libpq-8.0-gentoo.patch66
-rw-r--r--dev-db/libpq/files/libpq-8.1-gentoo.patch66
-rw-r--r--dev-db/libpq/libpq-7.3.15-r1.ebuild99
-rw-r--r--dev-db/libpq/libpq-7.4.13-r1.ebuild100
-rw-r--r--dev-db/libpq/libpq-8.0.8-r1.ebuild100
-rw-r--r--dev-db/libpq/libpq-8.1.4-r1.ebuild100
-rw-r--r--dev-db/pgadmin3/ChangeLog116
-rw-r--r--dev-db/pgadmin3/Manifest32
-rw-r--r--dev-db/pgadmin3/files/digest-pgadmin3-1.2.2-r13
-rw-r--r--dev-db/pgadmin3/files/digest-pgadmin3-1.4.3-r13
-rw-r--r--dev-db/pgadmin3/files/pgadmin3-1.2.2-configure.patch26
-rw-r--r--dev-db/pgadmin3/files/pgadmin3-1.2.2-syntax.patch26
-rw-r--r--dev-db/pgadmin3/metadata.xml (renamed from dev-db/libpq/metadata.xml)0
-rw-r--r--dev-db/pgadmin3/pgadmin3-1.2.2-r1.ebuild74
-rw-r--r--dev-db/pgadmin3/pgadmin3-1.4.3-r1.ebuild67
-rw-r--r--dev-db/postgresql-client/Manifest113
-rw-r--r--dev-db/postgresql-client/files/digest-postgresql-client-7.3.176
-rw-r--r--dev-db/postgresql-client/files/digest-postgresql-client-7.4.156
-rw-r--r--dev-db/postgresql-client/files/digest-postgresql-client-8.0.106
-rw-r--r--dev-db/postgresql-client/files/digest-postgresql-client-8.1.66
-rw-r--r--dev-db/postgresql-client/files/digest-postgresql-client-8.2.16
-rw-r--r--dev-db/postgresql-client/files/pg_autovacuum.conf-7.4 (renamed from dev-db/postgresql/files/pg_autovacuum.conf-7.4)6
-rw-r--r--dev-db/postgresql-client/files/pg_autovacuum.conf-8.0 (renamed from dev-db/postgresql/files/pg_autovacuum.conf-8.0)6
-rw-r--r--dev-db/postgresql-client/files/pg_autovacuum.init-7.4 (renamed from dev-db/postgresql/files/pg_autovacuum.init-7.4)9
-rw-r--r--dev-db/postgresql-client/files/pg_autovacuum.init-8.0 (renamed from dev-db/postgresql/files/pg_autovacuum.init-8.0)9
-rw-r--r--dev-db/postgresql-client/files/postgresql-7.3-client.patch174
-rw-r--r--dev-db/postgresql-client/files/postgresql-7.3-nls.patch25
-rw-r--r--dev-db/postgresql-client/files/postgresql-7.4-client.patch155
-rw-r--r--dev-db/postgresql-client/files/postgresql-7.4-nls.patch25
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.0-client.patch120
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.0-nls.patch25
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.0-no-interfaces.patch17
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.1-client.patch100
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.1-nls.patch25
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.1-no-interfaces.patch17
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.2-client.patch105
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.2-nls.patch19
-rw-r--r--dev-db/postgresql-client/files/postgresql-8.2-no-interfaces.patch17
-rw-r--r--dev-db/postgresql-client/postgresql-client-7.3.17.ebuild65
-rw-r--r--dev-db/postgresql-client/postgresql-client-7.4.15.ebuild69
-rw-r--r--dev-db/postgresql-client/postgresql-client-8.0.10.ebuild74
-rw-r--r--dev-db/postgresql-client/postgresql-client-8.1.6.ebuild71
-rw-r--r--dev-db/postgresql-client/postgresql-client-8.2.1.ebuild72
-rw-r--r--dev-db/postgresql-docs/Manifest40
-rw-r--r--dev-db/postgresql-docs/files/digest-postgresql-docs-7.3.173
-rw-r--r--dev-db/postgresql-docs/files/digest-postgresql-docs-7.4.153
-rw-r--r--dev-db/postgresql-docs/files/digest-postgresql-docs-8.0.103
-rw-r--r--dev-db/postgresql-docs/files/digest-postgresql-docs-8.1.63
-rw-r--r--dev-db/postgresql-docs/files/digest-postgresql-docs-8.2.13
-rw-r--r--dev-db/postgresql-docs/postgresql-docs-7.3.17.ebuild37
-rw-r--r--dev-db/postgresql-docs/postgresql-docs-7.4.15.ebuild37
-rw-r--r--dev-db/postgresql-docs/postgresql-docs-8.0.10.ebuild37
-rw-r--r--dev-db/postgresql-docs/postgresql-docs-8.1.6.ebuild38
-rw-r--r--dev-db/postgresql-docs/postgresql-docs-8.2.1.ebuild38
-rw-r--r--dev-db/postgresql-ip4r/Manifest8
-rw-r--r--dev-db/postgresql-ip4r/files/digest-postgresql-ip4r-1.013
-rw-r--r--dev-db/postgresql-ip4r/postgresql-ip4r-1.01.ebuild29
-rw-r--r--dev-db/postgresql-libs/Manifest107
-rw-r--r--dev-db/postgresql-libs/files/digest-postgresql-libs-7.3.173
-rw-r--r--dev-db/postgresql-libs/files/digest-postgresql-libs-7.4.153
-rw-r--r--dev-db/postgresql-libs/files/digest-postgresql-libs-8.0.106
-rw-r--r--dev-db/postgresql-libs/files/digest-postgresql-libs-8.1.66
-rw-r--r--dev-db/postgresql-libs/files/digest-postgresql-libs-8.2.16
-rw-r--r--dev-db/postgresql-libs/files/postgresql-7.3-libs.patch100
-rw-r--r--dev-db/postgresql-libs/files/postgresql-7.3-nls.patch25
-rw-r--r--dev-db/postgresql-libs/files/postgresql-7.4-hppa.patch (renamed from dev-db/postgresql/files/postgresql-7.4-hppa-testandset.patch)16
-rw-r--r--dev-db/postgresql-libs/files/postgresql-7.4-libs.patch100
-rw-r--r--dev-db/postgresql-libs/files/postgresql-7.4-nls.patch25
-rw-r--r--dev-db/postgresql-libs/files/postgresql-7.4-vacuum-delay.patch (renamed from dev-db/postgresql/files/postgresql-7.4-vacuum-delay.patch)0
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.0-libs.patch106
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.0-nls.patch25
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.0-sh-spinlocks.patch (renamed from dev-db/postgresql/files/postgresql-8.0-sh.patch)8
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.1-libs.patch106
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.1-nls.patch25
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.1-sh-spinlocks.patch (renamed from dev-db/postgresql/files/postgresql-8.1-sh.patch)14
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.2-libs.patch105
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.2-nls.patch19
-rw-r--r--dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch34
-rw-r--r--dev-db/postgresql-libs/metadata.xml5
-rw-r--r--dev-db/postgresql-libs/postgresql-libs-7.3.17.ebuild107
-rw-r--r--dev-db/postgresql-libs/postgresql-libs-7.4.15.ebuild112
-rw-r--r--dev-db/postgresql-libs/postgresql-libs-8.0.10.ebuild109
-rw-r--r--dev-db/postgresql-libs/postgresql-libs-8.1.6.ebuild109
-rw-r--r--dev-db/postgresql-libs/postgresql-libs-8.2.1.ebuild112
-rw-r--r--dev-db/postgresql-server/Manifest166
-rw-r--r--dev-db/postgresql-server/files/digest-postgresql-server-7.3.179
-rw-r--r--dev-db/postgresql-server/files/digest-postgresql-server-7.4.159
-rw-r--r--dev-db/postgresql-server/files/digest-postgresql-server-8.0.109
-rw-r--r--dev-db/postgresql-server/files/digest-postgresql-server-8.1.69
-rw-r--r--dev-db/postgresql-server/files/digest-postgresql-server-8.2.19
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.3-cubeparse.patch (renamed from dev-db/postgresql/files/postgresql-7.3-cubeparse.patch)0
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.3-nls.patch25
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.3-regress.patch88
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.3-server.patch96
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.4-nls.patch25
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.4-regress.patch88
-rw-r--r--dev-db/postgresql-server/files/postgresql-7.4-server.patch99
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.0-nls.patch25
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.0-no-interfaces.patch17
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.0-regress.patch88
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.0-server.patch113
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.1-nls.patch25
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.1-no-interfaces.patch17
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.1-regress.patch88
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.1-server.patch102
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.2-nls.patch19
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.2-no-interfaces.patch17
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.2-regress.patch36
-rw-r--r--dev-db/postgresql-server/files/postgresql-8.2-server.patch102
-rw-r--r--dev-db/postgresql-server/files/postgresql.conf-7.347
-rw-r--r--dev-db/postgresql-server/files/postgresql.conf-7.447
-rw-r--r--dev-db/postgresql-server/files/postgresql.conf-8.0 (renamed from dev-db/postgresql/files/postgresql.conf-8.0)27
-rw-r--r--dev-db/postgresql-server/files/postgresql.conf-8.1 (renamed from dev-db/postgresql/files/postgresql.conf-8.1)27
-rw-r--r--dev-db/postgresql-server/files/postgresql.conf-8.247
-rw-r--r--dev-db/postgresql-server/files/postgresql.init-7.358
-rw-r--r--dev-db/postgresql-server/files/postgresql.init-7.458
-rw-r--r--dev-db/postgresql-server/files/postgresql.init-8.0 (renamed from dev-db/postgresql/files/postgresql.init-8.0)10
-rw-r--r--dev-db/postgresql-server/files/postgresql.init-8.1 (renamed from dev-db/postgresql/files/postgresql.init-8.1)10
-rw-r--r--dev-db/postgresql-server/files/postgresql.init-8.258
-rw-r--r--dev-db/postgresql-server/postgresql-server-7.3.17.ebuild197
-rw-r--r--dev-db/postgresql-server/postgresql-server-7.4.15.ebuild196
-rw-r--r--dev-db/postgresql-server/postgresql-server-8.0.10.ebuild195
-rw-r--r--dev-db/postgresql-server/postgresql-server-8.1.6.ebuild195
-rw-r--r--dev-db/postgresql-server/postgresql-server-8.2.1.ebuild200
-rw-r--r--dev-db/postgresql/Manifest153
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.3.171
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.4.151
-rw-r--r--dev-db/postgresql/files/digest-postgresql-8.0.101
-rw-r--r--dev-db/postgresql/files/digest-postgresql-8.0.8-r112
-rw-r--r--dev-db/postgresql/files/digest-postgresql-8.1.4-r112
-rw-r--r--dev-db/postgresql/files/digest-postgresql-8.1.61
-rw-r--r--dev-db/postgresql/files/digest-postgresql-8.2.11
-rw-r--r--dev-db/postgresql/files/postgresql-7.3-gentoo.patch59
-rw-r--r--dev-db/postgresql/files/postgresql-7.4-gentoo.patch59
-rw-r--r--dev-db/postgresql/files/postgresql-8.0-gentoo.patch48
-rw-r--r--dev-db/postgresql/files/postgresql-8.1-gentoo.patch746
-rw-r--r--dev-db/postgresql/files/postgresql-8.1-regress_fix.patch33
-rw-r--r--dev-db/postgresql/files/postgresql-8.1-regress_su.patch116
-rw-r--r--dev-db/postgresql/files/postgresql.conf-7.313
-rw-r--r--dev-db/postgresql/files/postgresql.conf-7.413
-rw-r--r--dev-db/postgresql/files/postgresql.init-7.367
-rw-r--r--dev-db/postgresql/files/postgresql.init-7.467
-rw-r--r--dev-db/postgresql/postgresql-7.3.17.ebuild21
-rw-r--r--dev-db/postgresql/postgresql-7.4.15.ebuild21
-rw-r--r--dev-db/postgresql/postgresql-8.0.10.ebuild21
-rw-r--r--dev-db/postgresql/postgresql-8.0.8-r1.ebuild246
-rw-r--r--dev-db/postgresql/postgresql-8.1.4-r1.ebuild272
-rw-r--r--dev-db/postgresql/postgresql-8.1.6.ebuild21
-rw-r--r--dev-db/postgresql/postgresql-8.2.1.ebuild21
-rw-r--r--dev-libs/libpqxx/ChangeLog129
-rw-r--r--dev-libs/libpqxx/Manifest44
-rw-r--r--dev-libs/libpqxx/files/digest-libpqxx-2.4.2-r13
-rw-r--r--dev-libs/libpqxx/files/digest-libpqxx-2.5.1-r13
-rw-r--r--dev-libs/libpqxx/files/digest-libpqxx-2.5.5-r13
-rw-r--r--dev-libs/libpqxx/files/digest-libpqxx-2.6.8-r13
-rw-r--r--dev-libs/libpqxx/files/libpqxx-2.5.1-namespace-fix.patch28
-rw-r--r--dev-libs/libpqxx/libpqxx-2.4.2-r1.ebuild27
-rw-r--r--dev-libs/libpqxx/libpqxx-2.5.1-r1.ebuild33
-rw-r--r--dev-libs/libpqxx/libpqxx-2.5.5-r1.ebuild27
-rw-r--r--dev-libs/libpqxx/libpqxx-2.6.8-r1.ebuild54
-rw-r--r--dev-libs/libpqxx/metadata.xml5
-rw-r--r--dev-perl/DBD-Pg/ChangeLog187
-rw-r--r--dev-perl/DBD-Pg/DBD-Pg-1.42-r1.ebuild26
-rw-r--r--dev-perl/DBD-Pg/DBD-Pg-1.43-r1.ebuild26
-rw-r--r--dev-perl/DBD-Pg/DBD-Pg-1.48-r1.ebuild26
-rw-r--r--dev-perl/DBD-Pg/DBD-Pg-1.49-r1.ebuild26
-rw-r--r--dev-perl/DBD-Pg/Manifest40
-rw-r--r--dev-perl/DBD-Pg/files/digest-DBD-Pg-1.42-r13
-rw-r--r--dev-perl/DBD-Pg/files/digest-DBD-Pg-1.43-r13
-rw-r--r--dev-perl/DBD-Pg/files/digest-DBD-Pg-1.48-r13
-rw-r--r--dev-perl/DBD-Pg/files/digest-DBD-Pg-1.49-r13
-rw-r--r--dev-perl/DBD-Pg/metadata.xml10
-rw-r--r--eclass/multislot.eclass86
-rw-r--r--eclass/postgresql-ext.eclass72
-rw-r--r--eclass/postgresql.eclass91
-rw-r--r--profiles/categories1
-rw-r--r--profiles/use.local.desc5
189 files changed, 7296 insertions, 2687 deletions
diff --git a/app-admin/eselect-postgresql/Manifest b/app-admin/eselect-postgresql/Manifest
new file mode 100644
index 0000000..6b121bb
--- /dev/null
+++ b/app-admin/eselect-postgresql/Manifest
@@ -0,0 +1,15 @@
+AUX binwrapper 515 RMD160 774f14cc09d6534800e91845e2c4b40b9911af11 SHA1 b9598d625312383768236571a72bf9b0dddf498b SHA256 99d4774e841f0057fdbf141b9b123975939eac1e5ab6e711d08c44b4adc2b4d1
+MD5 5f952f5a5b44bdc6f6cbc4381f6eee86 files/binwrapper 515
+RMD160 774f14cc09d6534800e91845e2c4b40b9911af11 files/binwrapper 515
+SHA256 99d4774e841f0057fdbf141b9b123975939eac1e5ab6e711d08c44b4adc2b4d1 files/binwrapper 515
+AUX postgresql.eselect 4412 RMD160 c592aa5355016a2c1300d5d5004ac8b97641e87d SHA1 d0eb90a05e83e47a4544b54f96feaeae74e0be57 SHA256 53ed68bb4d16dc07ec9d5682dea93eaa1ca1cfe39158def45ca4b236ec84c3be
+MD5 e1a9b4875e2d0801175f86512c584810 files/postgresql.eselect 4412
+RMD160 c592aa5355016a2c1300d5d5004ac8b97641e87d files/postgresql.eselect 4412
+SHA256 53ed68bb4d16dc07ec9d5682dea93eaa1ca1cfe39158def45ca4b236ec84c3be files/postgresql.eselect 4412
+EBUILD eselect-postgresql-0.ebuild 630 RMD160 8ae53e19c3b77b469c932bd50da9770a9d3a5de0 SHA1 e2195d70991b92488e16a038c02e9dc1b42af28f SHA256 34a2a8fa0ab37519935a87f6272c0e3d619a4eb2a880abea79bce1eb8634a6bd
+MD5 8dcf61e30168931320516e06dc6eec19 eselect-postgresql-0.ebuild 630
+RMD160 8ae53e19c3b77b469c932bd50da9770a9d3a5de0 eselect-postgresql-0.ebuild 630
+SHA256 34a2a8fa0ab37519935a87f6272c0e3d619a4eb2a880abea79bce1eb8634a6bd eselect-postgresql-0.ebuild 630
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-eselect-postgresql-0 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-eselect-postgresql-0 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-eselect-postgresql-0 1
diff --git a/app-admin/eselect-postgresql/eselect-postgresql-0.ebuild b/app-admin/eselect-postgresql/eselect-postgresql-0.ebuild
new file mode 100644
index 0000000..3e2fb54
--- /dev/null
+++ b/app-admin/eselect-postgresql/eselect-postgresql-0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="Utility to change the default psotgresql installation"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="app-admin/eselect"
+
+src_install() {
+ dodir /etc/eselect/postgresql
+ insinto /usr/share/eselect/modules
+ doins ${FILESDIR}/postgresql.eselect
+ exeinto /usr/lib/${PN}
+ doexe ${FILESDIR}/binwrapper
+ dosym /usr/bin/eselect /usr/bin/postgresql-config
+}
diff --git a/app-admin/eselect-postgresql/files/binwrapper b/app-admin/eselect-postgresql/files/binwrapper
new file mode 100755
index 0000000..137d8d1
--- /dev/null
+++ b/app-admin/eselect-postgresql/files/binwrapper
@@ -0,0 +1,16 @@
+#!/bin/bash
+[[ -d /etc/eselect/postgresql/active ]] || { echo "Use eselect to set postgresql version"; exit 1; }
+for src in /etc/eselect/postgresql/active/* ; do
+ [[ -f "${src}" ]] && source $src
+done
+bn="$(basename "$0")"
+bex="${postgres_bindir}/${bn}"
+if [[ -x "${bex}" ]] ; then
+ exec "${bex}" "$@"
+else
+ echo "Program '${bn}' is not installed or not available for"
+ echo "currently selected version of postgresql."
+ echo "Use 'eselect postgresql' command to set different"
+ echo "PostgreSQL version"
+ exit 1
+fi
diff --git a/app-admin/eselect-postgresql/files/digest-eselect-postgresql-0 b/app-admin/eselect-postgresql/files/digest-eselect-postgresql-0
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/app-admin/eselect-postgresql/files/digest-eselect-postgresql-0
@@ -0,0 +1 @@
+
diff --git a/app-admin/eselect-postgresql/files/postgresql.eselect b/app-admin/eselect-postgresql/files/postgresql.eselect
new file mode 100644
index 0000000..5e684ec
--- /dev/null
+++ b/app-admin/eselect-postgresql/files/postgresql.eselect
@@ -0,0 +1,160 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: $
+
+inherit path-manipulation output
+
+DESCRIPTION="Manage postgresql slots"
+MAINTAINER="root@localhost"
+SVN_DATE='$Date: $'
+VERSION=$(svn_date_to_version "${SVN_DATE}" )
+
+### list action
+
+## {{{ list stuff
+ describe_list() {
+ echo "List available postgresql installations"
+ }
+
+ do_list() {
+ write_list_start "Available postgresql installations"
+ for s in /usr/lib/eselect-postgresql/slots/* ; do
+ [[ -d "$s" ]] || continue;
+ local slot=$(basename $s)
+ local postgres_ebuilds=""
+ for src in ${s}/* ; do
+ source "$src"
+ done
+ local kw="${slot}"
+ if [[ "$(canonicalise /etc/eselect/postgresql/active)" = "$(canonicalise ${s})" ]] ; then
+ kw="$kw <-"
+ fi
+ write_kv_list_entry "${kw}" "${postgres_ebuilds//postgresql-/}"
+ done
+ }
+## }}}
+
+### show action
+
+## {{{
+ describe_show() {
+ echo "Show current postgresql version"
+ }
+ do_show() {
+ if [[ -r "/etc/eselect/postgresql/active" ]] ; then
+ local bn=$(basename $(canonicalise /etc/eselect/postgresql/active))
+ local slot=${bn}
+ echo "${slot}"
+ else
+ echo "(none)"
+ fi
+ }
+## }}}
+
+### set action
+
+## {{{ set stuff
+ describe_set() {
+ echo "Set active postgresql installation"
+ }
+
+ do_set() {
+ [[ ${#@} -ne 1 ]] && die -q "Only one parameter is expected"
+ local slotdir="/usr/lib/eselect-postgresql/slots/${1}"
+ [[ -d "${slotdir}" ]] || die -q "No such version installed"
+ do_reset
+ unset postgres_symlinks
+ unset postgres_bindir
+ for src in ${slotdir}/* ; do
+ [[ -f "${src}" ]] && source ${src}
+ done
+ local pgconfig="${postgres_bindir}/pg_config"
+ [[ -x "${pgconfig}" ]] || die -q "Broken install: no pg_config found"
+ local pglibdir="$(${pgconfig} --libdir)"
+ [[ -d "${pglibdir}" ]] || die -q "Failed to find postgresql libdir"
+ local slinks="${#postgres_symlinks[*]}"
+ for l in ${pglibdir}/lib*.{a,so} ; do
+ local bn=$(basename $l)
+ postgres_symlinks[slinks++]="$l"
+ postgres_symlinks[slinks++]="/usr/lib/$bn"
+ done
+ for (( i=0;i<slinks;i++ )); do
+ local s=${postgres_symlinks[i++]};
+ local d=${postgres_symlinks[i]};
+ if ! [[ -e "${s}" ]] ; then
+ write_warning_msg "No file '${s}' to symlink"
+ continue
+ fi
+ if [[ -e "$d" ]] ; then
+ [[ -L "$d" ]] || die -q "$d exists and is not a symbolic link"
+ fi
+ done
+ exec 9>/etc/eselect/postgresql/active.links || die "Failed to store list of links"
+ rm -f /etc/eselect/postgresql/active
+ ln -s "${slotdir}" /etc/eselect/postgresql/active
+ for (( i=0;i<slinks;i++ )); do
+ local s=${postgres_symlinks[i]};
+ (( i++ ));
+ local d=${postgres_symlinks[i]};
+ rm -f "${d}"
+ ln -s "${s}" "${d}"
+ echo "${d}" >&9
+ done
+ }
+## }}}
+
+### reset action
+
+## {{{
+ describe_reset() {
+ echo "Remove active postgresql installation links"
+ }
+
+ do_reset() {
+ if [[ -d "$(canonicalise /etc/eselect/postgresql/active)" ]] ; then
+ unset postgres_symlinks
+ unset postgres_bindir
+ for src in /etc/eselect/postgresql/active/* ; do
+ [[ -f "${src}" ]] && source "${src}"
+ done
+ if [[ -r /etc/eselect/postgresql/active.links ]] ; then
+ exec 9</etc/eselect/postgresql/active.links || die "Failed to access the list of links"
+ while IFS='' read -u 9 slink ; do
+ if [[ -e "$slink" ]] ; then
+ if [[ -L "$slink" ]] ; then
+ rm -f "${slink}"
+ else
+ write_warning_msg "$slink exists and is not a symbolic link"
+ fi
+ fi
+ done
+ else # the code below is obsolete now, but i'll keep it around for a while
+ local pgconfig="${postgres_bindir}/pg_config"
+ [[ -x "${pgconfig}" ]] || die -q "Broken install: no pg_config found"
+ local pglibdir="$(${pgconfig} --libdir)"
+ [[ -d "${pglibdir}" ]] || die -q "Failed to find postgresql libdir"
+ local slinks="${#postgres_symlinks[*]}"
+ for l in ${pglibdir}/lib*.{a,so} ; do
+ local bn=$(basename $l)
+ postgres_symlinks[slinks++]="$l"
+ postgres_symlinks[slinks++]="/usr/lib/$bn"
+ done
+ for (( i=0;i<slinks;i++ )); do
+ local s=${postgres_symlinks[i++]};
+ local d=${postgres_symlinks[i]};
+ [[ -e "${s}" ]] || continue
+ if [[ -e "$d" ]] ; then
+ if [[ -L "$d" ]] ; then
+ rm -f "${d}"
+ else
+ write_warning_msg "$d exists and is not a symbolic link"
+ fi
+ fi
+ done
+ fi
+ rm -f /etc/eselect/postgresql/{active,active.links}
+ fi
+ }
+## }}}
+
+# vim: ts=4 sw=4 noet fdm=marker
diff --git a/dev-db/libpq/Manifest b/dev-db/libpq/Manifest
deleted file mode 100644
index ae4549a..0000000
--- a/dev-db/libpq/Manifest
+++ /dev/null
@@ -1,52 +0,0 @@
-AUX libpq-7.3-gentoo.patch 2668 RMD160 d9cb70ff9f58b2d24796b8b9cc3fcb4ee8908a26 SHA1 ad485d20ab0d8cfa014daa85c82da2a7d04a5a5d SHA256 b634fe32b2143d6eb48e651b1c98f2719fa46db5896c77a5d7eaf7a10a871cb7
-MD5 c1d0f98f50f10dd065bb90bae9419edd files/libpq-7.3-gentoo.patch 2668
-RMD160 d9cb70ff9f58b2d24796b8b9cc3fcb4ee8908a26 files/libpq-7.3-gentoo.patch 2668
-SHA256 b634fe32b2143d6eb48e651b1c98f2719fa46db5896c77a5d7eaf7a10a871cb7 files/libpq-7.3-gentoo.patch 2668
-AUX libpq-7.4-gentoo.patch 3350 RMD160 d2f139dea5e8025a1e73fabbaa97565d05d9600f SHA1 90543925e035bef367450c2e94584837d41c5ebc SHA256 057f1ed8e475b81ccd00467d5baf5710ddfa6980f93749e27d655693069b7972
-MD5 d8addc502b7f0e0f888fe08dddce8892 files/libpq-7.4-gentoo.patch 3350
-RMD160 d2f139dea5e8025a1e73fabbaa97565d05d9600f files/libpq-7.4-gentoo.patch 3350
-SHA256 057f1ed8e475b81ccd00467d5baf5710ddfa6980f93749e27d655693069b7972 files/libpq-7.4-gentoo.patch 3350
-AUX libpq-8.0-gentoo.patch 2981 RMD160 8fbd06b5de8dc01541d68eda45690d7379a77aa3 SHA1 ea11162260b933511e56a71df8376fc5a39ca028 SHA256 3c6418390039868bb5181bd048bbdc445e92e0514696f2ffca9351ba6101698e
-MD5 03b2aff3f2346c77267914652c949e5c files/libpq-8.0-gentoo.patch 2981
-RMD160 8fbd06b5de8dc01541d68eda45690d7379a77aa3 files/libpq-8.0-gentoo.patch 2981
-SHA256 3c6418390039868bb5181bd048bbdc445e92e0514696f2ffca9351ba6101698e files/libpq-8.0-gentoo.patch 2981
-AUX libpq-8.1-gentoo.patch 3005 RMD160 275f328f28656df3c7e5a30e6db27d6849b6de68 SHA1 5bbc105d46b66e8293b8aae80fd25c8f22f43371 SHA256 905a682b903e65f2ba5e8a2abc57f5a0a60807d6e7c0002d7de582099a2c0278
-MD5 b81735d58046bfecc7a371ca9072092b files/libpq-8.1-gentoo.patch 3005
-RMD160 275f328f28656df3c7e5a30e6db27d6849b6de68 files/libpq-8.1-gentoo.patch 3005
-SHA256 905a682b903e65f2ba5e8a2abc57f5a0a60807d6e7c0002d7de582099a2c0278 files/libpq-8.1-gentoo.patch 3005
-DIST postgresql-base-7.3.15.tar.bz2 5695061 RMD160 55cc363e1ce26ea0c7f79c5adfd90714988afb46 SHA1 059f16d3e98df525e9c0962f29f2126a9397dc02 SHA256 81da1ab6c3d9e19aef068cc1db81ca696771dfa5c8ff262bcb1bf977ac7429dc
-DIST postgresql-base-7.4.13.tar.bz2 6576973 RMD160 5f90ed85fdceb06fe15e324620e931140e3617ef SHA1 cb326a788833e805a54a80d87aeeb6fa00fb7b1e SHA256 2e2fa6b1cf3fc7a66a58762acfb64ce42d358e0dd799a467316e937d3a116cf7
-DIST postgresql-base-8.0.8.tar.bz2 7823046 RMD160 2c60dc22f714bc0182051a94c3c1f513b30f574e SHA1 a5e5147497f0c2b548762d232d297b48d6e97d02 SHA256 906d86f2477309b9c2531d12fe720761fdffd73243a83ae31892bd7a0a618183
-DIST postgresql-base-8.1.4.tar.bz2 8040435 RMD160 b3389c51a9d3cc89935dd1cc6405a9dd9c07042d SHA1 b1d7df18dabbbff78a810625f7d626c7601ec3bc SHA256 3d5e6cf4aa1593730c61676ffc4e3acbed73c0e13fb246035e54e4cf83fa60e1
-EBUILD libpq-7.3.15-r1.ebuild 2578 RMD160 df5fa01aa505536b5da88de949e0fb20ee27de00 SHA1 8dbd6197f045e7bcb9aa48e4c3a8e64dd6e06f32 SHA256 f28471b542b16d0505dae5f628bb6b416a55f7e645af245babcae3e9754aa1f1
-MD5 f6460095a359941fba71731fd92e8158 libpq-7.3.15-r1.ebuild 2578
-RMD160 df5fa01aa505536b5da88de949e0fb20ee27de00 libpq-7.3.15-r1.ebuild 2578
-SHA256 f28471b542b16d0505dae5f628bb6b416a55f7e645af245babcae3e9754aa1f1 libpq-7.3.15-r1.ebuild 2578
-EBUILD libpq-7.4.13-r1.ebuild 2627 RMD160 7e2fb3e07419d94fa2998a546e7c3fd8a00ca749 SHA1 60042cfb5a266e945d8f017a8df1b900d883e810 SHA256 f24f1e4f8757d3cd2b16d518728e00afcfda2a81928bda6f383b08b716a4fe2d
-MD5 221751fc39d8e1740a0bb0404e8cd998 libpq-7.4.13-r1.ebuild 2627
-RMD160 7e2fb3e07419d94fa2998a546e7c3fd8a00ca749 libpq-7.4.13-r1.ebuild 2627
-SHA256 f24f1e4f8757d3cd2b16d518728e00afcfda2a81928bda6f383b08b716a4fe2d libpq-7.4.13-r1.ebuild 2627
-EBUILD libpq-8.0.8-r1.ebuild 2615 RMD160 0cf809c2866923d9a6f60da8991935cd32e311cb SHA1 33b9ac2fbbf7cb8e988aa9ab891ac35c6ebc74ae SHA256 e8c65960efc0707ba590f9df388f5b7044521a781672c417615822e4a7044e42
-MD5 431ee0542a9fe642a6b5c008990f5aec libpq-8.0.8-r1.ebuild 2615
-RMD160 0cf809c2866923d9a6f60da8991935cd32e311cb libpq-8.0.8-r1.ebuild 2615
-SHA256 e8c65960efc0707ba590f9df388f5b7044521a781672c417615822e4a7044e42 libpq-8.0.8-r1.ebuild 2615
-EBUILD libpq-8.1.4-r1.ebuild 2625 RMD160 c801450a462b8eb827d74414227da4fe25fa651f SHA1 93d7a258145e6e0d6ea56d5d7efa528263fa790b SHA256 99cfc8650c812b7fd6e4ffbc94539f55432c36fcdc0eb64988887c148b8f0b66
-MD5 afb2cc00ca354f12e2d2ab08b141d37d libpq-8.1.4-r1.ebuild 2625
-RMD160 c801450a462b8eb827d74414227da4fe25fa651f libpq-8.1.4-r1.ebuild 2625
-SHA256 99cfc8650c812b7fd6e4ffbc94539f55432c36fcdc0eb64988887c148b8f0b66 libpq-8.1.4-r1.ebuild 2625
-MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b
-MD5 6fe52df942ef15801d56449cd8299604 metadata.xml 164
-RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc metadata.xml 164
-SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b metadata.xml 164
-MD5 a9703da656aad47fc1124651898b960c files/digest-libpq-7.3.15-r1 274
-RMD160 c3260c0e65131d5c04f585c214d9f2734ccb7187 files/digest-libpq-7.3.15-r1 274
-SHA256 636d9a567f3862de1977ae039df1258a41e38412804b0e6752fb551c7e8c30e1 files/digest-libpq-7.3.15-r1 274
-MD5 d4df809fed8eb6b6a5b0f65d9dd67236 files/digest-libpq-7.4.13-r1 274
-RMD160 fb20fd4e3ccac6925532f1463eb03ceb95c6c11f files/digest-libpq-7.4.13-r1 274
-SHA256 708a0dce96b98013656090a67385955fe6c5c7beafbe7de7b1d937564bf3db12 files/digest-libpq-7.4.13-r1 274
-MD5 8c0d20dcc5c156bd1a8d9c4e04eef558 files/digest-libpq-8.0.8-r1 271
-RMD160 acda54f9b459839b72f7bfdb00cb9c324f0d0edb files/digest-libpq-8.0.8-r1 271
-SHA256 ba713208da080175629af46705788e433f5883d9213f6b19793ca0e158c79b83 files/digest-libpq-8.0.8-r1 271
-MD5 e045ac3661df06b46bde5281d848b341 files/digest-libpq-8.1.4-r1 271
-RMD160 043c83bc3b61879c1bb34ec5a8847784e0b12f3a files/digest-libpq-8.1.4-r1 271
-SHA256 fa40be4dfd69013ab20e32faf63a38238be451c09d47de048da6a73fa494899f files/digest-libpq-8.1.4-r1 271
diff --git a/dev-db/libpq/files/digest-libpq-7.3.15-r1 b/dev-db/libpq/files/digest-libpq-7.3.15-r1
deleted file mode 100644
index 9ad3360..0000000
--- a/dev-db/libpq/files/digest-libpq-7.3.15-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 dd23ef0e9cbd1a9bca19f8ee66a021db postgresql-base-7.3.15.tar.bz2 5695061
-RMD160 55cc363e1ce26ea0c7f79c5adfd90714988afb46 postgresql-base-7.3.15.tar.bz2 5695061
-SHA256 81da1ab6c3d9e19aef068cc1db81ca696771dfa5c8ff262bcb1bf977ac7429dc postgresql-base-7.3.15.tar.bz2 5695061
diff --git a/dev-db/libpq/files/digest-libpq-7.4.13-r1 b/dev-db/libpq/files/digest-libpq-7.4.13-r1
deleted file mode 100644
index db0101d..0000000
--- a/dev-db/libpq/files/digest-libpq-7.4.13-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 2e4574f84f6312909de87126bd2859f8 postgresql-base-7.4.13.tar.bz2 6576973
-RMD160 5f90ed85fdceb06fe15e324620e931140e3617ef postgresql-base-7.4.13.tar.bz2 6576973
-SHA256 2e2fa6b1cf3fc7a66a58762acfb64ce42d358e0dd799a467316e937d3a116cf7 postgresql-base-7.4.13.tar.bz2 6576973
diff --git a/dev-db/libpq/files/digest-libpq-8.0.8-r1 b/dev-db/libpq/files/digest-libpq-8.0.8-r1
deleted file mode 100644
index 4667521..0000000
--- a/dev-db/libpq/files/digest-libpq-8.0.8-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 4d84ff56ae9669b250060f9e2e36f788 postgresql-base-8.0.8.tar.bz2 7823046
-RMD160 2c60dc22f714bc0182051a94c3c1f513b30f574e postgresql-base-8.0.8.tar.bz2 7823046
-SHA256 906d86f2477309b9c2531d12fe720761fdffd73243a83ae31892bd7a0a618183 postgresql-base-8.0.8.tar.bz2 7823046
diff --git a/dev-db/libpq/files/digest-libpq-8.1.4-r1 b/dev-db/libpq/files/digest-libpq-8.1.4-r1
deleted file mode 100644
index 76a1c15..0000000
--- a/dev-db/libpq/files/digest-libpq-8.1.4-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 7ba24eaa31237eb8713782508de4dec7 postgresql-base-8.1.4.tar.bz2 8040435
-RMD160 b3389c51a9d3cc89935dd1cc6405a9dd9c07042d postgresql-base-8.1.4.tar.bz2 8040435
-SHA256 3d5e6cf4aa1593730c61676ffc4e3acbed73c0e13fb246035e54e4cf83fa60e1 postgresql-base-8.1.4.tar.bz2 8040435
diff --git a/dev-db/libpq/files/libpq-7.3-gentoo.patch b/dev-db/libpq/files/libpq-7.3-gentoo.patch
deleted file mode 100644
index 43d5c1e..0000000
--- a/dev-db/libpq/files/libpq-7.3-gentoo.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-diff -Nru postgresql-7.3.15.orig/src/bin/pg_config/Makefile postgresql-7.3.15/src/bin/pg_config/Makefile
---- postgresql-7.3.15.orig/src/bin/pg_config/Makefile 2006-09-25 18:18:28.000000000 +0200
-+++ postgresql-7.3.15/src/bin/pg_config/Makefile 2006-09-25 18:19:18.000000000 +0200
-@@ -18,7 +18,7 @@
- chmod a+x $@
-
- install: all installdirs
-- $(INSTALL_SCRIPT) pg_config $(DESTDIR)$(bindir)/pg_config
-+ $(INSTALL_SCRIPT) pg_config $(DESTDIR)$(bindir)/pg_config-7.3
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-diff -Nru postgresql-7.3.15.orig/src/interfaces/libpq/Makefile postgresql-7.3.15/src/interfaces/libpq/Makefile
---- postgresql-7.3.15.orig/src/interfaces/libpq/Makefile 2006-09-25 18:18:28.000000000 +0200
-+++ postgresql-7.3.15/src/interfaces/libpq/Makefile 2006-09-25 18:20:40.000000000 +0200
-@@ -15,8 +15,10 @@
-
- # shared library parameters
- NAME= pq
--SO_MAJOR_VERSION= 3
--SO_MINOR_VERSION= 0
-+SO_MAJOR_VERSION= 7
-+SO_MINOR_VERSION= 3
-+
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-
- override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"'
-
-diff -Nru postgresql-7.3.15.orig/src/Makefile.shlib postgresql-7.3.15/src/Makefile.shlib
---- postgresql-7.3.15.orig/src/Makefile.shlib 2006-09-25 18:18:28.000000000 +0200
-+++ postgresql-7.3.15/src/Makefile.shlib 2006-09-25 18:19:18.000000000 +0200
-@@ -221,7 +221,7 @@
-
- all-lib: all-static-lib all-shared-lib
-
--all-static-lib: lib$(NAME).a
-+all-static-lib: lib$(NAME_STATIC_LIB).a
-
- all-shared-lib: $(shlib)
-
-@@ -231,7 +231,7 @@
- MK_NO_LORDER := true
- endif
-
--lib$(NAME).a: $(OBJS)
-+lib$(NAME_STATIC_LIB).a: $(OBJS)
- ifdef MK_NO_LORDER
- $(LINK.static) $@ $^
- else
-@@ -302,8 +302,8 @@
- .PHONY: install-lib install-lib-static install-lib-shared
- install-lib: install-lib-static install-lib-shared
-
--install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+install-lib-static: lib$(NAME_STATIC_LIB).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
-
- ifeq ($(enable_shared), yes)
- install-lib-shared: $(shlib)
-diff -Nru postgresql-7.3.15.orig/src/nls-global.mk postgresql-7.3.15/src/nls-global.mk
---- postgresql-7.3.15.orig/src/nls-global.mk 2006-09-25 18:18:28.000000000 +0200
-+++ postgresql-7.3.15/src/nls-global.mk 2006-09-25 18:19:18.000000000 +0200
-@@ -67,7 +67,7 @@
- install-po: all-po installdirs-po
- ifneq (,$(LANGUAGES))
- for lang in $(LANGUAGES); do \
-- $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
-+ $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME)-7.3.mo || exit 1; \
- done
- endif
-
diff --git a/dev-db/libpq/files/libpq-7.4-gentoo.patch b/dev-db/libpq/files/libpq-7.4-gentoo.patch
deleted file mode 100644
index ad73bb6..0000000
--- a/dev-db/libpq/files/libpq-7.4-gentoo.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-diff -Nru postgresql-7.4.13.orig/src/bin/pg_config/Makefile postgresql-7.4.13/src/bin/pg_config/Makefile
---- postgresql-7.4.13.orig/src/bin/pg_config/Makefile 2006-09-25 18:18:14.000000000 +0200
-+++ postgresql-7.4.13/src/bin/pg_config/Makefile 2006-09-25 18:20:59.000000000 +0200
-@@ -18,7 +18,7 @@
- chmod a+x $@
-
- install: all installdirs
-- $(INSTALL_SCRIPT) pg_config $(DESTDIR)$(bindir)/pg_config
-+ $(INSTALL_SCRIPT) pg_config $(DESTDIR)$(bindir)/pg_config-7.4
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-diff -Nru postgresql-7.4.13.orig/src/interfaces/libpq/Makefile postgresql-7.4.13/src/interfaces/libpq/Makefile
---- postgresql-7.4.13.orig/src/interfaces/libpq/Makefile 2006-09-25 18:18:14.000000000 +0200
-+++ postgresql-7.4.13/src/interfaces/libpq/Makefile 2006-09-25 18:21:08.000000000 +0200
-@@ -15,8 +15,10 @@
-
- # shared library parameters
- NAME= pq
--SO_MAJOR_VERSION= 3
--SO_MINOR_VERSION= 1
-+SO_MAJOR_VERSION= 7
-+SO_MINOR_VERSION= 4
-+
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-
- override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) $(THREAD_CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"'
-
-@@ -66,7 +68,7 @@
- $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
- $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
- $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
-- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
-+ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).conf.sample
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
-diff -Nru postgresql-7.4.13.orig/src/Makefile.shlib postgresql-7.4.13/src/Makefile.shlib
---- postgresql-7.4.13.orig/src/Makefile.shlib 2006-09-25 18:18:14.000000000 +0200
-+++ postgresql-7.4.13/src/Makefile.shlib 2006-09-25 18:20:59.000000000 +0200
-@@ -229,7 +229,7 @@
-
- all-lib: all-static-lib all-shared-lib
-
--all-static-lib: lib$(NAME).a
-+all-static-lib: lib$(NAME_STATIC_LIB).a
-
- all-shared-lib: $(shlib)
-
-@@ -239,7 +239,7 @@
- MK_NO_LORDER := true
- endif
-
--lib$(NAME).a: $(OBJS)
-+lib$(NAME_STATIC_LIB).a: $(OBJS)
- ifdef MK_NO_LORDER
- $(LINK.static) $@ $^
- else
-@@ -310,11 +310,11 @@
- .PHONY: install-lib install-lib-static install-lib-shared
- install-lib: install-lib-static install-lib-shared
-
--install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+install-lib-static: lib$(NAME_STATIC_LIB).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
- ifeq ($(PORTNAME), darwin)
- cd $(DESTDIR)$(libdir) && \
-- ranlib lib$(NAME).a
-+ ranlib lib$(NAME_STATIC_LIB).a
- endif
-
- ifeq ($(enable_shared), yes)
-diff -Nru postgresql-7.4.13.orig/src/nls-global.mk postgresql-7.4.13/src/nls-global.mk
---- postgresql-7.4.13.orig/src/nls-global.mk 2006-09-25 18:18:14.000000000 +0200
-+++ postgresql-7.4.13/src/nls-global.mk 2006-09-25 18:20:59.000000000 +0200
-@@ -65,7 +65,7 @@
- install-po: all-po installdirs-po
- ifneq (,$(LANGUAGES))
- for lang in $(LANGUAGES); do \
-- $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
-+ $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME)-7.4.mo || exit 1; \
- done
- endif
-
diff --git a/dev-db/libpq/files/libpq-8.0-gentoo.patch b/dev-db/libpq/files/libpq-8.0-gentoo.patch
deleted file mode 100644
index 1148bdc..0000000
--- a/dev-db/libpq/files/libpq-8.0-gentoo.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -Nru postgresql-8.0.8.orig/src/bin/pg_config/Makefile postgresql-8.0.8/src/bin/pg_config/Makefile
---- postgresql-8.0.8.orig/src/bin/pg_config/Makefile 2006-09-25 18:18:36.000000000 +0200
-+++ postgresql-8.0.8/src/bin/pg_config/Makefile 2006-09-25 18:21:23.000000000 +0200
-@@ -23,7 +23,7 @@
- $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
-
- install: all installdirs
-- $(INSTALL_SCRIPT) pg_config$(X) $(DESTDIR)$(bindir)/pg_config$(X)
-+ $(INSTALL_SCRIPT) pg_config$(X) $(DESTDIR)$(bindir)/pg_config-8.0$(X)
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-diff -Nru postgresql-8.0.8.orig/src/interfaces/libpq/Makefile postgresql-8.0.8/src/interfaces/libpq/Makefile
---- postgresql-8.0.8.orig/src/interfaces/libpq/Makefile 2006-09-25 18:18:36.000000000 +0200
-+++ postgresql-8.0.8/src/interfaces/libpq/Makefile 2006-09-25 18:21:31.000000000 +0200
-@@ -16,10 +16,12 @@
-
- # shared library parameters
- NAME= pq
--SO_MAJOR_VERSION= 4
-+SO_MAJOR_VERSION= 8
- SO_MINOR_VERSION= 0
- DLTYPE= library
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-+
- override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
- override CFLAGS += $(PTHREAD_CFLAGS)
-
-@@ -136,7 +138,7 @@
- $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
- $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
- $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
-- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
-+ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).conf.sample
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
-diff -Nru postgresql-8.0.8.orig/src/Makefile.shlib postgresql-8.0.8/src/Makefile.shlib
---- postgresql-8.0.8.orig/src/Makefile.shlib 2006-09-25 18:18:36.000000000 +0200
-+++ postgresql-8.0.8/src/Makefile.shlib 2006-09-25 18:21:23.000000000 +0200
-@@ -360,10 +360,10 @@
- install-lib: install-lib-static install-lib-shared
-
- install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
- ifeq ($(PORTNAME), darwin)
- cd $(DESTDIR)$(libdir) && \
-- ranlib lib$(NAME).a
-+ ranlib lib$(NAME_STATIC_LIB).a
- endif
-
- ifeq ($(enable_shared), yes)
-diff -Nru postgresql-8.0.8.orig/src/nls-global.mk postgresql-8.0.8/src/nls-global.mk
---- postgresql-8.0.8.orig/src/nls-global.mk 2006-09-25 18:18:36.000000000 +0200
-+++ postgresql-8.0.8/src/nls-global.mk 2006-09-25 18:21:23.000000000 +0200
-@@ -65,7 +65,7 @@
- install-po: all-po installdirs-po
- ifneq (,$(LANGUAGES))
- for lang in $(LANGUAGES); do \
-- $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
-+ $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME)-8.0.mo || exit 1; \
- done
- endif
-
diff --git a/dev-db/libpq/files/libpq-8.1-gentoo.patch b/dev-db/libpq/files/libpq-8.1-gentoo.patch
deleted file mode 100644
index 63c27e9..0000000
--- a/dev-db/libpq/files/libpq-8.1-gentoo.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_config/Makefile postgresql-8.1.4/src/bin/pg_config/Makefile
---- postgresql-8.1.4.orig/src/bin/pg_config/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_config/Makefile 2006-09-25 18:21:49.000000000 +0200
-@@ -35,7 +35,7 @@
- $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
-
- install: all installdirs
-- $(INSTALL_SCRIPT) pg_config$(X) $(DESTDIR)$(bindir)/pg_config$(X)
-+ $(INSTALL_SCRIPT) pg_config$(X) $(DESTDIR)$(bindir)/pg_config-8.1$(X)
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-diff -Nru postgresql-8.1.4.orig/src/interfaces/libpq/Makefile postgresql-8.1.4/src/interfaces/libpq/Makefile
---- postgresql-8.1.4.orig/src/interfaces/libpq/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/libpq/Makefile 2006-09-25 18:21:57.000000000 +0200
-@@ -16,10 +16,12 @@
-
- # shared library parameters
- NAME= pq
--SO_MAJOR_VERSION= 4
-+SO_MAJOR_VERSION= 8
- SO_MINOR_VERSION= 1
- DLTYPE= library
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-+
- override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
- ifneq ($(PORTNAME), win32)
- override CFLAGS += $(PTHREAD_CFLAGS)
-@@ -135,7 +137,7 @@
- $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
- $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
- $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
-- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
-+ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).conf.sample
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
-diff -Nru postgresql-8.1.4.orig/src/Makefile.shlib postgresql-8.1.4/src/Makefile.shlib
---- postgresql-8.1.4.orig/src/Makefile.shlib 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/Makefile.shlib 2006-09-25 18:21:49.000000000 +0200
-@@ -366,10 +366,10 @@
- install-lib: install-lib-static install-lib-shared
-
- install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
- ifeq ($(PORTNAME), darwin)
- cd $(DESTDIR)$(libdir) && \
-- ranlib lib$(NAME).a
-+ ranlib lib$(NAME_STATIC_LIB).a
- endif
-
- ifeq ($(enable_shared), yes)
-diff -Nru postgresql-8.1.4.orig/src/nls-global.mk postgresql-8.1.4/src/nls-global.mk
---- postgresql-8.1.4.orig/src/nls-global.mk 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/nls-global.mk 2006-09-25 18:21:49.000000000 +0200
-@@ -65,7 +65,7 @@
- install-po: all-po installdirs-po
- ifneq (,$(LANGUAGES))
- for lang in $(LANGUAGES); do \
-- $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
-+ $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME)-8.1.mo || exit 1; \
- done
- endif
-
diff --git a/dev-db/libpq/libpq-7.3.15-r1.ebuild b/dev-db/libpq/libpq-7.3.15-r1.ebuild
deleted file mode 100644
index 9f2314b..0000000
--- a/dev-db/libpq/libpq-7.3.15-r1.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-DESCRIPTION="PostgreSQL libraries."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
-LICENSE="POSTGRESQL"
-SLOT="7.3"
-IUSE="kerberos nls pam pg-intdatetime readline ssl zlib"
-
-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 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/postgresql-${PV}"
-
-pkg_preinst() {
- # Removing wrong symlink created by previous ebuild
- if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
- rm -f "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-${PV%.*}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # TODO: test if PPC really cannot work with other CFLAGS settings
- # use ppc && CFLAGS="-pipe -fsigned-char"
-
- cd "${S}"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/libpq-${SLOT} \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- --without-perl \
- $(use_enable pg-intdatetime integer-datetimes ) \
- --without-python \
- $(use_with readline) \
- $(use_with ssl openssl) \
- --without-tcl \
- $(use_with zlib) \
- || die "configure failed"
-
- cd "${S}/src/interfaces/libpq"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
-
- cd "${S}/src/bin/pg_config"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
-
- cd "${S}/src/include"
- emake DESTDIR="${D}" install-all-headers || die "emake install headers failed"
-
- cd "${S}/src/bin/pg_config"
- emake DESTDIR="${D}" install || die "emake install pg_config failed"
-
- cd "${S}"
- dodoc README HISTORY
-
- rm -f "${D}/usr/$(get_libdir)/libpq.so.7"
- rm -f "${D}/usr/$(get_libdir)/libpq.so"
-}
-
-src_test() {
- einfo "No tests available for libpq."
-}
diff --git a/dev-db/libpq/libpq-7.4.13-r1.ebuild b/dev-db/libpq/libpq-7.4.13-r1.ebuild
deleted file mode 100644
index cb4d989..0000000
--- a/dev-db/libpq/libpq-7.4.13-r1.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-DESCRIPTION="PostgreSQL libraries."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
-LICENSE="POSTGRESQL"
-SLOT="7.4"
-IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"
-
-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 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/postgresql-${PV}"
-
-pkg_preinst() {
- # Removing wrong symlink created by previous ebuild
- if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
- rm -f "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-${PV%.*}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # TODO: test if PPC really cannot work with other CFLAGS settings
- # use ppc && CFLAGS="-pipe -fsigned-char"
-
- cd "${S}"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/libpq-${SLOT} \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- --without-perl \
- $(use_enable pg-intdatetime integer-datetimes ) \
- --without-python \
- $(use_with readline) \
- $(use_with ssl openssl) \
- --without-tcl \
- $(use_enable threads thread-safety ) \
- $(use_with zlib) \
- || die "configure failed"
-
- cd "${S}/src/interfaces/libpq"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
-
- cd "${S}/src/bin/pg_config"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
-
- cd "${S}/src/include"
- emake DESTDIR="${D}" install-all-headers || die "emake install headers failed"
-
- cd "${S}/src/bin/pg_config"
- emake DESTDIR="${D}" install || die "emake install pg_config failed"
-
- cd "${S}"
- dodoc README HISTORY
-
- rm -f "${D}/usr/$(get_libdir)/libpq.so.7"
- rm -f "${D}/usr/$(get_libdir)/libpq.so"
-}
-
-src_test() {
- einfo "No tests available for libpq."
-}
diff --git a/dev-db/libpq/libpq-8.0.8-r1.ebuild b/dev-db/libpq/libpq-8.0.8-r1.ebuild
deleted file mode 100644
index ea5d945..0000000
--- a/dev-db/libpq/libpq-8.0.8-r1.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-DESCRIPTION="PostgreSQL libraries."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
-LICENSE="POSTGRESQL"
-SLOT="8.0"
-IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"
-
-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 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/postgresql-${PV}"
-
-pkg_preinst() {
- # Removing wrong symlink created by previous ebuild
- if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
- rm -f "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-${PV%.*}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # TODO: test if PPC really cannot work with other CFLAGS settings
- # use ppc && CFLAGS="-pipe -fsigned-char"
-
- cd "${S}"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/libpq-${SLOT} \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- --without-perl \
- $(use_enable pg-intdatetime integer-datetimes ) \
- --without-python \
- $(use_with readline) \
- $(use_with ssl openssl) \
- --without-tcl \
- $(use_enable threads thread-safety ) \
- $(use_with zlib) \
- || die "configure failed"
-
- cd "${S}/src/interfaces/libpq"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
-
- cd "${S}/src/bin/pg_config"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
-
- cd "${S}/src/include"
- emake DESTDIR="${D}" install || die "emake install headers failed"
-
- cd "${S}/src/bin/pg_config"
- emake DESTDIR="${D}" install || die "emake install pg_config failed"
-
- cd "${S}"
- dodoc README HISTORY
-
- rm -f "${D}/usr/$(get_libdir)/libpq.so.8"
- rm -f "${D}/usr/$(get_libdir)/libpq.so"
-}
-
-src_test() {
- einfo "No tests available for libpq."
-}
diff --git a/dev-db/libpq/libpq-8.1.4-r1.ebuild b/dev-db/libpq/libpq-8.1.4-r1.ebuild
deleted file mode 100644
index e1df8d8..0000000
--- a/dev-db/libpq/libpq-8.1.4-r1.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-DESCRIPTION="PostgreSQL libraries."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
-LICENSE="POSTGRESQL"
-SLOT="8.1"
-IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"
-
-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 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/postgresql-${PV}"
-
-pkg_preinst() {
- # Removing wrong symlink created by previous ebuild
- if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
- rm -f "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-${PV%.*}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # TODO: test if PPC really cannot work with other CFLAGS settings
- # use ppc && CFLAGS="-pipe -fsigned-char"
-
- cd "${S}"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/libpq-${SLOT} \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- --without-perl \
- $(use_enable pg-intdatetime integer-datetimes ) \
- --without-python \
- $(use_with readline) \
- $(use_with ssl openssl) \
- --without-tcl \
- $(use_enable threads thread-safety ) \
- $(use_with zlib) \
- || die "configure failed"
-
- cd "${S}/src/interfaces/libpq"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
-
- cd "${S}/src/bin/pg_config"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
-
- cd "${S}/src/include"
- emake DESTDIR="${D}" install || die "emake install headers failed"
-
- cd "${S}/src/bin/pg_config"
- emake DESTDIR="${D}" install || die "emake install pg_config failed"
-
- cd "${S}"
- dodoc README HISTORY
-
- rm -f "${D}/usr/$(get_libdir)/libpq.so.8"
- rm -f "${D}/usr/$(get_libdir)/libpq.so"
-}
-
-src_test() {
- einfo "No tests available for libpq."
-}
diff --git a/dev-db/pgadmin3/ChangeLog b/dev-db/pgadmin3/ChangeLog
new file mode 100644
index 0000000..569a68b
--- /dev/null
+++ b/dev-db/pgadmin3/ChangeLog
@@ -0,0 +1,116 @@
+# ChangeLog for dev-db/pgadmin3
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/ChangeLog,v 1.27 2006/09/23 14:18:46 chtekk Exp $
+
+*pgadmin3-1.4.3 (23 Sep 2006)
+
+ 23 Sep 2006; Luca Longinotti <chtekk@gentoo.org>
+ -files/pgadmin3-1.4.0-configure.patch,
+ -files/pgadmin3-1.4.1-configure.patch, metadata.xml,
+ -pgadmin3-1.0.2.ebuild, -pgadmin3-1.4.0.ebuild, -pgadmin3-1.4.1.ebuild,
+ +pgadmin3-1.4.3.ebuild:
+ Add 1.4.3 to fix GCC4 compilation failures, cleanup old ebuilds.
+
+ 20 Feb 2006; Masatomo Nakano <nakano@gentoo.org>
+ +files/pgadmin3-1.4.1-configure.patch:
+ Added missing patch file.
+
+*pgadmin3-1.4.1 (17 Feb 2006)
+
+ 17 Feb 2006; Masatomo Nakano <nakano@gentoo.org> +pgadmin3-1.4.1.ebuild:
+ Version bump.
+
+*pgadmin3-1.4.0 (08 Nov 2005)
+
+ 08 Nov 2005; Masatomo Nakano <nakano@gentoo.org>
+ -files/pgadmin3-1.4.0-beta2-configure.patch,
+ +files/pgadmin3-1.4.0-configure.patch, -pgadmin3-1.4.0_beta2.ebuild,
+ +pgadmin3-1.4.0.ebuild:
+ version bump.
+
+*pgadmin3-1.4.0_beta2 (18 Oct 2005)
+
+ 18 Oct 2005; Masatomo Nakano <nakano@gentoo.org>
+ +files/pgadmin3-1.4.0-beta2-configure.patch, +pgadmin3-1.4.0_beta2.ebuild:
+ Version bump.
+
+ 13 Oct 2005; Aron Griffis <agriffis@gentoo.org> pgadmin3-1.2.2.ebuild:
+ Mark 1.2.2 stable on alpha
+
+ 21 Sep 2005; Jason Wever <weeve@gentoo.org> pgadmin3-1.2.2.ebuild:
+ Stable on SPARC.
+
+ 17 Sep 2005; Michael Hanselmann <hansmi@gentoo.org> pgadmin3-1.2.2.ebuild:
+ Stable on ppc.
+
+ 16 Sep 2005; <dang@gentoo.org> pgadmin3-1.2.2.ebuild:
+ Marked stable on amd64
+
+ 13 Sep 2005; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.2.2.ebuild:
+ Marked stable on x86.
+
+ 07 Jul 2005; Masatomo Nakano <nakano@gentoo.org>
+ -files/pgadmin3-1.2.1-configure.patch, -pgadmin3-1.2.0.ebuild,
+ -pgadmin3-1.2.1.ebuild, -pgadmin3-1.2.1-r1.ebuild:
+ Removed old ebuilds.
+
+ 20 Jun 2005; Masatomo Nakano <nakano@gentoo.org>
+ +files/pgadmin3-1.2.2-configure.patch, pgadmin3-1.2.2.ebuild:
+ Fixed configure problem in specific environment. (#96520)
+
+*pgadmin3-1.2.2 (19 Jun 2005)
+
+ 19 Jun 2005; Masatomo Nakano <nakano@gentoo.org> +pgadmin3-1.2.2.ebuild:
+ Version bump.
+
+ 11 May 2005; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.2.1-r1.ebuild:
+ Fixed checking unicode USE flag in wxGTK logic. (#91703)
+
+*pgadmin3-1.2.1-r1 (09 May 2005)
+
+ 09 May 2005; Masatomo Nakano <nakano@gentoo.org>
+ +pgadmin3-1.2.1-r1.ebuild:
+ Added depended libpq version.
+
+*pgadmin3-1.2.1 (03 May 2005)
+
+ 03 May 2005; Masatomo Nakano <nakano@gentoo.org>
+ +files/pgadmin3-1.2.1-configure.patch, +pgadmin3-1.2.1.ebuild:
+ Version bump. Fixed ebuild by Rob Cakebread <pythonhead@gentoo.org>.
+
+ 03 May 2005; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.2.0.ebuild:
+ Changed DEPEND from wxGTK-2.5 to wxGTK-2.6.
+
+*pgadmin3-1.2.0 (25 Mar 2005)
+
+ 25 Mar 2005; Masatomo Nakano <nakano@gentoo.org> +pgadmin3-1.2.0.ebuild:
+ Version bumped. But this version is masked due to dependency masked
+ wxGTK-2.5.*.
+
+ 29 Jun 2004; Aron Griffis <agriffis@gentoo.org> pgadmin3-1.0.2.ebuild:
+ add sed-4 dep
+
+ 05 Mar 2004; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.0.2.ebuild:
+ Marked as stable.
+
+ 17 Jan 2004; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.0.2.ebuild:
+ Fixed PostgreSQL library error. Closed #37803.
+
+ 29 Dec 2003; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.0.1.ebuild,
+ pgadmin3-1.0.2.ebuild:
+ Fixed DEPEND
+
+*pgadmin3-1.0.2 (28 Dec 2003)
+
+ 28 Dec 2003; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.0.2.ebuild:
+ Version bump.
+
+*pgadmin3-1.0.1 (06 Nov 2003)
+
+ 18 Dec 2003; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.0.1.ebuild:
+ Removed KEYWORD "~hppa ~ia64 ~arm ~mips"
+
+ 06 Nov 2003; Masatomo Nakano <nakano@gentoo.org> pgadmin3-1.0.1.ebuild:
+ Initial import. Thanks to Ray Russell Reese III <russ@zerotech.net>.
+ Close #32674
+
diff --git a/dev-db/pgadmin3/Manifest b/dev-db/pgadmin3/Manifest
new file mode 100644
index 0000000..50d7394
--- /dev/null
+++ b/dev-db/pgadmin3/Manifest
@@ -0,0 +1,32 @@
+AUX pgadmin3-1.2.2-configure.patch 985 RMD160 476d6ed4513d408c6fe5f0f1eb2b89f32e1e7ea8 SHA1 9a315a716a27605cc6864ec0091bb656e6cd50aa SHA256 afb15b08923dc1cb8f2b6c00925584881cdcab8331320a35863a6769b9be6fd1
+MD5 ea8ba09f3c984e557eb454fcf10b23aa files/pgadmin3-1.2.2-configure.patch 985
+RMD160 476d6ed4513d408c6fe5f0f1eb2b89f32e1e7ea8 files/pgadmin3-1.2.2-configure.patch 985
+SHA256 afb15b08923dc1cb8f2b6c00925584881cdcab8331320a35863a6769b9be6fd1 files/pgadmin3-1.2.2-configure.patch 985
+AUX pgadmin3-1.2.2-syntax.patch 1435 RMD160 4f745368116611e565ec1f3694af80d7af7a3618 SHA1 1fad31a5325f10aa363a05646ecf64efd7b2c60d SHA256 c4704f670c480dad426d1d39a688e970527aab3f117f44081ae69349497f05bd
+MD5 ac10f33b1b8abe28a04ca31ae5e998a1 files/pgadmin3-1.2.2-syntax.patch 1435
+RMD160 4f745368116611e565ec1f3694af80d7af7a3618 files/pgadmin3-1.2.2-syntax.patch 1435
+SHA256 c4704f670c480dad426d1d39a688e970527aab3f117f44081ae69349497f05bd files/pgadmin3-1.2.2-syntax.patch 1435
+DIST pgadmin3-1.2.2.tar.gz 4029500 RMD160 7ec57017ac285cb8fd266ee50cfe661e693c9812 SHA1 b6b7a18e6f783a0c238e8d1016c59af23244b156 SHA256 6fb5422f22942a72a5c46850a4d4689165ae743a6b9a8a38c9c32600177470b5
+DIST pgadmin3-1.4.3.tar.gz 6786185 RMD160 5b5127b7596484e0da8935ceb49351f33ac8757e SHA1 ef6c8625aab2b2c79d4f6966cd6faaefe78df3de SHA256 77a6368dbc748a0164d543d0f660d21d31746677f84553ecbea1e2fffa30a352
+EBUILD pgadmin3-1.2.2-r1.ebuild 1955 RMD160 d2a7a74bc51e4010224b9e8773659a59d9a68beb SHA1 90ce97add60a9659a14a8fc3e21317f8c0311c4f SHA256 e6aec0790c6dc6c5f8ddad854bf0191f97be3a9b38b2381274a61b037dd28031
+MD5 f5daa86516c9e8f502c8d221856b0498 pgadmin3-1.2.2-r1.ebuild 1955
+RMD160 d2a7a74bc51e4010224b9e8773659a59d9a68beb pgadmin3-1.2.2-r1.ebuild 1955
+SHA256 e6aec0790c6dc6c5f8ddad854bf0191f97be3a9b38b2381274a61b037dd28031 pgadmin3-1.2.2-r1.ebuild 1955
+EBUILD pgadmin3-1.4.3-r1.ebuild 1648 RMD160 07bf954d159add2782139651bb36ac2330a9915f SHA1 de20b5b8ddbc2c089a50510a9b6bdafb19219b4d SHA256 9ba34347dbf57d396c3d08c62ab20a8b0e4d66062e16befb25d33220a6323e73
+MD5 9510b0a59ee059c34404c421e34965e1 pgadmin3-1.4.3-r1.ebuild 1648
+RMD160 07bf954d159add2782139651bb36ac2330a9915f pgadmin3-1.4.3-r1.ebuild 1648
+SHA256 9ba34347dbf57d396c3d08c62ab20a8b0e4d66062e16befb25d33220a6323e73 pgadmin3-1.4.3-r1.ebuild 1648
+MISC ChangeLog 3851 RMD160 5782f5cbf50c773d3011d9c61beafadcb80d985d SHA1 d4454128e8c02d7e71666904753f2a1333d26d85 SHA256 b4c955e65595c3a2888cc2df181c70c081ef8e1ea42884674994ae07e46da983
+MD5 c484cecb55b1d4406b9f75e6ee2b216c ChangeLog 3851
+RMD160 5782f5cbf50c773d3011d9c61beafadcb80d985d ChangeLog 3851
+SHA256 b4c955e65595c3a2888cc2df181c70c081ef8e1ea42884674994ae07e46da983 ChangeLog 3851
+MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b
+MD5 6fe52df942ef15801d56449cd8299604 metadata.xml 164
+RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc metadata.xml 164
+SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b metadata.xml 164
+MD5 84f6d451db4521a6e976c6412795f43e files/digest-pgadmin3-1.2.2-r1 247
+RMD160 771f871a342d6dde407d98c910efb8847d6d336f files/digest-pgadmin3-1.2.2-r1 247
+SHA256 9bad38216a96baa90dbb9ac3a1ee1b9d6eb7577275a873578ba54ee4dc859512 files/digest-pgadmin3-1.2.2-r1 247
+MD5 3fc3e78c0f61e709951e95a9ecc31dab files/digest-pgadmin3-1.4.3-r1 247
+RMD160 60393e6acfb632ffd3711218301e216ebf74a97f files/digest-pgadmin3-1.4.3-r1 247
+SHA256 16f325e2057437761ebca4d2f828e111fdd158541e0c6e1a2d4afc2c1433afc7 files/digest-pgadmin3-1.4.3-r1 247
diff --git a/dev-db/pgadmin3/files/digest-pgadmin3-1.2.2-r1 b/dev-db/pgadmin3/files/digest-pgadmin3-1.2.2-r1
new file mode 100644
index 0000000..bd3ba72
--- /dev/null
+++ b/dev-db/pgadmin3/files/digest-pgadmin3-1.2.2-r1
@@ -0,0 +1,3 @@
+MD5 daead4660883f423db31f2019cac2f34 pgadmin3-1.2.2.tar.gz 4029500
+RMD160 7ec57017ac285cb8fd266ee50cfe661e693c9812 pgadmin3-1.2.2.tar.gz 4029500
+SHA256 6fb5422f22942a72a5c46850a4d4689165ae743a6b9a8a38c9c32600177470b5 pgadmin3-1.2.2.tar.gz 4029500
diff --git a/dev-db/pgadmin3/files/digest-pgadmin3-1.4.3-r1 b/dev-db/pgadmin3/files/digest-pgadmin3-1.4.3-r1
new file mode 100644
index 0000000..dd1e45e
--- /dev/null
+++ b/dev-db/pgadmin3/files/digest-pgadmin3-1.4.3-r1
@@ -0,0 +1,3 @@
+MD5 28388816f867cd8723a4c0a460cf26b4 pgadmin3-1.4.3.tar.gz 6786185
+RMD160 5b5127b7596484e0da8935ceb49351f33ac8757e pgadmin3-1.4.3.tar.gz 6786185
+SHA256 77a6368dbc748a0164d543d0f660d21d31746677f84553ecbea1e2fffa30a352 pgadmin3-1.4.3.tar.gz 6786185
diff --git a/dev-db/pgadmin3/files/pgadmin3-1.2.2-configure.patch b/dev-db/pgadmin3/files/pgadmin3-1.2.2-configure.patch
new file mode 100644
index 0000000..f04a977
--- /dev/null
+++ b/dev-db/pgadmin3/files/pgadmin3-1.2.2-configure.patch
@@ -0,0 +1,26 @@
+--- configure.orig 2005-06-19 23:29:13.000000000 +0200
++++ configure 2005-06-19 23:32:38.000000000 +0200
+@@ -5364,13 +5364,22 @@
+ then
+ if test ! -f "${WX_HOME}/${wx_config_binary}"
+ then
++ # PP: here i have trouble, since on my machine
++ # the WX_HOME point to /usr/local (old 2.5) and should be /usr...
++ # lets try as last chance
++ WX_HOME=/usr
++ if test ! -f "${WX_HOME}/${wx_config_binary}"
++ then
+ { { echo "$as_me:$LINENO: error: Could not find ${wx_config_binary}" >&5
+-echo "$as_me: error: Could not find ${wx_config_binary}" >&2;}
++ echo "$as_me: error: Could not find ${wx_config_binary}" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ WX_CONFIG="${WX_HOME}/${wx_config_binary}"
+ fi
+ else
++ WX_CONFIG="${WX_HOME}/${wx_config_binary}"
++ fi
++ else
+ WX_CONFIG="${WX_HOME}/bin/${wx_config_binary}"
+ fi
+ else
diff --git a/dev-db/pgadmin3/files/pgadmin3-1.2.2-syntax.patch b/dev-db/pgadmin3/files/pgadmin3-1.2.2-syntax.patch
new file mode 100644
index 0000000..e12fb3e
--- /dev/null
+++ b/dev-db/pgadmin3/files/pgadmin3-1.2.2-syntax.patch
@@ -0,0 +1,26 @@
+diff --git a/src/include/pgFunction.h b/src/include/pgFunction.h
+index 6d10421..128110b 100644
+--- a/src/include/pgFunction.h
++++ b/src/include/pgFunction.h
+@@ -33,7 +33,7 @@ public:
+ int GetIcon() { return PGICON_FUNCTION; }
+ void ShowTreeDetail(wxTreeCtrl *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
+ static pgObject *ReadObjects(pgCollection *collection, wxTreeCtrl *browser);
+- static pgFunction *pgFunction::AppendFunctions(pgObject *obj, pgSchema *schema, wxTreeCtrl *browser, const wxString &restriction);
++ static pgFunction *AppendFunctions(pgObject *obj, pgSchema *schema, wxTreeCtrl *browser, const wxString &restriction);
+
+ wxString GetFullName() const {return GetName()+wxT("(")+GetArgTypes()+wxT(")"); }
+ wxString GetArgTypeNames() const { return argTypeNames; }
+diff --git a/src/include/pgObject.h b/src/include/pgObject.h
+index a06678c..8cd4a5c 100644
+--- a/src/include/pgObject.h
++++ b/src/include/pgObject.h
+@@ -223,7 +223,7 @@ public:
+ pgSchemaObject(pgSchema *newSchema, int newType, const wxString& newName = wxT("")) : pgDatabaseObject(newType, newName)
+ { tableOid=0; SetSchema(newSchema); wxLogInfo(wxT("Creating a pg") + GetTypeName() + wxT(" object")); }
+
+- pgSchemaObject::~pgSchemaObject()
++ ~pgSchemaObject()
+ { wxLogInfo(wxT("Destroying a pg") + GetTypeName() + wxT(" object")); }
+
+ bool GetSystemObject() const;
diff --git a/dev-db/libpq/metadata.xml b/dev-db/pgadmin3/metadata.xml
index d06e452..d06e452 100644
--- a/dev-db/libpq/metadata.xml
+++ b/dev-db/pgadmin3/metadata.xml
diff --git a/dev-db/pgadmin3/pgadmin3-1.2.2-r1.ebuild b/dev-db/pgadmin3/pgadmin3-1.2.2-r1.ebuild
new file mode 100644
index 0000000..0bb7942
--- /dev/null
+++ b/dev-db/pgadmin3/pgadmin3-1.2.2-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils libtool wxwidgets postgresql
+
+IUSE=""
+
+RESTRICT="nomirror"
+DESCRIPTION="wxWindows GUI for PostgreSQL"
+HOMEPAGE="http://www.pgadmin.org/"
+SRC_URI="mirror://postgresql/pgadmin3/release/v${PV}/src/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DEPEND=">=x11-libs/wxGTK-2.6.0
+ dev-db/postgresql-libs
+ >=sys-apps/sed-4"
+
+pkg_setup() {
+ if ! built_with_use '>=x11-libs/wxGTK-2.6.0' unicode ; then
+ die "${PN} requires >=x11-libs/wxGTK-2.6.0 emerged with USE='unicode'"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S} || die "Couldn't cd to ${S}"
+ epatch ${FILESDIR}/${P}-configure.patch
+ epatch ${FILESDIR}/${P}-syntax.patch
+}
+
+src_compile() {
+ export WX_GTK_VER=2.6
+ export WX_HOME=/usr
+ need-wxwidgets unicode
+
+ local pgconfig="$(postgresql_get_pgconfig)"
+ local myconf
+ myconf="${myconf} --enable-unicode"
+ myconf="${myconf} --enable-gtk2"
+ myconf="${myconf} --with-pgsql-include=$(${pgconfig} --includedir)"
+ myconf="${myconf} --with-wx-config=/lib/wx/config/${WX_CONFIG_NAME}"
+ myconf="${myconf} --enable-postgres"
+ econf ${myconf} "LDFLAGS=-L$(${pgconfig} --libdir)" || die
+ emake || die
+}
+
+src_install() {
+ einstall || die
+
+ dodir /usr/share/pixmaps
+
+ cp ${S}/src/include/images/elephant48.xpm ${D}/usr/share/pixmaps/pgadmin3.xpm
+
+ dodir /usr/share/pgadmin3
+
+ cp ${S}/src/include/images/elephant48.xpm ${D}/usr/share/pgadmin3/pgadmin3.xpm
+
+ chmod 644 ${D}/usr/share/pixmaps/pgadmin3.xpm
+ chmod 644 ${D}/usr/share/pgadmin3/pgadmin3.xpm
+
+ dodir /usr/share/applications
+
+ cp ${S}/pkg/pgadmin3.desktop ${D}/usr/share/applications/pgadmin3.desktop
+ chmod 644 ${D}/usr/share/applications/pgadmin3.desktop
+
+ dodir /usr/share/applnk/Development
+
+ cp ${S}/pkg/pgadmin3.desktop ${D}/usr/share/applnk/Development/pgadmin3.desktop
+ chmod 644 ${D}/usr/share/applnk/Development/pgadmin3.desktop
+}
diff --git a/dev-db/pgadmin3/pgadmin3-1.4.3-r1.ebuild b/dev-db/pgadmin3/pgadmin3-1.4.3-r1.ebuild
new file mode 100644
index 0000000..c6966d4
--- /dev/null
+++ b/dev-db/pgadmin3/pgadmin3-1.4.3-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit wxwidgets eutils autotools postgresql
+
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DESCRIPTION="wxWidgets GUI for PostgreSQL."
+HOMEPAGE="http://www.pgadmin.org/"
+SRC_URI="mirror://postgresql/pgadmin3/release/v${PV}/src/${P}.tar.gz"
+LICENSE="Artistic"
+SLOT="0"
+IUSE="debug"
+
+DEPEND="=x11-libs/wxGTK-2.6*
+ >=dev-db/postgresql-libs-7.4
+ >=dev-libs/libxml2-2.5
+ >=dev-libs/libxslt-1.1"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ export WX_GTK_VER=2.6
+ export WX_HOME=/usr
+ need-wxwidgets unicode
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # --debug=yes/no for wx_config is only needed if wxGTK debug and
+ # release versions are installed aside. Which is not possible
+ # on Gentoo at the moment.
+ sed -i \
+ -e 's/--debug=[yesno]* //g' \
+ acinclude.m4 || die "sed failed"
+ eautoreconf
+}
+
+src_compile() {
+ local pgconfig="$(postgresql_get_pgconfig 7.4)"
+ local pglibdir="$(${pgconfig} --libdir)"
+ # pgadmin3 inserts WX_HOME before the WX_CONFIG path below, so we have to strip "/usr" from it
+ econf \
+ --with-wx-config=${WX_CONFIG/\/usr} \
+ $(use_enable debug) \
+ --with-pgsql-include="$(${pgconfig} --includedir)" \
+ --with-pgsql="${pglibdir%lib}" \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd "${S}"
+
+ einstall || die "einstall failed"
+
+ insinto /usr/share/pixmaps
+ newins "${S}/src/include/images/elephant48.xpm" pgadmin3.xpm
+
+ insinto /usr/share/pgadmin3
+ newins "${S}/src/include/images/elephant48.xpm" pgadmin3.xpm
+
+ insinto /usr/share/applications
+ doins "${S}/pkg/pgadmin3.desktop"
+}
diff --git a/dev-db/postgresql-client/Manifest b/dev-db/postgresql-client/Manifest
new file mode 100644
index 0000000..a88e2ca
--- /dev/null
+++ b/dev-db/postgresql-client/Manifest
@@ -0,0 +1,113 @@
+AUX pg_autovacuum.conf-7.4 480 RMD160 aa372b5108f9d163f5762c4150011b7c6c9a5638 SHA1 89cf741bdf091950feaa5a88f657ffc23906c23c SHA256 0884af8014efa76f40f7a646fdd90f57d8786cf6963ab7fc8913fe1b9987aeef
+MD5 52d7822ad65be246f412833576c1bf0c files/pg_autovacuum.conf-7.4 480
+RMD160 aa372b5108f9d163f5762c4150011b7c6c9a5638 files/pg_autovacuum.conf-7.4 480
+SHA256 0884af8014efa76f40f7a646fdd90f57d8786cf6963ab7fc8913fe1b9987aeef files/pg_autovacuum.conf-7.4 480
+AUX pg_autovacuum.conf-8.0 480 RMD160 5607b2e5154d2275224100b2fdf9bf75881b013d SHA1 745eb02b4e173c328ca291f84704cca76c21ed3a SHA256 bb131d8b44c2836d920802347a591600b7145eac38bc0e418e23c599611965da
+MD5 c0f1122acd598dd72018b083622111f1 files/pg_autovacuum.conf-8.0 480
+RMD160 5607b2e5154d2275224100b2fdf9bf75881b013d files/pg_autovacuum.conf-8.0 480
+SHA256 bb131d8b44c2836d920802347a591600b7145eac38bc0e418e23c599611965da files/pg_autovacuum.conf-8.0 480
+AUX pg_autovacuum.init-7.4 1409 RMD160 7aee45ef77ff01b65088ce588d2c88a7e5a05b2f SHA1 5e394a3479ffc2e3c9bf24740de9e6697ca1e0f7 SHA256 513abf3f4c73c3262af487dc2d8a0c68eabd02be3c669d0a99666125b0192743
+MD5 e1271ac837401f533ee966b9dc73cfcd files/pg_autovacuum.init-7.4 1409
+RMD160 7aee45ef77ff01b65088ce588d2c88a7e5a05b2f files/pg_autovacuum.init-7.4 1409
+SHA256 513abf3f4c73c3262af487dc2d8a0c68eabd02be3c669d0a99666125b0192743 files/pg_autovacuum.init-7.4 1409
+AUX pg_autovacuum.init-8.0 1409 RMD160 47fd6ce37fe067e21660034194625cd7ae3eddfe SHA1 583f359538884712bc65ac04b0698508b7ffb96c SHA256 e5691194b84a22f5720d16fb00a74f4bacd7c716715530851e22908059d53d58
+MD5 0247f6ce4f15fc609330fe3eaba888f8 files/pg_autovacuum.init-8.0 1409
+RMD160 47fd6ce37fe067e21660034194625cd7ae3eddfe files/pg_autovacuum.init-8.0 1409
+SHA256 e5691194b84a22f5720d16fb00a74f4bacd7c716715530851e22908059d53d58 files/pg_autovacuum.init-8.0 1409
+AUX postgresql-7.3-client.patch 5100 RMD160 43b2d385720562c7533638581e8de6027446e29f SHA1 08326750f011543a024c8ca06131ba4e1bd8b54c SHA256 7ed19d12251d6caa7ea8649fdc6cced07662abbbd512591ce7eec0626701035a
+MD5 04a1230071d569986350b498a5a88347 files/postgresql-7.3-client.patch 5100
+RMD160 43b2d385720562c7533638581e8de6027446e29f files/postgresql-7.3-client.patch 5100
+SHA256 7ed19d12251d6caa7ea8649fdc6cced07662abbbd512591ce7eec0626701035a files/postgresql-7.3-client.patch 5100
+AUX postgresql-7.3-nls.patch 903 RMD160 13819ef0b92c29114cf67ecc84b9ac6d9dbd5b66 SHA1 00f04235b4f5f126c3446b7108f2c81c21118507 SHA256 b2bf11ca9d3a0e315d3c7ca5ae27b57ff7177e54bc580136e22dbd61428fcc44
+MD5 738855088ca899a3c51c731a2bf4a4d4 files/postgresql-7.3-nls.patch 903
+RMD160 13819ef0b92c29114cf67ecc84b9ac6d9dbd5b66 files/postgresql-7.3-nls.patch 903
+SHA256 b2bf11ca9d3a0e315d3c7ca5ae27b57ff7177e54bc580136e22dbd61428fcc44 files/postgresql-7.3-nls.patch 903
+AUX postgresql-7.4-client.patch 4289 RMD160 73ba52aa608bef2922e67fa305e3207c6c45c371 SHA1 bade646b90fae0a6be5cd1e1b4837b247a047f99 SHA256 ca8bcf409da1c99d775637105af4c068e5f7df6f90380edccd125553993f2a33
+MD5 cbad55f8a6e3d9642076d09c9c488a67 files/postgresql-7.4-client.patch 4289
+RMD160 73ba52aa608bef2922e67fa305e3207c6c45c371 files/postgresql-7.4-client.patch 4289
+SHA256 ca8bcf409da1c99d775637105af4c068e5f7df6f90380edccd125553993f2a33 files/postgresql-7.4-client.patch 4289
+AUX postgresql-7.4-nls.patch 903 RMD160 67bd39108c62c1a223dde749965e6981824030b0 SHA1 45bac2039e2a487d03488a3ef70f23ce116a4684 SHA256 55f015b1f7a73b0c8ef957cfe9d52c782f9eaf8abff38a59840b86edc3731025
+MD5 64897f6edf14f53bdfa0921be5fffbb0 files/postgresql-7.4-nls.patch 903
+RMD160 67bd39108c62c1a223dde749965e6981824030b0 files/postgresql-7.4-nls.patch 903
+SHA256 55f015b1f7a73b0c8ef957cfe9d52c782f9eaf8abff38a59840b86edc3731025 files/postgresql-7.4-nls.patch 903
+AUX postgresql-8.0-client.patch 2822 RMD160 1b2b5ada1a3bb314dba57016016661298a137d6c SHA1 3076bda9547f2e2b162af37954bb4e339dec5849 SHA256 d5a4696b86f1b7486dc50a5d371d2cb6e542f4a3e5b6b639e0fb4a8ca749afbe
+MD5 dce4b2df4ec40940ff5061b2c09dba42 files/postgresql-8.0-client.patch 2822
+RMD160 1b2b5ada1a3bb314dba57016016661298a137d6c files/postgresql-8.0-client.patch 2822
+SHA256 d5a4696b86f1b7486dc50a5d371d2cb6e542f4a3e5b6b639e0fb4a8ca749afbe files/postgresql-8.0-client.patch 2822
+AUX postgresql-8.0-nls.patch 903 RMD160 ffbe83748941a0d25715f6cfbadda95441d152af SHA1 f49df137be68a34b7f30e0c054df9f0e39721c22 SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98
+MD5 adfce07a45d624bc1903905090ffe431 files/postgresql-8.0-nls.patch 903
+RMD160 ffbe83748941a0d25715f6cfbadda95441d152af files/postgresql-8.0-nls.patch 903
+SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98 files/postgresql-8.0-nls.patch 903
+AUX postgresql-8.0-no-interfaces.patch 430 RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 SHA1 db70a0103d57bb2044f38fb0684328b80e365304 SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5
+MD5 486acb579010282ead6c424c6fb46ba1 files/postgresql-8.0-no-interfaces.patch 430
+RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 files/postgresql-8.0-no-interfaces.patch 430
+SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5 files/postgresql-8.0-no-interfaces.patch 430
+AUX postgresql-8.1-client.patch 2276 RMD160 7cc4374061a8c22e4157dc8b62b8dcc7e2ac5a45 SHA1 36addea2e58065afa2a3fb0fcc8afd8d2259f0a7 SHA256 f78bcf6be04f243c728c40ae03d529f08185daa928c545b074bf7d2f4ec630f2
+MD5 f97e800c74b9aa33f648b7eebbceb94c files/postgresql-8.1-client.patch 2276
+RMD160 7cc4374061a8c22e4157dc8b62b8dcc7e2ac5a45 files/postgresql-8.1-client.patch 2276
+SHA256 f78bcf6be04f243c728c40ae03d529f08185daa928c545b074bf7d2f4ec630f2 files/postgresql-8.1-client.patch 2276
+AUX postgresql-8.1-nls.patch 903 RMD160 ffbe83748941a0d25715f6cfbadda95441d152af SHA1 f49df137be68a34b7f30e0c054df9f0e39721c22 SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98
+MD5 adfce07a45d624bc1903905090ffe431 files/postgresql-8.1-nls.patch 903
+RMD160 ffbe83748941a0d25715f6cfbadda95441d152af files/postgresql-8.1-nls.patch 903
+SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98 files/postgresql-8.1-nls.patch 903
+AUX postgresql-8.1-no-interfaces.patch 430 RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 SHA1 db70a0103d57bb2044f38fb0684328b80e365304 SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5
+MD5 486acb579010282ead6c424c6fb46ba1 files/postgresql-8.1-no-interfaces.patch 430
+RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 files/postgresql-8.1-no-interfaces.patch 430
+SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5 files/postgresql-8.1-no-interfaces.patch 430
+AUX postgresql-8.2-client.patch 2351 RMD160 b862a18b567372382d74567039cafb83c50b2917 SHA1 067b18d66c9f8f9a8ba61130a7e53210efa9e07d SHA256 95ecea56c62ee13dd13fd48804046c96b037e6a63a28175e70f3df6961ec7a4d
+MD5 988674e8bc89022a92a5bfdf02f59d61 files/postgresql-8.2-client.patch 2351
+RMD160 b862a18b567372382d74567039cafb83c50b2917 files/postgresql-8.2-client.patch 2351
+SHA256 95ecea56c62ee13dd13fd48804046c96b037e6a63a28175e70f3df6961ec7a4d files/postgresql-8.2-client.patch 2351
+AUX postgresql-8.2-nls.patch 694 RMD160 7bf8b223f2da3af437eb168eebaf5dcdfcf01dac SHA1 f7b289d67e7c17d21006a780d117d27036aa1ada SHA256 be7d52faaf4eb66b2959bd5709b67b37fa685284734bb8bfc73caef667392669
+MD5 98fd6b000ddcb406647f3da6ae8c5b01 files/postgresql-8.2-nls.patch 694
+RMD160 7bf8b223f2da3af437eb168eebaf5dcdfcf01dac files/postgresql-8.2-nls.patch 694
+SHA256 be7d52faaf4eb66b2959bd5709b67b37fa685284734bb8bfc73caef667392669 files/postgresql-8.2-nls.patch 694
+AUX postgresql-8.2-no-interfaces.patch 430 RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 SHA1 db70a0103d57bb2044f38fb0684328b80e365304 SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5
+MD5 486acb579010282ead6c424c6fb46ba1 files/postgresql-8.2-no-interfaces.patch 430
+RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 files/postgresql-8.2-no-interfaces.patch 430
+SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5 files/postgresql-8.2-no-interfaces.patch 430
+DIST postgresql-base-7.3.17.tar.bz2 5694969 RMD160 b24910d27ab65a29c92e1328910004ee0abe1457 SHA1 67c6b5d4075e4f69b881c892d503969ac203183e SHA256 9d844fc9ffda1d6b2d6f324c7198ce5ffa4ea1bd79516ffa85b45bd2e8e616b3
+DIST postgresql-base-7.4.15.tar.bz2 6584329 RMD160 696e1bfcf815fb11865ebb375d6d3371d0908d18 SHA1 cb10ee0048804aef1e510afd21df71b1c17968be SHA256 42674ff290c05ae0baea0b0e177c30d28a609cdc72ce5c142c9f091278deafc2
+DIST postgresql-base-8.0.10.tar.bz2 7840640 RMD160 5efe3d7ad2feb9c660ca95a38aa11b62a4651757 SHA1 f5fef7b295e7958b3a2070b9590669d844fcafba SHA256 ed9d809cf54171475b755ebe452f9d360c5d1c8fb5085f575ae96c233f6abb6d
+DIST postgresql-base-8.1.6.tar.bz2 8064467 RMD160 766f0715b17f58f59546fdec702ddfaf110c7aee SHA1 c01020571ba6b9be49363d51a526e99ebf4996b0 SHA256 d6c4e8cf28764aefe81e6de253933c33950e58ca8975c9d93b3e844137dfd732
+DIST postgresql-base-8.2.1.tar.bz2 8483464 RMD160 a4bb2acae59dac730a8c03b110fed36c84d8204e SHA1 025cea3b072d273da8da5e0a125fe22d172aab3d SHA256 99aa1b8d3f0f53f5fd138103052f5111310c061b25c0293dd9f93dc3fd6fda5c
+DIST postgresql-opt-7.3.17.tar.bz2 342167 RMD160 e14bab7eb4567e3b65b5c3eb53eae3f24027091b SHA1 dcb400727ed0a441d687d29f63e2285e9c2a1db1 SHA256 26837b6a96a0bc2f3c04213571862c85c8cd3a7e2aac2b49a192bb651630361c
+DIST postgresql-opt-7.4.15.tar.bz2 333512 RMD160 11edd49dec8ccbe9de56930307bf6a2040eb17a8 SHA1 aefe8d4f2689d94e2cff798ce79b37bcfa41c7f2 SHA256 1bea2be928bc72f4e2b8e2342f599cd68134784e43c2a2f4606888524d4d25c6
+DIST postgresql-opt-8.0.10.tar.bz2 134801 RMD160 12ce042bc97a900b28b554368969886b76b6d920 SHA1 cf46c8dbe0d68ba33c6e519d50310b4906809742 SHA256 1e85b9007a79a842ddc22eb79fc4842937a0135d16e34756991a59bded345f96
+DIST postgresql-opt-8.1.6.tar.bz2 144641 RMD160 5287ea34c7c1b13c5e61cb469c6f45616109e8aa SHA1 5f27b3b67598c0c049248e93dbaf368939e76cab SHA256 321dcb79e042f1ddd202ecce5654d1ca0a6a72ec4fda86eac6e3990500bdbcfb
+DIST postgresql-opt-8.2.1.tar.bz2 167629 RMD160 34edadf292d7e6923a19adfee6a0077f30b4b272 SHA1 b318cda7a22b4ac14b67ac46e5f53780871b963f SHA256 9a542c79c2983322c621b4086ae78e1d7c3bb841c95283e45e7bced73d975422
+EBUILD postgresql-client-7.3.17.ebuild 2066 RMD160 73a0ba181cf9e91ab05bb28addbf9f87289df2e7 SHA1 b1cd0a6864ec162bc73f25eadf339f7be31743dd SHA256 d0e2ba1471d571f44507ec5d9dacb246d3b3846b0859d74f54165b1201537605
+MD5 2924ba847a16e03ec4b4a96e06d972c3 postgresql-client-7.3.17.ebuild 2066
+RMD160 73a0ba181cf9e91ab05bb28addbf9f87289df2e7 postgresql-client-7.3.17.ebuild 2066
+SHA256 d0e2ba1471d571f44507ec5d9dacb246d3b3846b0859d74f54165b1201537605 postgresql-client-7.3.17.ebuild 2066
+EBUILD postgresql-client-7.4.15.ebuild 2381 RMD160 943282c17b6e575ce76553eb7c136e2598e90184 SHA1 10398c6861f62073900ebc95630a20f9764349d0 SHA256 7f2145e4a2ead4d475c86c6ca1e852be022a8aaeb20aec177f50d810b1e7b621
+MD5 81db5456e739a3ba87ab54a63052b667 postgresql-client-7.4.15.ebuild 2381
+RMD160 943282c17b6e575ce76553eb7c136e2598e90184 postgresql-client-7.4.15.ebuild 2381
+SHA256 7f2145e4a2ead4d475c86c6ca1e852be022a8aaeb20aec177f50d810b1e7b621 postgresql-client-7.4.15.ebuild 2381
+EBUILD postgresql-client-8.0.10.ebuild 2652 RMD160 26faa7f4704c3a460d6b85ed56bc7001d27fe9dd SHA1 646c8202a0c276b9cc28ce515a2190fa8a2ee65e SHA256 9209e0c0cbec4148b2c4c8fed9f141aef2edce44a28dd9bf40f5f2aba9930343
+MD5 e04fa5d4f188b475725dc9d745971cfa postgresql-client-8.0.10.ebuild 2652
+RMD160 26faa7f4704c3a460d6b85ed56bc7001d27fe9dd postgresql-client-8.0.10.ebuild 2652
+SHA256 9209e0c0cbec4148b2c4c8fed9f141aef2edce44a28dd9bf40f5f2aba9930343 postgresql-client-8.0.10.ebuild 2652
+EBUILD postgresql-client-8.1.6.ebuild 2338 RMD160 720b8c58c4714f2a81db3fcc15f7eab662628de6 SHA1 33c89ac01da80a37aee882c6c0349a507db4bdd7 SHA256 b60c20a4367f2e42ef83f96cfdd872e1608d49e870d546e1ce307427025ae3c8
+MD5 67192b23d3e3743e13b6a7356300f2e0 postgresql-client-8.1.6.ebuild 2338
+RMD160 720b8c58c4714f2a81db3fcc15f7eab662628de6 postgresql-client-8.1.6.ebuild 2338
+SHA256 b60c20a4367f2e42ef83f96cfdd872e1608d49e870d546e1ce307427025ae3c8 postgresql-client-8.1.6.ebuild 2338
+EBUILD postgresql-client-8.2.1.ebuild 2366 RMD160 24a61d348f1041d70836cd48e797c6e59393e6c3 SHA1 81c28c89501124a71097bee72e7262d768a10ec7 SHA256 323f8dd2e160685477e75f135dd11220b2335c28539708757533c8f27665c40c
+MD5 34bc0a3ea840eee5385c3cd05ee675e1 postgresql-client-8.2.1.ebuild 2366
+RMD160 24a61d348f1041d70836cd48e797c6e59393e6c3 postgresql-client-8.2.1.ebuild 2366
+SHA256 323f8dd2e160685477e75f135dd11220b2335c28539708757533c8f27665c40c postgresql-client-8.2.1.ebuild 2366
+MD5 69494e1fb9e72be361e9bbc64beffdb0 files/digest-postgresql-client-7.3.17 542
+RMD160 f0821011306946f8ec25ec7e7283d87b4a3c79e8 files/digest-postgresql-client-7.3.17 542
+SHA256 2b4d57f1728f35b35b1956c3b60ca48f510a4e131ff1f40e72063a2ca9c72830 files/digest-postgresql-client-7.3.17 542
+MD5 21c9585e070609a19cb28447c2a661db files/digest-postgresql-client-7.4.15 542
+RMD160 3379ffb692e4036965a711fa14de3ee7afea8dbd files/digest-postgresql-client-7.4.15 542
+SHA256 103ea02e0250a80ad510f6eadde26681101618b42cd56612de1c0f6e64a25282 files/digest-postgresql-client-7.4.15 542
+MD5 f0af2e751257a41560adef9b21b8c87e files/digest-postgresql-client-8.0.10 542
+RMD160 004c5f8b395bcf37b3971c9bd06ebce256debc5e files/digest-postgresql-client-8.0.10 542
+SHA256 75bd1907bb06070a7abd6adde7c99850c24e76bdc938cc8fe4ae957df1e7d09e files/digest-postgresql-client-8.0.10 542
+MD5 dc5eee02b8aacf460e479b5d9b2fe235 files/digest-postgresql-client-8.1.6 536
+RMD160 eed3db3c534e7aeaecb963b0fa898d3d61f109a4 files/digest-postgresql-client-8.1.6 536
+SHA256 b9a12777d04779423cadf944ce502cbc11888bb2aad00994159f0e69dd1e10a4 files/digest-postgresql-client-8.1.6 536
+MD5 218fe143cba27234cf3e7c56bc85bcd2 files/digest-postgresql-client-8.2.1 536
+RMD160 9b77cdf0f14177e04c3ba9697e9cea667359bfca files/digest-postgresql-client-8.2.1 536
+SHA256 acce761afee28459ec235e481df9145b4b4a56846b69558179841e1b334a6e1e files/digest-postgresql-client-8.2.1 536
diff --git a/dev-db/postgresql-client/files/digest-postgresql-client-7.3.17 b/dev-db/postgresql-client/files/digest-postgresql-client-7.3.17
new file mode 100644
index 0000000..ad637dd
--- /dev/null
+++ b/dev-db/postgresql-client/files/digest-postgresql-client-7.3.17
@@ -0,0 +1,6 @@
+MD5 44df750b477b8e9c329f514f0264f915 postgresql-base-7.3.17.tar.bz2 5694969
+RMD160 b24910d27ab65a29c92e1328910004ee0abe1457 postgresql-base-7.3.17.tar.bz2 5694969
+SHA256 9d844fc9ffda1d6b2d6f324c7198ce5ffa4ea1bd79516ffa85b45bd2e8e616b3 postgresql-base-7.3.17.tar.bz2 5694969
+MD5 9ed5d06f185877c0b609b7dbe96f73bd postgresql-opt-7.3.17.tar.bz2 342167
+RMD160 e14bab7eb4567e3b65b5c3eb53eae3f24027091b postgresql-opt-7.3.17.tar.bz2 342167
+SHA256 26837b6a96a0bc2f3c04213571862c85c8cd3a7e2aac2b49a192bb651630361c postgresql-opt-7.3.17.tar.bz2 342167
diff --git a/dev-db/postgresql-client/files/digest-postgresql-client-7.4.15 b/dev-db/postgresql-client/files/digest-postgresql-client-7.4.15
new file mode 100644
index 0000000..254c33a
--- /dev/null
+++ b/dev-db/postgresql-client/files/digest-postgresql-client-7.4.15
@@ -0,0 +1,6 @@
+MD5 971dd112cfbd9a54f48081345c934209 postgresql-base-7.4.15.tar.bz2 6584329
+RMD160 696e1bfcf815fb11865ebb375d6d3371d0908d18 postgresql-base-7.4.15.tar.bz2 6584329
+SHA256 42674ff290c05ae0baea0b0e177c30d28a609cdc72ce5c142c9f091278deafc2 postgresql-base-7.4.15.tar.bz2 6584329
+MD5 a19d989663d2a73a72a1031ace7ce58c postgresql-opt-7.4.15.tar.bz2 333512
+RMD160 11edd49dec8ccbe9de56930307bf6a2040eb17a8 postgresql-opt-7.4.15.tar.bz2 333512
+SHA256 1bea2be928bc72f4e2b8e2342f599cd68134784e43c2a2f4606888524d4d25c6 postgresql-opt-7.4.15.tar.bz2 333512
diff --git a/dev-db/postgresql-client/files/digest-postgresql-client-8.0.10 b/dev-db/postgresql-client/files/digest-postgresql-client-8.0.10
new file mode 100644
index 0000000..8811baf
--- /dev/null
+++ b/dev-db/postgresql-client/files/digest-postgresql-client-8.0.10
@@ -0,0 +1,6 @@
+MD5 beb7db3955dc92362a8efc513c60bf96 postgresql-base-8.0.10.tar.bz2 7840640
+RMD160 5efe3d7ad2feb9c660ca95a38aa11b62a4651757 postgresql-base-8.0.10.tar.bz2 7840640
+SHA256 ed9d809cf54171475b755ebe452f9d360c5d1c8fb5085f575ae96c233f6abb6d postgresql-base-8.0.10.tar.bz2 7840640
+MD5 4487d7ceebf33e847c780fe66b363d6e postgresql-opt-8.0.10.tar.bz2 134801
+RMD160 12ce042bc97a900b28b554368969886b76b6d920 postgresql-opt-8.0.10.tar.bz2 134801
+SHA256 1e85b9007a79a842ddc22eb79fc4842937a0135d16e34756991a59bded345f96 postgresql-opt-8.0.10.tar.bz2 134801
diff --git a/dev-db/postgresql-client/files/digest-postgresql-client-8.1.6 b/dev-db/postgresql-client/files/digest-postgresql-client-8.1.6
new file mode 100644
index 0000000..dafa251
--- /dev/null
+++ b/dev-db/postgresql-client/files/digest-postgresql-client-8.1.6
@@ -0,0 +1,6 @@
+MD5 ad616f482e119a39cc89ee6902e9205e postgresql-base-8.1.6.tar.bz2 8064467
+RMD160 766f0715b17f58f59546fdec702ddfaf110c7aee postgresql-base-8.1.6.tar.bz2 8064467
+SHA256 d6c4e8cf28764aefe81e6de253933c33950e58ca8975c9d93b3e844137dfd732 postgresql-base-8.1.6.tar.bz2 8064467
+MD5 ff928aa7e457fc8c418dd2875863942b postgresql-opt-8.1.6.tar.bz2 144641
+RMD160 5287ea34c7c1b13c5e61cb469c6f45616109e8aa postgresql-opt-8.1.6.tar.bz2 144641
+SHA256 321dcb79e042f1ddd202ecce5654d1ca0a6a72ec4fda86eac6e3990500bdbcfb postgresql-opt-8.1.6.tar.bz2 144641
diff --git a/dev-db/postgresql-client/files/digest-postgresql-client-8.2.1 b/dev-db/postgresql-client/files/digest-postgresql-client-8.2.1
new file mode 100644
index 0000000..b6b15c9
--- /dev/null
+++ b/dev-db/postgresql-client/files/digest-postgresql-client-8.2.1
@@ -0,0 +1,6 @@
+MD5 7f20da3764ea2ff7329a6570da89926a postgresql-base-8.2.1.tar.bz2 8483464
+RMD160 a4bb2acae59dac730a8c03b110fed36c84d8204e postgresql-base-8.2.1.tar.bz2 8483464
+SHA256 99aa1b8d3f0f53f5fd138103052f5111310c061b25c0293dd9f93dc3fd6fda5c postgresql-base-8.2.1.tar.bz2 8483464
+MD5 018aaf094027456d4708d97320c86eaa postgresql-opt-8.2.1.tar.bz2 167629
+RMD160 34edadf292d7e6923a19adfee6a0077f30b4b272 postgresql-opt-8.2.1.tar.bz2 167629
+SHA256 9a542c79c2983322c621b4086ae78e1d7c3bb841c95283e45e7bced73d975422 postgresql-opt-8.2.1.tar.bz2 167629
diff --git a/dev-db/postgresql/files/pg_autovacuum.conf-7.4 b/dev-db/postgresql-client/files/pg_autovacuum.conf-7.4
index 45d436d..304977e 100644
--- a/dev-db/postgresql/files/pg_autovacuum.conf-7.4
+++ b/dev-db/postgresql-client/files/pg_autovacuum.conf-7.4
@@ -1,5 +1,5 @@
# Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!)
-PG_AUTOVACUUM_LOG="/var/lib/postgresql/data/pg_autovacuum.log"
+PG_AUTOVACUUM_LOG="/var/lib/postgresql/7.4/data/pg_autovacuum.log"
# PostgreSQL user
PGUSER="postgres"
@@ -12,3 +12,7 @@ VACUUM_SCALE="2"
SLEEP_BASE="300"
SLEEP_SCALE="2"
+
+# Add more options to pg_autovacuum, for instance -H to specify host or
+# -p to specify port
+PG_AUTOVACUUM_OPTS=""
diff --git a/dev-db/postgresql/files/pg_autovacuum.conf-8.0 b/dev-db/postgresql-client/files/pg_autovacuum.conf-8.0
index 45d436d..6d87e27 100644
--- a/dev-db/postgresql/files/pg_autovacuum.conf-8.0
+++ b/dev-db/postgresql-client/files/pg_autovacuum.conf-8.0
@@ -1,5 +1,5 @@
# Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!)
-PG_AUTOVACUUM_LOG="/var/lib/postgresql/data/pg_autovacuum.log"
+PG_AUTOVACUUM_LOG="/var/lib/postgresql/8.0/data/pg_autovacuum.log"
# PostgreSQL user
PGUSER="postgres"
@@ -12,3 +12,7 @@ VACUUM_SCALE="2"
SLEEP_BASE="300"
SLEEP_SCALE="2"
+
+# Add more options to pg_autovacuum, for instance -H to specify host or
+# -p to specify port
+PG_AUTOVACUUM_OPTS=""
diff --git a/dev-db/postgresql/files/pg_autovacuum.init-7.4 b/dev-db/postgresql-client/files/pg_autovacuum.init-7.4
index 62394b6..cf4d80a 100644
--- a/dev-db/postgresql/files/pg_autovacuum.init-7.4
+++ b/dev-db/postgresql-client/files/pg_autovacuum.init-7.4
@@ -4,7 +4,8 @@
# $Header: $
depend() {
- need postgresql logger
+ use postgresql-7.4
+ need logger
}
start() {
@@ -27,10 +28,10 @@ start() {
fi
done
- start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/bin/pg_autovacuum -- -D -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG
+ start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/lib/postgresql-7.4/bin/pg_autovacuum -- -D -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG $PG_AUTOVACUUM_OPTS
sleep 1
- pidof /usr/bin/pg_autovacuum > /dev/null
+ pidof /usr/lib/postgresql-7.4/bin/pg_autovacuum > /dev/null
if [ $? -eq 0 ] ; then
eend 0
else
@@ -48,6 +49,6 @@ start() {
stop() {
ebegin "Stopping pg_autovacuum"
- start-stop-daemon --stop --quiet --exec /usr/bin/pg_autovacuum
+ start-stop-daemon --stop --quiet --exec /usr/lib/postgresql-7.4/bin/pg_autovacuum
eend $?
}
diff --git a/dev-db/postgresql/files/pg_autovacuum.init-8.0 b/dev-db/postgresql-client/files/pg_autovacuum.init-8.0
index 62394b6..a3b6ffe 100644
--- a/dev-db/postgresql/files/pg_autovacuum.init-8.0
+++ b/dev-db/postgresql-client/files/pg_autovacuum.init-8.0
@@ -4,7 +4,8 @@
# $Header: $
depend() {
- need postgresql logger
+ use postgresql-8.0
+ need logger
}
start() {
@@ -27,10 +28,10 @@ start() {
fi
done
- start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/bin/pg_autovacuum -- -D -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG
+ start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/lib/postgresql-8.0/bin/pg_autovacuum -- -D -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG $PG_AUTOVACUUM_OPTS
sleep 1
- pidof /usr/bin/pg_autovacuum > /dev/null
+ pidof /usr/lib/postgresql-8.0/bin/pg_autovacuum > /dev/null
if [ $? -eq 0 ] ; then
eend 0
else
@@ -48,6 +49,6 @@ start() {
stop() {
ebegin "Stopping pg_autovacuum"
- start-stop-daemon --stop --quiet --exec /usr/bin/pg_autovacuum
+ start-stop-daemon --stop --quiet --exec /usr/lib/postgresql-8.0/bin/pg_autovacuum
eend $?
}
diff --git a/dev-db/postgresql-client/files/postgresql-7.3-client.patch b/dev-db/postgresql-client/files/postgresql-7.3-client.patch
new file mode 100644
index 0000000..b8e42e9
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-7.3-client.patch
@@ -0,0 +1,174 @@
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 66753e8..dd73c03 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -5,40 +5,10 @@ top_builddir = ..
+ include $(top_builddir)/src/Makefile.global
+
+ WANTED_DIRS = \
+- array \
+- btree_gist \
+- chkpass \
+- cube \
+- dbase \
+- dblink \
+- dbmirror \
+- dbsize \
+- earthdistance \
+ findoidjoins \
+- fulltextindex \
+- fuzzystrmatch \
+- intagg \
+- intarray \
+- isbn_issn \
+- lo \
+- ltree \
+- miscutil \
+- noupdate \
+ oid2name \
+ pg_dumplo \
+- pg_logger \
+ pgbench \
+- pgcrypto \
+- pgstattuple \
+- rserv \
+- rtree_gist \
+- seg \
+- spi \
+- string \
+- tablefunc \
+- tips \
+- tsearch \
+- userlock \
+ vacuumlo
+
+ # Missing:
+diff --git a/src/Makefile b/src/Makefile
+index cd6e5e6..e7b6f6e 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -16,14 +16,9 @@ include Makefile.global
+ all install installdirs uninstall dep depend distprep:
+ $(MAKE) -C port $@
+ $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+
+ install-all-headers:
+- $(MAKE) -C include $@
+
+ clean:
+ $(MAKE) -C port $@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index e0fd91d..88b8f46 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -282,11 +282,11 @@ #
+ # Some variables needed to find some client interfaces
+
+ libpq_srcdir = $(top_srcdir)/src/interfaces/libpq
+-libpq_builddir = $(top_builddir)/src/interfaces/libpq
+-libpq = -L$(libpq_builddir) -lpq
++libpq_builddir = /usr/include/postgresql-${SLOT}/libpq
++libpq = -L/usr/lib/postgresql-${SLOT}/lib -lpq
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+ $(MAKE) -C $(top_builddir)/src/port all
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index 5cdfeca..651b6d8 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -29,7 +29,7 @@ endif
+
+ ##########################################################################
+
+-all: submake-libpgport postgres $(POSTGRES_IMP)
++all: someheaders
+
+ ifneq ($(PORTNAME), win)
+
+@@ -78,8 +78,7 @@ # Parallel make trickery
+
+ .PHONY: $(DIRS:%=%-recursive)
+ # Update the commonly used headers before building the subdirectories
+-$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+- $(MAKE) -C $(subst -recursive,,$@) all
++someheaders $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+
+
+ $(DLLINIT): $(DLLINIT:%.o=%.c)
+@@ -125,16 +124,7 @@ distprep:
+
+ ##########################################################################
+
+-install: all installdirs install-bin
+-ifeq ($(PORTNAME), win)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+- $(MAKE) -C catalog install-bki
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
+- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
++install:
+
+ install-bin: postgres $(POSTGRES_IMP) installdirs
+ $(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 3035f61..fb889fb 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,9 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \
+- psql scripts pg_config pg_controldata pg_resetxlog \
+- pg_encoding
++DIRS := pg_dump \
++ psql scripts
+
+ ifeq ($(with_tcl), yes)
+ DIRS += pgtclsh
+diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile
+index f18280b..839296f 100644
+--- a/src/bin/pg_dump/Makefile
++++ b/src/bin/pg_dump/Makefile
+@@ -24,13 +24,13 @@ override CPPFLAGS := -I$(libpq_srcdir) $
+
+ all: submake-libpq submake-libpgport submake-backend pg_dump pg_restore pg_dumpall
+
+-pg_dump: pg_dump.o common.o $(OBJS) $(libpq_builddir)/libpq.a
++pg_dump: pg_dump.o common.o $(OBJS)
+ $(CC) $(CFLAGS) pg_dump.o common.o $(OBJS) $(EXTRA_OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+-pg_restore: pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
++pg_restore: pg_restore.o $(OBJS)
+ $(CC) $(CFLAGS) pg_restore.o $(OBJS) $(EXTRA_OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+-pg_dumpall: pg_dumpall.o $(libpq_builddir)/libpq.a
++pg_dumpall: pg_dumpall.o
+ $(CC) $(CFLAGS) pg_dumpall.o dumputils.o sprompt.o $(EXTRA_OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+ .PHONY: submake-backend
+diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile
+index dbaa583..3726aa4 100644
+--- a/src/bin/psql/Makefile
++++ b/src/bin/psql/Makefile
+@@ -23,7 +23,7 @@ OBJS=command.o common.o help.o input.o s
+
+ all: submake-libpq submake-libpgport psql
+
+-psql: $(OBJS) $(libpq_builddir)/libpq.a
++psql: $(OBJS)
+ $(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+ help.o: $(srcdir)/sql_help.h
diff --git a/dev-db/postgresql-client/files/postgresql-7.3-nls.patch b/dev-db/postgresql-client/files/postgresql-7.3-nls.patch
new file mode 100644
index 0000000..e1a09f7
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-7.3-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 35d9e2b..c681983 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-client/files/postgresql-7.4-client.patch b/dev-db/postgresql-client/files/postgresql-7.4-client.patch
new file mode 100644
index 0000000..bb909c3
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-7.4-client.patch
@@ -0,0 +1,155 @@
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 74310cf..7d7da92 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -5,41 +5,11 @@ top_builddir = ..
+ include $(top_builddir)/src/Makefile.global
+
+ WANTED_DIRS = \
+- btree_gist \
+- chkpass \
+- cube \
+- dbase \
+- dblink \
+- dbmirror \
+- dbsize \
+- earthdistance \
+ findoidjoins \
+- fulltextindex \
+- fuzzystrmatch \
+- intagg \
+- intarray \
+- isbn_issn \
+- lo \
+- ltree \
+- miscutil \
+- noupdate \
+ oid2name \
+ pg_autovacuum \
+ pg_dumplo \
+- pg_logger \
+ pgbench \
+- pgcrypto \
+- pgstattuple \
+- rserv \
+- rtree_gist \
+- seg \
+- spi \
+- string \
+- tablefunc \
+- tips \
+- tsearch \
+- tsearch2 \
+- userlock \
+ vacuumlo
+
+ # Missing:
+diff --git a/src/Makefile b/src/Makefile
+index cd6e5e6..f0bee6f 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -14,16 +14,9 @@ include Makefile.global
+
+
+ all install installdirs uninstall dep depend distprep:
+- $(MAKE) -C port $@
+- $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+
+ install-all-headers:
+- $(MAKE) -C include $@
+
+ clean:
+ $(MAKE) -C port $@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 19c49d1..af4af77 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -287,14 +287,16 @@ #
+ # Some variables needed to find some client interfaces
+
+ libpq_srcdir = $(top_srcdir)/src/interfaces/libpq
+-libpq_builddir = $(top_builddir)/src/interfaces/libpq
+-libpq = -L$(libpq_builddir) -lpq
++#libpq_builddir = $(top_builddir)/src/interfaces/libpq
++libpq_builddir = -I/usr/include/postgresql-${SLOT}/libpq
++#libpq = -L$(libpq_builddir) -lpq
++libpq = -L/usr/lib/postgresql-${SLOT}/lib -lpq
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
+diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile
+index b6698d2..81fa31c 100644
+--- a/src/backend/parser/Makefile
++++ b/src/backend/parser/Makefile
+@@ -10,7 +10,7 @@ subdir = src/backend/parser
+ top_builddir = ../../..
+ include $(top_builddir)/src/Makefile.global
+
+-override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
++override CPPFLAGS := -I. -I.. $(CPPFLAGS)
+
+ OBJS= analyze.o gram.o keywords.o parser.o parse_agg.o parse_clause.o \
+ parse_expr.o parse_func.o parse_node.o parse_oper.o parse_relation.o \
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 3035f61..fb889fb 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,9 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \
+- psql scripts pg_config pg_controldata pg_resetxlog \
+- pg_encoding
++DIRS := pg_dump \
++ psql scripts
+
+ ifeq ($(with_tcl), yes)
+ DIRS += pgtclsh
+diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile
+index 5594593..927d367 100644
+--- a/src/bin/pg_dump/Makefile
++++ b/src/bin/pg_dump/Makefile
+@@ -24,13 +24,13 @@ override CPPFLAGS := -I$(libpq_srcdir) $
+
+ all: submake-libpq submake-libpgport submake-backend pg_dump pg_restore pg_dumpall
+
+-pg_dump: pg_dump.o common.o $(OBJS) $(libpq_builddir)/libpq.a
++pg_dump: pg_dump.o common.o $(OBJS)
+ $(CC) $(CFLAGS) pg_dump.o common.o $(OBJS) $(EXTRA_OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+-pg_restore: pg_restore.o $(OBJS) $(libpq_builddir)/libpq.a
++pg_restore: pg_restore.o $(OBJS)
+ $(CC) $(CFLAGS) pg_restore.o $(OBJS) $(EXTRA_OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+-pg_dumpall: pg_dumpall.o $(libpq_builddir)/libpq.a
++pg_dumpall: pg_dumpall.o
+ $(CC) $(CFLAGS) pg_dumpall.o dumputils.o $(EXTRA_OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+ .PHONY: submake-backend
+diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile
+index e8afcf6..e70a8bf 100644
+--- a/src/bin/psql/Makefile
++++ b/src/bin/psql/Makefile
+@@ -23,7 +23,7 @@ OBJS= command.o common.o help.o input.o
+
+ all: submake-libpq submake-libpgport psql
+
+-psql: $(OBJS) $(libpq_builddir)/libpq.a
++psql: $(OBJS)
+ $(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
+
+ help.o: $(srcdir)/sql_help.h
diff --git a/dev-db/postgresql-client/files/postgresql-7.4-nls.patch b/dev-db/postgresql-client/files/postgresql-7.4-nls.patch
new file mode 100644
index 0000000..bf634c7
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-7.4-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index ae3b91a..6af24d2 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-client/files/postgresql-8.0-client.patch b/dev-db/postgresql-client/files/postgresql-8.0-client.patch
new file mode 100644
index 0000000..2384aa6
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.0-client.patch
@@ -0,0 +1,120 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index c451bd6..a048ce7 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.glo
+ all:
+ $(MAKE) -C doc all
+ $(MAKE) -C src all
+- $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+
+ # clean, distclean, etc should apply to contrib too, even though
+ # it's not built by default
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 166ed86..cf189eb 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -5,41 +5,12 @@ top_builddir = ..
+ include $(top_builddir)/src/Makefile.global
+
+ WANTED_DIRS = \
+- btree_gist \
+- chkpass \
+- cube \
+- dbase \
+- dblink \
+- dbmirror \
+- dbsize \
+- earthdistance \
+ findoidjoins \
+- fulltextindex \
+- fuzzystrmatch \
+- intagg \
+- intarray \
+- isbn_issn \
+- lo \
+- ltree \
+- miscutil \
+ mysql \
+- noupdate \
+ oid2name \
+ pg_autovacuum \
+ pg_dumplo \
+- pg_trgm \
+ pgbench \
+- pgcrypto \
+- pgstattuple \
+- rtree_gist \
+- seg \
+- spi \
+- string \
+- tablefunc \
+- tips \
+- tsearch \
+- tsearch2 \
+- userlock \
+ vacuumlo
+
+ # Missing:
+diff --git a/contrib/pg_autovacuum/Makefile b/contrib/pg_autovacuum/Makefile
+index c512d18..e822063 100644
+--- a/contrib/pg_autovacuum/Makefile
++++ b/contrib/pg_autovacuum/Makefile
+@@ -18,5 +18,5 @@ include $(top_builddir)/src/Makefile.glo
+ include $(top_srcdir)/contrib/contrib-global.mk
+ endif
+
+-dllist.c: $(top_srcdir)/src/backend/lib/dllist.c
++dllist.c: ../../src/backend/lib/dllist.c
+ rm -f $@ && $(LN_S) $< .
+diff --git a/src/Makefile b/src/Makefile
+index 0963f88..155323c 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -14,18 +14,9 @@ include Makefile.global
+
+
+ all install installdirs uninstall dep depend distprep:
+- $(MAKE) -C port $@
+- $(MAKE) -C timezone $@
+- $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+- $(MAKE) -C makefiles $@
+- $(MAKE) -C utils $@
+
+-install: install-local
++install:
+
+ install-local: installdirs-local
+ $(INSTALL_DATA) Makefile.global $(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 8309db1..7c1c47f 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := pg_dump \
++ psql scripts
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
diff --git a/dev-db/postgresql-client/files/postgresql-8.0-nls.patch b/dev-db/postgresql-client/files/postgresql-8.0-nls.patch
new file mode 100644
index 0000000..dabc966
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.0-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 3f87396..9c7fbf0 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-client/files/postgresql-8.0-no-interfaces.patch b/dev-db/postgresql-client/files/postgresql-8.0-no-interfaces.patch
new file mode 100644
index 0000000..897388e
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.0-no-interfaces.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 820dfd5..2619acd 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -365,10 +365,10 @@ endif
+
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
diff --git a/dev-db/postgresql-client/files/postgresql-8.1-client.patch b/dev-db/postgresql-client/files/postgresql-8.1-client.patch
new file mode 100644
index 0000000..b0d92c6
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.1-client.patch
@@ -0,0 +1,100 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 0216527..7ed3520 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.glo
+ all:
+ $(MAKE) -C doc all
+ $(MAKE) -C src all
+- $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+
+ # clean, distclean, etc should apply to contrib too, even though
+ # it's not built by default
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 7367163..fa2a5c6 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -5,32 +5,8 @@ top_builddir = ..
+ include $(top_builddir)/src/Makefile.global
+
+ WANTED_DIRS = \
+- btree_gist \
+- chkpass \
+- cube \
+- dbase \
+- dblink \
+- dbmirror \
+- earthdistance \
+- fulltextindex \
+- fuzzystrmatch \
+- intagg \
+- intarray \
+- isbn_issn \
+- lo \
+- ltree \
+ oid2name \
+- pg_buffercache \
+- pg_trgm \
+ pgbench \
+- pgcrypto \
+- pgstattuple \
+- seg \
+- spi \
+- tablefunc \
+- tips \
+- tsearch2 \
+- userlock \
+ vacuumlo
+
+ # Missing:
+diff --git a/src/Makefile b/src/Makefile
+index 0963f88..155323c 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -14,18 +14,9 @@ include Makefile.global
+
+
+ all install installdirs uninstall dep depend distprep:
+- $(MAKE) -C port $@
+- $(MAKE) -C timezone $@
+- $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+- $(MAKE) -C makefiles $@
+- $(MAKE) -C utils $@
+
+-install: install-local
++install:
+
+ install-local: installdirs-local
+ $(INSTALL_DATA) Makefile.global $(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 8309db1..7c1c47f 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := pg_dump \
++ psql scripts
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
diff --git a/dev-db/postgresql-client/files/postgresql-8.1-nls.patch b/dev-db/postgresql-client/files/postgresql-8.1-nls.patch
new file mode 100644
index 0000000..dabc966
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.1-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 3f87396..9c7fbf0 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-client/files/postgresql-8.1-no-interfaces.patch b/dev-db/postgresql-client/files/postgresql-8.1-no-interfaces.patch
new file mode 100644
index 0000000..897388e
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.1-no-interfaces.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 820dfd5..2619acd 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -365,10 +365,10 @@ endif
+
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
diff --git a/dev-db/postgresql-client/files/postgresql-8.2-client.patch b/dev-db/postgresql-client/files/postgresql-8.2-client.patch
new file mode 100644
index 0000000..de74d76
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.2-client.patch
@@ -0,0 +1,105 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 16f9057..0f6cee7 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.glo
+ all:
+ $(MAKE) -C doc all
+ $(MAKE) -C src all
+- $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+
+ distprep:
+ $(MAKE) -C doc $@
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 1787a1b..26610d8 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -5,37 +5,10 @@ top_builddir = ..
+ include $(top_builddir)/src/Makefile.global
+
+ WANTED_DIRS = \
+- adminpack \
+- btree_gist \
+- chkpass \
+- cube \
+- dblink \
+- earthdistance \
+- fuzzystrmatch \
+- hstore \
+- intagg \
+- intarray \
+- isn \
+- lo \
+- ltree \
+ oid2name \
+- pg_buffercache \
+- pg_freespacemap \
+- pg_trgm \
+ pgbench \
+- pgcrypto \
+- pgrowlocks \
+- pgstattuple \
+- seg \
+- spi \
+- tablefunc \
+- tsearch2 \
+ vacuumlo
+
+-ifeq ($(with_openssl),yes)
+-WANTED_DIRS += sslinfo
+-endif
+-
+ # Missing:
+ # start-scripts \ (does not have a makefile)
+ # xml2 \ (requires libxml installed)
+diff --git a/src/Makefile b/src/Makefile
+index 6d9043a..5099025 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -14,18 +14,9 @@ include Makefile.global
+
+
+ all install installdirs uninstall dep depend distprep:
+- $(MAKE) -C port $@
+- $(MAKE) -C timezone $@
+- $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+- $(MAKE) -C makefiles $@
+- $(MAKE) -C test/regress $@
+
+-install: install-local
++install:
+
+ install-local: installdirs-local
+ $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 0d86213..5dba7c8 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := pg_dump \
++ psql scripts
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
diff --git a/dev-db/postgresql-client/files/postgresql-8.2-nls.patch b/dev-db/postgresql-client/files/postgresql-8.2-nls.patch
new file mode 100644
index 0000000..983bc87
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.2-nls.patch
@@ -0,0 +1,19 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index fb9793f..3510942 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -162,8 +162,12 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
+ AC_SUBST(localedir)
+ ])# PGAC_CHECK_GETTEXT
+
diff --git a/dev-db/postgresql-client/files/postgresql-8.2-no-interfaces.patch b/dev-db/postgresql-client/files/postgresql-8.2-no-interfaces.patch
new file mode 100644
index 0000000..897388e
--- /dev/null
+++ b/dev-db/postgresql-client/files/postgresql-8.2-no-interfaces.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 820dfd5..2619acd 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -365,10 +365,10 @@ endif
+
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
diff --git a/dev-db/postgresql-client/postgresql-client-7.3.17.ebuild b/dev-db/postgresql-client/postgresql-client-7.3.17.ebuild
new file mode 100644
index 0000000..baef028
--- /dev/null
+++ b/dev-db/postgresql-client/postgresql-client-7.3.17.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils gnuconfig multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL client applications"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND="~dev-db/postgresql-libs-${PV}"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-client.patch
+
+ eautoconf
+ gnuconfig_update
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval ./configure "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ || die "configure failed"
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd install DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake install in $bd failed"
+ done
+
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_config,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster,initlocation,ecpg}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/client
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
diff --git a/dev-db/postgresql-client/postgresql-client-7.4.15.ebuild b/dev-db/postgresql-client/postgresql-client-7.4.15.ebuild
new file mode 100644
index 0000000..27e5c3e
--- /dev/null
+++ b/dev-db/postgresql-client/postgresql-client-7.4.15.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils gnuconfig multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL client applications"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND="~dev-db/postgresql-libs-${PV}"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-client.patch
+
+ eautoconf
+ gnuconfig_update
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval ./configure "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ || die "configure failed"
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd install DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake install in $bd failed"
+ done
+
+ newconfd "${FILESDIR}/pg_autovacuum.conf-${SLOT}" pg_autovacuum-${SLOT} || die "Failed to do conf.d for autovacuum"
+ newinitd "${FILESDIR}/pg_autovacuum.init-${SLOT}" pg_autovacuum-${SLOT} || die "Failed to do init.d for autovacuum"
+ dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum-${SLOT}
+
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_config,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster,initlocation,ecpg}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/client
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
diff --git a/dev-db/postgresql-client/postgresql-client-8.0.10.ebuild b/dev-db/postgresql-client/postgresql-client-8.0.10.ebuild
new file mode 100644
index 0000000..2294cbb
--- /dev/null
+++ b/dev-db/postgresql-client/postgresql-client-8.0.10.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL client applications"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND="~dev-db/postgresql-libs-${PV}"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-client.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-no-interfaces.patch
+
+ # because psql/help.c includes the file
+ ln -s ${S}/src/include/libpq/pqsignal.h ${S}/src/bin/psql/
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ || die "configure failed"
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd install DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+
+ newconfd "${FILESDIR}/pg_autovacuum.conf-${SLOT}" pg_autovacuum-${SLOT} || die "Failed to do conf.d for autovacuum"
+ newinitd "${FILESDIR}/pg_autovacuum.init-${SLOT}" pg_autovacuum-${SLOT} || die "Failed to do init.d for autovacuum"
+ dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum-${SLOT}
+
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_config,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/client
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
diff --git a/dev-db/postgresql-client/postgresql-client-8.1.6.ebuild b/dev-db/postgresql-client/postgresql-client-8.1.6.ebuild
new file mode 100644
index 0000000..df67562
--- /dev/null
+++ b/dev-db/postgresql-client/postgresql-client-8.1.6.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL client applications"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND="~dev-db/postgresql-libs-${PV}"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-client.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-no-interfaces.patch
+
+ # because psql/help.c includes the file
+ ln -s ${S}/src/include/libpq/pqsignal.h ${S}/src/bin/psql/
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ || die "configure failed"
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd install DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_config,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/client
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
diff --git a/dev-db/postgresql-client/postgresql-client-8.2.1.ebuild b/dev-db/postgresql-client/postgresql-client-8.2.1.ebuild
new file mode 100644
index 0000000..87f2a00
--- /dev/null
+++ b/dev-db/postgresql-client/postgresql-client-8.2.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL client applications"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND="~dev-db/postgresql-libs-${PV}"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-client.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-no-interfaces.patch
+
+ # because psql/help.c includes the file
+ ln -s ${S}/src/include/libpq/pqsignal.h ${S}/src/bin/psql/
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ --disable-thread-safety \
+ || die "configure failed"
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+
+ for bd in . contrib ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd install DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{initdb,ipcclean,pg_config,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/client
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
diff --git a/dev-db/postgresql-docs/Manifest b/dev-db/postgresql-docs/Manifest
new file mode 100644
index 0000000..2233177
--- /dev/null
+++ b/dev-db/postgresql-docs/Manifest
@@ -0,0 +1,40 @@
+DIST postgresql-docs-7.3.17.tar.bz2 2362063 RMD160 b3c0d45af5b52201a047f274acf6a13ab59c8a36 SHA1 6a0c8c483ad3c1e492656133013f9a6ebe80fd75 SHA256 69909e13a8c384f24c93681a55cf4cfa824ba654b8e68523106bce08a030366f
+DIST postgresql-docs-7.4.15.tar.bz2 2428680 RMD160 b267192ef8c5af8a5a3d7d9ce1ee9a9c41c39b0f SHA1 285ed6206d7675553485448ff930d30ccc2c9b25 SHA256 bf8ac32bf067800f39257241f6319ca1277460b82a2c00e1b08e2b6d245621ce
+DIST postgresql-docs-8.0.10.tar.bz2 2264685 RMD160 f407f91bc3f3d42bcd0058dcc23c1479adb894c7 SHA1 0acb7fadb4e74e2747ec8d389a9a58c94d1d1818 SHA256 e357e94c0df851ca5e540aeac2c75aa1ea216194628bfd13c00586a43e211ef5
+DIST postgresql-docs-8.1.6.tar.bz2 2495557 RMD160 e8b2014d49b59666e3b658db0b08a7232200ff86 SHA1 26c56f566848a283c7638af17d05b22ea9a069f8 SHA256 b674af62a954b0c71512cc332e873c8799fcd9cfefe55911c986ad51beac6f43
+DIST postgresql-docs-8.2.1.tar.bz2 2750394 RMD160 13fad6683a9a36917793976dcc12506ada2e8497 SHA1 f4401464e5ac8a6df4e63be3c952e741088838c2 SHA256 76544837b2241b1e5c00cce3118584499a902e948b0d5c0a7465535b21f22843
+EBUILD postgresql-docs-7.3.17.ebuild 978 RMD160 da27c3b289149aee13e58f820e20dc244736d4a0 SHA1 eaa7a44eaba0a21e63423c2827e2da6168981502 SHA256 cc844b89e09ef79ce9b3f4b4e71bd78fbde5e5b8257e8d44e31f795ca51a0d2d
+MD5 fce558295b375d8faac127869a0505fa postgresql-docs-7.3.17.ebuild 978
+RMD160 da27c3b289149aee13e58f820e20dc244736d4a0 postgresql-docs-7.3.17.ebuild 978
+SHA256 cc844b89e09ef79ce9b3f4b4e71bd78fbde5e5b8257e8d44e31f795ca51a0d2d postgresql-docs-7.3.17.ebuild 978
+EBUILD postgresql-docs-7.4.15.ebuild 978 RMD160 da27c3b289149aee13e58f820e20dc244736d4a0 SHA1 eaa7a44eaba0a21e63423c2827e2da6168981502 SHA256 cc844b89e09ef79ce9b3f4b4e71bd78fbde5e5b8257e8d44e31f795ca51a0d2d
+MD5 fce558295b375d8faac127869a0505fa postgresql-docs-7.4.15.ebuild 978
+RMD160 da27c3b289149aee13e58f820e20dc244736d4a0 postgresql-docs-7.4.15.ebuild 978
+SHA256 cc844b89e09ef79ce9b3f4b4e71bd78fbde5e5b8257e8d44e31f795ca51a0d2d postgresql-docs-7.4.15.ebuild 978
+EBUILD postgresql-docs-8.0.10.ebuild 978 RMD160 da27c3b289149aee13e58f820e20dc244736d4a0 SHA1 eaa7a44eaba0a21e63423c2827e2da6168981502 SHA256 cc844b89e09ef79ce9b3f4b4e71bd78fbde5e5b8257e8d44e31f795ca51a0d2d
+MD5 fce558295b375d8faac127869a0505fa postgresql-docs-8.0.10.ebuild 978
+RMD160 da27c3b289149aee13e58f820e20dc244736d4a0 postgresql-docs-8.0.10.ebuild 978
+SHA256 cc844b89e09ef79ce9b3f4b4e71bd78fbde5e5b8257e8d44e31f795ca51a0d2d postgresql-docs-8.0.10.ebuild 978
+EBUILD postgresql-docs-8.1.6.ebuild 1017 RMD160 bb539a62164ae7051f80737b3ee6aad1f8d86dd0 SHA1 a2f6561fec6175c0069ff3710d655722eaecfb1b SHA256 dcf4bf7f9ee0cd34b83e950e8047d0e4f0ec73f4eebb9c0143a9cbaffe21598e
+MD5 df11091142db21ddbd508ca24fcf55b9 postgresql-docs-8.1.6.ebuild 1017
+RMD160 bb539a62164ae7051f80737b3ee6aad1f8d86dd0 postgresql-docs-8.1.6.ebuild 1017
+SHA256 dcf4bf7f9ee0cd34b83e950e8047d0e4f0ec73f4eebb9c0143a9cbaffe21598e postgresql-docs-8.1.6.ebuild 1017
+EBUILD postgresql-docs-8.2.1.ebuild 1017 RMD160 bb539a62164ae7051f80737b3ee6aad1f8d86dd0 SHA1 a2f6561fec6175c0069ff3710d655722eaecfb1b SHA256 dcf4bf7f9ee0cd34b83e950e8047d0e4f0ec73f4eebb9c0143a9cbaffe21598e
+MD5 df11091142db21ddbd508ca24fcf55b9 postgresql-docs-8.2.1.ebuild 1017
+RMD160 bb539a62164ae7051f80737b3ee6aad1f8d86dd0 postgresql-docs-8.2.1.ebuild 1017
+SHA256 dcf4bf7f9ee0cd34b83e950e8047d0e4f0ec73f4eebb9c0143a9cbaffe21598e postgresql-docs-8.2.1.ebuild 1017
+MD5 e892754bf551055c01321436575bef12 files/digest-postgresql-docs-7.3.17 274
+RMD160 af0769fe43389e1159103ebe6d330b9329d13e1a files/digest-postgresql-docs-7.3.17 274
+SHA256 685927696c4e00b431450e200d48e29f284b03a4fcb8a0674cfa0b447270ce96 files/digest-postgresql-docs-7.3.17 274
+MD5 79b56990e57dfad91e06481846f7fc9b files/digest-postgresql-docs-7.4.15 274
+RMD160 d6f0a6c89cdf58255cf33d9a5254ace32ba6d5cd files/digest-postgresql-docs-7.4.15 274
+SHA256 310b3d5a84d7674ea03f0e4c703613fc3890b799dcf999cf70a97828f3cfedf4 files/digest-postgresql-docs-7.4.15 274
+MD5 ea0337aa6d8515a1a51178dfcd2342b1 files/digest-postgresql-docs-8.0.10 274
+RMD160 a113b61620953f479f8a2f2dae84aefc7ccd7fe1 files/digest-postgresql-docs-8.0.10 274
+SHA256 ecd4912f5a2b664107800d0fbde567e0a7036bf83bc96f626a61056ef05858c3 files/digest-postgresql-docs-8.0.10 274
+MD5 7b741c001eb47bd53cfa05594c0735ea files/digest-postgresql-docs-8.1.6 271
+RMD160 6233f2a97074723f08ac9fc798b78a05ddba0f5f files/digest-postgresql-docs-8.1.6 271
+SHA256 1003f25201d6e551072625a01375722a9510f7dbdf758ca99db9290abe91fb6e files/digest-postgresql-docs-8.1.6 271
+MD5 19566df241eaf938dca63a27e1b8296c files/digest-postgresql-docs-8.2.1 271
+RMD160 6e16217b97d2cce41ae7320383658fb647b95389 files/digest-postgresql-docs-8.2.1 271
+SHA256 41241e58a24c956d9641129d939d558c36bf8287467322f466ccf9a4fb3af285 files/digest-postgresql-docs-8.2.1 271
diff --git a/dev-db/postgresql-docs/files/digest-postgresql-docs-7.3.17 b/dev-db/postgresql-docs/files/digest-postgresql-docs-7.3.17
new file mode 100644
index 0000000..1a931df
--- /dev/null
+++ b/dev-db/postgresql-docs/files/digest-postgresql-docs-7.3.17
@@ -0,0 +1,3 @@
+MD5 4fec83cf93aab65882ca2a020e4284fc postgresql-docs-7.3.17.tar.bz2 2362063
+RMD160 b3c0d45af5b52201a047f274acf6a13ab59c8a36 postgresql-docs-7.3.17.tar.bz2 2362063
+SHA256 69909e13a8c384f24c93681a55cf4cfa824ba654b8e68523106bce08a030366f postgresql-docs-7.3.17.tar.bz2 2362063
diff --git a/dev-db/postgresql-docs/files/digest-postgresql-docs-7.4.15 b/dev-db/postgresql-docs/files/digest-postgresql-docs-7.4.15
new file mode 100644
index 0000000..da7f062
--- /dev/null
+++ b/dev-db/postgresql-docs/files/digest-postgresql-docs-7.4.15
@@ -0,0 +1,3 @@
+MD5 db2d7caf152f80568f098b2774f00887 postgresql-docs-7.4.15.tar.bz2 2428680
+RMD160 b267192ef8c5af8a5a3d7d9ce1ee9a9c41c39b0f postgresql-docs-7.4.15.tar.bz2 2428680
+SHA256 bf8ac32bf067800f39257241f6319ca1277460b82a2c00e1b08e2b6d245621ce postgresql-docs-7.4.15.tar.bz2 2428680
diff --git a/dev-db/postgresql-docs/files/digest-postgresql-docs-8.0.10 b/dev-db/postgresql-docs/files/digest-postgresql-docs-8.0.10
new file mode 100644
index 0000000..e8ace10
--- /dev/null
+++ b/dev-db/postgresql-docs/files/digest-postgresql-docs-8.0.10
@@ -0,0 +1,3 @@
+MD5 2b6206d2b74a00539af788df8619cf12 postgresql-docs-8.0.10.tar.bz2 2264685
+RMD160 f407f91bc3f3d42bcd0058dcc23c1479adb894c7 postgresql-docs-8.0.10.tar.bz2 2264685
+SHA256 e357e94c0df851ca5e540aeac2c75aa1ea216194628bfd13c00586a43e211ef5 postgresql-docs-8.0.10.tar.bz2 2264685
diff --git a/dev-db/postgresql-docs/files/digest-postgresql-docs-8.1.6 b/dev-db/postgresql-docs/files/digest-postgresql-docs-8.1.6
new file mode 100644
index 0000000..25f3b3c
--- /dev/null
+++ b/dev-db/postgresql-docs/files/digest-postgresql-docs-8.1.6
@@ -0,0 +1,3 @@
+MD5 3981cf168b4d39c2e0409d522c8a9c28 postgresql-docs-8.1.6.tar.bz2 2495557
+RMD160 e8b2014d49b59666e3b658db0b08a7232200ff86 postgresql-docs-8.1.6.tar.bz2 2495557
+SHA256 b674af62a954b0c71512cc332e873c8799fcd9cfefe55911c986ad51beac6f43 postgresql-docs-8.1.6.tar.bz2 2495557
diff --git a/dev-db/postgresql-docs/files/digest-postgresql-docs-8.2.1 b/dev-db/postgresql-docs/files/digest-postgresql-docs-8.2.1
new file mode 100644
index 0000000..6ba0e10
--- /dev/null
+++ b/dev-db/postgresql-docs/files/digest-postgresql-docs-8.2.1
@@ -0,0 +1,3 @@
+MD5 62629d436573b97326e7bb56495a8609 postgresql-docs-8.2.1.tar.bz2 2750394
+RMD160 13fad6683a9a36917793976dcc12506ada2e8497 postgresql-docs-8.2.1.tar.bz2 2750394
+SHA256 76544837b2241b1e5c00cce3118584499a902e948b0d5c0a7465535b21f22843 postgresql-docs-8.2.1.tar.bz2 2750394
diff --git a/dev-db/postgresql-docs/postgresql-docs-7.3.17.ebuild b/dev-db/postgresql-docs/postgresql-docs-7.3.17.ebuild
new file mode 100644
index 0000000..90f93bd
--- /dev/null
+++ b/dev-db/postgresql-docs/postgresql-docs-7.3.17.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL documentation"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-docs-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_install() {
+ dodir /usr/share/doc/${PF}/html
+ tar -zxf ${S}/doc/postgres.tar.gz -C ${D}/usr/share/doc/${PF}/html
+ cd "${S}/doc"
+ docinto FAQ_html
+ dodoc src/FAQ/*
+ docinto sgml
+ dodoc src/sgml/*.{sgml,dsl}
+ docinto sgml/ref
+ dodoc src/sgml/ref/*.sgml
+ docinto TODO.detail
+ dodoc TODO.detail/*
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ } >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/docs
+}
diff --git a/dev-db/postgresql-docs/postgresql-docs-7.4.15.ebuild b/dev-db/postgresql-docs/postgresql-docs-7.4.15.ebuild
new file mode 100644
index 0000000..90f93bd
--- /dev/null
+++ b/dev-db/postgresql-docs/postgresql-docs-7.4.15.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL documentation"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-docs-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_install() {
+ dodir /usr/share/doc/${PF}/html
+ tar -zxf ${S}/doc/postgres.tar.gz -C ${D}/usr/share/doc/${PF}/html
+ cd "${S}/doc"
+ docinto FAQ_html
+ dodoc src/FAQ/*
+ docinto sgml
+ dodoc src/sgml/*.{sgml,dsl}
+ docinto sgml/ref
+ dodoc src/sgml/ref/*.sgml
+ docinto TODO.detail
+ dodoc TODO.detail/*
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ } >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/docs
+}
diff --git a/dev-db/postgresql-docs/postgresql-docs-8.0.10.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.0.10.ebuild
new file mode 100644
index 0000000..90f93bd
--- /dev/null
+++ b/dev-db/postgresql-docs/postgresql-docs-8.0.10.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL documentation"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-docs-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_install() {
+ dodir /usr/share/doc/${PF}/html
+ tar -zxf ${S}/doc/postgres.tar.gz -C ${D}/usr/share/doc/${PF}/html
+ cd "${S}/doc"
+ docinto FAQ_html
+ dodoc src/FAQ/*
+ docinto sgml
+ dodoc src/sgml/*.{sgml,dsl}
+ docinto sgml/ref
+ dodoc src/sgml/ref/*.sgml
+ docinto TODO.detail
+ dodoc TODO.detail/*
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ } >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/docs
+}
diff --git a/dev-db/postgresql-docs/postgresql-docs-8.1.6.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.1.6.ebuild
new file mode 100644
index 0000000..aae558b
--- /dev/null
+++ b/dev-db/postgresql-docs/postgresql-docs-8.1.6.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL documentation"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-docs-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_install() {
+ dodir /usr/share/doc/${PF}/html
+ tar -zxf ${S}/doc/postgres.tar.gz -C ${D}/usr/share/doc/${PF}/html
+ cd "${S}/doc"
+ dodoc FAQ* README.* TODO bug.template
+ docinto FAQ_html
+ dodoc src/FAQ/*
+ docinto sgml
+ dodoc src/sgml/*.{sgml,dsl}
+ docinto sgml/ref
+ dodoc src/sgml/ref/*.sgml
+ docinto TODO.detail
+ dodoc TODO.detail/*
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ } >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/docs
+}
diff --git a/dev-db/postgresql-docs/postgresql-docs-8.2.1.ebuild b/dev-db/postgresql-docs/postgresql-docs-8.2.1.ebuild
new file mode 100644
index 0000000..aae558b
--- /dev/null
+++ b/dev-db/postgresql-docs/postgresql-docs-8.2.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL documentation"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-docs-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_install() {
+ dodir /usr/share/doc/${PF}/html
+ tar -zxf ${S}/doc/postgres.tar.gz -C ${D}/usr/share/doc/${PF}/html
+ cd "${S}/doc"
+ dodoc FAQ* README.* TODO bug.template
+ docinto FAQ_html
+ dodoc src/FAQ/*
+ docinto sgml
+ dodoc src/sgml/*.{sgml,dsl}
+ docinto sgml/ref
+ dodoc src/sgml/ref/*.sgml
+ docinto TODO.detail
+ dodoc TODO.detail/*
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ } >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/docs
+}
diff --git a/dev-db/postgresql-ip4r/Manifest b/dev-db/postgresql-ip4r/Manifest
new file mode 100644
index 0000000..1e04e63
--- /dev/null
+++ b/dev-db/postgresql-ip4r/Manifest
@@ -0,0 +1,8 @@
+DIST ip4r-1.01.tar.gz 18140 RMD160 1d31f02009a93cd14f4c76e4880186b29cd8542e SHA1 77044add07e1b98bca354b9205f3cdd4ea6758a9 SHA256 057ce1a9f13947a85e53b6ac47d398fe407afe3f6ffa60c317c6ea57cc0d252f
+EBUILD postgresql-ip4r-1.01.ebuild 719 RMD160 afad57a9dcb303f9afcc5e278b2dabd6fb748a39 SHA1 13ad6928472c450abb457e3b11f82fb6645a9898 SHA256 9af067853fccf5a6f8767b444bf2d47f2f17756b84f790ba81adece2bdccd4c9
+MD5 d31f6ed2748f1d8ac42c93a19ae8124c postgresql-ip4r-1.01.ebuild 719
+RMD160 afad57a9dcb303f9afcc5e278b2dabd6fb748a39 postgresql-ip4r-1.01.ebuild 719
+SHA256 9af067853fccf5a6f8767b444bf2d47f2f17756b84f790ba81adece2bdccd4c9 postgresql-ip4r-1.01.ebuild 719
+MD5 25769464f51bbf088ecb77e379c76d4a files/digest-postgresql-ip4r-1.01 226
+RMD160 a850620ff3aab80e4e697119887b301efb35a9a4 files/digest-postgresql-ip4r-1.01 226
+SHA256 991e96b5a3b904c90032e5ca7ee9d74fe6e3fc9ffee52ff790075af7bfdd00e3 files/digest-postgresql-ip4r-1.01 226
diff --git a/dev-db/postgresql-ip4r/files/digest-postgresql-ip4r-1.01 b/dev-db/postgresql-ip4r/files/digest-postgresql-ip4r-1.01
new file mode 100644
index 0000000..d74882d
--- /dev/null
+++ b/dev-db/postgresql-ip4r/files/digest-postgresql-ip4r-1.01
@@ -0,0 +1,3 @@
+MD5 5892cf0e496d326ee532a624124209be ip4r-1.01.tar.gz 18140
+RMD160 1d31f02009a93cd14f4c76e4880186b29cd8542e ip4r-1.01.tar.gz 18140
+SHA256 057ce1a9f13947a85e53b6ac47d398fe407afe3f6ffa60c317c6ea57cc0d252f ip4r-1.01.tar.gz 18140
diff --git a/dev-db/postgresql-ip4r/postgresql-ip4r-1.01.ebuild b/dev-db/postgresql-ip4r/postgresql-ip4r-1.01.ebuild
new file mode 100644
index 0000000..844b3fd
--- /dev/null
+++ b/dev-db/postgresql-ip4r/postgresql-ip4r-1.01.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils postgresql-ext
+DESCRIPTION="Indexable IPv4 range / CIDR type for PostgreSQL"
+HOMEPAGE="http://ip4r.projects.postgresql.org/"
+SRC_URI="http://pgfoundry.org/frs/download.php/1226/ip4r-${PV}.tar.gz"
+LICENSE="POSTGRESQL"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="$(pg_slots_depend)"
+
+S="${WORKDIR}/ip4r-${PV}"
+
+# "min max"
+POSTGREXT_SLOTS="8.0 8.2"
+
+pgslot_src_compile() {
+ emake USE_PGXS=1 || die "emake for slot $SLOTSLOT failed"
+}
+
+pgslot_src_install() {
+ emake install USE_PGXS=1 DESTDIR="${D}" \
+ docdir="/usr/share/doc/${P}" \
+ || die "emake install for slot $SLOTSLOT failed"
+}
diff --git a/dev-db/postgresql-libs/Manifest b/dev-db/postgresql-libs/Manifest
new file mode 100644
index 0000000..129d07b
--- /dev/null
+++ b/dev-db/postgresql-libs/Manifest
@@ -0,0 +1,107 @@
+AUX postgresql-7.3-libs.patch 3053 RMD160 b1c8b6a58f4f7eb863511e11873dbecbe24797ae SHA1 720b233247f1beb2ae970d752bc6436b598f6f58 SHA256 85924a5e448f8806e1daca024d7b97c41cc7a42181b9773ad75f6be75184a3a4
+MD5 8802c962391284c8f9adf68f913eaa1c files/postgresql-7.3-libs.patch 3053
+RMD160 b1c8b6a58f4f7eb863511e11873dbecbe24797ae files/postgresql-7.3-libs.patch 3053
+SHA256 85924a5e448f8806e1daca024d7b97c41cc7a42181b9773ad75f6be75184a3a4 files/postgresql-7.3-libs.patch 3053
+AUX postgresql-7.3-nls.patch 903 RMD160 13819ef0b92c29114cf67ecc84b9ac6d9dbd5b66 SHA1 00f04235b4f5f126c3446b7108f2c81c21118507 SHA256 b2bf11ca9d3a0e315d3c7ca5ae27b57ff7177e54bc580136e22dbd61428fcc44
+MD5 738855088ca899a3c51c731a2bf4a4d4 files/postgresql-7.3-nls.patch 903
+RMD160 13819ef0b92c29114cf67ecc84b9ac6d9dbd5b66 files/postgresql-7.3-nls.patch 903
+SHA256 b2bf11ca9d3a0e315d3c7ca5ae27b57ff7177e54bc580136e22dbd61428fcc44 files/postgresql-7.3-nls.patch 903
+AUX postgresql-7.4-hppa.patch 1433 RMD160 4c4021ab6654d4c131704d6def2b2d689df7f527 SHA1 2234eff32e0ae4bdecd4b21eb9f6c7be33023652 SHA256 4424694fecd4f16655cd5ff9603489fa644175ab344498040f2c88cb0962aa6b
+MD5 d098cc4f48bf9153e17260fdde299327 files/postgresql-7.4-hppa.patch 1433
+RMD160 4c4021ab6654d4c131704d6def2b2d689df7f527 files/postgresql-7.4-hppa.patch 1433
+SHA256 4424694fecd4f16655cd5ff9603489fa644175ab344498040f2c88cb0962aa6b files/postgresql-7.4-hppa.patch 1433
+AUX postgresql-7.4-libs.patch 3060 RMD160 a8c32ed25b2df1b8b09caba941832307a4654b2f SHA1 3f9ddb74bd474ccb5333d39dfcf0919475c1d959 SHA256 6045d04cf0fd8dcc1bbdc9c13472ba415b6fc912d3a1469b6aa98325bf0106f9
+MD5 fa75be0d9058da8c8b13c4b5c9b4c7ab files/postgresql-7.4-libs.patch 3060
+RMD160 a8c32ed25b2df1b8b09caba941832307a4654b2f files/postgresql-7.4-libs.patch 3060
+SHA256 6045d04cf0fd8dcc1bbdc9c13472ba415b6fc912d3a1469b6aa98325bf0106f9 files/postgresql-7.4-libs.patch 3060
+AUX postgresql-7.4-nls.patch 903 RMD160 67bd39108c62c1a223dde749965e6981824030b0 SHA1 45bac2039e2a487d03488a3ef70f23ce116a4684 SHA256 55f015b1f7a73b0c8ef957cfe9d52c782f9eaf8abff38a59840b86edc3731025
+MD5 64897f6edf14f53bdfa0921be5fffbb0 files/postgresql-7.4-nls.patch 903
+RMD160 67bd39108c62c1a223dde749965e6981824030b0 files/postgresql-7.4-nls.patch 903
+SHA256 55f015b1f7a73b0c8ef957cfe9d52c782f9eaf8abff38a59840b86edc3731025 files/postgresql-7.4-nls.patch 903
+AUX postgresql-7.4-vacuum-delay.patch 8918 RMD160 dcd4fc4774277b0bf4a2158584c18bae2dc04232 SHA1 fe701fd6ca6cc9519417ab1053ef61a50ca51281 SHA256 7112ea61b84ce5c6974cd74687039f2ef871e0b4b25a34b4394225c2695fc123
+MD5 2e87af398df0a957bf2f2dff754ac174 files/postgresql-7.4-vacuum-delay.patch 8918
+RMD160 dcd4fc4774277b0bf4a2158584c18bae2dc04232 files/postgresql-7.4-vacuum-delay.patch 8918
+SHA256 7112ea61b84ce5c6974cd74687039f2ef871e0b4b25a34b4394225c2695fc123 files/postgresql-7.4-vacuum-delay.patch 8918
+AUX postgresql-8.0-libs.patch 3348 RMD160 2d8e6cd59e1174fb836696716071f93376fcb97e SHA1 895c36387acf091259ea64a2ac87b6489a322d62 SHA256 39140f92033e79a06852ce1fda7de7ccb1a33e80381d85c4d8bdab5101b6a3b3
+MD5 6f7ca0db4664977908d54717440290da files/postgresql-8.0-libs.patch 3348
+RMD160 2d8e6cd59e1174fb836696716071f93376fcb97e files/postgresql-8.0-libs.patch 3348
+SHA256 39140f92033e79a06852ce1fda7de7ccb1a33e80381d85c4d8bdab5101b6a3b3 files/postgresql-8.0-libs.patch 3348
+AUX postgresql-8.0-nls.patch 903 RMD160 ffbe83748941a0d25715f6cfbadda95441d152af SHA1 f49df137be68a34b7f30e0c054df9f0e39721c22 SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98
+MD5 adfce07a45d624bc1903905090ffe431 files/postgresql-8.0-nls.patch 903
+RMD160 ffbe83748941a0d25715f6cfbadda95441d152af files/postgresql-8.0-nls.patch 903
+SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98 files/postgresql-8.0-nls.patch 903
+AUX postgresql-8.0-sh-spinlocks.patch 680 RMD160 5849a93312dc60880bd5e07a4e3b48e2db431de1 SHA1 b13e644e6bb64c1e802c7ce9cbc9fc966ddcc924 SHA256 2a6f2e618433d09999bc6ed691f5c03d996560d564045eea3de644e612b46e5c
+MD5 433afe40aeae6616d6dddc3373e6728a files/postgresql-8.0-sh-spinlocks.patch 680
+RMD160 5849a93312dc60880bd5e07a4e3b48e2db431de1 files/postgresql-8.0-sh-spinlocks.patch 680
+SHA256 2a6f2e618433d09999bc6ed691f5c03d996560d564045eea3de644e612b46e5c files/postgresql-8.0-sh-spinlocks.patch 680
+AUX postgresql-8.1-libs.patch 3348 RMD160 d821e45e417372fdf78b9b8bf157a2a60f5022ba SHA1 c6060ea8d1e5187abc090d5ee3f491f82779a288 SHA256 7891c4ea48cec55dd2ffcc7f4fb01aad2a3139a85ac15ca74d55016c0f8daead
+MD5 435276923eed1894fdd28967cac8f43b files/postgresql-8.1-libs.patch 3348
+RMD160 d821e45e417372fdf78b9b8bf157a2a60f5022ba files/postgresql-8.1-libs.patch 3348
+SHA256 7891c4ea48cec55dd2ffcc7f4fb01aad2a3139a85ac15ca74d55016c0f8daead files/postgresql-8.1-libs.patch 3348
+AUX postgresql-8.1-nls.patch 903 RMD160 ffbe83748941a0d25715f6cfbadda95441d152af SHA1 f49df137be68a34b7f30e0c054df9f0e39721c22 SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98
+MD5 adfce07a45d624bc1903905090ffe431 files/postgresql-8.1-nls.patch 903
+RMD160 ffbe83748941a0d25715f6cfbadda95441d152af files/postgresql-8.1-nls.patch 903
+SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98 files/postgresql-8.1-nls.patch 903
+AUX postgresql-8.1-sh-spinlocks.patch 676 RMD160 584ab893effc4bade0c0635fe7ecd8f523fff673 SHA1 4daeeb0a071d610ae7d4e2000685ab54c505a12e SHA256 44abad7d4cc36917c6ab22b718252954f0abf99f81a570199753c5ac97d61373
+MD5 2f49cef1098ece5cce1bdcb8cb2bfe7f files/postgresql-8.1-sh-spinlocks.patch 676
+RMD160 584ab893effc4bade0c0635fe7ecd8f523fff673 files/postgresql-8.1-sh-spinlocks.patch 676
+SHA256 44abad7d4cc36917c6ab22b718252954f0abf99f81a570199753c5ac97d61373 files/postgresql-8.1-sh-spinlocks.patch 676
+AUX postgresql-8.2-libs.patch 3345 RMD160 26f5686c385e75cf589e11488998575a9faf62ee SHA1 0f11a643e75c90311931daa24d687d1a1f780842 SHA256 aeb02731163abd3f5245f5a3af514ca9447329d520f8c8e6fd916f39712350a8
+MD5 811b8424f9f068c90a0998b7702121ed files/postgresql-8.2-libs.patch 3345
+RMD160 26f5686c385e75cf589e11488998575a9faf62ee files/postgresql-8.2-libs.patch 3345
+SHA256 aeb02731163abd3f5245f5a3af514ca9447329d520f8c8e6fd916f39712350a8 files/postgresql-8.2-libs.patch 3345
+AUX postgresql-8.2-nls.patch 694 RMD160 7bf8b223f2da3af437eb168eebaf5dcdfcf01dac SHA1 f7b289d67e7c17d21006a780d117d27036aa1ada SHA256 be7d52faaf4eb66b2959bd5709b67b37fa685284734bb8bfc73caef667392669
+MD5 98fd6b000ddcb406647f3da6ae8c5b01 files/postgresql-8.2-nls.patch 694
+RMD160 7bf8b223f2da3af437eb168eebaf5dcdfcf01dac files/postgresql-8.2-nls.patch 694
+SHA256 be7d52faaf4eb66b2959bd5709b67b37fa685284734bb8bfc73caef667392669 files/postgresql-8.2-nls.patch 694
+AUX postgresql-8.2-sh-spinlocks.patch 689 RMD160 f761e56ab00296569fea9756a775c9bbfdc991ed SHA1 435ddd4d79b7dbac7a71dd2e5a7426fd262e82e0 SHA256 c127f9d37268d528179ad1e2e3b40bed3ff32d15ad84cabb5fa1e3766b65187c
+MD5 df96c5912efc296d57c7bfba736e065d files/postgresql-8.2-sh-spinlocks.patch 689
+RMD160 f761e56ab00296569fea9756a775c9bbfdc991ed files/postgresql-8.2-sh-spinlocks.patch 689
+SHA256 c127f9d37268d528179ad1e2e3b40bed3ff32d15ad84cabb5fa1e3766b65187c files/postgresql-8.2-sh-spinlocks.patch 689
+DIST postgresql-base-7.3.17.tar.bz2 5694969 RMD160 b24910d27ab65a29c92e1328910004ee0abe1457 SHA1 67c6b5d4075e4f69b881c892d503969ac203183e SHA256 9d844fc9ffda1d6b2d6f324c7198ce5ffa4ea1bd79516ffa85b45bd2e8e616b3
+DIST postgresql-base-7.4.15.tar.bz2 6584329 RMD160 696e1bfcf815fb11865ebb375d6d3371d0908d18 SHA1 cb10ee0048804aef1e510afd21df71b1c17968be SHA256 42674ff290c05ae0baea0b0e177c30d28a609cdc72ce5c142c9f091278deafc2
+DIST postgresql-base-8.0.10.tar.bz2 7840640 RMD160 5efe3d7ad2feb9c660ca95a38aa11b62a4651757 SHA1 f5fef7b295e7958b3a2070b9590669d844fcafba SHA256 ed9d809cf54171475b755ebe452f9d360c5d1c8fb5085f575ae96c233f6abb6d
+DIST postgresql-base-8.1.6.tar.bz2 8064467 RMD160 766f0715b17f58f59546fdec702ddfaf110c7aee SHA1 c01020571ba6b9be49363d51a526e99ebf4996b0 SHA256 d6c4e8cf28764aefe81e6de253933c33950e58ca8975c9d93b3e844137dfd732
+DIST postgresql-base-8.2.1.tar.bz2 8483464 RMD160 a4bb2acae59dac730a8c03b110fed36c84d8204e SHA1 025cea3b072d273da8da5e0a125fe22d172aab3d SHA256 99aa1b8d3f0f53f5fd138103052f5111310c061b25c0293dd9f93dc3fd6fda5c
+DIST postgresql-opt-8.0.10.tar.bz2 134801 RMD160 12ce042bc97a900b28b554368969886b76b6d920 SHA1 cf46c8dbe0d68ba33c6e519d50310b4906809742 SHA256 1e85b9007a79a842ddc22eb79fc4842937a0135d16e34756991a59bded345f96
+DIST postgresql-opt-8.1.6.tar.bz2 144641 RMD160 5287ea34c7c1b13c5e61cb469c6f45616109e8aa SHA1 5f27b3b67598c0c049248e93dbaf368939e76cab SHA256 321dcb79e042f1ddd202ecce5654d1ca0a6a72ec4fda86eac6e3990500bdbcfb
+DIST postgresql-test-8.2.1.tar.bz2 985153 RMD160 445d48fe29f56a3de01168c47c5bc3724931dea9 SHA1 7b564b716c027feb2ecdb375b45d54ada4a66b4f SHA256 fa6835d4d68215dac9fc6242ea974aea671c3be1565fb84ce40b28c209a89fe3
+EBUILD postgresql-libs-7.3.17.ebuild 3344 RMD160 3f494aca99ef8221663e60aebd93cc73cf4ec6e7 SHA1 b3d1ab920c1b948ef7676d955fe87a5cfd538658 SHA256 a4eb30838d22ece364aec354e23f381c1f35fd6abd3f9926a311c4a5da7c1eda
+MD5 a4f4d58aa5a4522cab27057866d98736 postgresql-libs-7.3.17.ebuild 3344
+RMD160 3f494aca99ef8221663e60aebd93cc73cf4ec6e7 postgresql-libs-7.3.17.ebuild 3344
+SHA256 a4eb30838d22ece364aec354e23f381c1f35fd6abd3f9926a311c4a5da7c1eda postgresql-libs-7.3.17.ebuild 3344
+EBUILD postgresql-libs-7.4.15.ebuild 3534 RMD160 3430bcfcdd9e03163af514d94177ac29880929b0 SHA1 be83de3c686d9fcafdde19c383b5c6bb92e7ce73 SHA256 0495ad20d12ff4bf8c7997121c30a4e67c9a583072e2903c7f519c7852cf0b98
+MD5 d77d45aa686b3a3487e7516e1026ebf0 postgresql-libs-7.4.15.ebuild 3534
+RMD160 3430bcfcdd9e03163af514d94177ac29880929b0 postgresql-libs-7.4.15.ebuild 3534
+SHA256 0495ad20d12ff4bf8c7997121c30a4e67c9a583072e2903c7f519c7852cf0b98 postgresql-libs-7.4.15.ebuild 3534
+EBUILD postgresql-libs-8.0.10.ebuild 3517 RMD160 292c472a3d6336e35dcd7bce3d30f9ea024f1045 SHA1 9a915c86936dfc6f5d0a313fe3571c4dbcc41d48 SHA256 a85172398f1ca77568903fd636fca966bfe01aa5dbb0f3d9bb2a3df352abb158
+MD5 2fb1b462d789867b8f2949f2186a2639 postgresql-libs-8.0.10.ebuild 3517
+RMD160 292c472a3d6336e35dcd7bce3d30f9ea024f1045 postgresql-libs-8.0.10.ebuild 3517
+SHA256 a85172398f1ca77568903fd636fca966bfe01aa5dbb0f3d9bb2a3df352abb158 postgresql-libs-8.0.10.ebuild 3517
+EBUILD postgresql-libs-8.1.6.ebuild 3517 RMD160 3e4bf3437b5f710ce9a48d28da12f78a752ea6fe SHA1 2301df1536c97d1dcb0d49d15d6ba7fbf4d23d26 SHA256 6b148801bc7e8102c1f6761295fd6bbc748de521b8e10b9a729558e2987d8b63
+MD5 ff032c9a3904217e6674fb11f2e11ce0 postgresql-libs-8.1.6.ebuild 3517
+RMD160 3e4bf3437b5f710ce9a48d28da12f78a752ea6fe postgresql-libs-8.1.6.ebuild 3517
+SHA256 6b148801bc7e8102c1f6761295fd6bbc748de521b8e10b9a729558e2987d8b63 postgresql-libs-8.1.6.ebuild 3517
+EBUILD postgresql-libs-8.2.1.ebuild 3593 RMD160 d76ad8a1f9746ad53b81534e78441b1f5fff9caa SHA1 2c7be9a5ad71e3c21473679d3ece48e5050a71b7 SHA256 3983975afb9edb1fcca3e5cf4e91b88faac2201b1d3f4facb71fb98094cc1365
+MD5 f913ffbc5810805b8a8e51de13a27907 postgresql-libs-8.2.1.ebuild 3593
+RMD160 d76ad8a1f9746ad53b81534e78441b1f5fff9caa postgresql-libs-8.2.1.ebuild 3593
+SHA256 3983975afb9edb1fcca3e5cf4e91b88faac2201b1d3f4facb71fb98094cc1365 postgresql-libs-8.2.1.ebuild 3593
+MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b
+MD5 6fe52df942ef15801d56449cd8299604 metadata.xml 164
+RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc metadata.xml 164
+SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b metadata.xml 164
+MD5 3725d96aa6ae7de9bc13fd65564579d0 files/digest-postgresql-libs-7.3.17 274
+RMD160 f9f81c7fe0cdf03774612af6c9c4f34617c0d42c files/digest-postgresql-libs-7.3.17 274
+SHA256 738d257c7df386de05576408289539ccb1f485b022c4dfcec9a7b4f20ed3ba05 files/digest-postgresql-libs-7.3.17 274
+MD5 37bfabd035ba830e3ca62c2805947add files/digest-postgresql-libs-7.4.15 274
+RMD160 4c81358c04e8f94892917d51cc594552e662c181 files/digest-postgresql-libs-7.4.15 274
+SHA256 871e7844ecfce542be2ee20a82e1ab86c146435f91617771039ac3f4daef8219 files/digest-postgresql-libs-7.4.15 274
+MD5 f0af2e751257a41560adef9b21b8c87e files/digest-postgresql-libs-8.0.10 542
+RMD160 004c5f8b395bcf37b3971c9bd06ebce256debc5e files/digest-postgresql-libs-8.0.10 542
+SHA256 75bd1907bb06070a7abd6adde7c99850c24e76bdc938cc8fe4ae957df1e7d09e files/digest-postgresql-libs-8.0.10 542
+MD5 dc5eee02b8aacf460e479b5d9b2fe235 files/digest-postgresql-libs-8.1.6 536
+RMD160 eed3db3c534e7aeaecb963b0fa898d3d61f109a4 files/digest-postgresql-libs-8.1.6 536
+SHA256 b9a12777d04779423cadf944ce502cbc11888bb2aad00994159f0e69dd1e10a4 files/digest-postgresql-libs-8.1.6 536
+MD5 e99a51a18567f3927eb61b1966207c3a files/digest-postgresql-libs-8.2.1 539
+RMD160 56d6f8a42c1162d29096eacd06a36dbe45bfc3b0 files/digest-postgresql-libs-8.2.1 539
+SHA256 8dd863cc0e3b72d5d4c4a461144c6079cb70a9d27d3160264e6e990d9a315797 files/digest-postgresql-libs-8.2.1 539
diff --git a/dev-db/postgresql-libs/files/digest-postgresql-libs-7.3.17 b/dev-db/postgresql-libs/files/digest-postgresql-libs-7.3.17
new file mode 100644
index 0000000..2ebd280
--- /dev/null
+++ b/dev-db/postgresql-libs/files/digest-postgresql-libs-7.3.17
@@ -0,0 +1,3 @@
+MD5 44df750b477b8e9c329f514f0264f915 postgresql-base-7.3.17.tar.bz2 5694969
+RMD160 b24910d27ab65a29c92e1328910004ee0abe1457 postgresql-base-7.3.17.tar.bz2 5694969
+SHA256 9d844fc9ffda1d6b2d6f324c7198ce5ffa4ea1bd79516ffa85b45bd2e8e616b3 postgresql-base-7.3.17.tar.bz2 5694969
diff --git a/dev-db/postgresql-libs/files/digest-postgresql-libs-7.4.15 b/dev-db/postgresql-libs/files/digest-postgresql-libs-7.4.15
new file mode 100644
index 0000000..79c03f5
--- /dev/null
+++ b/dev-db/postgresql-libs/files/digest-postgresql-libs-7.4.15
@@ -0,0 +1,3 @@
+MD5 971dd112cfbd9a54f48081345c934209 postgresql-base-7.4.15.tar.bz2 6584329
+RMD160 696e1bfcf815fb11865ebb375d6d3371d0908d18 postgresql-base-7.4.15.tar.bz2 6584329
+SHA256 42674ff290c05ae0baea0b0e177c30d28a609cdc72ce5c142c9f091278deafc2 postgresql-base-7.4.15.tar.bz2 6584329
diff --git a/dev-db/postgresql-libs/files/digest-postgresql-libs-8.0.10 b/dev-db/postgresql-libs/files/digest-postgresql-libs-8.0.10
new file mode 100644
index 0000000..8811baf
--- /dev/null
+++ b/dev-db/postgresql-libs/files/digest-postgresql-libs-8.0.10
@@ -0,0 +1,6 @@
+MD5 beb7db3955dc92362a8efc513c60bf96 postgresql-base-8.0.10.tar.bz2 7840640
+RMD160 5efe3d7ad2feb9c660ca95a38aa11b62a4651757 postgresql-base-8.0.10.tar.bz2 7840640
+SHA256 ed9d809cf54171475b755ebe452f9d360c5d1c8fb5085f575ae96c233f6abb6d postgresql-base-8.0.10.tar.bz2 7840640
+MD5 4487d7ceebf33e847c780fe66b363d6e postgresql-opt-8.0.10.tar.bz2 134801
+RMD160 12ce042bc97a900b28b554368969886b76b6d920 postgresql-opt-8.0.10.tar.bz2 134801
+SHA256 1e85b9007a79a842ddc22eb79fc4842937a0135d16e34756991a59bded345f96 postgresql-opt-8.0.10.tar.bz2 134801
diff --git a/dev-db/postgresql-libs/files/digest-postgresql-libs-8.1.6 b/dev-db/postgresql-libs/files/digest-postgresql-libs-8.1.6
new file mode 100644
index 0000000..dafa251
--- /dev/null
+++ b/dev-db/postgresql-libs/files/digest-postgresql-libs-8.1.6
@@ -0,0 +1,6 @@
+MD5 ad616f482e119a39cc89ee6902e9205e postgresql-base-8.1.6.tar.bz2 8064467
+RMD160 766f0715b17f58f59546fdec702ddfaf110c7aee postgresql-base-8.1.6.tar.bz2 8064467
+SHA256 d6c4e8cf28764aefe81e6de253933c33950e58ca8975c9d93b3e844137dfd732 postgresql-base-8.1.6.tar.bz2 8064467
+MD5 ff928aa7e457fc8c418dd2875863942b postgresql-opt-8.1.6.tar.bz2 144641
+RMD160 5287ea34c7c1b13c5e61cb469c6f45616109e8aa postgresql-opt-8.1.6.tar.bz2 144641
+SHA256 321dcb79e042f1ddd202ecce5654d1ca0a6a72ec4fda86eac6e3990500bdbcfb postgresql-opt-8.1.6.tar.bz2 144641
diff --git a/dev-db/postgresql-libs/files/digest-postgresql-libs-8.2.1 b/dev-db/postgresql-libs/files/digest-postgresql-libs-8.2.1
new file mode 100644
index 0000000..9c3f4dd
--- /dev/null
+++ b/dev-db/postgresql-libs/files/digest-postgresql-libs-8.2.1
@@ -0,0 +1,6 @@
+MD5 7f20da3764ea2ff7329a6570da89926a postgresql-base-8.2.1.tar.bz2 8483464
+RMD160 a4bb2acae59dac730a8c03b110fed36c84d8204e postgresql-base-8.2.1.tar.bz2 8483464
+SHA256 99aa1b8d3f0f53f5fd138103052f5111310c061b25c0293dd9f93dc3fd6fda5c postgresql-base-8.2.1.tar.bz2 8483464
+MD5 fefc23962bda107bc24d799996b11a92 postgresql-test-8.2.1.tar.bz2 985153
+RMD160 445d48fe29f56a3de01168c47c5bc3724931dea9 postgresql-test-8.2.1.tar.bz2 985153
+SHA256 fa6835d4d68215dac9fc6242ea974aea671c3be1565fb84ce40b28c209a89fe3 postgresql-test-8.2.1.tar.bz2 985153
diff --git a/dev-db/postgresql-libs/files/postgresql-7.3-libs.patch b/dev-db/postgresql-libs/files/postgresql-7.3-libs.patch
new file mode 100644
index 0000000..3236cda
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-7.3-libs.patch
@@ -0,0 +1,100 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 2b17d47..daabe55 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -9,17 +9,14 @@ top_builddir = .
+ include $(top_builddir)/src/Makefile.global
+
+ all:
+- $(MAKE) -C doc all
+ $(MAKE) -C src all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+- $(MAKE) -C doc install
+ $(MAKE) -C src install
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+
+ install-all-headers:
+diff --git a/src/Makefile b/src/Makefile
+index cd6e5e6..bc535d5 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -16,11 +16,9 @@ include Makefile.global
+ all install installdirs uninstall dep depend distprep:
+ $(MAKE) -C port $@
+ $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+ $(MAKE) -C include $@
+ $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+
+ install-all-headers:
+ $(MAKE) -C include $@
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index 5cdfeca..651b6d8 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -29,7 +29,7 @@ endif
+
+ ##########################################################################
+
+-all: submake-libpgport postgres $(POSTGRES_IMP)
++all: someheaders
+
+ ifneq ($(PORTNAME), win)
+
+@@ -78,8 +78,7 @@ # Parallel make trickery
+
+ .PHONY: $(DIRS:%=%-recursive)
+ # Update the commonly used headers before building the subdirectories
+-$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+- $(MAKE) -C $(subst -recursive,,$@) all
++someheaders $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+
+
+ $(DLLINIT): $(DLLINIT:%.o=%.c)
+@@ -125,16 +124,7 @@ distprep:
+
+ ##########################################################################
+
+-install: all installdirs install-bin
+-ifeq ($(PORTNAME), win)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+- $(MAKE) -C catalog install-bki
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
+- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
++install:
+
+ install-bin: postgres $(POSTGRES_IMP) installdirs
+ $(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 3035f61..469c6e0 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,14 +13,10 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \
+- psql scripts pg_config pg_controldata pg_resetxlog \
++DIRS := \
++ pg_config \
+ pg_encoding
+
+-ifeq ($(with_tcl), yes)
+- DIRS += pgtclsh
+-endif
+-
+ all install installdirs uninstall depend distprep:
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
+
diff --git a/dev-db/postgresql-libs/files/postgresql-7.3-nls.patch b/dev-db/postgresql-libs/files/postgresql-7.3-nls.patch
new file mode 100644
index 0000000..e1a09f7
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-7.3-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 35d9e2b..c681983 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql/files/postgresql-7.4-hppa-testandset.patch b/dev-db/postgresql-libs/files/postgresql-7.4-hppa.patch
index d5f916d..f19eb38 100644
--- a/dev-db/postgresql/files/postgresql-7.4-hppa-testandset.patch
+++ b/dev-db/postgresql-libs/files/postgresql-7.4-hppa.patch
@@ -1,6 +1,8 @@
---- postgresql-7.4.12.orig/src/include/port/linux.h 2003-10-26 01:41:10.000000000 +0000
-+++ postgresql-7.4.12/src/include/port/linux.h 2004-01-09 20:22:50.000000000 +0000
-@@ -3,6 +3,11 @@
+diff --git a/src/include/port/linux.h b/src/include/port/linux.h
+index 159db31..bef4c9e 100644
+--- a/src/include/port/linux.h
++++ b/src/include/port/linux.h
+@@ -3,6 +3,11 @@ typedef unsigned char slock_t;
#define HAS_TEST_AND_SET
@@ -12,9 +14,11 @@
#elif defined(__sparc__)
typedef unsigned char slock_t;
---- postgresql-7.4.12.orig/src/include/storage/s_lock.h 2003-11-04 09:43:56.000000000 +0000
-+++ postgresql-7.4.12/src/include/storage/s_lock.h 2004-01-09 20:12:15.000000000 +0000
-@@ -112,6 +112,33 @@
+diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
+index 578d8cf..ceed34a 100644
+--- a/src/include/storage/s_lock.h
++++ b/src/include/storage/s_lock.h
+@@ -112,6 +112,33 @@ tas(volatile slock_t *lock)
#endif /* __i386__ || __x86_64__ */
diff --git a/dev-db/postgresql-libs/files/postgresql-7.4-libs.patch b/dev-db/postgresql-libs/files/postgresql-7.4-libs.patch
new file mode 100644
index 0000000..b2e53f2
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-7.4-libs.patch
@@ -0,0 +1,100 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 563532a..d2bd525 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -9,17 +9,14 @@ top_builddir = .
+ include $(top_builddir)/src/Makefile.global
+
+ all:
+- $(MAKE) -C doc all
+ $(MAKE) -C src all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+- $(MAKE) -C doc install
+ $(MAKE) -C src install
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+
+ install-all-headers:
+diff --git a/src/Makefile b/src/Makefile
+index cd6e5e6..bc535d5 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -16,11 +16,9 @@ include Makefile.global
+ all install installdirs uninstall dep depend distprep:
+ $(MAKE) -C port $@
+ $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+ $(MAKE) -C include $@
+ $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+
+ install-all-headers:
+ $(MAKE) -C include $@
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index 82cdd0f..88d302a 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -29,7 +29,7 @@ endif
+
+ ##########################################################################
+
+-all: submake-libpgport postgres $(POSTGRES_IMP)
++all: someheaders
+
+ ifneq ($(PORTNAME), cygwin)
+
+@@ -78,8 +78,7 @@ # Parallel make trickery
+
+ .PHONY: $(DIRS:%=%-recursive)
+ # Update the commonly used headers before building the subdirectories
+-$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+- $(MAKE) -C $(subst -recursive,,$@) all
++someheaders $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+
+
+ $(DLLINIT): $(DLLINIT:%.o=%.c)
+@@ -125,16 +124,7 @@ distprep:
+
+ ##########################################################################
+
+-install: all installdirs install-bin
+-ifeq ($(PORTNAME), cygwin)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+- $(MAKE) -C catalog install-data
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
+- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
++install:
+
+ install-bin: postgres $(POSTGRES_IMP) installdirs
+ $(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 3035f61..469c6e0 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,14 +13,10 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \
+- psql scripts pg_config pg_controldata pg_resetxlog \
++DIRS := \
++ pg_config \
+ pg_encoding
+
+-ifeq ($(with_tcl), yes)
+- DIRS += pgtclsh
+-endif
+-
+ all install installdirs uninstall depend distprep:
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
+
diff --git a/dev-db/postgresql-libs/files/postgresql-7.4-nls.patch b/dev-db/postgresql-libs/files/postgresql-7.4-nls.patch
new file mode 100644
index 0000000..bf634c7
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-7.4-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index ae3b91a..6af24d2 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql/files/postgresql-7.4-vacuum-delay.patch b/dev-db/postgresql-libs/files/postgresql-7.4-vacuum-delay.patch
index e0f4998..e0f4998 100644
--- a/dev-db/postgresql/files/postgresql-7.4-vacuum-delay.patch
+++ b/dev-db/postgresql-libs/files/postgresql-7.4-vacuum-delay.patch
diff --git a/dev-db/postgresql-libs/files/postgresql-8.0-libs.patch b/dev-db/postgresql-libs/files/postgresql-8.0-libs.patch
new file mode 100644
index 0000000..fa4cc70
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.0-libs.patch
@@ -0,0 +1,106 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index c451bd6..10f8f42 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -9,19 +9,16 @@ top_builddir = .
+ include $(top_builddir)/src/Makefile.global
+
+ all:
+- $(MAKE) -C doc all
+ $(MAKE) -C src all
+ $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+
+diff --git a/src/Makefile b/src/Makefile
+index 0963f88..dc7cdb9 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -15,13 +15,10 @@ include Makefile.global
+
+ all install installdirs uninstall dep depend distprep:
+ $(MAKE) -C port $@
+- $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+ $(MAKE) -C include $@
+ $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+ $(MAKE) -C makefiles $@
+ $(MAKE) -C utils $@
+
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index 2bbdc8e..79aabf1 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -34,7 +34,7 @@ endif
+
+ ##########################################################################
+
+-all: submake-libpgport postgres $(POSTGRES_IMP)
++all: someheaders
+
+ ifneq ($(PORTNAME), cygwin)
+ ifneq ($(PORTNAME), win32)
+@@ -104,8 +104,7 @@ # Parallel make trickery
+
+ .PHONY: $(DIRS:%=%-recursive)
+ # Update the commonly used headers before building the subdirectories
+-$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+- $(MAKE) -C $(subst -recursive,,$@) all
++someheaders $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+
+
+ $(DLLINIT): $(DLLINIT:%.o=%.c)
+@@ -151,22 +150,7 @@ distprep:
+
+ ##########################################################################
+
+-install: all installdirs install-bin
+-ifeq ($(PORTNAME), cygwin)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+-ifeq ($(PORTNAME), win32)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+- $(MAKE) -C catalog install-data
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
+- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
+- $(INSTALL_DATA) $(srcdir)/access/transam/recovery.conf.sample $(DESTDIR)$(datadir)/recovery.conf.sample
++install:
+
+ install-bin: postgres $(POSTGRES_IMP) installdirs
+ $(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 8309db1..e645ff2 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,11 +13,7 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
+-ifeq ($(PORTNAME), win32)
+-DIRS+=pgevent
+-endif
++DIRS := pg_config
+
+ all install installdirs uninstall depend distprep:
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
diff --git a/dev-db/postgresql-libs/files/postgresql-8.0-nls.patch b/dev-db/postgresql-libs/files/postgresql-8.0-nls.patch
new file mode 100644
index 0000000..dabc966
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.0-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 3f87396..9c7fbf0 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql/files/postgresql-8.0-sh.patch b/dev-db/postgresql-libs/files/postgresql-8.0-sh-spinlocks.patch
index fc1dafe..9856f38 100644
--- a/dev-db/postgresql/files/postgresql-8.0-sh.patch
+++ b/dev-db/postgresql-libs/files/postgresql-8.0-sh-spinlocks.patch
@@ -1,6 +1,8 @@
---- src/include/storage/s_lock.h 2005-01-01 07:03:42.000000000 +0900
-+++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900
-@@ -239,6 +239,31 @@
+diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
+index 0c2dff0..d548d4d 100644
+--- a/src/include/storage/s_lock.h
++++ b/src/include/storage/s_lock.h
+@@ -239,6 +239,31 @@ tas(volatile slock_t *lock)
#endif /* __s390__ || __s390x__ */
diff --git a/dev-db/postgresql-libs/files/postgresql-8.1-libs.patch b/dev-db/postgresql-libs/files/postgresql-8.1-libs.patch
new file mode 100644
index 0000000..17db3f3
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.1-libs.patch
@@ -0,0 +1,106 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 0216527..004d111 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -9,19 +9,16 @@ top_builddir = .
+ include $(top_builddir)/src/Makefile.global
+
+ all:
+- $(MAKE) -C doc all
+ $(MAKE) -C src all
+ $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+
+diff --git a/src/Makefile b/src/Makefile
+index 0963f88..dc7cdb9 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -15,13 +15,10 @@ include Makefile.global
+
+ all install installdirs uninstall dep depend distprep:
+ $(MAKE) -C port $@
+- $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+ $(MAKE) -C include $@
+ $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+ $(MAKE) -C makefiles $@
+ $(MAKE) -C utils $@
+
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index f735039..1b478f1 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -34,7 +34,7 @@ endif
+
+ ##########################################################################
+
+-all: submake-libpgport postgres $(POSTGRES_IMP)
++all: someheaders
+
+ ifneq ($(PORTNAME), cygwin)
+ ifneq ($(PORTNAME), win32)
+@@ -106,8 +106,7 @@ # Parallel make trickery
+
+ .PHONY: $(DIRS:%=%-recursive)
+ # Update the commonly used headers before building the subdirectories
+-$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+- $(MAKE) -C $(subst -recursive,,$@) all
++someheaders $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+
+
+ $(DLLINIT): $(DLLINIT:%.o=%.c)
+@@ -153,22 +152,7 @@ distprep:
+
+ ##########################################################################
+
+-install: all installdirs install-bin
+-ifeq ($(PORTNAME), cygwin)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+-ifeq ($(PORTNAME), win32)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a $(DESTDIR)$(libdir)/libpostgres.a
+-endif
+-endif
+- $(MAKE) -C catalog install-data
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample $(DESTDIR)$(datadir)/pg_hba.conf.sample
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample $(DESTDIR)$(datadir)/pg_ident.conf.sample
+- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample $(DESTDIR)$(datadir)/postgresql.conf.sample
+- $(INSTALL_DATA) $(srcdir)/access/transam/recovery.conf.sample $(DESTDIR)$(datadir)/recovery.conf.sample
++install:
+
+ install-bin: postgres $(POSTGRES_IMP) installdirs
+ $(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 8309db1..e645ff2 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,11 +13,7 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
+-ifeq ($(PORTNAME), win32)
+-DIRS+=pgevent
+-endif
++DIRS := pg_config
+
+ all install installdirs uninstall depend distprep:
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
diff --git a/dev-db/postgresql-libs/files/postgresql-8.1-nls.patch b/dev-db/postgresql-libs/files/postgresql-8.1-nls.patch
new file mode 100644
index 0000000..dabc966
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.1-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 3f87396..9c7fbf0 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql/files/postgresql-8.1-sh.patch b/dev-db/postgresql-libs/files/postgresql-8.1-sh-spinlocks.patch
index fc1dafe..c6423b5 100644
--- a/dev-db/postgresql/files/postgresql-8.1-sh.patch
+++ b/dev-db/postgresql-libs/files/postgresql-8.1-sh-spinlocks.patch
@@ -1,8 +1,10 @@
---- src/include/storage/s_lock.h 2005-01-01 07:03:42.000000000 +0900
-+++ src/include/storage/s_lock.h 2005-08-17 23:09:19.000000000 +0900
-@@ -239,6 +239,31 @@
- #endif /* __s390__ || __s390x__ */
+diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
+index 7b94d64..ecc8431 100644
+--- a/src/include/storage/s_lock.h
++++ b/src/include/storage/s_lock.h
+@@ -299,6 +299,29 @@ tas(volatile slock_t *lock)
+ #endif /* __s390__ || __s390x__ */
+#if defined(__sh__)
+#define HAS_TEST_AND_SET
@@ -27,8 +29,6 @@
+}
+
+#endif /* __sh__ */
-+
-+
+
#if defined(__sparc__)
#define HAS_TEST_AND_SET
-
diff --git a/dev-db/postgresql-libs/files/postgresql-8.2-libs.patch b/dev-db/postgresql-libs/files/postgresql-8.2-libs.patch
new file mode 100644
index 0000000..f7130c8
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.2-libs.patch
@@ -0,0 +1,105 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 16f9057..cbf1f91 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -9,19 +9,16 @@ top_builddir = .
+ include $(top_builddir)/src/Makefile.global
+
+ all:
+- $(MAKE) -C doc all
+ $(MAKE) -C src all
+ $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall:
+- $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+
+diff --git a/src/Makefile b/src/Makefile
+index 6d9043a..3935983 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -15,15 +15,11 @@ include Makefile.global
+
+ all install installdirs uninstall dep depend distprep:
+ $(MAKE) -C port $@
+- $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+- $(MAKE) -C backend/utils/mb/conversion_procs $@
+ $(MAKE) -C include $@
+ $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+- $(MAKE) -C pl $@
+ $(MAKE) -C makefiles $@
+- $(MAKE) -C test/regress $@
+
+ install: install-local
+
+diff --git a/src/backend/Makefile b/src/backend/Makefile
+index 9329db0..abbb8f9 100644
+--- a/src/backend/Makefile
++++ b/src/backend/Makefile
+@@ -33,7 +33,7 @@ LIBS := $(filter-out -lz -lreadline -led
+
+ ##########################################################################
+
+-all: submake-libpgport postgres $(POSTGRES_IMP)
++all: someheaders
+
+ ifneq ($(PORTNAME), cygwin)
+ ifneq ($(PORTNAME), win32)
+@@ -105,8 +105,7 @@ # Parallel make trickery
+
+ .PHONY: $(DIRS:%=%-recursive)
+ # Update the commonly used headers before building the subdirectories
+-$(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+- $(MAKE) -C $(subst -recursive,,$@) all
++someheaders $(DIRS:%=%-recursive): $(top_builddir)/src/include/parser/parse.h $(top_builddir)/src/include/utils/fmgroids.h
+
+
+ # The postgres.o target is needed by the rule in Makefile.global that
+@@ -153,22 +152,7 @@ distprep:
+
+ ##########################################################################
+
+-install: all installdirs install-bin
+-ifeq ($(PORTNAME), cygwin)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a'
+-endif
+-endif
+-ifeq ($(PORTNAME), win32)
+-ifeq ($(MAKE_DLL), true)
+- $(INSTALL_DATA) libpostgres.a '$(DESTDIR)$(libdir)/libpostgres.a'
+-endif
+-endif
+- $(MAKE) -C catalog install-data
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample '$(DESTDIR)$(datadir)/pg_hba.conf.sample'
+- $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample '$(DESTDIR)$(datadir)/pg_ident.conf.sample'
+- $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample '$(DESTDIR)$(datadir)/postgresql.conf.sample'
+- $(INSTALL_DATA) $(srcdir)/access/transam/recovery.conf.sample '$(DESTDIR)$(datadir)/recovery.conf.sample'
++install:
+
+ install-bin: postgres $(POSTGRES_IMP) installdirs
+ $(INSTALL_PROGRAM) postgres$(X) '$(DESTDIR)$(bindir)/postgres$(X)'
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 0d86213..b8e01fc 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,7 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := pg_config
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
diff --git a/dev-db/postgresql-libs/files/postgresql-8.2-nls.patch b/dev-db/postgresql-libs/files/postgresql-8.2-nls.patch
new file mode 100644
index 0000000..983bc87
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.2-nls.patch
@@ -0,0 +1,19 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index fb9793f..3510942 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -162,8 +162,12 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
+ AC_SUBST(localedir)
+ ])# PGAC_CHECK_GETTEXT
+
diff --git a/dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch b/dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch
new file mode 100644
index 0000000..292c329
--- /dev/null
+++ b/dev-db/postgresql-libs/files/postgresql-8.2-sh-spinlocks.patch
@@ -0,0 +1,34 @@
+diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
+index 23f4cc9..707c303 100644
+--- a/src/include/storage/s_lock.h
++++ b/src/include/storage/s_lock.h
+@@ -298,6 +298,29 @@ tas(volatile slock_t *lock)
+
+ #endif /* __s390__ || __s390x__ */
+
++#if defined(__sh__)
++#define HAS_TEST_AND_SET
++
++typedef unsigned char slock_t;
++
++#define TAS(lock) tas(lock)
++
++static __inline__ int
++tas(volatile slock_t *lock)
++{
++ register int _res = 1;
++
++ __asm__ __volatile__(
++ "tas.b @%1\n\t"
++ "movt %0\n\t"
++ "xor #1,%0"
++: "=z"(_res)
++: "r"(lock)
++: "t","memory");
++ return _res;
++}
++
++#endif /* __sh__ */
+
+ #if defined(__sparc__) /* Sparc */
+ #define HAS_TEST_AND_SET
diff --git a/dev-db/postgresql-libs/metadata.xml b/dev-db/postgresql-libs/metadata.xml
new file mode 100644
index 0000000..d06e452
--- /dev/null
+++ b/dev-db/postgresql-libs/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>postgresql</herd>
+</pkgmetadata>
diff --git a/dev-db/postgresql-libs/postgresql-libs-7.3.17.ebuild b/dev-db/postgresql-libs/postgresql-libs-7.3.17.ebuild
new file mode 100644
index 0000000..66f8697
--- /dev/null
+++ b/dev-db/postgresql-libs/postgresql-libs-7.3.17.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils gnuconfig toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib eselect"
+
+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
+ "
+DEPEND="${RDEPEND}
+ sys-devel/autoconf
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-libs.patch
+
+ eautoconf
+ gnuconfig_update
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ ./configure --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-perl \
+ --without-python \
+ --without-tcl \
+ $(use_with kerberos krb5) \
+ $(use_enable nls ) \
+ $(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"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ 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
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ echo "postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin"
+ echo "postgres_symlinks=("
+ IDIR="/usr/include/postgresql-${SLOT}"
+ echo " " ${IDIR} /usr/include/postgresql
+ echo " " {${IDIR},/usr/include}/libpq-fe.h
+ echo " " {${IDIR},/usr/include}/libpq
+ echo " " {${IDIR},/usr/include}/postgres_ext.h
+ echo ")"
+ } >"${D}/usr/lib/eselect-postgresql/slots/${SLOT}/libs"
+ cat >${T}/50postgresql-99-${SLOT} <<-__EOF__
+ LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/lib
+ MANPATH=/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd ${T}/50postgresql-99-${SLOT}
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
+
+pkg_postinst() {
+ use eselect && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
+}
+
+pkg_prerm() {
+ [[ "$(eselect postgresql show)" = "${SLOT}" ]] && eselect postgresql reset
+}
diff --git a/dev-db/postgresql-libs/postgresql-libs-7.4.15.ebuild b/dev-db/postgresql-libs/postgresql-libs-7.4.15.ebuild
new file mode 100644
index 0000000..8db4ce7
--- /dev/null
+++ b/dev-db/postgresql-libs/postgresql-libs-7.4.15.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils gnuconfig toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib eselect"
+
+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
+ "
+DEPEND="${RDEPEND}
+ sys-devel/autoconf
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-hppa.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-vacuum-delay.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-libs.patch
+
+ eautoreconf
+ gnuconfig_update
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ ./configure --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-perl \
+ --without-python \
+ --without-tcl \
+ $(use_with kerberos krb5) \
+ $(use_enable nls ) \
+ $(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"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ 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
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ echo "postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin"
+ echo "postgres_symlinks=("
+ IDIR="/usr/include/postgresql-${SLOT}"
+ echo " " ${IDIR} /usr/include/postgresql
+ echo " " {${IDIR},/usr/include}/libpq-fe.h
+ echo " " {${IDIR},/usr/include}/libpq
+ echo " " {${IDIR},/usr/include}/postgres_ext.h
+ echo ")"
+ } >"${D}/usr/lib/eselect-postgresql/slots/${SLOT}/libs"
+ cat >${T}/50postgresql-98-${SLOT} <<-__EOF__
+ LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/lib
+ MANPATH=/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd ${T}/50postgresql-98-${SLOT}
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+
+ into /usr/$(get_libdir)/postgresql-${SLOT}
+ dolib.a ${S}/src/port/libpgport.a
+}
+
+pkg_postinst() {
+ use eselect && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
+}
+
+pkg_prerm() {
+ [[ "$(eselect postgresql show)" = "${SLOT}" ]] && eselect postgresql reset
+}
diff --git a/dev-db/postgresql-libs/postgresql-libs-8.0.10.ebuild b/dev-db/postgresql-libs/postgresql-libs-8.0.10.ebuild
new file mode 100644
index 0000000..a4d7783
--- /dev/null
+++ b/dev-db/postgresql-libs/postgresql-libs-8.0.10.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ threads? ( mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2 )"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib eselect"
+
+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
+ "
+DEPEND="${RDEPEND}
+ sys-devel/autoconf
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-sh-spinlocks.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-libs.patch
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ 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-perl \
+ --without-python \
+ --without-tcl \
+ $(use_with kerberos krb5) \
+ $(use_enable nls ) \
+ $(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"
+}
+
+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
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ echo "postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin"
+ echo "postgres_symlinks=("
+ IDIR="/usr/include/postgresql-${SLOT}"
+ echo " " ${IDIR} /usr/include/postgresql
+ echo " " {${IDIR},/usr/include}/libpq-fe.h
+ echo " " {${IDIR},/usr/include}/libpq
+ echo " " {${IDIR},/usr/include}/postgres_ext.h
+ echo ")"
+ } >"${D}/usr/lib/eselect-postgresql/slots/${SLOT}/libs"
+ cat >${T}/50postgresql-97-${SLOT} <<-__EOF__
+ LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/lib
+ MANPATH=/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd ${T}/50postgresql-97-${SLOT}
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
+
+pkg_postinst() {
+ use eselect && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
+}
+
+pkg_prerm() {
+ [[ "$(eselect postgresql show)" = "${SLOT}" ]] && eselect postgresql reset
+}
diff --git a/dev-db/postgresql-libs/postgresql-libs-8.1.6.ebuild b/dev-db/postgresql-libs/postgresql-libs-8.1.6.ebuild
new file mode 100644
index 0000000..dc9ac20
--- /dev/null
+++ b/dev-db/postgresql-libs/postgresql-libs-8.1.6.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ threads? ( mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2 )"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib eselect"
+
+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
+ "
+DEPEND="${RDEPEND}
+ sys-devel/autoconf
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-sh-spinlocks.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-libs.patch
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ 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-perl \
+ --without-python \
+ --without-tcl \
+ $(use_with kerberos krb5) \
+ $(use_enable nls ) \
+ $(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"
+}
+
+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
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ echo "postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin"
+ echo "postgres_symlinks=("
+ IDIR="/usr/include/postgresql-${SLOT}"
+ echo " " ${IDIR} /usr/include/postgresql
+ echo " " {${IDIR},/usr/include}/libpq-fe.h
+ echo " " {${IDIR},/usr/include}/libpq
+ echo " " {${IDIR},/usr/include}/postgres_ext.h
+ echo ")"
+ } >"${D}/usr/lib/eselect-postgresql/slots/${SLOT}/libs"
+ cat >${T}/50postgresql-96-${SLOT} <<-__EOF__
+ LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/lib
+ MANPATH=/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd ${T}/50postgresql-96-${SLOT}
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
+
+pkg_postinst() {
+ use eselect && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
+}
+
+pkg_prerm() {
+ [[ "$(eselect postgresql show)" = "${SLOT}" ]] && eselect postgresql reset
+}
diff --git a/dev-db/postgresql-libs/postgresql-libs-8.2.1.ebuild b/dev-db/postgresql-libs/postgresql-libs-8.2.1.ebuild
new file mode 100644
index 0000000..52a6c70
--- /dev/null
+++ b/dev-db/postgresql-libs/postgresql-libs-8.2.1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ threads? ( mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2 )"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib ldap eselect"
+
+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
+ ldap? ( net-nds/openldap )
+ "
+DEPEND="${RDEPEND}
+ sys-devel/autoconf
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-sh-spinlocks.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-libs.patch
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ 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 \
+ $(use_with kerberos krb5) \
+ $(use_enable nls ) \
+ $(use_with pam) \
+ $(use_enable pg-intdatetime integer-datetimes ) \
+ $(use_with readline) \
+ $(use_with ssl openssl) \
+ $(use_enable threads thread-safety ) \
+ $(use_with zlib) \
+ $(use_with ldap) \
+ || die "configure failed"
+
+ 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
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ {
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\""
+ echo "postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin"
+ echo "postgres_symlinks=("
+ IDIR="/usr/include/postgresql-${SLOT}"
+ echo " " ${IDIR} /usr/include/postgresql
+ echo " " {${IDIR},/usr/include}/libpq-fe.h
+ echo " " {${IDIR},/usr/include}/libpq
+ echo " " {${IDIR},/usr/include}/postgres_ext.h
+ echo ")"
+ } >"${D}/usr/lib/eselect-postgresql/slots/${SLOT}/libs"
+ cat >${T}/50postgresql-95-${SLOT} <<-__EOF__
+ LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/lib
+ MANPATH=/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd ${T}/50postgresql-95-${SLOT}
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+}
+
+pkg_postinst() {
+ use eselect && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
+}
+
+pkg_prerm() {
+ [[ "$(eselect postgresql show)" = "${SLOT}" ]] && eselect postgresql reset
+}
diff --git a/dev-db/postgresql-server/Manifest b/dev-db/postgresql-server/Manifest
new file mode 100644
index 0000000..af0e0d7
--- /dev/null
+++ b/dev-db/postgresql-server/Manifest
@@ -0,0 +1,166 @@
+AUX postgresql-7.3-cubeparse.patch 1296 RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 SHA1 c128746e9938d7aaa4f2be6521530d07c7e207a8 SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada
+MD5 5d36c9cda475e2aaf9609655dfb44ac1 files/postgresql-7.3-cubeparse.patch 1296
+RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 files/postgresql-7.3-cubeparse.patch 1296
+SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada files/postgresql-7.3-cubeparse.patch 1296
+AUX postgresql-7.3-nls.patch 903 RMD160 13819ef0b92c29114cf67ecc84b9ac6d9dbd5b66 SHA1 00f04235b4f5f126c3446b7108f2c81c21118507 SHA256 b2bf11ca9d3a0e315d3c7ca5ae27b57ff7177e54bc580136e22dbd61428fcc44
+MD5 738855088ca899a3c51c731a2bf4a4d4 files/postgresql-7.3-nls.patch 903
+RMD160 13819ef0b92c29114cf67ecc84b9ac6d9dbd5b66 files/postgresql-7.3-nls.patch 903
+SHA256 b2bf11ca9d3a0e315d3c7ca5ae27b57ff7177e54bc580136e22dbd61428fcc44 files/postgresql-7.3-nls.patch 903
+AUX postgresql-7.3-regress.patch 3443 RMD160 64e285d961e75a0a46adfa8e325fd271b8b39497 SHA1 411f394e20dabac54f1991c8438124663798b442 SHA256 c5dbb92298a24f14a5fcfe0c7151d4e4d23d23da5d4bb47ad40eaa898e1a5e66
+MD5 4a58832abaa6e51d3bf027a786fa6aac files/postgresql-7.3-regress.patch 3443
+RMD160 64e285d961e75a0a46adfa8e325fd271b8b39497 files/postgresql-7.3-regress.patch 3443
+SHA256 c5dbb92298a24f14a5fcfe0c7151d4e4d23d23da5d4bb47ad40eaa898e1a5e66 files/postgresql-7.3-regress.patch 3443
+AUX postgresql-7.3-server.patch 2365 RMD160 46a28438add0293f30de008bc5431f0d2be37a06 SHA1 967b025205d4c9319dfcec519a20c660b0db65c4 SHA256 b833b2ddeee90341a1094cd57b8a7f9669c2c40820da531ca4b3895de86fc243
+MD5 4535e5bc31a3cec7cdf490f787009c4f files/postgresql-7.3-server.patch 2365
+RMD160 46a28438add0293f30de008bc5431f0d2be37a06 files/postgresql-7.3-server.patch 2365
+SHA256 b833b2ddeee90341a1094cd57b8a7f9669c2c40820da531ca4b3895de86fc243 files/postgresql-7.3-server.patch 2365
+AUX postgresql-7.4-nls.patch 903 RMD160 67bd39108c62c1a223dde749965e6981824030b0 SHA1 45bac2039e2a487d03488a3ef70f23ce116a4684 SHA256 55f015b1f7a73b0c8ef957cfe9d52c782f9eaf8abff38a59840b86edc3731025
+MD5 64897f6edf14f53bdfa0921be5fffbb0 files/postgresql-7.4-nls.patch 903
+RMD160 67bd39108c62c1a223dde749965e6981824030b0 files/postgresql-7.4-nls.patch 903
+SHA256 55f015b1f7a73b0c8ef957cfe9d52c782f9eaf8abff38a59840b86edc3731025 files/postgresql-7.4-nls.patch 903
+AUX postgresql-7.4-regress.patch 3486 RMD160 d901903a23f8bfc9d30fee35f1b9fc74c20cffc9 SHA1 81b8f84048be3a0a6e315c5aeabf36d7534651d8 SHA256 4f16fb6f0a6492bf83c47b3be93c01fcc62e37afd5c269f7fa90658ffca1eb78
+MD5 8239e08f43222b969461066207914c31 files/postgresql-7.4-regress.patch 3486
+RMD160 d901903a23f8bfc9d30fee35f1b9fc74c20cffc9 files/postgresql-7.4-regress.patch 3486
+SHA256 4f16fb6f0a6492bf83c47b3be93c01fcc62e37afd5c269f7fa90658ffca1eb78 files/postgresql-7.4-regress.patch 3486
+AUX postgresql-7.4-server.patch 2469 RMD160 faaaa56d510bea9673cd99eaf464410bc905753e SHA1 bfa34f6b35b73f2c5e193bbe833775e1def6ed3c SHA256 934138b61ac4fd1c2dfa8395d32e27d5fcc8b54b3f65cb0139c4803caf926d9e
+MD5 c22dcb9042c6a8a7cc92f0b477c14e44 files/postgresql-7.4-server.patch 2469
+RMD160 faaaa56d510bea9673cd99eaf464410bc905753e files/postgresql-7.4-server.patch 2469
+SHA256 934138b61ac4fd1c2dfa8395d32e27d5fcc8b54b3f65cb0139c4803caf926d9e files/postgresql-7.4-server.patch 2469
+AUX postgresql-8.0-nls.patch 903 RMD160 ffbe83748941a0d25715f6cfbadda95441d152af SHA1 f49df137be68a34b7f30e0c054df9f0e39721c22 SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98
+MD5 adfce07a45d624bc1903905090ffe431 files/postgresql-8.0-nls.patch 903
+RMD160 ffbe83748941a0d25715f6cfbadda95441d152af files/postgresql-8.0-nls.patch 903
+SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98 files/postgresql-8.0-nls.patch 903
+AUX postgresql-8.0-no-interfaces.patch 430 RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 SHA1 db70a0103d57bb2044f38fb0684328b80e365304 SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5
+MD5 486acb579010282ead6c424c6fb46ba1 files/postgresql-8.0-no-interfaces.patch 430
+RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 files/postgresql-8.0-no-interfaces.patch 430
+SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5 files/postgresql-8.0-no-interfaces.patch 430
+AUX postgresql-8.0-regress.patch 3428 RMD160 a48909741d29be3d39d499fe73bd9fb898f93672 SHA1 cb232a1e9d642206a7c12876f9dc300b3016486b SHA256 fd9d4896d98cb77d8f58f9166505e232508236aa17a8cacdbd31595920743405
+MD5 97cff4347b56cda71ef090a296d0b2df files/postgresql-8.0-regress.patch 3428
+RMD160 a48909741d29be3d39d499fe73bd9fb898f93672 files/postgresql-8.0-regress.patch 3428
+SHA256 fd9d4896d98cb77d8f58f9166505e232508236aa17a8cacdbd31595920743405 files/postgresql-8.0-regress.patch 3428
+AUX postgresql-8.0-server.patch 2783 RMD160 4e46849355c146c65e98bc35c8744d95b05025ab SHA1 9461b0e2a8fdc98eb3cc3294ed59f2aa6f302009 SHA256 423aca5a8c5298b1f0ee8ac5765d6e957c1e6a99d7f9ee4252668f6e5d661f5e
+MD5 c885d8a900af4577b5f393e2c33a5154 files/postgresql-8.0-server.patch 2783
+RMD160 4e46849355c146c65e98bc35c8744d95b05025ab files/postgresql-8.0-server.patch 2783
+SHA256 423aca5a8c5298b1f0ee8ac5765d6e957c1e6a99d7f9ee4252668f6e5d661f5e files/postgresql-8.0-server.patch 2783
+AUX postgresql-8.1-nls.patch 903 RMD160 ffbe83748941a0d25715f6cfbadda95441d152af SHA1 f49df137be68a34b7f30e0c054df9f0e39721c22 SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98
+MD5 adfce07a45d624bc1903905090ffe431 files/postgresql-8.1-nls.patch 903
+RMD160 ffbe83748941a0d25715f6cfbadda95441d152af files/postgresql-8.1-nls.patch 903
+SHA256 363cc1db8d7425022dd35fb46933e9782e503e66480fefa1cb8c862450e82a98 files/postgresql-8.1-nls.patch 903
+AUX postgresql-8.1-no-interfaces.patch 430 RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 SHA1 db70a0103d57bb2044f38fb0684328b80e365304 SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5
+MD5 486acb579010282ead6c424c6fb46ba1 files/postgresql-8.1-no-interfaces.patch 430
+RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 files/postgresql-8.1-no-interfaces.patch 430
+SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5 files/postgresql-8.1-no-interfaces.patch 430
+AUX postgresql-8.1-regress.patch 3578 RMD160 9110630caacfb5b49d32e55c0bbfff43e4fe2298 SHA1 de4da6244176d8fc2cdbcaabfd486463127933ac SHA256 67254c3d26e43063aabbb08f91ce823bd97e8f03c6234e6f8ccb178bf1ae037a
+MD5 5e3d9cbc5e3799b1523a5be9c66be938 files/postgresql-8.1-regress.patch 3578
+RMD160 9110630caacfb5b49d32e55c0bbfff43e4fe2298 files/postgresql-8.1-regress.patch 3578
+SHA256 67254c3d26e43063aabbb08f91ce823bd97e8f03c6234e6f8ccb178bf1ae037a files/postgresql-8.1-regress.patch 3578
+AUX postgresql-8.1-server.patch 2590 RMD160 35c7c63d4212a7634466e7c845b6ed5b2fc5df6f SHA1 748ca87a6dca25ba132b04d431336a7ddec47397 SHA256 b67cb49699356b62bc732eedbf8044e8154b1f07f3937396a5e3a962b9a5b6f2
+MD5 62a1f167e03ff21e4cab1f67c6f9d10e files/postgresql-8.1-server.patch 2590
+RMD160 35c7c63d4212a7634466e7c845b6ed5b2fc5df6f files/postgresql-8.1-server.patch 2590
+SHA256 b67cb49699356b62bc732eedbf8044e8154b1f07f3937396a5e3a962b9a5b6f2 files/postgresql-8.1-server.patch 2590
+AUX postgresql-8.2-nls.patch 694 RMD160 7bf8b223f2da3af437eb168eebaf5dcdfcf01dac SHA1 f7b289d67e7c17d21006a780d117d27036aa1ada SHA256 be7d52faaf4eb66b2959bd5709b67b37fa685284734bb8bfc73caef667392669
+MD5 98fd6b000ddcb406647f3da6ae8c5b01 files/postgresql-8.2-nls.patch 694
+RMD160 7bf8b223f2da3af437eb168eebaf5dcdfcf01dac files/postgresql-8.2-nls.patch 694
+SHA256 be7d52faaf4eb66b2959bd5709b67b37fa685284734bb8bfc73caef667392669 files/postgresql-8.2-nls.patch 694
+AUX postgresql-8.2-no-interfaces.patch 430 RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 SHA1 db70a0103d57bb2044f38fb0684328b80e365304 SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5
+MD5 486acb579010282ead6c424c6fb46ba1 files/postgresql-8.2-no-interfaces.patch 430
+RMD160 ffd1ad9591c887a8ccc4002067e604f7d8a59d28 files/postgresql-8.2-no-interfaces.patch 430
+SHA256 8707ff8105c3d9dccef95111becdc601eec0a161bd1aaf535b6cecd9a1f0cda5 files/postgresql-8.2-no-interfaces.patch 430
+AUX postgresql-8.2-regress.patch 1516 RMD160 d50c3643795ef641d4630ad987bb1d49723d9eac SHA1 a6eca4cb7aac0f937b8d5299827d4e8a8406833d SHA256 291d6f98741a5016dfb86be8acedf7c6b3538e70fff55347005e5a9c49b7d6dd
+MD5 0afb28ed3c3cf6346f0009265a6271b2 files/postgresql-8.2-regress.patch 1516
+RMD160 d50c3643795ef641d4630ad987bb1d49723d9eac files/postgresql-8.2-regress.patch 1516
+SHA256 291d6f98741a5016dfb86be8acedf7c6b3538e70fff55347005e5a9c49b7d6dd files/postgresql-8.2-regress.patch 1516
+AUX postgresql-8.2-server.patch 2536 RMD160 af1858e18d1732818a16ed6c030f1e283c6eb4e5 SHA1 b428396d16f7140fc701ebed34ddf0bebc0249db SHA256 b7e9c4e993992b7677c38f2860de805547bc7b384089a4f75b3ece28298eb0a8
+MD5 76cea8ec5e54314453d44cda62217653 files/postgresql-8.2-server.patch 2536
+RMD160 af1858e18d1732818a16ed6c030f1e283c6eb4e5 files/postgresql-8.2-server.patch 2536
+SHA256 b7e9c4e993992b7677c38f2860de805547bc7b384089a4f75b3ece28298eb0a8 files/postgresql-8.2-server.patch 2536
+AUX postgresql.conf-7.3 1718 RMD160 c31c90347f9fdf680fcaa622718f0ce3e00a668f SHA1 ac62ef9ef6bca37e3203ecda29c8a47438f14dc4 SHA256 a195dadfee1dccd6781b4d470d7217565d5f52018ec2ab132dfe5d074ea5cf2d
+MD5 c0aad7d594ef398c9fcc694a17055a4d files/postgresql.conf-7.3 1718
+RMD160 c31c90347f9fdf680fcaa622718f0ce3e00a668f files/postgresql.conf-7.3 1718
+SHA256 a195dadfee1dccd6781b4d470d7217565d5f52018ec2ab132dfe5d074ea5cf2d files/postgresql.conf-7.3 1718
+AUX postgresql.conf-7.4 1718 RMD160 bd27a29eb2fce425a70008f5b651660e5ea229cb SHA1 f87f84e6cc03d9406a355785d634106433ab2378 SHA256 f5a0bb6b290376357ddcc50a97a7b9378b38fa457c5990ef9dd6bc67328821f8
+MD5 ac63fb8d1d7e6bf9976ba191598698c1 files/postgresql.conf-7.4 1718
+RMD160 bd27a29eb2fce425a70008f5b651660e5ea229cb files/postgresql.conf-7.4 1718
+SHA256 f5a0bb6b290376357ddcc50a97a7b9378b38fa457c5990ef9dd6bc67328821f8 files/postgresql.conf-7.4 1718
+AUX postgresql.conf-8.0 1718 RMD160 c1d14f3e02fcdfea1bdf13527043c8ea7da5ff86 SHA1 97c5b06d6651ee3224566802368bbcae8ec611eb SHA256 b079762ac8940fa9d961ba493f0bb9f57f9688bcb1068b6725253140bee49560
+MD5 64e630bc363013925ff39710db4db5de files/postgresql.conf-8.0 1718
+RMD160 c1d14f3e02fcdfea1bdf13527043c8ea7da5ff86 files/postgresql.conf-8.0 1718
+SHA256 b079762ac8940fa9d961ba493f0bb9f57f9688bcb1068b6725253140bee49560 files/postgresql.conf-8.0 1718
+AUX postgresql.conf-8.1 1718 RMD160 99080e14f4532c46f57029fc9555eb2064e0ff01 SHA1 5e1563260fc5c88d8f1965316b7bf1212144d94a SHA256 b9f07af30e7b87bf4a09c624d0dc78f230621dd9023a1e04f6b67d3d70a89ddc
+MD5 c96ecd4f4f53d74970f604780f0a43fb files/postgresql.conf-8.1 1718
+RMD160 99080e14f4532c46f57029fc9555eb2064e0ff01 files/postgresql.conf-8.1 1718
+SHA256 b9f07af30e7b87bf4a09c624d0dc78f230621dd9023a1e04f6b67d3d70a89ddc files/postgresql.conf-8.1 1718
+AUX postgresql.conf-8.2 1718 RMD160 4fbd87e6130a620c47c6f9adcf210b3ca42808ad SHA1 12681c7fb4c601dcb072be4479eca74e8ac64eb6 SHA256 f45850ac12f942f159d8135d4b063116db3085a7b657be299303d6728ef11f36
+MD5 15d194a45f7374d543795351e4941107 files/postgresql.conf-8.2 1718
+RMD160 4fbd87e6130a620c47c6f9adcf210b3ca42808ad files/postgresql.conf-8.2 1718
+SHA256 f45850ac12f942f159d8135d4b063116db3085a7b657be299303d6728ef11f36 files/postgresql.conf-8.2 1718
+AUX postgresql.init-7.3 1435 RMD160 6045d5c9a20f96d46cda66110a0665ac5b603994 SHA1 1126960b9af0ca2fb46d588eb3e86559a049f542 SHA256 98b195afee534e4bf9b0413743b95c437ce3db03426780c250337b14bc109435
+MD5 9b719ef9060d84516c5d28e0c494953f files/postgresql.init-7.3 1435
+RMD160 6045d5c9a20f96d46cda66110a0665ac5b603994 files/postgresql.init-7.3 1435
+SHA256 98b195afee534e4bf9b0413743b95c437ce3db03426780c250337b14bc109435 files/postgresql.init-7.3 1435
+AUX postgresql.init-7.4 1435 RMD160 386d6fd65fe7daf3aed71e006cbc32417a00a403 SHA1 c8aaef92c7097b4a4b9e25bc587a2f8e4b911d0d SHA256 517413909be988748cbb16969338ec1c9a5302eda0e2b66ebce2776f05c14c5e
+MD5 3c74c7c2c822694fe74c7901ebc72fbf files/postgresql.init-7.4 1435
+RMD160 386d6fd65fe7daf3aed71e006cbc32417a00a403 files/postgresql.init-7.4 1435
+SHA256 517413909be988748cbb16969338ec1c9a5302eda0e2b66ebce2776f05c14c5e files/postgresql.init-7.4 1435
+AUX postgresql.init-8.0 1435 RMD160 7757267c7bbae9e36b971416e9ee3340f717d57b SHA1 a44a791843f4ee9067f151d5d866628fcd06847c SHA256 3974d1bd9474985f5cd9b8d0c99487f0e514b9c1337cd3e50cda723b754ceefb
+MD5 20980ee4165970141f5edfd5963f35f0 files/postgresql.init-8.0 1435
+RMD160 7757267c7bbae9e36b971416e9ee3340f717d57b files/postgresql.init-8.0 1435
+SHA256 3974d1bd9474985f5cd9b8d0c99487f0e514b9c1337cd3e50cda723b754ceefb files/postgresql.init-8.0 1435
+AUX postgresql.init-8.1 1435 RMD160 a18fd1269fc9d57b1682c2b6f2852d862ae7b03b SHA1 c33bc62c58095da07fef9fb5fa2e3de443b194b5 SHA256 24d5337e5f6e5564562495de3c889e451a1ecac2a3c66dcef91b879b9ed18918
+MD5 0db27a8363805f2d93e3318322210a21 files/postgresql.init-8.1 1435
+RMD160 a18fd1269fc9d57b1682c2b6f2852d862ae7b03b files/postgresql.init-8.1 1435
+SHA256 24d5337e5f6e5564562495de3c889e451a1ecac2a3c66dcef91b879b9ed18918 files/postgresql.init-8.1 1435
+AUX postgresql.init-8.2 1435 RMD160 a40d6b32b81833a0d31f3c3dd23bf9e066798687 SHA1 07c5eeac087d9ba9074159c2b2232c6e8ef6c407 SHA256 a718dab7da48c8a368c9fa22be4013a44d6d38886e93229c6c6b4ba2273309c3
+MD5 a8d691f624693aec3744098ef43374db files/postgresql.init-8.2 1435
+RMD160 a40d6b32b81833a0d31f3c3dd23bf9e066798687 files/postgresql.init-8.2 1435
+SHA256 a718dab7da48c8a368c9fa22be4013a44d6d38886e93229c6c6b4ba2273309c3 files/postgresql.init-8.2 1435
+DIST postgresql-base-7.3.17.tar.bz2 5694969 RMD160 b24910d27ab65a29c92e1328910004ee0abe1457 SHA1 67c6b5d4075e4f69b881c892d503969ac203183e SHA256 9d844fc9ffda1d6b2d6f324c7198ce5ffa4ea1bd79516ffa85b45bd2e8e616b3
+DIST postgresql-base-7.4.15.tar.bz2 6584329 RMD160 696e1bfcf815fb11865ebb375d6d3371d0908d18 SHA1 cb10ee0048804aef1e510afd21df71b1c17968be SHA256 42674ff290c05ae0baea0b0e177c30d28a609cdc72ce5c142c9f091278deafc2
+DIST postgresql-base-8.0.10.tar.bz2 7840640 RMD160 5efe3d7ad2feb9c660ca95a38aa11b62a4651757 SHA1 f5fef7b295e7958b3a2070b9590669d844fcafba SHA256 ed9d809cf54171475b755ebe452f9d360c5d1c8fb5085f575ae96c233f6abb6d
+DIST postgresql-base-8.1.6.tar.bz2 8064467 RMD160 766f0715b17f58f59546fdec702ddfaf110c7aee SHA1 c01020571ba6b9be49363d51a526e99ebf4996b0 SHA256 d6c4e8cf28764aefe81e6de253933c33950e58ca8975c9d93b3e844137dfd732
+DIST postgresql-base-8.2.1.tar.bz2 8483464 RMD160 a4bb2acae59dac730a8c03b110fed36c84d8204e SHA1 025cea3b072d273da8da5e0a125fe22d172aab3d SHA256 99aa1b8d3f0f53f5fd138103052f5111310c061b25c0293dd9f93dc3fd6fda5c
+DIST postgresql-opt-7.3.17.tar.bz2 342167 RMD160 e14bab7eb4567e3b65b5c3eb53eae3f24027091b SHA1 dcb400727ed0a441d687d29f63e2285e9c2a1db1 SHA256 26837b6a96a0bc2f3c04213571862c85c8cd3a7e2aac2b49a192bb651630361c
+DIST postgresql-opt-7.4.15.tar.bz2 333512 RMD160 11edd49dec8ccbe9de56930307bf6a2040eb17a8 SHA1 aefe8d4f2689d94e2cff798ce79b37bcfa41c7f2 SHA256 1bea2be928bc72f4e2b8e2342f599cd68134784e43c2a2f4606888524d4d25c6
+DIST postgresql-opt-8.0.10.tar.bz2 134801 RMD160 12ce042bc97a900b28b554368969886b76b6d920 SHA1 cf46c8dbe0d68ba33c6e519d50310b4906809742 SHA256 1e85b9007a79a842ddc22eb79fc4842937a0135d16e34756991a59bded345f96
+DIST postgresql-opt-8.1.6.tar.bz2 144641 RMD160 5287ea34c7c1b13c5e61cb469c6f45616109e8aa SHA1 5f27b3b67598c0c049248e93dbaf368939e76cab SHA256 321dcb79e042f1ddd202ecce5654d1ca0a6a72ec4fda86eac6e3990500bdbcfb
+DIST postgresql-opt-8.2.1.tar.bz2 167629 RMD160 34edadf292d7e6923a19adfee6a0077f30b4b272 SHA1 b318cda7a22b4ac14b67ac46e5f53780871b963f SHA256 9a542c79c2983322c621b4086ae78e1d7c3bb841c95283e45e7bced73d975422
+DIST postgresql-test-7.3.17.tar.bz2 890738 RMD160 60e4193a6baf59e098344d6b1707e0c103476568 SHA1 14b4e32f82448c425da65d4d82a0db5795708d6a SHA256 a464ff6dad6c6c91b11301f7fba7a6be24fbd5fe15ab94b2decdbd99159be4e1
+DIST postgresql-test-7.4.15.tar.bz2 902018 RMD160 5ab77c2921409604ea4c5e34cbaed0eaace9fc92 SHA1 dfab9ec0ecdfe097c802cdad4f45bbdfe3a42a82 SHA256 f71fa85e663cae9766f560be4afc1918ec8d903f343a934f17a8927d99663fd8
+DIST postgresql-test-8.0.10.tar.bz2 931351 RMD160 2b54e999430217c6935e2012231da19f0eb6ae17 SHA1 f7dd1b95b7a730b56589d57c805378663b5599fb SHA256 e49070823751063f5f83e56a56e8cc4ab6605f2742ba5880cf387d71e50929bc
+DIST postgresql-test-8.1.6.tar.bz2 947637 RMD160 69ea32afa74bafb736351fd26924ddc5af83d23b SHA1 5964eae61037c0171fb4834c05ce8b859e5a2bd6 SHA256 060af213dc188ef1c0690b66860e78152d5c047e62399d8d2399ec68a29656fb
+DIST postgresql-test-8.2.1.tar.bz2 985153 RMD160 445d48fe29f56a3de01168c47c5bc3724931dea9 SHA1 7b564b716c027feb2ecdb375b45d54ada4a66b4f SHA256 fa6835d4d68215dac9fc6242ea974aea671c3be1565fb84ce40b28c209a89fe3
+EBUILD postgresql-server-7.3.17.ebuild 7630 RMD160 e52b071fcad28618484e0483322516a03fe338fc SHA1 eab164d5510fa38dc971bd9949280899d4a84aab SHA256 fdf0b94c3f10a60424e7b50829ea3b35402a3e1ddbbb588c3fab927a68287eb1
+MD5 f6880790b765366fad997c9d8ab2b969 postgresql-server-7.3.17.ebuild 7630
+RMD160 e52b071fcad28618484e0483322516a03fe338fc postgresql-server-7.3.17.ebuild 7630
+SHA256 fdf0b94c3f10a60424e7b50829ea3b35402a3e1ddbbb588c3fab927a68287eb1 postgresql-server-7.3.17.ebuild 7630
+EBUILD postgresql-server-7.4.15.ebuild 7577 RMD160 47faf75cd41d3cb1b2e7fb11f5593b27c6e45dbb SHA1 3c36df2722499efe59fbdcb1f95bd28b73b98c86 SHA256 2accdf2447204f2cfd3aead20617f3faadada842278f81c992e7ad8b0aea567d
+MD5 74973df945cddf86656438b845e2c5c4 postgresql-server-7.4.15.ebuild 7577
+RMD160 47faf75cd41d3cb1b2e7fb11f5593b27c6e45dbb postgresql-server-7.4.15.ebuild 7577
+SHA256 2accdf2447204f2cfd3aead20617f3faadada842278f81c992e7ad8b0aea567d postgresql-server-7.4.15.ebuild 7577
+EBUILD postgresql-server-8.0.10.ebuild 7530 RMD160 b1d4c14741c4eb04345dce526dac9108ab5d35c1 SHA1 4bc071f10fc35aa8e58425521c6f2d709a248f8a SHA256 b0d7f003b0410c12bde71a3dca3b3629661f91cd698d14e6e890e8d2d0a9ec78
+MD5 fd1ed862485695e2bc26653f4844f9b9 postgresql-server-8.0.10.ebuild 7530
+RMD160 b1d4c14741c4eb04345dce526dac9108ab5d35c1 postgresql-server-8.0.10.ebuild 7530
+SHA256 b0d7f003b0410c12bde71a3dca3b3629661f91cd698d14e6e890e8d2d0a9ec78 postgresql-server-8.0.10.ebuild 7530
+EBUILD postgresql-server-8.1.6.ebuild 7540 RMD160 2331382fa2cf56a00a8047daf59b93dd9a454a4f SHA1 2d45143fa91df038d28dc9bfa38fcb855b16bbf0 SHA256 ede971e402857bece596340456f141b8c47a30cef19539da37be9a65debefacf
+MD5 779051c8303d7ac41141d12f7cecc4e1 postgresql-server-8.1.6.ebuild 7540
+RMD160 2331382fa2cf56a00a8047daf59b93dd9a454a4f postgresql-server-8.1.6.ebuild 7540
+SHA256 ede971e402857bece596340456f141b8c47a30cef19539da37be9a65debefacf postgresql-server-8.1.6.ebuild 7540
+EBUILD postgresql-server-8.2.1.ebuild 7680 RMD160 74f53907a64261d5bf6e7ba985fb074c92816715 SHA1 f7fc59c00035bd6776ef9e314dbdd7efa5213f59 SHA256 ab7ef5e3745751075d6c62146993e612227773274be04a9c498505e2d13b7aae
+MD5 ed188baeea7b84ed794e74931c612441 postgresql-server-8.2.1.ebuild 7680
+RMD160 74f53907a64261d5bf6e7ba985fb074c92816715 postgresql-server-8.2.1.ebuild 7680
+SHA256 ab7ef5e3745751075d6c62146993e612227773274be04a9c498505e2d13b7aae postgresql-server-8.2.1.ebuild 7680
+MD5 d87b8a9d8d86cc8c2aac054862b69e54 files/digest-postgresql-server-7.3.17 813
+RMD160 fddeb34b564728a8c8bcf6315f112349c3423904 files/digest-postgresql-server-7.3.17 813
+SHA256 7f2bf78067d4d2a0c728e9141c8c44e43d9a3bce1ce92f86d82f24c7aa216087 files/digest-postgresql-server-7.3.17 813
+MD5 6279ed7cc86e5f02f73a59a4248c7fbc files/digest-postgresql-server-7.4.15 813
+RMD160 559cd7b43cecd74cbca6785722c332e034993da4 files/digest-postgresql-server-7.4.15 813
+SHA256 ed50928aa8ebf5641ecac8c158d11089bc98963f75de4c88e738e1ad5991ba25 files/digest-postgresql-server-7.4.15 813
+MD5 56896c65d4af69d396b54313d848947f files/digest-postgresql-server-8.0.10 813
+RMD160 9a02d74d69a5a6d13cc375d0f93f85f45efce7e1 files/digest-postgresql-server-8.0.10 813
+SHA256 0442c083ac8d85c1bea6f4c90f0f3909fe7240f6117db4e3ddbb0041ff52bc82 files/digest-postgresql-server-8.0.10 813
+MD5 9a6704087241d1a1da9d43c3ad2ef26a files/digest-postgresql-server-8.1.6 804
+RMD160 00f2fa2e3bf9142c721ad168d86fb26de88e38c0 files/digest-postgresql-server-8.1.6 804
+SHA256 dc14da51d2d18376d4901a1f5e5ec56d9d3f7d7eff737372eceb31dc2a5008a9 files/digest-postgresql-server-8.1.6 804
+MD5 67a032ee0d0846b259a8e0a472b017e4 files/digest-postgresql-server-8.2.1 804
+RMD160 b90016360fd4c5ce22e19ca4eca64dcbde9942e3 files/digest-postgresql-server-8.2.1 804
+SHA256 5747c24c4fb1d76beffaee507f54fb027e664febadfe946d11fd32633392e024 files/digest-postgresql-server-8.2.1 804
diff --git a/dev-db/postgresql-server/files/digest-postgresql-server-7.3.17 b/dev-db/postgresql-server/files/digest-postgresql-server-7.3.17
new file mode 100644
index 0000000..2aff995
--- /dev/null
+++ b/dev-db/postgresql-server/files/digest-postgresql-server-7.3.17
@@ -0,0 +1,9 @@
+MD5 44df750b477b8e9c329f514f0264f915 postgresql-base-7.3.17.tar.bz2 5694969
+RMD160 b24910d27ab65a29c92e1328910004ee0abe1457 postgresql-base-7.3.17.tar.bz2 5694969
+SHA256 9d844fc9ffda1d6b2d6f324c7198ce5ffa4ea1bd79516ffa85b45bd2e8e616b3 postgresql-base-7.3.17.tar.bz2 5694969
+MD5 9ed5d06f185877c0b609b7dbe96f73bd postgresql-opt-7.3.17.tar.bz2 342167
+RMD160 e14bab7eb4567e3b65b5c3eb53eae3f24027091b postgresql-opt-7.3.17.tar.bz2 342167
+SHA256 26837b6a96a0bc2f3c04213571862c85c8cd3a7e2aac2b49a192bb651630361c postgresql-opt-7.3.17.tar.bz2 342167
+MD5 3429377e40d1aa5e374927b874c7beda postgresql-test-7.3.17.tar.bz2 890738
+RMD160 60e4193a6baf59e098344d6b1707e0c103476568 postgresql-test-7.3.17.tar.bz2 890738
+SHA256 a464ff6dad6c6c91b11301f7fba7a6be24fbd5fe15ab94b2decdbd99159be4e1 postgresql-test-7.3.17.tar.bz2 890738
diff --git a/dev-db/postgresql-server/files/digest-postgresql-server-7.4.15 b/dev-db/postgresql-server/files/digest-postgresql-server-7.4.15
new file mode 100644
index 0000000..afb097d
--- /dev/null
+++ b/dev-db/postgresql-server/files/digest-postgresql-server-7.4.15
@@ -0,0 +1,9 @@
+MD5 971dd112cfbd9a54f48081345c934209 postgresql-base-7.4.15.tar.bz2 6584329
+RMD160 696e1bfcf815fb11865ebb375d6d3371d0908d18 postgresql-base-7.4.15.tar.bz2 6584329
+SHA256 42674ff290c05ae0baea0b0e177c30d28a609cdc72ce5c142c9f091278deafc2 postgresql-base-7.4.15.tar.bz2 6584329
+MD5 a19d989663d2a73a72a1031ace7ce58c postgresql-opt-7.4.15.tar.bz2 333512
+RMD160 11edd49dec8ccbe9de56930307bf6a2040eb17a8 postgresql-opt-7.4.15.tar.bz2 333512
+SHA256 1bea2be928bc72f4e2b8e2342f599cd68134784e43c2a2f4606888524d4d25c6 postgresql-opt-7.4.15.tar.bz2 333512
+MD5 bc03e17284cfea02c8bdc890da6951ae postgresql-test-7.4.15.tar.bz2 902018
+RMD160 5ab77c2921409604ea4c5e34cbaed0eaace9fc92 postgresql-test-7.4.15.tar.bz2 902018
+SHA256 f71fa85e663cae9766f560be4afc1918ec8d903f343a934f17a8927d99663fd8 postgresql-test-7.4.15.tar.bz2 902018
diff --git a/dev-db/postgresql-server/files/digest-postgresql-server-8.0.10 b/dev-db/postgresql-server/files/digest-postgresql-server-8.0.10
new file mode 100644
index 0000000..1bb3c3c
--- /dev/null
+++ b/dev-db/postgresql-server/files/digest-postgresql-server-8.0.10
@@ -0,0 +1,9 @@
+MD5 beb7db3955dc92362a8efc513c60bf96 postgresql-base-8.0.10.tar.bz2 7840640
+RMD160 5efe3d7ad2feb9c660ca95a38aa11b62a4651757 postgresql-base-8.0.10.tar.bz2 7840640
+SHA256 ed9d809cf54171475b755ebe452f9d360c5d1c8fb5085f575ae96c233f6abb6d postgresql-base-8.0.10.tar.bz2 7840640
+MD5 4487d7ceebf33e847c780fe66b363d6e postgresql-opt-8.0.10.tar.bz2 134801
+RMD160 12ce042bc97a900b28b554368969886b76b6d920 postgresql-opt-8.0.10.tar.bz2 134801
+SHA256 1e85b9007a79a842ddc22eb79fc4842937a0135d16e34756991a59bded345f96 postgresql-opt-8.0.10.tar.bz2 134801
+MD5 e32adb56b61e462b8a6a9593f7a6b2af postgresql-test-8.0.10.tar.bz2 931351
+RMD160 2b54e999430217c6935e2012231da19f0eb6ae17 postgresql-test-8.0.10.tar.bz2 931351
+SHA256 e49070823751063f5f83e56a56e8cc4ab6605f2742ba5880cf387d71e50929bc postgresql-test-8.0.10.tar.bz2 931351
diff --git a/dev-db/postgresql-server/files/digest-postgresql-server-8.1.6 b/dev-db/postgresql-server/files/digest-postgresql-server-8.1.6
new file mode 100644
index 0000000..f4dfdb9
--- /dev/null
+++ b/dev-db/postgresql-server/files/digest-postgresql-server-8.1.6
@@ -0,0 +1,9 @@
+MD5 ad616f482e119a39cc89ee6902e9205e postgresql-base-8.1.6.tar.bz2 8064467
+RMD160 766f0715b17f58f59546fdec702ddfaf110c7aee postgresql-base-8.1.6.tar.bz2 8064467
+SHA256 d6c4e8cf28764aefe81e6de253933c33950e58ca8975c9d93b3e844137dfd732 postgresql-base-8.1.6.tar.bz2 8064467
+MD5 ff928aa7e457fc8c418dd2875863942b postgresql-opt-8.1.6.tar.bz2 144641
+RMD160 5287ea34c7c1b13c5e61cb469c6f45616109e8aa postgresql-opt-8.1.6.tar.bz2 144641
+SHA256 321dcb79e042f1ddd202ecce5654d1ca0a6a72ec4fda86eac6e3990500bdbcfb postgresql-opt-8.1.6.tar.bz2 144641
+MD5 ab51f4033e170414d2f2949a662c2555 postgresql-test-8.1.6.tar.bz2 947637
+RMD160 69ea32afa74bafb736351fd26924ddc5af83d23b postgresql-test-8.1.6.tar.bz2 947637
+SHA256 060af213dc188ef1c0690b66860e78152d5c047e62399d8d2399ec68a29656fb postgresql-test-8.1.6.tar.bz2 947637
diff --git a/dev-db/postgresql-server/files/digest-postgresql-server-8.2.1 b/dev-db/postgresql-server/files/digest-postgresql-server-8.2.1
new file mode 100644
index 0000000..abe2c6c
--- /dev/null
+++ b/dev-db/postgresql-server/files/digest-postgresql-server-8.2.1
@@ -0,0 +1,9 @@
+MD5 7f20da3764ea2ff7329a6570da89926a postgresql-base-8.2.1.tar.bz2 8483464
+RMD160 a4bb2acae59dac730a8c03b110fed36c84d8204e postgresql-base-8.2.1.tar.bz2 8483464
+SHA256 99aa1b8d3f0f53f5fd138103052f5111310c061b25c0293dd9f93dc3fd6fda5c postgresql-base-8.2.1.tar.bz2 8483464
+MD5 018aaf094027456d4708d97320c86eaa postgresql-opt-8.2.1.tar.bz2 167629
+RMD160 34edadf292d7e6923a19adfee6a0077f30b4b272 postgresql-opt-8.2.1.tar.bz2 167629
+SHA256 9a542c79c2983322c621b4086ae78e1d7c3bb841c95283e45e7bced73d975422 postgresql-opt-8.2.1.tar.bz2 167629
+MD5 fefc23962bda107bc24d799996b11a92 postgresql-test-8.2.1.tar.bz2 985153
+RMD160 445d48fe29f56a3de01168c47c5bc3724931dea9 postgresql-test-8.2.1.tar.bz2 985153
+SHA256 fa6835d4d68215dac9fc6242ea974aea671c3be1565fb84ce40b28c209a89fe3 postgresql-test-8.2.1.tar.bz2 985153
diff --git a/dev-db/postgresql/files/postgresql-7.3-cubeparse.patch b/dev-db/postgresql-server/files/postgresql-7.3-cubeparse.patch
index 705e073..705e073 100644
--- a/dev-db/postgresql/files/postgresql-7.3-cubeparse.patch
+++ b/dev-db/postgresql-server/files/postgresql-7.3-cubeparse.patch
diff --git a/dev-db/postgresql-server/files/postgresql-7.3-nls.patch b/dev-db/postgresql-server/files/postgresql-7.3-nls.patch
new file mode 100644
index 0000000..e1a09f7
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-7.3-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 35d9e2b..c681983 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-server/files/postgresql-7.3-regress.patch b/dev-db/postgresql-server/files/postgresql-7.3-regress.patch
new file mode 100644
index 0000000..eeab500
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-7.3-regress.patch
@@ -0,0 +1,88 @@
+diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
+index ebf14e5..bb07726 100644
+--- a/src/test/regress/GNUmakefile
++++ b/src/test/regress/GNUmakefile
+@@ -113,7 +113,8 @@ ## Run tests
+ ##
+
+ check: all
+- $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE)
++ chown portage .
++ su -s /bin/sh portage -c "clientbindir=/usr/lib/postgresql-${SLOT}/bin PATH=\"${PATH}\" $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE)"
+
+ installcheck: all
+ $(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE)
+diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
+index 9657ed3..b1b1a7f 100644
+--- a/src/test/regress/pg_regress.sh
++++ b/src/test/regress/pg_regress.sh
+@@ -77,6 +77,8 @@ host_platform='@host_tuple@'
+ enable_shared='@enable_shared@'
+ GCC=@GCC@
+
++test -z "${clientbindir}" && clientbindir="${bindir}"
++
+ if [ "$GCC" = yes ]; then
+ compiler=gcc
+ else
+@@ -364,7 +366,7 @@ then
+ # wait forever, however.
+ i=0
+ max=60
+- until "$bindir/psql" $psql_options template1 </dev/null 2>/dev/null
++ until "$clientbindir/psql" $psql_options template1 </dev/null 2>/dev/null
+ do
+ i=`expr $i + 1`
+ if [ $i -ge $max ]
+@@ -411,7 +413,7 @@ else # not temp-install
+ echo "(using postmaster on Unix socket, $port_info)"
+ fi
+ message "dropping database \"$dbname\""
+- "$bindir/dropdb" $psql_options "$dbname"
++ "$clientbindir/dropdb" $psql_options "$dbname"
+ # errors can be ignored
+ fi
+
+@@ -420,7 +422,7 @@ # ----------
+ # Set up SQL shell for the test.
+ # ----------
+
+-PSQL="$bindir/psql -q -X $psql_options"
++PSQL="$clientbindir/psql -q -X $psql_options"
+
+
+ # ----------
+@@ -451,13 +453,13 @@ # will not mess up the tests.
+ # ----------
+
+ message "creating database \"$dbname\""
+-"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
++"$clientbindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
+ if [ $? -ne 0 ]; then
+ echo "$me: createdb failed"
+ (exit 2); exit
+ fi
+
+-"$bindir/psql" $psql_options -c "\
++"$clientbindir/psql" $psql_options -c "\
+ alter database \"$dbname\" set lc_messages to 'C';
+ alter database \"$dbname\" set lc_monetary to 'C';
+ alter database \"$dbname\" set lc_numeric to 'C';
+@@ -473,7 +475,7 @@ # Remove regressuser* and regressgroup*
+ # ----------
+
+ message "dropping regression test user accounts"
+-"$bindir/psql" $psql_options -c 'SET autocommit TO on;DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
++"$clientbindir/psql" $psql_options -c 'SET autocommit TO on;DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
+ if [ $? -eq 2 ]; then
+ echo "$me: could not drop user accounts"
+ (exit 2); exit
+@@ -486,7 +488,7 @@ # ----------
+
+ if [ "$enable_shared" = yes ]; then
+ message "installing PL/pgSQL"
+- "$bindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
++ "$clientbindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
+ if [ $? -ne 0 ] && [ $? -ne 2 ]; then
+ echo "$me: createlang failed"
+ (exit 2); exit
diff --git a/dev-db/postgresql-server/files/postgresql-7.3-server.patch b/dev-db/postgresql-server/files/postgresql-7.3-server.patch
new file mode 100644
index 0000000..1ccaa3a
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-7.3-server.patch
@@ -0,0 +1,96 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 2b17d47..d8f967d 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -23,7 +23,6 @@ installdirs uninstall distprep:
+ $(MAKE) -C src $@
+
+ install-all-headers:
+- $(MAKE) -C src $@
+
+ # clean, distclean, etc should apply to contrib too, even though
+ # it's not built by default
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 66753e8..6066a33 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -14,7 +14,6 @@ WANTED_DIRS = \
+ dbmirror \
+ dbsize \
+ earthdistance \
+- findoidjoins \
+ fulltextindex \
+ fuzzystrmatch \
+ intagg \
+@@ -24,10 +23,7 @@ WANTED_DIRS = \
+ ltree \
+ miscutil \
+ noupdate \
+- oid2name \
+- pg_dumplo \
+ pg_logger \
+- pgbench \
+ pgcrypto \
+ pgstattuple \
+ rserv \
+@@ -38,8 +34,7 @@ WANTED_DIRS = \
+ tablefunc \
+ tips \
+ tsearch \
+- userlock \
+- vacuumlo
++ userlock
+
+ # Missing:
+ # ipc_check \ (does not have a makefile)
+diff --git a/src/Makefile b/src/Makefile
+index cd6e5e6..49672db 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -17,13 +17,10 @@ all install installdirs uninstall dep de
+ $(MAKE) -C port $@
+ $(MAKE) -C backend $@
+ $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+ $(MAKE) -C pl $@
+
+ install-all-headers:
+- $(MAKE) -C include $@
+
+ clean:
+ $(MAKE) -C port $@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index e0fd91d..f8a3430 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -286,10 +286,10 @@ libpq_builddir = $(top_builddir)/src/int
+ libpq = -L$(libpq_builddir) -lpq
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 3035f61..90b357d 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,9 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \
+- psql scripts pg_config pg_controldata pg_resetxlog \
+- pg_encoding
++DIRS := initdb initlocation ipcclean pg_ctl pg_id \
++ pg_controldata pg_resetxlog
+
+ ifeq ($(with_tcl), yes)
+ DIRS += pgtclsh
diff --git a/dev-db/postgresql-server/files/postgresql-7.4-nls.patch b/dev-db/postgresql-server/files/postgresql-7.4-nls.patch
new file mode 100644
index 0000000..bf634c7
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-7.4-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index ae3b91a..6af24d2 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-server/files/postgresql-7.4-regress.patch b/dev-db/postgresql-server/files/postgresql-7.4-regress.patch
new file mode 100644
index 0000000..56e4fef
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-7.4-regress.patch
@@ -0,0 +1,88 @@
+diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
+index 3d6a939..865351a 100644
+--- a/src/test/regress/GNUmakefile
++++ b/src/test/regress/GNUmakefile
+@@ -122,7 +122,8 @@ ## Run tests
+ ##
+
+ check: all
+- $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)
++ chown portage .
++ su -s /bin/sh portage -c "clientbindir=/usr/lib/postgresql-${SLOT}/bin/ PATH=\"${PATH}\" $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)"
+
+ installcheck: all
+ $(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE)
+diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
+index 47f2cb9..130c671 100644
+--- a/src/test/regress/pg_regress.sh
++++ b/src/test/regress/pg_regress.sh
+@@ -80,6 +80,8 @@ host_platform='@host_tuple@'
+ enable_shared='@enable_shared@'
+ GCC=@GCC@
+
++test -z "${clientbindir}" && clientbindir="${bindir}"
++
+ if [ "$GCC" = yes ]; then
+ compiler=gcc
+ else
+@@ -409,7 +411,7 @@ then
+ # wait forever, however.
+ i=0
+ max=60
+- until "$bindir/psql" $psql_options template1 </dev/null 2>/dev/null
++ until "$clientbindir/psql" $psql_options template1 </dev/null 2>/dev/null
+ do
+ i=`expr $i + 1`
+ if [ $i -ge $max ]
+@@ -457,7 +459,7 @@ else # not temp-install
+ echo "(using postmaster on Unix socket, $port_info)"
+ fi
+ message "dropping database \"$dbname\""
+- "$bindir/dropdb" $psql_options "$dbname"
++ "$clientbindir/dropdb" $psql_options "$dbname"
+ # errors can be ignored
+ fi
+
+@@ -466,7 +468,7 @@ # ----------
+ # Set up SQL shell for the test.
+ # ----------
+
+-PSQL="$bindir/psql -a -q -X $psql_options"
++PSQL="$clientbindir/psql -a -q -X $psql_options"
+
+
+ # ----------
+@@ -497,13 +499,13 @@ # will not mess up the tests.
+ # ----------
+
+ message "creating database \"$dbname\""
+-"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
++"$clientbindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
+ if [ $? -ne 0 ]; then
+ echo "$me: createdb failed"
+ (exit 2); exit
+ fi
+
+-"$bindir/psql" $psql_options -c "\
++"$clientbindir/psql" $psql_options -c "\
+ alter database \"$dbname\" set lc_messages to 'C';
+ alter database \"$dbname\" set lc_monetary to 'C';
+ alter database \"$dbname\" set lc_numeric to 'C';
+@@ -519,7 +521,7 @@ # Remove regressuser* and regressgroup*
+ # ----------
+
+ message "dropping regression test user accounts"
+-"$bindir/psql" $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
++"$clientbindir/psql" $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
+ if [ $? -eq 2 ]; then
+ echo "$me: could not drop user accounts"
+ (exit 2); exit
+@@ -532,7 +534,7 @@ # ----------
+
+ if [ "$enable_shared" = yes ]; then
+ message "installing PL/pgSQL"
+- "$bindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
++ "$clientbindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
+ if [ $? -ne 0 ] && [ $? -ne 2 ]; then
+ echo "$me: createlang failed"
+ (exit 2); exit
diff --git a/dev-db/postgresql-server/files/postgresql-7.4-server.patch b/dev-db/postgresql-server/files/postgresql-7.4-server.patch
new file mode 100644
index 0000000..2435eca
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-7.4-server.patch
@@ -0,0 +1,99 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 563532a..607dc8a 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -23,7 +23,6 @@ installdirs uninstall distprep:
+ $(MAKE) -C src $@
+
+ install-all-headers:
+- $(MAKE) -C src $@
+
+ # clean, distclean, etc should apply to contrib too, even though
+ # it's not built by default
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 74310cf..fae6422 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -13,7 +13,6 @@ WANTED_DIRS = \
+ dbmirror \
+ dbsize \
+ earthdistance \
+- findoidjoins \
+ fulltextindex \
+ fuzzystrmatch \
+ intagg \
+@@ -23,11 +22,7 @@ WANTED_DIRS = \
+ ltree \
+ miscutil \
+ noupdate \
+- oid2name \
+- pg_autovacuum \
+- pg_dumplo \
+ pg_logger \
+- pgbench \
+ pgcrypto \
+ pgstattuple \
+ rserv \
+@@ -39,8 +34,7 @@ WANTED_DIRS = \
+ tips \
+ tsearch \
+ tsearch2 \
+- userlock \
+- vacuumlo
++ userlock
+
+ # Missing:
+ # array \ (removed all but the README)
+diff --git a/src/Makefile b/src/Makefile
+index cd6e5e6..0b23160 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -14,11 +14,8 @@ include Makefile.global
+
+
+ all install installdirs uninstall dep depend distprep:
+- $(MAKE) -C port $@
+ $(MAKE) -C backend $@
+ $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+ $(MAKE) -C pl $@
+
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 19c49d1..c968a2e 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -291,10 +291,10 @@ libpq_builddir = $(top_builddir)/src/int
+ libpq = -L$(libpq_builddir) -lpq
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 3035f61..6cc968c 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,13 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \
+- psql scripts pg_config pg_controldata pg_resetxlog \
+- pg_encoding
+-
+-ifeq ($(with_tcl), yes)
+- DIRS += pgtclsh
+-endif
++DIRS := initdb initlocation ipcclean pg_ctl pg_id \
++ pg_controldata pg_resetxlog
+
+ all install installdirs uninstall depend distprep:
+ @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
diff --git a/dev-db/postgresql-server/files/postgresql-8.0-nls.patch b/dev-db/postgresql-server/files/postgresql-8.0-nls.patch
new file mode 100644
index 0000000..dabc966
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.0-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 3f87396..9c7fbf0 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-server/files/postgresql-8.0-no-interfaces.patch b/dev-db/postgresql-server/files/postgresql-8.0-no-interfaces.patch
new file mode 100644
index 0000000..897388e
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.0-no-interfaces.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 820dfd5..2619acd 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -365,10 +365,10 @@ endif
+
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
diff --git a/dev-db/postgresql-server/files/postgresql-8.0-regress.patch b/dev-db/postgresql-server/files/postgresql-8.0-regress.patch
new file mode 100644
index 0000000..3cc0fdd
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.0-regress.patch
@@ -0,0 +1,88 @@
+diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
+index 822147b..f45ddee 100644
+--- a/src/test/regress/GNUmakefile
++++ b/src/test/regress/GNUmakefile
+@@ -138,7 +138,8 @@ ##
+ check: all
+ -rm -rf ./testtablespace
+ mkdir ./testtablespace
+- $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) $(NOLOCALE)
++ chown portage testtablespace .
++ su -s /bin/sh portage -c "clientbindir=/usr/lib/postgresql-${SLOT}/bin/ PATH=\"${PATH}\" $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) $(NOLOCALE)"
+
+ installcheck: all
+ -rm -rf ./testtablespace
+diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
+index d62afdd..e41319c 100644
+--- a/src/test/regress/pg_regress.sh
++++ b/src/test/regress/pg_regress.sh
+@@ -89,6 +89,8 @@ host_platform='@host_tuple@'
+ enable_shared='@enable_shared@'
+ GCC=@GCC@
+
++test -z "${clientbindir}" && clientbindir="${bindir}"
++
+ if [ "$GCC" = yes ]; then
+ compiler=gcc
+ else
+@@ -446,7 +448,7 @@ then
+ # wait forever, however.
+ i=0
+ max=60
+- until "$bindir/psql" -X $psql_options template1 </dev/null 2>/dev/null
++ until "$clientbindir/psql" -X $psql_options template1 </dev/null 2>/dev/null
+ do
+ i=`expr $i + 1`
+ if [ $i -ge $max ]
+@@ -503,7 +505,7 @@ else # not temp-install
+ fi
+
+ message "dropping database \"$dbname\""
+- "$bindir/dropdb" $psql_options "$dbname"
++ "$clientbindir/dropdb" $psql_options "$dbname"
+ # errors can be ignored
+ fi
+
+@@ -512,7 +514,7 @@ # ----------
+ # Set up SQL shell for the test.
+ # ----------
+
+-PSQL="$bindir/psql -a -q -X $psql_options"
++PSQL="$clientbindir/psql -a -q -X $psql_options"
+
+
+ # ----------
+@@ -546,13 +548,13 @@ # remove the core file.
+ # ----------
+
+ message "creating database \"$dbname\""
+-"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
++"$clientbindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
+ if [ $? -ne 0 ]; then
+ echo "$me: createdb failed"
+ (exit 2); exit
+ fi
+
+-"$bindir/psql" -q -X $psql_options -c "\
++"$clientbindir/psql" -q -X $psql_options -c "\
+ checkpoint;
+ alter database \"$dbname\" set lc_messages to 'C';
+ alter database \"$dbname\" set lc_monetary to 'C';
+@@ -569,7 +571,7 @@ # Remove regressuser* and regressgroup*
+ # ----------
+
+ message "dropping regression test user accounts"
+-"$bindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
++"$clientbindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
+ if [ $? -eq 2 ]; then
+ echo "$me: could not drop user accounts"
+ (exit 2); exit
+@@ -582,7 +584,7 @@ # ----------
+
+ if [ "$enable_shared" = yes ]; then
+ message "installing PL/pgSQL"
+- "$bindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
++ "$clientbindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
+ if [ $? -ne 0 ] && [ $? -ne 2 ]; then
+ echo "$me: createlang failed"
+ (exit 2); exit
diff --git a/dev-db/postgresql-server/files/postgresql-8.0-server.patch b/dev-db/postgresql-server/files/postgresql-8.0-server.patch
new file mode 100644
index 0000000..3fcfe27
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.0-server.patch
@@ -0,0 +1,113 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index c451bd6..a048ce7 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.glo
+ all:
+ $(MAKE) -C doc all
+ $(MAKE) -C src all
+- $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+
+ # clean, distclean, etc should apply to contrib too, even though
+ # it's not built by default
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 166ed86..c0705a7 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -13,7 +13,6 @@ WANTED_DIRS = \
+ dbmirror \
+ dbsize \
+ earthdistance \
+- findoidjoins \
+ fulltextindex \
+ fuzzystrmatch \
+ intagg \
+@@ -22,13 +21,8 @@ WANTED_DIRS = \
+ lo \
+ ltree \
+ miscutil \
+- mysql \
+ noupdate \
+- oid2name \
+- pg_autovacuum \
+- pg_dumplo \
+ pg_trgm \
+- pgbench \
+ pgcrypto \
+ pgstattuple \
+ rtree_gist \
+@@ -39,8 +33,7 @@ WANTED_DIRS = \
+ tips \
+ tsearch \
+ tsearch2 \
+- userlock \
+- vacuumlo
++ userlock
+
+ # Missing:
+ # adddepend \ (does not have a makefile)
+diff --git a/src/Makefile b/src/Makefile
+index 0963f88..5a7bb45 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -18,14 +18,10 @@ all install installdirs uninstall dep de
+ $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+ $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+ $(MAKE) -C pl $@
+- $(MAKE) -C makefiles $@
+- $(MAKE) -C utils $@
+
+-install: install-local
++install:
+
+ install-local: installdirs-local
+ $(INSTALL_DATA) Makefile.global $(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 8309db1..0d620d0 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := initdb ipcclean pg_ctl \
++ pg_controldata pg_resetxlog
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
+diff --git a/src/port/Makefile b/src/port/Makefile
+index de686e7..3bddb0e 100644
+--- a/src/port/Makefile
++++ b/src/port/Makefile
+@@ -29,11 +29,10 @@ LIBS += $(PTHREAD_LIBS)
+ # Replace all object files so they use FRONTEND define
+ LIBOBJS_SRV := $(LIBOBJS:%.o=%_srv.o)
+
+-all: libpgport.a libpgport_srv.a
++all: libpgport_srv.a
+
+ # libpgport is needed by some contrib
+-install: all
+- $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(libdir)
++install:
+
+ uninstall:
+ $(RM) $(DESTDIR)$(libdir)/libpgport.a
diff --git a/dev-db/postgresql-server/files/postgresql-8.1-nls.patch b/dev-db/postgresql-server/files/postgresql-8.1-nls.patch
new file mode 100644
index 0000000..dabc966
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.1-nls.patch
@@ -0,0 +1,25 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 3f87396..9c7fbf0 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
diff --git a/dev-db/postgresql-server/files/postgresql-8.1-no-interfaces.patch b/dev-db/postgresql-server/files/postgresql-8.1-no-interfaces.patch
new file mode 100644
index 0000000..897388e
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.1-no-interfaces.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 820dfd5..2619acd 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -365,10 +365,10 @@ endif
+
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
diff --git a/dev-db/postgresql-server/files/postgresql-8.1-regress.patch b/dev-db/postgresql-server/files/postgresql-8.1-regress.patch
new file mode 100644
index 0000000..67d3abc
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.1-regress.patch
@@ -0,0 +1,88 @@
+diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
+index a384254..22f69f1 100644
+--- a/src/test/regress/GNUmakefile
++++ b/src/test/regress/GNUmakefile
+@@ -137,7 +137,8 @@ ##
+ check: all
+ -rm -rf ./testtablespace
+ mkdir ./testtablespace
+- $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
++ chown portage testtablespace .
++ su -s /bin/sh portage -c "clientbindir=/usr/lib/postgresql-${SLOT}/bin/ PATH=\"${PATH}\" $(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)"
+
+ installcheck: all
+ -rm -rf ./testtablespace
+diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
+index 5bb31f7..0223328 100644
+--- a/src/test/regress/pg_regress.sh
++++ b/src/test/regress/pg_regress.sh
+@@ -91,6 +91,8 @@ host_platform='@host_tuple@'
+ enable_shared='@enable_shared@'
+ GCC=@GCC@
+
++test -z "${clientbindir}" && clientbindir="${bindir}"
++
+ if [ "$GCC" = yes ]; then
+ compiler=gcc
+ else
+@@ -441,7 +443,7 @@ then
+ # wait forever, however.
+ i=0
+ max=60
+- until "$bindir/psql" -X $psql_options postgres </dev/null 2>/dev/null
++ until "$clientbindir/psql" -X $psql_options postgres </dev/null 2>/dev/null
+ do
+ i=`expr $i + 1`
+ if [ $i -ge $max ]
+@@ -498,7 +500,7 @@ else # not temp-install
+ fi
+
+ message "dropping database \"$dbname\""
+- "$bindir/dropdb" $psql_options "$dbname"
++ "$clientbindir/dropdb" $psql_options "$dbname"
+ # errors can be ignored
+ fi
+
+@@ -507,7 +509,7 @@ # ----------
+ # Set up SQL shell for the test.
+ # ----------
+
+-PSQL="$bindir/psql -a -q -X $psql_options"
++PSQL="$clientbindir/psql -a -q -X $psql_options"
+
+
+ # ----------
+@@ -538,13 +540,13 @@ # will not mess up the tests.
+ # ----------
+
+ message "creating database \"$dbname\""
+-"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
++"$clientbindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
+ if [ $? -ne 0 ]; then
+ echo "$me: createdb failed"
+ (exit 2); exit
+ fi
+
+-"$bindir/psql" -q -X $psql_options -c "\
++"$clientbindir/psql" -q -X $psql_options -c "\
+ alter database \"$dbname\" set lc_messages to 'C';
+ alter database \"$dbname\" set lc_monetary to 'C';
+ alter database \"$dbname\" set lc_numeric to 'C';
+@@ -560,7 +562,7 @@ # Remove regressuser* and regressgroup*
+ # ----------
+
+ message "dropping regression test user accounts"
+-"$bindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
++"$clientbindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
+ if [ $? -eq 2 ]; then
+ echo "$me: could not drop user accounts"
+ (exit 2); exit
+@@ -575,7 +577,7 @@ if [ "$enable_shared" = yes ]; then
+ for lang in xyzzy $load_langs ; do
+ if [ "$lang" != "xyzzy" ]; then
+ message "installing $lang"
+- "$bindir/createlang" $psql_options $lang $dbname
++ "$clientbindir/createlang" $psql_options $lang $dbname
+ if [ $? -ne 0 ] && [ $? -ne 2 ]; then
+ echo "$me: createlang $lang failed"
+ (exit 2); exit
diff --git a/dev-db/postgresql-server/files/postgresql-8.1-server.patch b/dev-db/postgresql-server/files/postgresql-8.1-server.patch
new file mode 100644
index 0000000..96a2da4
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.1-server.patch
@@ -0,0 +1,102 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 0216527..7ed3520 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.glo
+ all:
+ $(MAKE) -C doc all
+ $(MAKE) -C src all
+- $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall distprep:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+
+ # clean, distclean, etc should apply to contrib too, even though
+ # it's not built by default
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 7367163..2740bb9 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -19,10 +19,8 @@ WANTED_DIRS = \
+ isbn_issn \
+ lo \
+ ltree \
+- oid2name \
+ pg_buffercache \
+ pg_trgm \
+- pgbench \
+ pgcrypto \
+ pgstattuple \
+ seg \
+@@ -30,8 +28,7 @@ WANTED_DIRS = \
+ tablefunc \
+ tips \
+ tsearch2 \
+- userlock \
+- vacuumlo
++ userlock
+
+ # Missing:
+ # adddepend \ (does not have a makefile)
+diff --git a/src/Makefile b/src/Makefile
+index 0963f88..5a7bb45 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -18,14 +18,10 @@ all install installdirs uninstall dep de
+ $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+ $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+ $(MAKE) -C pl $@
+- $(MAKE) -C makefiles $@
+- $(MAKE) -C utils $@
+
+-install: install-local
++install:
+
+ install-local: installdirs-local
+ $(INSTALL_DATA) Makefile.global $(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 8309db1..0d620d0 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := initdb ipcclean pg_ctl \
++ pg_controldata pg_resetxlog
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
+diff --git a/src/port/Makefile b/src/port/Makefile
+index 8ca565e..dad5bb3 100644
+--- a/src/port/Makefile
++++ b/src/port/Makefile
+@@ -29,11 +29,10 @@ LIBS += $(PTHREAD_LIBS)
+ # Replace all object files so they use FRONTEND define
+ LIBOBJS_SRV := $(LIBOBJS:%.o=%_srv.o)
+
+-all: libpgport.a libpgport_srv.a
++all: libpgport_srv.a
+
+ # libpgport is needed by some contrib
+-install: all
+- $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(libdir)
++install:
+
+ uninstall:
+ $(RM) $(DESTDIR)$(libdir)/libpgport.a
diff --git a/dev-db/postgresql-server/files/postgresql-8.2-nls.patch b/dev-db/postgresql-server/files/postgresql-8.2-nls.patch
new file mode 100644
index 0000000..983bc87
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.2-nls.patch
@@ -0,0 +1,19 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index fb9793f..3510942 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -162,8 +162,12 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
+ AC_SUBST(localedir)
+ ])# PGAC_CHECK_GETTEXT
+
diff --git a/dev-db/postgresql-server/files/postgresql-8.2-no-interfaces.patch b/dev-db/postgresql-server/files/postgresql-8.2-no-interfaces.patch
new file mode 100644
index 0000000..897388e
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.2-no-interfaces.patch
@@ -0,0 +1,17 @@
+diff --git a/src/Makefile.global.in b/src/Makefile.global.in
+index 820dfd5..2619acd 100644
+--- a/src/Makefile.global.in
++++ b/src/Makefile.global.in
+@@ -365,10 +365,10 @@ endif
+
+
+ submake-libpq:
+- $(MAKE) -C $(libpq_builddir) all
++ @true $(MAKE) -C $(libpq_builddir) all
+
+ submake-libpgport:
+- $(MAKE) -C $(top_builddir)/src/port all
++ @true $(MAKE) -C $(top_builddir)/src/port all
+
+ .PHONY: submake-libpq submake-libpgport
+
diff --git a/dev-db/postgresql-server/files/postgresql-8.2-regress.patch b/dev-db/postgresql-server/files/postgresql-8.2-regress.patch
new file mode 100644
index 0000000..e561eda
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.2-regress.patch
@@ -0,0 +1,36 @@
+diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
+index f2319d2..85aac4f 100644
+--- a/src/test/regress/GNUmakefile
++++ b/src/test/regress/GNUmakefile
+@@ -148,7 +148,8 @@ ##
+ check: all
+ -rm -rf ./testtablespace
+ mkdir ./testtablespace
+- ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
++ chown portage testtablespace .
++ su -s /bin/sh portage -c "PATH=\"${PATH}\" ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) --psqldir=/usr/lib/postgresql-${SLOT}/bin/"
+
+ installcheck: all
+ -rm -rf ./testtablespace
+diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
+index 5daf28a..0d2a0a3 100644
+--- a/src/test/regress/pg_regress.c
++++ b/src/test/regress/pg_regress.c
+@@ -502,7 +502,7 @@ #endif
+ datadir = tmp;
+
+ /* psql will be installed into temp-install bindir */
+- psqldir = bindir;
++ /* psqldir = bindir; */
+
+ /*
+ * Set up shared library paths to include the temp install.
+@@ -1535,7 +1535,7 @@ #endif
+ */
+ snprintf(buf, sizeof(buf),
+ SYSTEMQUOTE "\"%s/psql\" -X postgres <%s 2>%s" SYSTEMQUOTE,
+- bindir, DEVNULL, DEVNULL);
++ psqldir, DEVNULL, DEVNULL);
+ for (i = 0; i < 60; i++)
+ {
+ /* Done if psql succeeds */
diff --git a/dev-db/postgresql-server/files/postgresql-8.2-server.patch b/dev-db/postgresql-server/files/postgresql-8.2-server.patch
new file mode 100644
index 0000000..7f56c14
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql-8.2-server.patch
@@ -0,0 +1,102 @@
+diff --git a/GNUmakefile.in b/GNUmakefile.in
+index 16f9057..0f6cee7 100644
+--- a/GNUmakefile.in
++++ b/GNUmakefile.in
+@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.glo
+ all:
+ $(MAKE) -C doc all
+ $(MAKE) -C src all
+- $(MAKE) -C config all
+ @echo "All of PostgreSQL successfully made. Ready to install."
+
+ install:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
+
+ installdirs uninstall:
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+- $(MAKE) -C config $@
+
+ distprep:
+ $(MAKE) -C doc $@
+diff --git a/contrib/Makefile b/contrib/Makefile
+index 1787a1b..6b4104d 100644
+--- a/contrib/Makefile
++++ b/contrib/Makefile
+@@ -18,19 +18,16 @@ WANTED_DIRS = \
+ isn \
+ lo \
+ ltree \
+- oid2name \
+ pg_buffercache \
+ pg_freespacemap \
+ pg_trgm \
+- pgbench \
+ pgcrypto \
+ pgrowlocks \
+ pgstattuple \
+ seg \
+ spi \
+ tablefunc \
+- tsearch2 \
+- vacuumlo
++ tsearch2
+
+ ifeq ($(with_openssl),yes)
+ WANTED_DIRS += sslinfo
+diff --git a/src/Makefile b/src/Makefile
+index 6d9043a..ccf7ae7 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -18,14 +18,11 @@ all install installdirs uninstall dep de
+ $(MAKE) -C timezone $@
+ $(MAKE) -C backend $@
+ $(MAKE) -C backend/utils/mb/conversion_procs $@
+- $(MAKE) -C include $@
+- $(MAKE) -C interfaces $@
+ $(MAKE) -C bin $@
+ $(MAKE) -C pl $@
+- $(MAKE) -C makefiles $@
+ $(MAKE) -C test/regress $@
+
+-install: install-local
++install:
+
+ install-local: installdirs-local
+ $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
+diff --git a/src/bin/Makefile b/src/bin/Makefile
+index 0d86213..2779a41 100644
+--- a/src/bin/Makefile
++++ b/src/bin/Makefile
+@@ -13,8 +13,8 @@ subdir = src/bin
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
+-DIRS := initdb ipcclean pg_ctl pg_dump \
+- psql scripts pg_config pg_controldata pg_resetxlog
++DIRS := initdb ipcclean pg_ctl \
++ pg_controldata pg_resetxlog
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
+diff --git a/src/port/Makefile b/src/port/Makefile
+index 1742eb8..21fd79f 100644
+--- a/src/port/Makefile
++++ b/src/port/Makefile
+@@ -29,11 +29,10 @@ LIBS += $(PTHREAD_LIBS)
+ # Replace all object files so they use FRONTEND define
+ LIBOBJS_SRV := $(LIBOBJS:%.o=%_srv.o)
+
+-all: libpgport.a libpgport_srv.a
++all: libpgport_srv.a
+
+ # libpgport is needed by some contrib
+-install: all installdirs
+- $(INSTALL_STLIB) libpgport.a '$(DESTDIR)$(libdir)/libpgport.a'
++install:
+
+ installdirs:
+ $(mkinstalldirs) '$(DESTDIR)$(libdir)'
diff --git a/dev-db/postgresql-server/files/postgresql.conf-7.3 b/dev-db/postgresql-server/files/postgresql.conf-7.3
new file mode 100644
index 0000000..2b232fd
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql.conf-7.3
@@ -0,0 +1,47 @@
+# PostgreSQL's Database Directory
+PGDATA="/var/lib/postgresql/7.3/data"
+
+# PostgreSQL User
+PGUSER="postgres"
+
+# PostgreSQL Group
+PGGROUP="postgres"
+
+# Extra options to run postmaster with
+# -N is the maximal number of client connections
+# -B is the number of shared buffers and has to be at least 2x the value for -N
+# Please read the man-page to postmaster for more options. Many of these options
+# can be set directly in the configuration-file.
+PGOPTS="-N 512 -B 1024"
+
+
+# SERVER SHUTDOWN:
+# The server will receive 3 signals in the worst case:
+# 1. SIGTERM
+# This signals the server to ignore new connections and to
+# wait for all clients to end their transactions before shutting down.
+# Use WAIT_FOR_DISCONNECT to control how much time the clients
+# should have until the next signal is being sent.
+# 2. SIGINT
+# Tell the server to forcefully disconnect all clients.
+# Terminating a client results in a rollback of the open transactions for this client.
+# Use WAIT_FOR_CLEANUP to determine how much time the server has
+# for cleanup. (Set it to "forever" if you want to wait forever.)
+# 3. SIGQUIT
+# This will terminate the server immediately and results in a recovery run for the next start.
+
+# Wait for clients to disconnect (seconds or "forever")
+WAIT_FOR_DISCONNECT=10
+
+# Time the server has to clean up (seconds or "forever")
+WAIT_FOR_CLEANUP=10
+
+# If you have to export environment variables for the database process,
+# this can be done here.
+# Just define a new variable ENV_identifier="ENV_VAR_NAME=env_var_content",
+# ENV_VAR_NAME will then be exported to the postgresql's environment.
+#
+# Example:
+# ENV_plr="R_HOME=/usr/lib/R"
+# This exports a variable R_HOME with the content "/usr/lib/R"
+
diff --git a/dev-db/postgresql-server/files/postgresql.conf-7.4 b/dev-db/postgresql-server/files/postgresql.conf-7.4
new file mode 100644
index 0000000..dd8a5c6
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql.conf-7.4
@@ -0,0 +1,47 @@
+# PostgreSQL's Database Directory
+PGDATA="/var/lib/postgresql/7.4/data"
+
+# PostgreSQL User
+PGUSER="postgres"
+
+# PostgreSQL Group
+PGGROUP="postgres"
+
+# Extra options to run postmaster with
+# -N is the maximal number of client connections
+# -B is the number of shared buffers and has to be at least 2x the value for -N
+# Please read the man-page to postmaster for more options. Many of these options
+# can be set directly in the configuration-file.
+PGOPTS="-N 512 -B 1024"
+
+
+# SERVER SHUTDOWN:
+# The server will receive 3 signals in the worst case:
+# 1. SIGTERM
+# This signals the server to ignore new connections and to
+# wait for all clients to end their transactions before shutting down.
+# Use WAIT_FOR_DISCONNECT to control how much time the clients
+# should have until the next signal is being sent.
+# 2. SIGINT
+# Tell the server to forcefully disconnect all clients.
+# Terminating a client results in a rollback of the open transactions for this client.
+# Use WAIT_FOR_CLEANUP to determine how much time the server has
+# for cleanup. (Set it to "forever" if you want to wait forever.)
+# 3. SIGQUIT
+# This will terminate the server immediately and results in a recovery run for the next start.
+
+# Wait for clients to disconnect (seconds or "forever")
+WAIT_FOR_DISCONNECT=10
+
+# Time the server has to clean up (seconds or "forever")
+WAIT_FOR_CLEANUP=10
+
+# If you have to export environment variables for the database process,
+# this can be done here.
+# Just define a new variable ENV_identifier="ENV_VAR_NAME=env_var_content",
+# ENV_VAR_NAME will then be exported to the postgresql's environment.
+#
+# Example:
+# ENV_plr="R_HOME=/usr/lib/R"
+# This exports a variable R_HOME with the content "/usr/lib/R"
+
diff --git a/dev-db/postgresql/files/postgresql.conf-8.0 b/dev-db/postgresql-server/files/postgresql.conf-8.0
index b0cb851..87c8cf7 100644
--- a/dev-db/postgresql/files/postgresql.conf-8.0
+++ b/dev-db/postgresql-server/files/postgresql.conf-8.0
@@ -1,8 +1,5 @@
# PostgreSQL's Database Directory
-PGDATA="/var/lib/postgresql/data"
-
-# Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!)
-PGLOG="/var/lib/postgresql/data/postgresql.log"
+PGDATA="/var/lib/postgresql/8.0/data"
# PostgreSQL User
PGUSER="postgres"
@@ -11,8 +8,10 @@ PGUSER="postgres"
PGGROUP="postgres"
# Extra options to run postmaster with
-# If you want to enable TCP/IP for PostgreSQL, add -i, like the following:
-# PGOPTS="-N 512 -B 1024 -i"
+# -N is the maximal number of client connections
+# -B is the number of shared buffers and has to be at least 2x the value for -N
+# Please read the man-page to postmaster for more options. Many of these options
+# can be set directly in the configuration-file.
PGOPTS="-N 512 -B 1024"
@@ -20,9 +19,9 @@ PGOPTS="-N 512 -B 1024"
# The server will receive 3 signals in the worst case:
# 1. SIGTERM
# This signals the server to ignore new connections and to
-# wait for all clients to terminate before shutting down.
-# Use WAIT_FOR_DISCONNECT to determine how much time should
-# the clients have until the next signal will be sent.
+# wait for all clients to end their transactions before shutting down.
+# Use WAIT_FOR_DISCONNECT to control how much time the clients
+# should have until the next signal is being sent.
# 2. SIGINT
# Tell the server to forcefully disconnect all clients.
# Terminating a client results in a rollback of the open transactions for this client.
@@ -36,3 +35,13 @@ WAIT_FOR_DISCONNECT=10
# Time the server has to clean up (seconds or "forever")
WAIT_FOR_CLEANUP=10
+
+# If you have to export environment variables for the database process,
+# this can be done here.
+# Just define a new variable ENV_identifier="ENV_VAR_NAME=env_var_content",
+# ENV_VAR_NAME will then be exported to the postgresql's environment.
+#
+# Example:
+# ENV_plr="R_HOME=/usr/lib/R"
+# This exports a variable R_HOME with the content "/usr/lib/R"
+
diff --git a/dev-db/postgresql/files/postgresql.conf-8.1 b/dev-db/postgresql-server/files/postgresql.conf-8.1
index b0cb851..060d420 100644
--- a/dev-db/postgresql/files/postgresql.conf-8.1
+++ b/dev-db/postgresql-server/files/postgresql.conf-8.1
@@ -1,8 +1,5 @@
# PostgreSQL's Database Directory
-PGDATA="/var/lib/postgresql/data"
-
-# Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!)
-PGLOG="/var/lib/postgresql/data/postgresql.log"
+PGDATA="/var/lib/postgresql/8.1/data"
# PostgreSQL User
PGUSER="postgres"
@@ -11,8 +8,10 @@ PGUSER="postgres"
PGGROUP="postgres"
# Extra options to run postmaster with
-# If you want to enable TCP/IP for PostgreSQL, add -i, like the following:
-# PGOPTS="-N 512 -B 1024 -i"
+# -N is the maximal number of client connections
+# -B is the number of shared buffers and has to be at least 2x the value for -N
+# Please read the man-page to postmaster for more options. Many of these options
+# can be set directly in the configuration-file.
PGOPTS="-N 512 -B 1024"
@@ -20,9 +19,9 @@ PGOPTS="-N 512 -B 1024"
# The server will receive 3 signals in the worst case:
# 1. SIGTERM
# This signals the server to ignore new connections and to
-# wait for all clients to terminate before shutting down.
-# Use WAIT_FOR_DISCONNECT to determine how much time should
-# the clients have until the next signal will be sent.
+# wait for all clients to end their transactions before shutting down.
+# Use WAIT_FOR_DISCONNECT to control how much time the clients
+# should have until the next signal is being sent.
# 2. SIGINT
# Tell the server to forcefully disconnect all clients.
# Terminating a client results in a rollback of the open transactions for this client.
@@ -36,3 +35,13 @@ WAIT_FOR_DISCONNECT=10
# Time the server has to clean up (seconds or "forever")
WAIT_FOR_CLEANUP=10
+
+# If you have to export environment variables for the database process,
+# this can be done here.
+# Just define a new variable ENV_identifier="ENV_VAR_NAME=env_var_content",
+# ENV_VAR_NAME will then be exported to the postgresql's environment.
+#
+# Example:
+# ENV_plr="R_HOME=/usr/lib/R"
+# This exports a variable R_HOME with the content "/usr/lib/R"
+
diff --git a/dev-db/postgresql-server/files/postgresql.conf-8.2 b/dev-db/postgresql-server/files/postgresql.conf-8.2
new file mode 100644
index 0000000..e80f344
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql.conf-8.2
@@ -0,0 +1,47 @@
+# PostgreSQL's Database Directory
+PGDATA="/var/lib/postgresql/8.2/data"
+
+# PostgreSQL User
+PGUSER="postgres"
+
+# PostgreSQL Group
+PGGROUP="postgres"
+
+# Extra options to run postmaster with
+# -N is the maximal number of client connections
+# -B is the number of shared buffers and has to be at least 2x the value for -N
+# Please read the man-page to postmaster for more options. Many of these options
+# can be set directly in the configuration-file.
+PGOPTS="-N 512 -B 1024"
+
+
+# SERVER SHUTDOWN:
+# The server will receive 3 signals in the worst case:
+# 1. SIGTERM
+# This signals the server to ignore new connections and to
+# wait for all clients to end their transactions before shutting down.
+# Use WAIT_FOR_DISCONNECT to control how much time the clients
+# should have until the next signal is being sent.
+# 2. SIGINT
+# Tell the server to forcefully disconnect all clients.
+# Terminating a client results in a rollback of the open transactions for this client.
+# Use WAIT_FOR_CLEANUP to determine how much time the server has
+# for cleanup. (Set it to "forever" if you want to wait forever.)
+# 3. SIGQUIT
+# This will terminate the server immediately and results in a recovery run for the next start.
+
+# Wait for clients to disconnect (seconds or "forever")
+WAIT_FOR_DISCONNECT=10
+
+# Time the server has to clean up (seconds or "forever")
+WAIT_FOR_CLEANUP=10
+
+# If you have to export environment variables for the database process,
+# this can be done here.
+# Just define a new variable ENV_identifier="ENV_VAR_NAME=env_var_content",
+# ENV_VAR_NAME will then be exported to the postgresql's environment.
+#
+# Example:
+# ENV_plr="R_HOME=/usr/lib/R"
+# This exports a variable R_HOME with the content "/usr/lib/R"
+
diff --git a/dev-db/postgresql-server/files/postgresql.init-7.3 b/dev-db/postgresql-server/files/postgresql.init-7.3
new file mode 100644
index 0000000..0ed036f
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql.init-7.3
@@ -0,0 +1,58 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+opts="${opts} reload"
+
+depend() {
+ use net
+}
+
+checkconfig() {
+ if [ ! -d "$PGDATA" ] ; then
+ eerror "Directory not found: $PGDATA"
+ eerror "Please make sure that PGDATA points to the right path."
+ eerror "You can run 'emerge postgresql --config' to setup a new database cluster."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting PostgreSQL"
+
+ if [ -f "$PGDATA/postmaster.pid" ] ; then
+ rm -f "$PGDATA/postmaster.pid"
+ fi
+
+ local env_vars
+ for var in ${!ENV_*} ; do env_vars="${env_vars} -e ${!var}" ; done
+ start-stop-daemon --start \
+ --pidfile "${PGDATA}/postmaster.pid" \
+ --chuid ${PGUSER}:${PGGROUP} \
+ --exec /usr/lib/postgresql-7.3/bin/postmaster \
+ ${env_vars} -- \
+ -D "${PGDATA}" \
+ --silent-mode=true \
+ ${PGOPTS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping PostgreSQL"
+ # Note: we have to do --oknodo here, otherwise it will always fail
+ # when there are open transactions. This bug has been corrected
+ # in baselayout-1.13.0_alpha8.
+ start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \
+ --retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading PostgreSQL configuration"
+ start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" --signal HUP --oknodo
+ eend $?
+}
diff --git a/dev-db/postgresql-server/files/postgresql.init-7.4 b/dev-db/postgresql-server/files/postgresql.init-7.4
new file mode 100644
index 0000000..07bf683
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql.init-7.4
@@ -0,0 +1,58 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+opts="${opts} reload"
+
+depend() {
+ use net
+}
+
+checkconfig() {
+ if [ ! -d "$PGDATA" ] ; then
+ eerror "Directory not found: $PGDATA"
+ eerror "Please make sure that PGDATA points to the right path."
+ eerror "You can run 'emerge postgresql --config' to setup a new database cluster."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting PostgreSQL"
+
+ if [ -f "$PGDATA/postmaster.pid" ] ; then
+ rm -f "$PGDATA/postmaster.pid"
+ fi
+
+ local env_vars
+ for var in ${!ENV_*} ; do env_vars="${env_vars} -e ${!var}" ; done
+ start-stop-daemon --start \
+ --pidfile "${PGDATA}/postmaster.pid" \
+ --chuid ${PGUSER}:${PGGROUP} \
+ --exec /usr/lib/postgresql-7.4/bin/postmaster \
+ ${env_vars} -- \
+ -D "${PGDATA}" \
+ --silent-mode=true \
+ ${PGOPTS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping PostgreSQL"
+ # Note: we have to do --oknodo here, otherwise it will always fail
+ # when there are open transactions. This bug has been corrected
+ # in baselayout-1.13.0_alpha8.
+ start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \
+ --retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading PostgreSQL configuration"
+ start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" --signal HUP --oknodo
+ eend $?
+}
diff --git a/dev-db/postgresql/files/postgresql.init-8.0 b/dev-db/postgresql-server/files/postgresql.init-8.0
index 0328860..bf39092 100644
--- a/dev-db/postgresql/files/postgresql.init-8.0
+++ b/dev-db/postgresql-server/files/postgresql.init-8.0
@@ -12,7 +12,8 @@ depend() {
checkconfig() {
if [ ! -d "$PGDATA" ] ; then
eerror "Directory not found: $PGDATA"
- eerror "You must create the $PGDATA directory first!"
+ eerror "Please make sure that PGDATA points to the right path."
+ eerror "You can run 'emerge postgresql --config' to setup a new database cluster."
return 1
fi
}
@@ -22,7 +23,6 @@ start() {
ebegin "Starting PostgreSQL"
- # Is this still needed?
if [ -f "$PGDATA/postmaster.pid" ] ; then
rm -f "$PGDATA/postmaster.pid"
fi
@@ -32,7 +32,7 @@ start() {
start-stop-daemon --start \
--pidfile "${PGDATA}/postmaster.pid" \
--chuid ${PGUSER}:${PGGROUP} \
- --exec /usr/bin/postmaster-${SLOT} \
+ --exec /usr/lib/postgresql-8.0/bin/postmaster \
${env_vars} -- \
-D "${PGDATA}" \
--silent-mode=true \
@@ -44,8 +44,8 @@ start() {
stop() {
ebegin "Stopping PostgreSQL"
# Note: we have to do --oknodo here, otherwise it will always fail
- # if there are open connections, but we won't detect whether
- # the server really did the shutdown in the end.
+ # when there are open transactions. This bug has been corrected
+ # in baselayout-1.13.0_alpha8.
start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \
--retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo
eend $?
diff --git a/dev-db/postgresql/files/postgresql.init-8.1 b/dev-db/postgresql-server/files/postgresql.init-8.1
index 0328860..9bb168c 100644
--- a/dev-db/postgresql/files/postgresql.init-8.1
+++ b/dev-db/postgresql-server/files/postgresql.init-8.1
@@ -12,7 +12,8 @@ depend() {
checkconfig() {
if [ ! -d "$PGDATA" ] ; then
eerror "Directory not found: $PGDATA"
- eerror "You must create the $PGDATA directory first!"
+ eerror "Please make sure that PGDATA points to the right path."
+ eerror "You can run 'emerge postgresql --config' to setup a new database cluster."
return 1
fi
}
@@ -22,7 +23,6 @@ start() {
ebegin "Starting PostgreSQL"
- # Is this still needed?
if [ -f "$PGDATA/postmaster.pid" ] ; then
rm -f "$PGDATA/postmaster.pid"
fi
@@ -32,7 +32,7 @@ start() {
start-stop-daemon --start \
--pidfile "${PGDATA}/postmaster.pid" \
--chuid ${PGUSER}:${PGGROUP} \
- --exec /usr/bin/postmaster-${SLOT} \
+ --exec /usr/lib/postgresql-8.1/bin/postmaster \
${env_vars} -- \
-D "${PGDATA}" \
--silent-mode=true \
@@ -44,8 +44,8 @@ start() {
stop() {
ebegin "Stopping PostgreSQL"
# Note: we have to do --oknodo here, otherwise it will always fail
- # if there are open connections, but we won't detect whether
- # the server really did the shutdown in the end.
+ # when there are open transactions. This bug has been corrected
+ # in baselayout-1.13.0_alpha8.
start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \
--retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo
eend $?
diff --git a/dev-db/postgresql-server/files/postgresql.init-8.2 b/dev-db/postgresql-server/files/postgresql.init-8.2
new file mode 100644
index 0000000..59542ca
--- /dev/null
+++ b/dev-db/postgresql-server/files/postgresql.init-8.2
@@ -0,0 +1,58 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+opts="${opts} reload"
+
+depend() {
+ use net
+}
+
+checkconfig() {
+ if [ ! -d "$PGDATA" ] ; then
+ eerror "Directory not found: $PGDATA"
+ eerror "Please make sure that PGDATA points to the right path."
+ eerror "You can run 'emerge postgresql --config' to setup a new database cluster."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting PostgreSQL"
+
+ if [ -f "$PGDATA/postmaster.pid" ] ; then
+ rm -f "$PGDATA/postmaster.pid"
+ fi
+
+ local env_vars
+ for var in ${!ENV_*} ; do env_vars="${env_vars} -e ${!var}" ; done
+ start-stop-daemon --start \
+ --pidfile "${PGDATA}/postmaster.pid" \
+ --chuid ${PGUSER}:${PGGROUP} \
+ --exec /usr/lib/postgresql-8.2/bin/postmaster \
+ ${env_vars} -- \
+ -D "${PGDATA}" \
+ --silent-mode=true \
+ ${PGOPTS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping PostgreSQL"
+ # Note: we have to do --oknodo here, otherwise it will always fail
+ # when there are open transactions. This bug has been corrected
+ # in baselayout-1.13.0_alpha8.
+ start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \
+ --retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading PostgreSQL configuration"
+ start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" --signal HUP --oknodo
+ eend $?
+}
diff --git a/dev-db/postgresql-server/postgresql-server-7.3.17.ebuild b/dev-db/postgresql-server/postgresql-server-7.3.17.ebuild
new file mode 100644
index 0000000..c8553c4
--- /dev/null
+++ b/dev-db/postgresql-server/postgresql-server-7.3.17.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils gnuconfig multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL server"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2
+ test? mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="perl python selinux tcl test xml"
+
+RDEPEND="~dev-db/postgresql-libs-${PV}
+ perl? ( >=dev-lang/perl-5.6.1-r2 )
+ python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+ selinux? ( sec-policy/selinux-postgresql )
+ tcl? ( >=dev-lang/tcl-8 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )"
+DEPEND="${RDEPEND}
+ xml? ( dev-util/pkgconfig )
+ test? ( ~dev-db/postgresql-client-${PV} )"
+
+[[ -r /etc/conf.d/postgresql-${SLOT} ]] && source /etc/conf.d/postgresql-${SLOT}
+[[ -z "${PGDATA}" ]] && PGDATA="/var/lib/postgresql/${SLOT}/data"
+[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_setup() {
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ if [[ $(cat "${PGDATA}/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
+ eerror "use pg_dump to export your existing databases to a file, and then"
+ eerror "pg_restore to import them when you have upgraded completely."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ fi
+ fi
+ enewgroup postgres 70
+ enewuser postgres 70 /bin/bash /var/lib postgres
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-server.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-cubeparse.patch
+
+ if use test ; then
+ epatch ${FILESDIR}/postgresql-${SLOT}-regress.patch
+ sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+ fi
+
+ eautoconf
+ gnuconfig_update
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval ./configure "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with tcl) \
+ --with-includes="/usr/include/postgresql-${SLOT}/" \
+ --with-libs="/usr/lib/postgresql-${SLOT}/lib/" \
+ "CFLAGS='${CFLAGS} $(use xml && pkg-config --cflags libxml-2.0)'" \
+ "LIBS='${LIBS} $(use xml && pkg-config --libs libxml-2.0) -L/usr/lib/postgresql-${SLOT}/lib'" \
+ || die "configure failed"
+
+ for bd in . contrib $(use xml && echo contrib/xml) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ if use perl ; then
+ mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+ sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+ "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+ fi
+
+ for bd in . contrib $(use xml && echo contrib/xml) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake install -C $bd -j1 DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake install in $bd failed"
+ done
+ rm -rf ${D}/usr/share/postgresql-${SLOT}/man/man7/
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,vacuumdb,pgtksh,pgtclsh}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/server
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+
+ newinitd "${FILESDIR}/postgresql.init-${SLOT}" postgresql-${SLOT} || die "Inserting init.d-file failed"
+ newconfd "${FILESDIR}/postgresql.conf-${SLOT}" postgresql-${SLOT} || die "Inserting conf.d-file failed"
+}
+
+pkg_postinst() {
+ elog "Execute the following command to setup the initial database environment:"
+ elog
+ elog "emerge --config =${PF}"
+ elog
+ elog "The autovacuum function, which was in contrib, has been moved to the main"
+ elog "PostgreSQL functions starting with 8.1."
+ elog "You can enable it in ${ROOT}/etc/postgresql-${SLOT}/postgresql.conf."
+}
+
+pkg_config() {
+ einfo "Creating the data directory ..."
+ mkdir -p "${PGDATA}"
+ chown -Rf postgres:postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+
+ einfo "Initializing the database ..."
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ else
+ if use kernel_linux ; then
+ local SEM=`sysctl -n kernel.sem | cut -f-3`
+ local SEMMNI=`sysctl -n kernel.sem | cut -f4`
+ local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16`
+ local SHMMAX=`sysctl -n kernel.shmmax`
+ local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}`
+
+ if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
+ eerror "The current value of SEMMNI is too low"
+ eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!"
+ eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
+ echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
+ fi
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+
+ if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
+ echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
+ ewarn "Restoring the SEMMNI value to the previous value."
+ ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
+ ewarn "and set it to at least ${SEMMNI_MIN}:"
+ ewarn
+ ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
+ ewarn
+ fi
+
+ if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
+ eerror "The current value of SHMMAX is too low for postgresql to run."
+ eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
+ eerror
+ eerror " kernel.shmmax = ${SHMMAX_MIN}"
+ eerror
+ fi
+ else
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+ fi
+
+ einfo
+ einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL instead of 'pg_ctl'."
+ einfo
+ fi
+}
+
+src_test() {
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -j1 check \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} || {
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
+ }
+
+ einfo "Yes, there are other tests which could be run."
+ einfo "... and no, we don't plan to add/support them."
+ einfo "For now, the main regressions tests will suffice."
+ einfo "If you think other tests are necessary, please submit a"
+ einfo "bug including a patch for this ebuild to enable them."
+}
diff --git a/dev-db/postgresql-server/postgresql-server-7.4.15.ebuild b/dev-db/postgresql-server/postgresql-server-7.4.15.ebuild
new file mode 100644
index 0000000..746fd48
--- /dev/null
+++ b/dev-db/postgresql-server/postgresql-server-7.4.15.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils gnuconfig multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL server"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2
+ test? mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="perl python selinux tcl test xml"
+
+RDEPEND="~dev-db/postgresql-libs-${PV}
+ perl? ( >=dev-lang/perl-5.6.1-r2 )
+ python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+ selinux? ( sec-policy/selinux-postgresql )
+ tcl? ( >=dev-lang/tcl-8 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )"
+DEPEND="${RDEPEND}
+ xml? ( dev-util/pkgconfig )
+ test? ( ~dev-db/postgresql-client-${PV} )"
+
+[[ -r /etc/conf.d/postgresql-${SLOT} ]] && source /etc/conf.d/postgresql-${SLOT}
+[[ -z "${PGDATA}" ]] && PGDATA="/var/lib/postgresql/${SLOT}/data"
+[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_setup() {
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ if [[ $(cat "${PGDATA}/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
+ eerror "use pg_dump to export your existing databases to a file, and then"
+ eerror "pg_restore to import them when you have upgraded completely."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ fi
+ fi
+ enewgroup postgres 70
+ enewuser postgres 70 /bin/bash /var/lib postgres
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-server.patch
+
+ if use test ; then
+ epatch ${FILESDIR}/postgresql-${SLOT}-regress.patch
+ sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+ fi
+
+ eautoreconf
+ gnuconfig_update
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval ./configure "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with tcl) \
+ --with-includes="/usr/include/postgresql-${SLOT}/" \
+ --with-libs="/usr/lib/postgresql-${SLOT}/lib/" \
+ "CFLAGS='${CFLAGS} $(use xml && pkg-config --cflags libxml-2.0)'" \
+ "LIBS='${LIBS} $(use xml && pkg-config --libs libxml-2.0) -L/usr/lib/postgresql-${SLOT}/lib'" \
+ || die "configure failed"
+
+ for bd in . contrib $(use xml && echo contrib/xml) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ if use perl ; then
+ mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+ sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+ "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+ fi
+
+ for bd in . contrib $(use xml && echo contrib/xml) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake install -C $bd -j1 DESTDIR="${D}" \
+ docdir=/usr/share/doc/${PF} SLOT=${SLOT} || die "emake install in $bd failed"
+ done
+ rm -rf ${D}/usr/share/postgresql-${SLOT}/man/man7/
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,vacuumdb,pgtksh,pgtclsh}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/server
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+
+ newinitd "${FILESDIR}/postgresql.init-${SLOT}" postgresql-${SLOT} || die "Inserting init.d-file failed"
+ newconfd "${FILESDIR}/postgresql.conf-${SLOT}" postgresql-${SLOT} || die "Inserting conf.d-file failed"
+}
+
+pkg_postinst() {
+ elog "Execute the following command to setup the initial database environment:"
+ elog
+ elog "emerge --config =${PF}"
+ elog
+ elog "The autovacuum function, which was in contrib, has been moved to the main"
+ elog "PostgreSQL functions starting with 8.1."
+ elog "You can enable it in ${ROOT}/etc/postgresql-${SLOT}/postgresql.conf."
+}
+
+pkg_config() {
+ einfo "Creating the data directory ..."
+ mkdir -p "${PGDATA}"
+ chown -Rf postgres:postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+
+ einfo "Initializing the database ..."
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ else
+ if use kernel_linux ; then
+ local SEM=`sysctl -n kernel.sem | cut -f-3`
+ local SEMMNI=`sysctl -n kernel.sem | cut -f4`
+ local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16`
+ local SHMMAX=`sysctl -n kernel.shmmax`
+ local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}`
+
+ if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
+ eerror "The current value of SEMMNI is too low"
+ eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!"
+ eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
+ echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
+ fi
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+
+ if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
+ echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
+ ewarn "Restoring the SEMMNI value to the previous value."
+ ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
+ ewarn "and set it to at least ${SEMMNI_MIN}:"
+ ewarn
+ ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
+ ewarn
+ fi
+
+ if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
+ eerror "The current value of SHMMAX is too low for postgresql to run."
+ eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
+ eerror
+ eerror " kernel.shmmax = ${SHMMAX_MIN}"
+ eerror
+ fi
+ else
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+ fi
+
+ einfo
+ einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL instead of 'pg_ctl'."
+ einfo
+ fi
+}
+
+src_test() {
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -j1 check \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} || {
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
+ }
+
+ einfo "Yes, there are other tests which could be run."
+ einfo "... and no, we don't plan to add/support them."
+ einfo "For now, the main regressions tests will suffice."
+ einfo "If you think other tests are necessary, please submit a"
+ einfo "bug including a patch for this ebuild to enable them."
+}
diff --git a/dev-db/postgresql-server/postgresql-server-8.0.10.ebuild b/dev-db/postgresql-server/postgresql-server-8.0.10.ebuild
new file mode 100644
index 0000000..c3c077f
--- /dev/null
+++ b/dev-db/postgresql-server/postgresql-server-8.0.10.ebuild
@@ -0,0 +1,195 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL server"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2
+ test? mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="perl python selinux tcl test xml"
+
+RDEPEND="~dev-db/postgresql-libs-${PV}
+ perl? ( >=dev-lang/perl-5.6.1-r2 )
+ python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+ selinux? ( sec-policy/selinux-postgresql )
+ tcl? ( >=dev-lang/tcl-8 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )"
+DEPEND="${RDEPEND}
+ xml? ( dev-util/pkgconfig )
+ test? ( ~dev-db/postgresql-client-${PV} )"
+
+[[ -r /etc/conf.d/postgresql-${SLOT} ]] && source /etc/conf.d/postgresql-${SLOT}
+[[ -z "${PGDATA}" ]] && PGDATA="/var/lib/postgresql/${SLOT}/data"
+[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_setup() {
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ if [[ $(cat "${PGDATA}/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
+ eerror "use pg_dump to export your existing databases to a file, and then"
+ eerror "pg_restore to import them when you have upgraded completely."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ fi
+ fi
+ enewgroup postgres 70
+ enewuser postgres 70 /bin/bash /var/lib postgres
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-server.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-no-interfaces.patch
+
+ if use test ; then
+ epatch ${FILESDIR}/postgresql-${SLOT}-regress.patch
+ sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+ fi
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with tcl) \
+ --with-includes="/usr/include/postgresql-${SLOT}/" \
+ || die "configure failed"
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ if use perl ; then
+ mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+ sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+ "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+ fi
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake install -C $bd -j1 DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+ rm -rf ${D}/usr/share/postgresql-${SLOT}/man/man7/
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,vacuumdb}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/server
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+
+ newinitd "${FILESDIR}/postgresql.init-${SLOT}" postgresql-${SLOT} || die "Inserting init.d-file failed"
+ newconfd "${FILESDIR}/postgresql.conf-${SLOT}" postgresql-${SLOT} || die "Inserting conf.d-file failed"
+}
+
+pkg_postinst() {
+ elog "Execute the following command to setup the initial database environment:"
+ elog
+ elog "emerge --config =${PF}"
+ elog
+ elog "The autovacuum function, which was in contrib, has been moved to the main"
+ elog "PostgreSQL functions starting with 8.1."
+ elog "You can enable it in ${ROOT}/etc/postgresql-${SLOT}/postgresql.conf."
+}
+
+pkg_config() {
+ einfo "Creating the data directory ..."
+ mkdir -p "${PGDATA}"
+ chown -Rf postgres:postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+
+ einfo "Initializing the database ..."
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ else
+ if use kernel_linux ; then
+ local SEM=`sysctl -n kernel.sem | cut -f-3`
+ local SEMMNI=`sysctl -n kernel.sem | cut -f4`
+ local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16`
+ local SHMMAX=`sysctl -n kernel.shmmax`
+ local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}`
+
+ if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
+ eerror "The current value of SEMMNI is too low"
+ eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!"
+ eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
+ echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
+ fi
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+
+ if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
+ echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
+ ewarn "Restoring the SEMMNI value to the previous value."
+ ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
+ ewarn "and set it to at least ${SEMMNI_MIN}:"
+ ewarn
+ ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
+ ewarn
+ fi
+
+ if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
+ eerror "The current value of SHMMAX is too low for postgresql to run."
+ eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
+ eerror
+ eerror " kernel.shmmax = ${SHMMAX_MIN}"
+ eerror
+ fi
+ else
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+ fi
+
+ einfo
+ einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL instead of 'pg_ctl'."
+ einfo
+ fi
+}
+
+src_test() {
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -j1 check \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} || {
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
+ }
+
+ einfo "Yes, there are other tests which could be run."
+ einfo "... and no, we don't plan to add/support them."
+ einfo "For now, the main regressions tests will suffice."
+ einfo "If you think other tests are necessary, please submit a"
+ einfo "bug including a patch for this ebuild to enable them."
+}
diff --git a/dev-db/postgresql-server/postgresql-server-8.1.6.ebuild b/dev-db/postgresql-server/postgresql-server-8.1.6.ebuild
new file mode 100644
index 0000000..116d493
--- /dev/null
+++ b/dev-db/postgresql-server/postgresql-server-8.1.6.ebuild
@@ -0,0 +1,195 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL server"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2
+ test? mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="perl python selinux tcl test xml"
+
+RDEPEND="~dev-db/postgresql-libs-${PV}
+ perl? ( >=dev-lang/perl-5.6.1-r2 )
+ python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+ selinux? ( sec-policy/selinux-postgresql )
+ tcl? ( >=dev-lang/tcl-8 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )"
+DEPEND="${RDEPEND}
+ xml? ( dev-util/pkgconfig )
+ test? ( ~dev-db/postgresql-client-${PV} )"
+
+[[ -r /etc/conf.d/postgresql-${SLOT} ]] && source /etc/conf.d/postgresql-${SLOT}
+[[ -z "${PGDATA}" ]] && PGDATA="/var/lib/postgresql/${SLOT}/data"
+[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_setup() {
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ if [[ $(cat "${PGDATA}/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
+ eerror "use pg_dump to export your existing databases to a file, and then"
+ eerror "pg_restore to import them when you have upgraded completely."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ fi
+ fi
+ enewgroup postgres 70
+ enewuser postgres 70 /bin/bash /var/lib postgres
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-server.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-no-interfaces.patch
+
+ if use test ; then
+ epatch ${FILESDIR}/postgresql-${SLOT}-regress.patch
+ sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+ fi
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with tcl) \
+ --with-includes="/usr/include/postgresql-${SLOT}/" \
+ || die "configure failed"
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ if use perl ; then
+ mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+ sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+ "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+ fi
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake install -C $bd -j1 DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+ rm -rf ${D}/usr/share/postgresql-${SLOT}/man/man7/
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/server
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+
+ newinitd "${FILESDIR}/postgresql.init-${SLOT}" postgresql-${SLOT} || die "Inserting init.d-file failed"
+ newconfd "${FILESDIR}/postgresql.conf-${SLOT}" postgresql-${SLOT} || die "Inserting conf.d-file failed"
+}
+
+pkg_postinst() {
+ elog "Execute the following command to setup the initial database environment:"
+ elog
+ elog "emerge --config =${PF}"
+ elog
+ elog "The autovacuum function, which was in contrib, has been moved to the main"
+ elog "PostgreSQL functions starting with 8.1."
+ elog "You can enable it in ${ROOT}/etc/postgresql-${SLOT}/postgresql.conf."
+}
+
+pkg_config() {
+ einfo "Creating the data directory ..."
+ mkdir -p "${PGDATA}"
+ chown -Rf postgres:postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+
+ einfo "Initializing the database ..."
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ else
+ if use kernel_linux ; then
+ local SEM=`sysctl -n kernel.sem | cut -f-3`
+ local SEMMNI=`sysctl -n kernel.sem | cut -f4`
+ local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16`
+ local SHMMAX=`sysctl -n kernel.shmmax`
+ local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}`
+
+ if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
+ eerror "The current value of SEMMNI is too low"
+ eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!"
+ eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
+ echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
+ fi
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+
+ if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
+ echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
+ ewarn "Restoring the SEMMNI value to the previous value."
+ ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
+ ewarn "and set it to at least ${SEMMNI_MIN}:"
+ ewarn
+ ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
+ ewarn
+ fi
+
+ if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
+ eerror "The current value of SHMMAX is too low for postgresql to run."
+ eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
+ eerror
+ eerror " kernel.shmmax = ${SHMMAX_MIN}"
+ eerror
+ fi
+ else
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+ fi
+
+ einfo
+ einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL instead of 'pg_ctl'."
+ einfo
+ fi
+}
+
+src_test() {
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -j1 check \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} || {
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
+ }
+
+ einfo "Yes, there are other tests which could be run."
+ einfo "... and no, we don't plan to add/support them."
+ einfo "For now, the main regressions tests will suffice."
+ einfo "If you think other tests are necessary, please submit a"
+ einfo "bug including a patch for this ebuild to enable them."
+}
diff --git a/dev-db/postgresql-server/postgresql-server-8.2.1.ebuild b/dev-db/postgresql-server/postgresql-server-8.2.1.ebuild
new file mode 100644
index 0000000..2c4cf94
--- /dev/null
+++ b/dev-db/postgresql-server/postgresql-server-8.2.1.ebuild
@@ -0,0 +1,200 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib toolchain-funcs versionator autotools
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL server"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2
+ test? mirror://postgresql/source/v${PV}/postgresql-test-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+IUSE="perl python selinux tcl test xml"
+
+RDEPEND="~dev-db/postgresql-libs-${PV}
+ perl? ( >=dev-lang/perl-5.6.1-r2 )
+ python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+ selinux? ( sec-policy/selinux-postgresql )
+ tcl? ( >=dev-lang/tcl-8 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )"
+DEPEND="${RDEPEND}
+ xml? ( dev-util/pkgconfig )
+ test? ( ~dev-db/postgresql-client-${PV} )
+ "
+
+[[ -r /etc/conf.d/postgresql-${SLOT} ]] && source /etc/conf.d/postgresql-${SLOT}
+[[ -z "${PGDATA}" ]] && PGDATA="/var/lib/postgresql/${SLOT}/data"
+[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_setup() {
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ if [[ $(cat "${PGDATA}/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
+ eerror "use pg_dump to export your existing databases to a file, and then"
+ eerror "pg_restore to import them when you have upgraded completely."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ fi
+ fi
+ enewgroup postgres 70
+ enewuser postgres 70 /bin/bash /var/lib postgres
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch ${FILESDIR}/postgresql-${SLOT}-nls.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-server.patch
+ epatch ${FILESDIR}/postgresql-${SLOT}-no-interfaces.patch
+
+ if use test ; then
+ epatch ${FILESDIR}/postgresql-${SLOT}-regress.patch
+ sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+ else
+ mkdir -p ${S}/src/test/regress
+ use test || echo "all install:" > ${S}/src/test/regress/GNUmakefile
+ fi
+
+ eautoconf
+}
+
+src_compile() {
+ # TODO: test if PPC really cannot work with other CFLAGS settings
+ # use ppc && CFLAGS="-pipe -fsigned-char"
+ eval econf "$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --configure)" \
+ --disable-thread-safety \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with tcl) \
+ --with-includes="/usr/include/postgresql-${SLOT}/" \
+ || die "configure failed"
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -C $bd -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake in $bd failed"
+ done
+}
+
+src_install() {
+ if use perl ; then
+ mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+ sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+ "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+ fi
+
+ for bd in . contrib $(use xml && echo contrib/xml2) ; do
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake install -C $bd -j1 DESTDIR="${D}" \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 docdir=/usr/share/doc/${PF} || die "emake install in $bd failed"
+ done
+ rm -rf ${D}/usr/share/postgresql-${SLOT}/man/man7/
+ rm ${D}/usr/share/postgresql-${SLOT}/man/man1/{clusterdb,create{db,lang,user},drop{db,lang,user},ecpg,pg_{config,dump,dumpall,restore},psql,reindexdb,vacuumdb}.1
+
+ dodoc README HISTORY
+ cd doc
+ dodoc README.* TODO bug.template
+
+ dodir /usr/lib/eselect-postgresql/slots/${SLOT}
+ echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" >${D}/usr/lib/eselect-postgresql/slots/${SLOT}/server
+
+ dodir /usr/bin
+ for b in ${D}/usr/$(get_libdir)/postgresql-${SLOT}/bin/* ; do
+ dosym /usr/lib/eselect-postgresql/binwrapper /usr/bin/$(basename $b)
+ done
+
+ newinitd "${FILESDIR}/postgresql.init-${SLOT}" postgresql-${SLOT} || die "Inserting init.d-file failed"
+ newconfd "${FILESDIR}/postgresql.conf-${SLOT}" postgresql-${SLOT} || die "Inserting conf.d-file failed"
+}
+
+pkg_postinst() {
+ elog "Execute the following command to setup the initial database environment:"
+ elog
+ elog "emerge --config =${PF}"
+ elog
+ elog "The autovacuum function, which was in contrib, has been moved to the main"
+ elog "PostgreSQL functions starting with 8.1."
+ elog "You can enable it in ${ROOT}/etc/postgresql-${SLOT}/postgresql.conf."
+}
+
+pkg_config() {
+ einfo "Creating the data directory ..."
+ mkdir -p "${PGDATA}"
+ chown -Rf postgres:postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+
+ einfo "Initializing the database ..."
+ if [[ -f "${PGDATA}/PG_VERSION" ]] ; then
+ eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
+ eerror "You must remove your entire database directory to continue."
+ eerror "(database directory = ${PGDATA})."
+ die "Remove your database directory to continue"
+ else
+ if use kernel_linux ; then
+ local SEM=`sysctl -n kernel.sem | cut -f-3`
+ local SEMMNI=`sysctl -n kernel.sem | cut -f4`
+ local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16`
+ local SHMMAX=`sysctl -n kernel.shmmax`
+ local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}`
+
+ if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
+ eerror "The current value of SEMMNI is too low"
+ eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!"
+ eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
+ echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
+ fi
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+
+ if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
+ echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
+ ewarn "Restoring the SEMMNI value to the previous value."
+ ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
+ ewarn "and set it to at least ${SEMMNI_MIN}:"
+ ewarn
+ ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
+ ewarn
+ fi
+
+ if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
+ eerror "The current value of SHMMAX is too low for postgresql to run."
+ eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
+ eerror
+ eerror " kernel.shmmax = ${SHMMAX_MIN}"
+ eerror
+ fi
+ else
+ su postgres -c "/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb --pgdata ${PGDATA}"
+ fi
+
+ einfo
+ einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL instead of 'pg_ctl'."
+ einfo
+ fi
+}
+
+src_test() {
+ einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+ PATH="/usr/lib/postgresql-${SLOT}/bin:${PATH}" \
+ emake -j1 check \
+ PGXS=$(/usr/$(get_libdir)/postgresql-${SLOT}/bin/pg_config --pgxs) \
+ NO_PGXS=0 USE_PGXS=1 SLOT=${SLOT} || {
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
+ }
+
+ einfo "Yes, there are other tests which could be run."
+ einfo "... and no, we don't plan to add/support them."
+ einfo "For now, the main regressions tests will suffice."
+ einfo "If you think other tests are necessary, please submit a"
+ einfo "bug including a patch for this ebuild to enable them."
+}
diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest
index ec4a733..cfe1648 100644
--- a/dev-db/postgresql/Manifest
+++ b/dev-db/postgresql/Manifest
@@ -1,122 +1,39 @@
-AUX pg_autovacuum.conf-7.4 360 RMD160 8ac42a25c0b3e6746376ecc07977e42b50cccb7b SHA1 aa8bfec713da2512b799245d7828b413f3e1b0e0 SHA256 c9f78e78b35a64c61c052770ced469efc34b7ec9ea5f2e8a7853d22ac5fc739c
-MD5 1544bddb7713ed2090574f9a3d1cf7a7 files/pg_autovacuum.conf-7.4 360
-RMD160 8ac42a25c0b3e6746376ecc07977e42b50cccb7b files/pg_autovacuum.conf-7.4 360
-SHA256 c9f78e78b35a64c61c052770ced469efc34b7ec9ea5f2e8a7853d22ac5fc739c files/pg_autovacuum.conf-7.4 360
-AUX pg_autovacuum.conf-8.0 360 RMD160 8ac42a25c0b3e6746376ecc07977e42b50cccb7b SHA1 aa8bfec713da2512b799245d7828b413f3e1b0e0 SHA256 c9f78e78b35a64c61c052770ced469efc34b7ec9ea5f2e8a7853d22ac5fc739c
-MD5 1544bddb7713ed2090574f9a3d1cf7a7 files/pg_autovacuum.conf-8.0 360
-RMD160 8ac42a25c0b3e6746376ecc07977e42b50cccb7b files/pg_autovacuum.conf-8.0 360
-SHA256 c9f78e78b35a64c61c052770ced469efc34b7ec9ea5f2e8a7853d22ac5fc739c files/pg_autovacuum.conf-8.0 360
-AUX pg_autovacuum.init-7.4 1323 RMD160 584406f29a3a6e04fd164abefb8d12dc61dba6d7 SHA1 e95eadaf58c8babb52bcd0e8090a360d41a38750 SHA256 f4fd7f2f9dde2a9970bbf40e84d65470ba7ee773303988986b561b9fa16dea3e
-MD5 5a445ff67fc79dd24ced3f8e518ee5f0 files/pg_autovacuum.init-7.4 1323
-RMD160 584406f29a3a6e04fd164abefb8d12dc61dba6d7 files/pg_autovacuum.init-7.4 1323
-SHA256 f4fd7f2f9dde2a9970bbf40e84d65470ba7ee773303988986b561b9fa16dea3e files/pg_autovacuum.init-7.4 1323
-AUX pg_autovacuum.init-8.0 1323 RMD160 584406f29a3a6e04fd164abefb8d12dc61dba6d7 SHA1 e95eadaf58c8babb52bcd0e8090a360d41a38750 SHA256 f4fd7f2f9dde2a9970bbf40e84d65470ba7ee773303988986b561b9fa16dea3e
-MD5 5a445ff67fc79dd24ced3f8e518ee5f0 files/pg_autovacuum.init-8.0 1323
-RMD160 584406f29a3a6e04fd164abefb8d12dc61dba6d7 files/pg_autovacuum.init-8.0 1323
-SHA256 f4fd7f2f9dde2a9970bbf40e84d65470ba7ee773303988986b561b9fa16dea3e files/pg_autovacuum.init-8.0 1323
-AUX postgresql-7.3-cubeparse.patch 1296 RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 SHA1 c128746e9938d7aaa4f2be6521530d07c7e207a8 SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada
-MD5 5d36c9cda475e2aaf9609655dfb44ac1 files/postgresql-7.3-cubeparse.patch 1296
-RMD160 9b9c0fcf4d58fb989ae77d9ada4588b1876400a6 files/postgresql-7.3-cubeparse.patch 1296
-SHA256 1844950b55509b83f38bfdd113350df7422f96ca4c773def6d38ca2f48fcfada files/postgresql-7.3-cubeparse.patch 1296
-AUX postgresql-7.3-gentoo.patch 1898 RMD160 4bc9c81f2a3386ca22d9306635c2e0de56ede954 SHA1 370c7b95897f4bc9e3e8797feab09a746dc386e4 SHA256 c2905100f225c12bdad124378025d77331ed5508be06470d3f909de20b59ec54
-MD5 3df1582c8b5bbf09f8dd64c0b8d10d90 files/postgresql-7.3-gentoo.patch 1898
-RMD160 4bc9c81f2a3386ca22d9306635c2e0de56ede954 files/postgresql-7.3-gentoo.patch 1898
-SHA256 c2905100f225c12bdad124378025d77331ed5508be06470d3f909de20b59ec54 files/postgresql-7.3-gentoo.patch 1898
-AUX postgresql-7.4-gentoo.patch 1898 RMD160 4bc9c81f2a3386ca22d9306635c2e0de56ede954 SHA1 370c7b95897f4bc9e3e8797feab09a746dc386e4 SHA256 c2905100f225c12bdad124378025d77331ed5508be06470d3f909de20b59ec54
-MD5 3df1582c8b5bbf09f8dd64c0b8d10d90 files/postgresql-7.4-gentoo.patch 1898
-RMD160 4bc9c81f2a3386ca22d9306635c2e0de56ede954 files/postgresql-7.4-gentoo.patch 1898
-SHA256 c2905100f225c12bdad124378025d77331ed5508be06470d3f909de20b59ec54 files/postgresql-7.4-gentoo.patch 1898
-AUX postgresql-7.4-hppa-testandset.patch 1394 RMD160 8f65f37b7e6cf251c4ab134227570ee9974915a8 SHA1 359a4b598aa419d5ae92d746d13abd4a6e05a0cf SHA256 226f17c6064f53be2908325153b64e5f3b7d3e2275b7bd0f1abac27404b4678e
-MD5 2bf25091efb109eaf759b63e39b08716 files/postgresql-7.4-hppa-testandset.patch 1394
-RMD160 8f65f37b7e6cf251c4ab134227570ee9974915a8 files/postgresql-7.4-hppa-testandset.patch 1394
-SHA256 226f17c6064f53be2908325153b64e5f3b7d3e2275b7bd0f1abac27404b4678e files/postgresql-7.4-hppa-testandset.patch 1394
-AUX postgresql-7.4-vacuum-delay.patch 8918 RMD160 dcd4fc4774277b0bf4a2158584c18bae2dc04232 SHA1 fe701fd6ca6cc9519417ab1053ef61a50ca51281 SHA256 7112ea61b84ce5c6974cd74687039f2ef871e0b4b25a34b4394225c2695fc123
-MD5 2e87af398df0a957bf2f2dff754ac174 files/postgresql-7.4-vacuum-delay.patch 8918
-RMD160 dcd4fc4774277b0bf4a2158584c18bae2dc04232 files/postgresql-7.4-vacuum-delay.patch 8918
-SHA256 7112ea61b84ce5c6974cd74687039f2ef871e0b4b25a34b4394225c2695fc123 files/postgresql-7.4-vacuum-delay.patch 8918
-AUX postgresql-8.0-gentoo.patch 1432 RMD160 ca52efdd8b01e800367e7f64b603f8aca477e302 SHA1 51a0ec816982f36f3b7fd4335abe0f74c583e620 SHA256 bd3d2e280bbd7507a8bbae8f57ec3260d7748061dddfc8645bb72c8396deb962
-MD5 2ef77de24ddfa9c32db17c60b6d7dd08 files/postgresql-8.0-gentoo.patch 1432
-RMD160 ca52efdd8b01e800367e7f64b603f8aca477e302 files/postgresql-8.0-gentoo.patch 1432
-SHA256 bd3d2e280bbd7507a8bbae8f57ec3260d7748061dddfc8645bb72c8396deb962 files/postgresql-8.0-gentoo.patch 1432
-AUX postgresql-8.0-sh.patch 617 RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 SHA1 e9a271f0fae2bad9150dbb8579615c90253e538b SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683
-MD5 0616d8126fb38e59b56f2922654e4724 files/postgresql-8.0-sh.patch 617
-RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 files/postgresql-8.0-sh.patch 617
-SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683 files/postgresql-8.0-sh.patch 617
-AUX postgresql-8.1-gentoo.patch 30055 RMD160 e449c72957150b1ee4544cb3d58dccc386b38f6d SHA1 79b2126aa01b919e23ebab1edac10edd88f64833 SHA256 808f1a5450ac13e9ec634184db09da1ef717b15fb5f149e6a06a0dc79c99372e
-MD5 34446e4429de567a409c46f7f304d147 files/postgresql-8.1-gentoo.patch 30055
-RMD160 e449c72957150b1ee4544cb3d58dccc386b38f6d files/postgresql-8.1-gentoo.patch 30055
-SHA256 808f1a5450ac13e9ec634184db09da1ef717b15fb5f149e6a06a0dc79c99372e files/postgresql-8.1-gentoo.patch 30055
-AUX postgresql-8.1-regress_fix.patch 1338 RMD160 cb952f60626ae4a49f796dd9e825bb2d874770aa SHA1 69dad8a164b24755373ee220e5113d170f72648d SHA256 98d8b35e4ef626675418a59572c4ebe76c41efa1cb5a05aebf5c7009b6a27e1b
-MD5 1e82efb412ac5577dc50faa0505fb62e files/postgresql-8.1-regress_fix.patch 1338
-RMD160 cb952f60626ae4a49f796dd9e825bb2d874770aa files/postgresql-8.1-regress_fix.patch 1338
-SHA256 98d8b35e4ef626675418a59572c4ebe76c41efa1cb5a05aebf5c7009b6a27e1b files/postgresql-8.1-regress_fix.patch 1338
-AUX postgresql-8.1-regress_su.patch 5256 RMD160 243a7c7b2d53aaa3034722301d49920a65fb5353 SHA1 2d6340949bccdde462c865026c4c366c8677c9e6 SHA256 f4ecb8bba99b9188293f0da0869f4b2590abeee143511128854941ea0778b46c
-MD5 77a1e0581fca7c979eaa5cdcbc4248e8 files/postgresql-8.1-regress_su.patch 5256
-RMD160 243a7c7b2d53aaa3034722301d49920a65fb5353 files/postgresql-8.1-regress_su.patch 5256
-SHA256 f4ecb8bba99b9188293f0da0869f4b2590abeee143511128854941ea0778b46c files/postgresql-8.1-regress_su.patch 5256
-AUX postgresql-8.1-sh.patch 617 RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 SHA1 e9a271f0fae2bad9150dbb8579615c90253e538b SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683
-MD5 0616d8126fb38e59b56f2922654e4724 files/postgresql-8.1-sh.patch 617
-RMD160 d826fbb45265d09880000ea33ac3323beabb0f50 files/postgresql-8.1-sh.patch 617
-SHA256 420023f4789c650189da203d43b134d511ff1b976d17a3948774b0c7bf72d683 files/postgresql-8.1-sh.patch 617
-AUX postgresql.conf-7.3 378 RMD160 354864bcae2503ebc3e167f61f658d314aae69da SHA1 884c9f5b5c1bc578532c653ea8e28a20ea0560ae SHA256 fd02b84825c39d40141f30922cc6f4fe1c659d8d2fc0dee4ba21fb79ab192566
-MD5 2dfd0034a57c666b6929e5b77565bd48 files/postgresql.conf-7.3 378
-RMD160 354864bcae2503ebc3e167f61f658d314aae69da files/postgresql.conf-7.3 378
-SHA256 fd02b84825c39d40141f30922cc6f4fe1c659d8d2fc0dee4ba21fb79ab192566 files/postgresql.conf-7.3 378
-AUX postgresql.conf-7.4 378 RMD160 354864bcae2503ebc3e167f61f658d314aae69da SHA1 884c9f5b5c1bc578532c653ea8e28a20ea0560ae SHA256 fd02b84825c39d40141f30922cc6f4fe1c659d8d2fc0dee4ba21fb79ab192566
-MD5 2dfd0034a57c666b6929e5b77565bd48 files/postgresql.conf-7.4 378
-RMD160 354864bcae2503ebc3e167f61f658d314aae69da files/postgresql.conf-7.4 378
-SHA256 fd02b84825c39d40141f30922cc6f4fe1c659d8d2fc0dee4ba21fb79ab192566 files/postgresql.conf-7.4 378
-AUX postgresql.conf-8.0 1312 RMD160 e77327cefe145cb3799146df7d760d81b119c87a SHA1 f35196f1f7501a21da7ba0103cdafee6ba1f1d7d SHA256 152e5e9e0f63dc233d750a1045bbb9054a16f98f2e3832dd45b36babcfbad083
-MD5 279f0eff7ed01e8ff4dd37b8362b8be3 files/postgresql.conf-8.0 1312
-RMD160 e77327cefe145cb3799146df7d760d81b119c87a files/postgresql.conf-8.0 1312
-SHA256 152e5e9e0f63dc233d750a1045bbb9054a16f98f2e3832dd45b36babcfbad083 files/postgresql.conf-8.0 1312
-AUX postgresql.conf-8.1 1312 RMD160 e77327cefe145cb3799146df7d760d81b119c87a SHA1 f35196f1f7501a21da7ba0103cdafee6ba1f1d7d SHA256 152e5e9e0f63dc233d750a1045bbb9054a16f98f2e3832dd45b36babcfbad083
-MD5 279f0eff7ed01e8ff4dd37b8362b8be3 files/postgresql.conf-8.1 1312
-RMD160 e77327cefe145cb3799146df7d760d81b119c87a files/postgresql.conf-8.1 1312
-SHA256 152e5e9e0f63dc233d750a1045bbb9054a16f98f2e3832dd45b36babcfbad083 files/postgresql.conf-8.1 1312
-AUX postgresql.init-7.3 1227 RMD160 43d93966a4c1805c251a96930329d92980881342 SHA1 e6eca8ddc4cea51898502563b10d39bbce2b892c SHA256 a7b8ec654fe3f1a12a37d750ff115267c50798d41f9c88a2329b290da3124e99
-MD5 f68f7a19e5adafa9cdc7d0116167c622 files/postgresql.init-7.3 1227
-RMD160 43d93966a4c1805c251a96930329d92980881342 files/postgresql.init-7.3 1227
-SHA256 a7b8ec654fe3f1a12a37d750ff115267c50798d41f9c88a2329b290da3124e99 files/postgresql.init-7.3 1227
-AUX postgresql.init-7.4 1227 RMD160 43d93966a4c1805c251a96930329d92980881342 SHA1 e6eca8ddc4cea51898502563b10d39bbce2b892c SHA256 a7b8ec654fe3f1a12a37d750ff115267c50798d41f9c88a2329b290da3124e99
-MD5 f68f7a19e5adafa9cdc7d0116167c622 files/postgresql.init-7.4 1227
-RMD160 43d93966a4c1805c251a96930329d92980881342 files/postgresql.init-7.4 1227
-SHA256 a7b8ec654fe3f1a12a37d750ff115267c50798d41f9c88a2329b290da3124e99 files/postgresql.init-7.4 1227
-AUX postgresql.init-8.0 1369 RMD160 dddd71ff0cd8b45579bd5936e281963bed5c8846 SHA1 09e22f39703f21ab42898376640891d5b6350a85 SHA256 1692640f14d643e8e466e0fa7bcfa7b7ce45992d637eabbd046043d130cef7b1
-MD5 f5c112c2ffc3be580ea0f3a1271d92e9 files/postgresql.init-8.0 1369
-RMD160 dddd71ff0cd8b45579bd5936e281963bed5c8846 files/postgresql.init-8.0 1369
-SHA256 1692640f14d643e8e466e0fa7bcfa7b7ce45992d637eabbd046043d130cef7b1 files/postgresql.init-8.0 1369
-AUX postgresql.init-8.1 1369 RMD160 dddd71ff0cd8b45579bd5936e281963bed5c8846 SHA1 09e22f39703f21ab42898376640891d5b6350a85 SHA256 1692640f14d643e8e466e0fa7bcfa7b7ce45992d637eabbd046043d130cef7b1
-MD5 f5c112c2ffc3be580ea0f3a1271d92e9 files/postgresql.init-8.1 1369
-RMD160 dddd71ff0cd8b45579bd5936e281963bed5c8846 files/postgresql.init-8.1 1369
-SHA256 1692640f14d643e8e466e0fa7bcfa7b7ce45992d637eabbd046043d130cef7b1 files/postgresql.init-8.1 1369
-DIST postgresql-base-8.0.8.tar.bz2 7823046 RMD160 2c60dc22f714bc0182051a94c3c1f513b30f574e SHA1 a5e5147497f0c2b548762d232d297b48d6e97d02 SHA256 906d86f2477309b9c2531d12fe720761fdffd73243a83ae31892bd7a0a618183
-DIST postgresql-base-8.1.4.tar.bz2 8040435 RMD160 b3389c51a9d3cc89935dd1cc6405a9dd9c07042d SHA1 b1d7df18dabbbff78a810625f7d626c7601ec3bc SHA256 3d5e6cf4aa1593730c61676ffc4e3acbed73c0e13fb246035e54e4cf83fa60e1
-DIST postgresql-docs-8.0.8.tar.bz2 2260219 RMD160 e3dbde03b553000d5a263a93713c434e88dd4fe1 SHA1 2f845d6740c7ed88d0b9240b274a75d479658f7c SHA256 60a93ee5b2b80f517696328d85f4db24791cb1099d89a0adc375ee740201dc54
-DIST postgresql-docs-8.1.4.tar.bz2 2485052 RMD160 4960b2d58da67ac88338c6b2508865cb20452b7e SHA1 e722612387eb668fbc9833fc19c213cd5cc8e1ba SHA256 1578423df71962e22fe94b1123db680983d4e2f82e5bbb4913d96d9f6265de7f
-DIST postgresql-opt-8.0.8.tar.bz2 134600 RMD160 352f07aa25d0dcf1d2e3502f5cec7295c40bc3d5 SHA1 081d0b8d755a49395001b46ca0585c4e2b5ecf4f SHA256 427e82253b068b35e47235a1b78c521c89a9774b80dcc2433946f86220a34926
-DIST postgresql-opt-8.1.4.tar.bz2 144696 RMD160 8f25c6137a8cbd786a647cf4d8ef59c95573012d SHA1 ba8ed68da796e67858f7c100f6d64f1586540f05 SHA256 5a6d27e303ad9b073f91e51658b13cfeb153e3d886af5e5c1093ea315e15738c
-DIST postgresql-test-8.0.8.tar.bz2 931549 RMD160 c546388eb3b1b043511f0074b2dfbbd30cfd55e3 SHA1 37cd9186a874727e53dd4272b38d6028e5521c4c SHA256 804ee10063a6586d95418109aa3085dad0a1a2d00a0632d3c40629b840107a8f
-DIST postgresql-test-8.1.4.tar.bz2 946868 RMD160 46dfb28db351682863d9cd566f62b29a9805e1d2 SHA1 0ece7b23d8c9c6fecb0927e87afe4f3dbe877d3d SHA256 b7449222f9f4c3340d6d065914d10df1d4a8b13d63c967c9e65190812325b8d9
-EBUILD postgresql-8.0.8-r1.ebuild 8459 RMD160 672bc71392a22014123b43d1ad40381517623000 SHA1 47a8fb8831c593148ddec25d43cc094d87f51ccf SHA256 02b5011d2564459683df5d288bb97c4058b21b0d81b3a89e166550948d4af554
-MD5 0421474d863e496d36666a1adfef3352 postgresql-8.0.8-r1.ebuild 8459
-RMD160 672bc71392a22014123b43d1ad40381517623000 postgresql-8.0.8-r1.ebuild 8459
-SHA256 02b5011d2564459683df5d288bb97c4058b21b0d81b3a89e166550948d4af554 postgresql-8.0.8-r1.ebuild 8459
-EBUILD postgresql-8.1.4-r1.ebuild 9337 RMD160 c87e3a5d0e41be4c4cb282293ce475259d200fef SHA1 704c7e82607ffa8ffd0b9bd0153af4b0b448b3e7 SHA256 541b8b0810b9bef112db4ba3d2cd657644da3c6ec5b57b1ae11b78b4a94b86f5
-MD5 3b93922cd75e6fd07c5207ddeadfcf38 postgresql-8.1.4-r1.ebuild 9337
-RMD160 c87e3a5d0e41be4c4cb282293ce475259d200fef postgresql-8.1.4-r1.ebuild 9337
-SHA256 541b8b0810b9bef112db4ba3d2cd657644da3c6ec5b57b1ae11b78b4a94b86f5 postgresql-8.1.4-r1.ebuild 9337
+EBUILD postgresql-7.3.17.ebuild 640 RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c SHA1 01102528751665efdd6485e527e2aab9e34427d3 SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e
+MD5 664749b20ee918b7a82186ae0e24d0a6 postgresql-7.3.17.ebuild 640
+RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c postgresql-7.3.17.ebuild 640
+SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e postgresql-7.3.17.ebuild 640
+EBUILD postgresql-7.4.15.ebuild 640 RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c SHA1 01102528751665efdd6485e527e2aab9e34427d3 SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e
+MD5 664749b20ee918b7a82186ae0e24d0a6 postgresql-7.4.15.ebuild 640
+RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c postgresql-7.4.15.ebuild 640
+SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e postgresql-7.4.15.ebuild 640
+EBUILD postgresql-8.0.10.ebuild 640 RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c SHA1 01102528751665efdd6485e527e2aab9e34427d3 SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e
+MD5 664749b20ee918b7a82186ae0e24d0a6 postgresql-8.0.10.ebuild 640
+RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c postgresql-8.0.10.ebuild 640
+SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e postgresql-8.0.10.ebuild 640
+EBUILD postgresql-8.1.6.ebuild 640 RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c SHA1 01102528751665efdd6485e527e2aab9e34427d3 SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e
+MD5 664749b20ee918b7a82186ae0e24d0a6 postgresql-8.1.6.ebuild 640
+RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c postgresql-8.1.6.ebuild 640
+SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e postgresql-8.1.6.ebuild 640
+EBUILD postgresql-8.2.1.ebuild 640 RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c SHA1 01102528751665efdd6485e527e2aab9e34427d3 SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e
+MD5 664749b20ee918b7a82186ae0e24d0a6 postgresql-8.2.1.ebuild 640
+RMD160 1f305d4a50b6974ec276e920f7d224ebd644b89c postgresql-8.2.1.ebuild 640
+SHA256 4b60e58a9f22c58c73e5d48db686586e1c307a08ffdc785e0351ae36cb776d8e postgresql-8.2.1.ebuild 640
MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b
MD5 6fe52df942ef15801d56449cd8299604 metadata.xml 164
RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc metadata.xml 164
SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b metadata.xml 164
-MISC postgresql-8.1.4-r1.ebuild.mine 9395 RMD160 1cdde4de89e2d952b1f0d130e4b83db00b97bf1b SHA1 0b28099d4bb11c57cdd590c4ad08e2c89ed1b813 SHA256 5402dd92b187e106476b1d1a4b5dfde1b861b143852466a5eb66cc9cc9fde28c
-MD5 3d5186c405976e82365e7bb8b495e3b0 postgresql-8.1.4-r1.ebuild.mine 9395
-RMD160 1cdde4de89e2d952b1f0d130e4b83db00b97bf1b postgresql-8.1.4-r1.ebuild.mine 9395
-SHA256 5402dd92b187e106476b1d1a4b5dfde1b861b143852466a5eb66cc9cc9fde28c postgresql-8.1.4-r1.ebuild.mine 9395
-MD5 6a0d72c5390699ad2d134b52122885b1 files/digest-postgresql-8.0.8-r1 1075
-RMD160 f2b4d1a2381ae34403a0c1e1fed343214479a44c files/digest-postgresql-8.0.8-r1 1075
-SHA256 74085118e9fc48b9e8439bad936236b4f25e01da8090c0f440d357072a6cf26b files/digest-postgresql-8.0.8-r1 1075
-MD5 43d30ff5d95ebe2f0dc1dcc230b06c58 files/digest-postgresql-8.1.4-r1 1075
-RMD160 a4b3920b2fe9aeef288c787107e4003511b92d18 files/digest-postgresql-8.1.4-r1 1075
-SHA256 10adee3100a2cf14a7245cd41571c799e557b1388f535e972333e7e095c37344 files/digest-postgresql-8.1.4-r1 1075
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-postgresql-7.3.17 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-postgresql-7.3.17 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-postgresql-7.3.17 1
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-postgresql-7.4.15 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-postgresql-7.4.15 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-postgresql-7.4.15 1
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-postgresql-8.0.10 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-postgresql-8.0.10 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-postgresql-8.0.10 1
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-postgresql-8.1.6 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-postgresql-8.1.6 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-postgresql-8.1.6 1
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-postgresql-8.2.1 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-postgresql-8.2.1 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-postgresql-8.2.1 1
diff --git a/dev-db/postgresql/files/digest-postgresql-7.3.17 b/dev-db/postgresql/files/digest-postgresql-7.3.17
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/dev-db/postgresql/files/digest-postgresql-7.3.17
@@ -0,0 +1 @@
+
diff --git a/dev-db/postgresql/files/digest-postgresql-7.4.15 b/dev-db/postgresql/files/digest-postgresql-7.4.15
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/dev-db/postgresql/files/digest-postgresql-7.4.15
@@ -0,0 +1 @@
+
diff --git a/dev-db/postgresql/files/digest-postgresql-8.0.10 b/dev-db/postgresql/files/digest-postgresql-8.0.10
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/dev-db/postgresql/files/digest-postgresql-8.0.10
@@ -0,0 +1 @@
+
diff --git a/dev-db/postgresql/files/digest-postgresql-8.0.8-r1 b/dev-db/postgresql/files/digest-postgresql-8.0.8-r1
deleted file mode 100644
index bd37c9f..0000000
--- a/dev-db/postgresql/files/digest-postgresql-8.0.8-r1
+++ /dev/null
@@ -1,12 +0,0 @@
-MD5 4d84ff56ae9669b250060f9e2e36f788 postgresql-base-8.0.8.tar.bz2 7823046
-RMD160 2c60dc22f714bc0182051a94c3c1f513b30f574e postgresql-base-8.0.8.tar.bz2 7823046
-SHA256 906d86f2477309b9c2531d12fe720761fdffd73243a83ae31892bd7a0a618183 postgresql-base-8.0.8.tar.bz2 7823046
-MD5 ba6fbc2dff64d385f86344daeb51cab1 postgresql-docs-8.0.8.tar.bz2 2260219
-RMD160 e3dbde03b553000d5a263a93713c434e88dd4fe1 postgresql-docs-8.0.8.tar.bz2 2260219
-SHA256 60a93ee5b2b80f517696328d85f4db24791cb1099d89a0adc375ee740201dc54 postgresql-docs-8.0.8.tar.bz2 2260219
-MD5 e129cb889239da6c800a21be00a35da7 postgresql-opt-8.0.8.tar.bz2 134600
-RMD160 352f07aa25d0dcf1d2e3502f5cec7295c40bc3d5 postgresql-opt-8.0.8.tar.bz2 134600
-SHA256 427e82253b068b35e47235a1b78c521c89a9774b80dcc2433946f86220a34926 postgresql-opt-8.0.8.tar.bz2 134600
-MD5 d3ade4260a468aa0e5d3a373b9acf52e postgresql-test-8.0.8.tar.bz2 931549
-RMD160 c546388eb3b1b043511f0074b2dfbbd30cfd55e3 postgresql-test-8.0.8.tar.bz2 931549
-SHA256 804ee10063a6586d95418109aa3085dad0a1a2d00a0632d3c40629b840107a8f postgresql-test-8.0.8.tar.bz2 931549
diff --git a/dev-db/postgresql/files/digest-postgresql-8.1.4-r1 b/dev-db/postgresql/files/digest-postgresql-8.1.4-r1
deleted file mode 100644
index b5c2dc6..0000000
--- a/dev-db/postgresql/files/digest-postgresql-8.1.4-r1
+++ /dev/null
@@ -1,12 +0,0 @@
-MD5 7ba24eaa31237eb8713782508de4dec7 postgresql-base-8.1.4.tar.bz2 8040435
-RMD160 b3389c51a9d3cc89935dd1cc6405a9dd9c07042d postgresql-base-8.1.4.tar.bz2 8040435
-SHA256 3d5e6cf4aa1593730c61676ffc4e3acbed73c0e13fb246035e54e4cf83fa60e1 postgresql-base-8.1.4.tar.bz2 8040435
-MD5 5edc420b949a22d9960fc72609a24af3 postgresql-docs-8.1.4.tar.bz2 2485052
-RMD160 4960b2d58da67ac88338c6b2508865cb20452b7e postgresql-docs-8.1.4.tar.bz2 2485052
-SHA256 1578423df71962e22fe94b1123db680983d4e2f82e5bbb4913d96d9f6265de7f postgresql-docs-8.1.4.tar.bz2 2485052
-MD5 6aad690bd918086cc3fbf673b74e65e6 postgresql-opt-8.1.4.tar.bz2 144696
-RMD160 8f25c6137a8cbd786a647cf4d8ef59c95573012d postgresql-opt-8.1.4.tar.bz2 144696
-SHA256 5a6d27e303ad9b073f91e51658b13cfeb153e3d886af5e5c1093ea315e15738c postgresql-opt-8.1.4.tar.bz2 144696
-MD5 a4918ec95fd589f8b1eeb0e3d704045c postgresql-test-8.1.4.tar.bz2 946868
-RMD160 46dfb28db351682863d9cd566f62b29a9805e1d2 postgresql-test-8.1.4.tar.bz2 946868
-SHA256 b7449222f9f4c3340d6d065914d10df1d4a8b13d63c967c9e65190812325b8d9 postgresql-test-8.1.4.tar.bz2 946868
diff --git a/dev-db/postgresql/files/digest-postgresql-8.1.6 b/dev-db/postgresql/files/digest-postgresql-8.1.6
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/dev-db/postgresql/files/digest-postgresql-8.1.6
@@ -0,0 +1 @@
+
diff --git a/dev-db/postgresql/files/digest-postgresql-8.2.1 b/dev-db/postgresql/files/digest-postgresql-8.2.1
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/dev-db/postgresql/files/digest-postgresql-8.2.1
@@ -0,0 +1 @@
+
diff --git a/dev-db/postgresql/files/postgresql-7.3-gentoo.patch b/dev-db/postgresql/files/postgresql-7.3-gentoo.patch
deleted file mode 100644
index 1f94066..0000000
--- a/dev-db/postgresql/files/postgresql-7.3-gentoo.patch
+++ /dev/null
@@ -1,59 +0,0 @@
---- postgresql-7.4.12.org/configure 2004-08-18 04:11:24.000000000 +0100
-+++ postgresql-7.4.12/configure 2004-09-15 20:28:46.933631781 +0100
-@@ -6003,7 +6003,7 @@
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- pgac_cv_check_readline=no
--for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
-+for pgac_lib in "" " -lncurses" " -lcurses" ; do
- for pgac_rllib in -lreadline -ledit ; do
- pgac_save_LIBS=$LIBS
- LIBS="${pgac_rllib}${pgac_lib} $LIBS"
---- postgresql-7.4.12.org/src/interfaces/Makefile 2004-04-20 01:33:51.000000000 +0100
-+++ postgresql-7.4.12/src/interfaces/Makefile 2005-05-09 21:59:15.000000000 +0100
-@@ -12,7 +12,7 @@
- top_builddir = ../..
- include $(top_builddir)/src/Makefile.global
-
--DIRS := libpq ecpg
-+DIRS := ecpg
-
- ALLDIRS := $(DIRS)
-
---- postgresql-7.4.12.org/src/Makefile 2005-01-13 18:23:21.000000000 +0000
-+++ postgresql-7.4.12/src/Makefile 2005-05-09 21:59:54.000000000 +0100
-@@ -18,7 +18,6 @@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
- $(MAKE) -C backend/utils/mb/conversion_procs $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -47,7 +46,6 @@
- $(MAKE) -C port $@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -61,7 +59,6 @@
- -$(MAKE) -C port $@
- -$(MAKE) -C timezone $@
- -$(MAKE) -C backend $@
-- -$(MAKE) -C include $@
- -$(MAKE) -C interfaces $@
- -$(MAKE) -C bin $@
- -$(MAKE) -C pl $@
---- postgresql-8.1.3.org/src/bin/Makefile 2006-07-24 12:45:48.000000000 +0200
-+++ postgresql-8.1.3/src/bin/Makefile 2006-07-24 12:46:09.000000000 +0200
-@@ -14,7 +14,7 @@
- include $(top_builddir)/src/Makefile.global
-
- DIRS := initdb ipcclean pg_ctl pg_dump \
-- psql scripts pg_config pg_controldata pg_resetxlog
-+ psql scripts pg_controldata pg_resetxlog
- ifeq ($(PORTNAME), win32)
- DIRS+=pgevent
- endif
diff --git a/dev-db/postgresql/files/postgresql-7.4-gentoo.patch b/dev-db/postgresql/files/postgresql-7.4-gentoo.patch
deleted file mode 100644
index 1f94066..0000000
--- a/dev-db/postgresql/files/postgresql-7.4-gentoo.patch
+++ /dev/null
@@ -1,59 +0,0 @@
---- postgresql-7.4.12.org/configure 2004-08-18 04:11:24.000000000 +0100
-+++ postgresql-7.4.12/configure 2004-09-15 20:28:46.933631781 +0100
-@@ -6003,7 +6003,7 @@
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- pgac_cv_check_readline=no
--for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
-+for pgac_lib in "" " -lncurses" " -lcurses" ; do
- for pgac_rllib in -lreadline -ledit ; do
- pgac_save_LIBS=$LIBS
- LIBS="${pgac_rllib}${pgac_lib} $LIBS"
---- postgresql-7.4.12.org/src/interfaces/Makefile 2004-04-20 01:33:51.000000000 +0100
-+++ postgresql-7.4.12/src/interfaces/Makefile 2005-05-09 21:59:15.000000000 +0100
-@@ -12,7 +12,7 @@
- top_builddir = ../..
- include $(top_builddir)/src/Makefile.global
-
--DIRS := libpq ecpg
-+DIRS := ecpg
-
- ALLDIRS := $(DIRS)
-
---- postgresql-7.4.12.org/src/Makefile 2005-01-13 18:23:21.000000000 +0000
-+++ postgresql-7.4.12/src/Makefile 2005-05-09 21:59:54.000000000 +0100
-@@ -18,7 +18,6 @@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
- $(MAKE) -C backend/utils/mb/conversion_procs $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -47,7 +46,6 @@
- $(MAKE) -C port $@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -61,7 +59,6 @@
- -$(MAKE) -C port $@
- -$(MAKE) -C timezone $@
- -$(MAKE) -C backend $@
-- -$(MAKE) -C include $@
- -$(MAKE) -C interfaces $@
- -$(MAKE) -C bin $@
- -$(MAKE) -C pl $@
---- postgresql-8.1.3.org/src/bin/Makefile 2006-07-24 12:45:48.000000000 +0200
-+++ postgresql-8.1.3/src/bin/Makefile 2006-07-24 12:46:09.000000000 +0200
-@@ -14,7 +14,7 @@
- include $(top_builddir)/src/Makefile.global
-
- DIRS := initdb ipcclean pg_ctl pg_dump \
-- psql scripts pg_config pg_controldata pg_resetxlog
-+ psql scripts pg_controldata pg_resetxlog
- ifeq ($(PORTNAME), win32)
- DIRS+=pgevent
- endif
diff --git a/dev-db/postgresql/files/postgresql-8.0-gentoo.patch b/dev-db/postgresql/files/postgresql-8.0-gentoo.patch
deleted file mode 100644
index 2902dea..0000000
--- a/dev-db/postgresql/files/postgresql-8.0-gentoo.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- postgresql-8.1.3.org/src/interfaces/Makefile 2004-04-20 01:33:51.000000000 +0100
-+++ postgresql-8.1.3/src/interfaces/Makefile 2005-05-09 21:59:15.000000000 +0100
-@@ -12,7 +12,7 @@
- top_builddir = ../..
- include $(top_builddir)/src/Makefile.global
-
--DIRS := libpq ecpg
-+DIRS := ecpg
-
- ALLDIRS := $(DIRS)
-
---- postgresql-8.1.3.org/src/Makefile 2005-01-13 18:23:21.000000000 +0000
-+++ postgresql-8.1.3/src/Makefile 2005-05-09 21:59:54.000000000 +0100
-@@ -18,7 +18,6 @@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
- $(MAKE) -C backend/utils/mb/conversion_procs $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -47,7 +46,6 @@
- $(MAKE) -C port $@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -61,7 +59,6 @@
- -$(MAKE) -C port $@
- -$(MAKE) -C timezone $@
- -$(MAKE) -C backend $@
-- -$(MAKE) -C include $@
- -$(MAKE) -C interfaces $@
- -$(MAKE) -C bin $@
- -$(MAKE) -C pl $@
---- postgresql-8.1.3.org/src/bin/Makefile 2006-07-24 12:45:48.000000000 +0200
-+++ postgresql-8.1.3/src/bin/Makefile 2006-07-24 12:46:09.000000000 +0200
-@@ -14,7 +14,7 @@
- include $(top_builddir)/src/Makefile.global
-
- DIRS := initdb ipcclean pg_ctl pg_dump \
-- psql scripts pg_config pg_controldata pg_resetxlog
-+ psql scripts pg_controldata pg_resetxlog
- ifeq ($(PORTNAME), win32)
- DIRS+=pgevent
- endif
diff --git a/dev-db/postgresql/files/postgresql-8.1-gentoo.patch b/dev-db/postgresql/files/postgresql-8.1-gentoo.patch
deleted file mode 100644
index a8923c8..0000000
--- a/dev-db/postgresql/files/postgresql-8.1-gentoo.patch
+++ /dev/null
@@ -1,746 +0,0 @@
-diff -Nru postgresql-8.1.4.orig/contrib/spi/Makefile postgresql-8.1.4/contrib/spi/Makefile
---- postgresql-8.1.4.orig/contrib/spi/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/contrib/spi/Makefile 2006-09-27 20:54:41.000000000 +0200
-@@ -18,4 +18,4 @@
- include $(top_srcdir)/contrib/contrib-global.mk
- endif
-
--SHLIB_LINK += -L$(top_builddir)/src/port -lpgport
-+SHLIB_LINK += -L$(top_builddir)/src/port -lpgport-8.1
-diff -Nru postgresql-8.1.4.orig/src/backend/main/main.c postgresql-8.1.4/src/backend/main/main.c
---- postgresql-8.1.4.orig/src/backend/main/main.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/backend/main/main.c 2006-09-27 21:08:43.000000000 +0200
-@@ -152,7 +152,7 @@
- * error messages to be localized.
- */
-
-- set_pglocale_pgservice(argv[0], "postgres");
-+ set_pglocale_pgservice(argv[0], "postgres-8.1");
-
- #ifdef WIN32
-
-@@ -259,9 +259,9 @@
- * possibly first argument) we were called with. The lack of consistency
- * here is historical.
- */
-- if (strcmp(progname, "postmaster") == 0)
-+ if (strcmp(progname, "postmaster-8.1") == 0)
- {
-- /* Called as "postmaster" */
-+ /* Called as "postmaster-8.1" */
- exit(PostmasterMain(argc, argv));
- }
-
-diff -Nru postgresql-8.1.4.orig/src/backend/Makefile postgresql-8.1.4/src/backend/Makefile
---- postgresql-8.1.4.orig/src/backend/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/backend/Makefile 2006-09-27 20:54:58.000000000 +0200
-@@ -22,7 +22,7 @@
- OBJS := $(SUBSYSOBJS) $(top_builddir)/src/port/libpgport_srv.a
-
- # We put libpgport into OBJS, so remove it from LIBS
--LIBS := $(patsubst -lpgport, , $(LIBS))
-+LIBS := $(patsubst -lpgport-8.1, , $(LIBS))
-
- ifeq ($(PORTNAME), qnx4)
- # This file crashes qnx4's wlink and is therefore not in
-diff -Nru postgresql-8.1.4.orig/src/backend/postmaster/postmaster.c postgresql-8.1.4/src/backend/postmaster/postmaster.c
---- postgresql-8.1.4.orig/src/backend/postmaster/postmaster.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/backend/postmaster/postmaster.c 2006-09-27 17:44:26.000000000 +0200
-@@ -584,10 +584,10 @@
-
- #ifdef EXEC_BACKEND
- /* Locate executable backend before we change working directory */
-- if (find_other_exec(argv[0], "postgres", PG_VERSIONSTR,
-+ if (find_other_exec(argv[0], "postgres-8.1", PG_VERSIONSTR,
- postgres_exec_path) < 0)
- ereport(FATAL,
-- (errmsg("%s: could not locate matching postgres executable",
-+ (errmsg("%s: could not locate matching postgres-8.1 executable",
- progname)));
- #endif
-
-diff -Nru postgresql-8.1.4.orig/src/backend/storage/lmgr/Makefile postgresql-8.1.4/src/backend/storage/lmgr/Makefile
---- postgresql-8.1.4.orig/src/backend/storage/lmgr/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/backend/storage/lmgr/Makefile 2006-09-27 20:55:14.000000000 +0200
-@@ -21,7 +21,7 @@
-
- s_lock_test: s_lock.c $(top_builddir)/src/port/libpgport.a
- $(CC) $(CPPFLAGS) $(CFLAGS) -DS_LOCK_TEST=1 $(srcdir)/s_lock.c \
-- -L $(top_builddir)/src/port -lpgport -o s_lock_test
-+ -L $(top_builddir)/src/port -lpgport-8.1 -o s_lock_test
-
- check: s_lock_test
- ./s_lock_test
-diff -Nru postgresql-8.1.4.orig/src/bin/initdb/initdb.c postgresql-8.1.4/src/bin/initdb/initdb.c
---- postgresql-8.1.4.orig/src/bin/initdb/initdb.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/initdb/initdb.c 2006-09-27 21:08:50.000000000 +0200
-@@ -2224,7 +2224,7 @@
- };
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "initdb");
-+ set_pglocale_pgservice(argv[0], "initdb-8.1");
-
- if (argc > 1)
- {
-@@ -2403,7 +2403,7 @@
- sprintf(pgdenv, "PGDATA=%s", pg_data);
- putenv(pgdenv);
-
-- if ((ret = find_other_exec(argv[0], "postgres", PG_VERSIONSTR,
-+ if ((ret = find_other_exec(argv[0], "postgres-8.1", PG_VERSIONSTR,
- backend_exec)) < 0)
- {
- char full_path[MAXPGPATH];
-@@ -2413,14 +2413,14 @@
-
- if (ret == -1)
- fprintf(stderr,
-- _("The program \"postgres\" is needed by %s "
-+ _("The program \"postgres-8.1\" is needed by %s "
- "but was not found in the\n"
- "same directory as \"%s\".\n"
- "Check your installation.\n"),
- progname, full_path);
- else
- fprintf(stderr,
-- _("The program \"postgres\" was found by \"%s\"\n"
-+ _("The program \"postgres-8.1\" was found by \"%s\"\n"
- "but was not the same version as %s.\n"
- "Check your installation.\n"),
- full_path, progname);
-@@ -2707,9 +2707,9 @@
- get_parent_directory(bin_dir);
-
- printf(_("\nSuccess. You can now start the database server using:\n\n"
-- " %s%s%spostmaster%s -D %s%s%s\n"
-+ " %s%s%spostmaster-8.1%s -D %s%s%s\n"
- "or\n"
-- " %s%s%spg_ctl%s -D %s%s%s -l logfile start\n\n"),
-+ " %s%s%spg_ctl-8.1%s -D %s%s%s -l logfile start\n\n"),
- QUOTE_PATH, bin_dir, (strlen(bin_dir) > 0) ? DIR_SEP : "", QUOTE_PATH,
- QUOTE_PATH, pg_data_native, QUOTE_PATH,
- QUOTE_PATH, bin_dir, (strlen(bin_dir) > 0) ? DIR_SEP : "", QUOTE_PATH,
-diff -Nru postgresql-8.1.4.orig/src/bin/Makefile postgresql-8.1.4/src/bin/Makefile
---- postgresql-8.1.4.orig/src/bin/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/Makefile 2006-09-26 16:17:07.000000000 +0200
-@@ -14,7 +14,7 @@
- include $(top_builddir)/src/Makefile.global
-
- DIRS := initdb ipcclean pg_ctl pg_dump \
-- psql scripts pg_config pg_controldata pg_resetxlog
-+ psql scripts pg_controldata pg_resetxlog
- ifeq ($(PORTNAME), win32)
- DIRS+=pgevent
- endif
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_controldata/pg_controldata.c postgresql-8.1.4/src/bin/pg_controldata/pg_controldata.c
---- postgresql-8.1.4.orig/src/bin/pg_controldata/pg_controldata.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_controldata/pg_controldata.c 2006-09-27 21:09:16.000000000 +0200
-@@ -73,7 +73,7 @@
- char *strftime_fmt = "%c";
- const char *progname;
-
-- set_pglocale_pgservice(argv[0], "pg_controldata");
-+ set_pglocale_pgservice(argv[0], "pg_controldata-8.1");
-
- progname = get_progname(argv[0]);
-
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_ctl/pg_ctl.c postgresql-8.1.4/src/bin/pg_ctl/pg_ctl.c
---- postgresql-8.1.4.orig/src/bin/pg_ctl/pg_ctl.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_ctl/pg_ctl.c 2006-09-27 21:09:22.000000000 +0200
-@@ -540,7 +540,7 @@
-
- postmaster_path = pg_malloc(MAXPGPATH);
-
-- if ((ret = find_other_exec(argv0, "postmaster", PM_VERSIONSTR,
-+ if ((ret = find_other_exec(argv0, "postmaster-8.1", PM_VERSIONSTR,
- postmaster_path)) < 0)
- {
- char full_path[MAXPGPATH];
-@@ -549,13 +549,13 @@
- StrNCpy(full_path, progname, MAXPGPATH);
-
- if (ret == -1)
-- write_stderr(_("The program \"postmaster\" is needed by %s "
-+ write_stderr(_("The program \"postmaster-8.1\" is needed by %s "
- "but was not found in the\n"
- "same directory as \"%s\".\n"
- "Check your installation.\n"),
- progname, full_path);
- else
-- write_stderr(_("The program \"postmaster\" was found by \"%s\"\n"
-+ write_stderr(_("The program \"postmaster-8.1\" was found by \"%s\"\n"
- "but was not the same version as %s.\n"
- "Check your installation.\n"),
- full_path, progname);
-@@ -1292,7 +1292,7 @@
- #endif
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pg_ctl");
-+ set_pglocale_pgservice(argv[0], "pg_ctl-8.1");
-
- /*
- * save argv[0] so do_start() can look for the postmaster if necessary. we
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_dump/pg_dumpall.c postgresql-8.1.4/src/bin/pg_dump/pg_dumpall.c
---- postgresql-8.1.4.orig/src/bin/pg_dump/pg_dumpall.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_dump/pg_dumpall.c 2006-09-27 21:09:30.000000000 +0200
-@@ -120,7 +120,7 @@
-
- int optindex;
-
-- set_pglocale_pgservice(argv[0], "pg_dump");
-+ set_pglocale_pgservice(argv[0], "pg_dump-8.1");
-
- progname = get_progname(argv[0]);
-
-@@ -138,7 +138,7 @@
- }
- }
-
-- if ((ret = find_other_exec(argv[0], "pg_dump", PG_VERSIONSTR,
-+ if ((ret = find_other_exec(argv[0], "pg_dump-8.1", PG_VERSIONSTR,
- pg_dump_bin)) < 0)
- {
- char full_path[MAXPGPATH];
-@@ -148,14 +148,14 @@
-
- if (ret == -1)
- fprintf(stderr,
-- _("The program \"pg_dump\" is needed by %s "
-+ _("The program \"pg_dump-8.1\" is needed by %s "
- "but was not found in the\n"
- "same directory as \"%s\".\n"
- "Check your installation.\n"),
- progname, full_path);
- else
- fprintf(stderr,
-- _("The program \"pg_dump\" was found by \"%s\"\n"
-+ _("The program \"pg_dump-8.1\" was found by \"%s\"\n"
- "but was not the same version as %s.\n"
- "Check your installation.\n"),
- full_path, progname);
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_dump/pg_dump.c postgresql-8.1.4/src/bin/pg_dump/pg_dump.c
---- postgresql-8.1.4.orig/src/bin/pg_dump/pg_dump.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_dump/pg_dump.c 2006-09-27 21:09:37.000000000 +0200
-@@ -250,7 +250,7 @@
- };
- int optindex;
-
-- set_pglocale_pgservice(argv[0], "pg_dump");
-+ set_pglocale_pgservice(argv[0], "pg_dump-8.1");
-
- g_verbose = false;
-
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_dump/pg_restore.c postgresql-8.1.4/src/bin/pg_dump/pg_restore.c
---- postgresql-8.1.4.orig/src/bin/pg_dump/pg_restore.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_dump/pg_restore.c 2006-09-27 21:09:46.000000000 +0200
-@@ -122,7 +122,7 @@
- {NULL, 0, NULL, 0}
- };
-
-- set_pglocale_pgservice(argv[0], "pg_dump");
-+ set_pglocale_pgservice(argv[0], "pg_dump-8.1");
-
- opts = NewRestoreOptions();
-
-diff -Nru postgresql-8.1.4.orig/src/bin/pg_resetxlog/pg_resetxlog.c postgresql-8.1.4/src/bin/pg_resetxlog/pg_resetxlog.c
---- postgresql-8.1.4.orig/src/bin/pg_resetxlog/pg_resetxlog.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/pg_resetxlog/pg_resetxlog.c 2006-09-27 21:09:51.000000000 +0200
-@@ -85,7 +85,7 @@
- int fd;
- char path[MAXPGPATH];
-
-- set_pglocale_pgservice(argv[0], "pg_resetxlog");
-+ set_pglocale_pgservice(argv[0], "pg_resetxlog-8.1");
-
- progname = get_progname(argv[0]);
-
-diff -Nru postgresql-8.1.4.orig/src/bin/psql/startup.c postgresql-8.1.4/src/bin/psql/startup.c
---- postgresql-8.1.4.orig/src/bin/psql/startup.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/psql/startup.c 2006-09-27 21:10:02.000000000 +0200
-@@ -110,7 +110,7 @@
- char *password_prompt = NULL;
- bool need_pass;
-
-- set_pglocale_pgservice(argv[0], "psql");
-+ set_pglocale_pgservice(argv[0], "psql-8.1");
-
- if (argc > 1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/clusterdb.c postgresql-8.1.4/src/bin/scripts/clusterdb.c
---- postgresql-8.1.4.orig/src/bin/scripts/clusterdb.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/clusterdb.c 2006-09-27 21:10:09.000000000 +0200
-@@ -56,9 +56,9 @@
- char *table = NULL;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "clusterdb", help);
-+ handle_help_version_opts(argc, argv, "clusterdb-8.1", help);
-
- while ((c = getopt_long(argc, argv, "h:p:U:Weqd:at:", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/createdb.c postgresql-8.1.4/src/bin/scripts/createdb.c
---- postgresql-8.1.4.orig/src/bin/scripts/createdb.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/createdb.c 2006-09-27 21:10:15.000000000 +0200
-@@ -60,9 +60,9 @@
- PGresult *result;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "createdb", help);
-+ handle_help_version_opts(argc, argv, "createdb-8.1", help);
-
- while ((c = getopt_long(argc, argv, "h:p:U:WeqO:D:T:E:", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/createlang.c postgresql-8.1.4/src/bin/scripts/createlang.c
---- postgresql-8.1.4.orig/src/bin/scripts/createlang.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/createlang.c 2006-09-27 21:10:20.000000000 +0200
-@@ -53,9 +53,9 @@
- PGresult *result;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "createlang", help);
-+ handle_help_version_opts(argc, argv, "createlang-8.1", help);
-
- while ((c = getopt_long(argc, argv, "lh:p:U:Wd:e", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/createuser.c postgresql-8.1.4/src/bin/scripts/createuser.c
---- postgresql-8.1.4.orig/src/bin/scripts/createuser.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/createuser.c 2006-09-27 21:10:25.000000000 +0200
-@@ -75,9 +75,9 @@
- PGresult *result;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "createuser", help);
-+ handle_help_version_opts(argc, argv, "createuser-8.1", help);
-
- while ((c = getopt_long(argc, argv, "h:p:U:WeqdDsSaArRiIlLc:PEN",
- long_options, &optindex)) != -1)
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/dropdb.c postgresql-8.1.4/src/bin/scripts/dropdb.c
---- postgresql-8.1.4.orig/src/bin/scripts/dropdb.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/dropdb.c 2006-09-27 21:10:31.000000000 +0200
-@@ -51,9 +51,9 @@
- PGresult *result;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "dropdb", help);
-+ handle_help_version_opts(argc, argv, "dropdb-8.1", help);
-
- while ((c = getopt_long(argc, argv, "h:p:U:Weqi", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/droplang.c postgresql-8.1.4/src/bin/scripts/droplang.c
---- postgresql-8.1.4.orig/src/bin/scripts/droplang.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/droplang.c 2006-09-27 21:10:37.000000000 +0200
-@@ -63,9 +63,9 @@
- PGresult *result;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "droplang", help);
-+ handle_help_version_opts(argc, argv, "droplang-8.1", help);
-
- while ((c = getopt_long(argc, argv, "lh:p:U:Wd:e", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/dropuser.c postgresql-8.1.4/src/bin/scripts/dropuser.c
---- postgresql-8.1.4.orig/src/bin/scripts/dropuser.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/dropuser.c 2006-09-27 21:10:43.000000000 +0200
-@@ -51,9 +51,9 @@
- PGresult *result;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "dropuser", help);
-+ handle_help_version_opts(argc, argv, "dropuser-8.1", help);
-
- while ((c = getopt_long(argc, argv, "h:p:U:Weqi", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/reindexdb.c postgresql-8.1.4/src/bin/scripts/reindexdb.c
---- postgresql-8.1.4.orig/src/bin/scripts/reindexdb.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/reindexdb.c 2006-09-27 21:10:47.000000000 +0200
-@@ -65,9 +65,9 @@
- const char *index = NULL;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "reindexdb", help);
-+ handle_help_version_opts(argc, argv, "reindexdb-8.1", help);
-
- /* process command-line options */
- while ((c = getopt_long(argc, argv, "h:p:U:Weqd:ast:i:", long_options, &optindex)) != -1)
-diff -Nru postgresql-8.1.4.orig/src/bin/scripts/vacuumdb.c postgresql-8.1.4/src/bin/scripts/vacuumdb.c
---- postgresql-8.1.4.orig/src/bin/scripts/vacuumdb.c 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/bin/scripts/vacuumdb.c 2006-09-27 21:10:52.000000000 +0200
-@@ -64,9 +64,9 @@
- bool verbose = false;
-
- progname = get_progname(argv[0]);
-- set_pglocale_pgservice(argv[0], "pgscripts");
-+ set_pglocale_pgservice(argv[0], "pgscripts-8.1");
-
-- handle_help_version_opts(argc, argv, "vacuumdb", help);
-+ handle_help_version_opts(argc, argv, "vacuumdb-8.1", help);
-
- while ((c = getopt_long(argc, argv, "h:p:U:Weqd:zat:fv", long_options, &optindex)) != -1)
- {
-diff -Nru postgresql-8.1.4.orig/src/interfaces/ecpg/compatlib/Makefile postgresql-8.1.4/src/interfaces/ecpg/compatlib/Makefile
---- postgresql-8.1.4.orig/src/interfaces/ecpg/compatlib/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/ecpg/compatlib/Makefile 2006-09-27 20:57:40.000000000 +0200
-@@ -13,14 +13,16 @@
- include $(top_builddir)/src/Makefile.global
-
- NAME= ecpg_compat
--SO_MAJOR_VERSION= 2
-+SO_MAJOR_VERSION= 8
- SO_MINOR_VERSION= 1
- DLTYPE= library
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-+
- override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \
- -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
- override CFLAGS += $(PTHREAD_CFLAGS)
--SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
-+SHLIB_LINK = -L../ecpglib -lecpg-8.1 -L../pgtypeslib -lpgtypes-8.1 $(libpq) \
- $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
-
- OBJS= informix.o
-diff -Nru postgresql-8.1.4.orig/src/interfaces/ecpg/ecpglib/Makefile postgresql-8.1.4/src/interfaces/ecpg/ecpglib/Makefile
---- postgresql-8.1.4.orig/src/interfaces/ecpg/ecpglib/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/ecpg/ecpglib/Makefile 2006-09-27 20:55:35.000000000 +0200
-@@ -13,22 +13,24 @@
- include $(top_builddir)/src/Makefile.global
-
- NAME= ecpg
--SO_MAJOR_VERSION= 5
-+SO_MAJOR_VERSION= 8
- SO_MINOR_VERSION= 1
- DLTYPE= library
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-+
- override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
- -I$(libpq_srcdir) -I$(top_builddir)/src/port $(CPPFLAGS)
- override CFLAGS += $(PTHREAD_CFLAGS)
-
- # Need to recompile any libpgport object files
--LIBS := $(filter-out -lpgport, $(LIBS))
-+LIBS := $(filter-out -lpgport-8.1, $(LIBS))
-
- OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
- connect.o misc.o path.o exec.o \
- $(filter snprintf.o, $(LIBOBJS))
-
--SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
-+SHLIB_LINK = -L../pgtypeslib -lpgtypes-8.1 $(libpq) \
- $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
-
- ifeq ($(PORTNAME), win32)
-diff -Nru postgresql-8.1.4.orig/src/interfaces/ecpg/pgtypeslib/Makefile postgresql-8.1.4/src/interfaces/ecpg/pgtypeslib/Makefile
---- postgresql-8.1.4.orig/src/interfaces/ecpg/pgtypeslib/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/ecpg/pgtypeslib/Makefile 2006-09-27 20:55:46.000000000 +0200
-@@ -13,16 +13,18 @@
- include $(top_builddir)/src/Makefile.global
-
- NAME= pgtypes
--SO_MAJOR_VERSION= 2
-+SO_MAJOR_VERSION= 8
- SO_MINOR_VERSION= 1
- DLTYPE= library
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-+
- override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
- -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS)
- override CFLAGS += $(PTHREAD_CFLAGS)
-
- # Need to recompile any libpgport object files
--LIBS := $(filter-out -lpgport, $(LIBS))
-+LIBS := $(filter-out -lpgport-8.1, $(LIBS))
-
- SHLIB_LINK += -lm
-
-diff -Nru postgresql-8.1.4.orig/src/interfaces/ecpg/preproc/Makefile postgresql-8.1.4/src/interfaces/ecpg/preproc/Makefile
---- postgresql-8.1.4.orig/src/interfaces/ecpg/preproc/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/ecpg/preproc/Makefile 2006-09-26 16:17:07.000000000 +0200
-@@ -13,10 +13,12 @@
- top_builddir = ../../../..
- include $(top_builddir)/src/Makefile.global
-
--MAJOR_VERSION= 4
-+MAJOR_VERSION= 8
- MINOR_VERSION= 1
- PATCHLEVEL=1
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-+
- override CPPFLAGS := -I$(srcdir)/../include -I$(srcdir) $(CPPFLAGS) \
- -DMAJOR_VERSION=$(MAJOR_VERSION) \
- -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
-diff -Nru postgresql-8.1.4.orig/src/interfaces/ecpg/test/Makefile postgresql-8.1.4/src/interfaces/ecpg/test/Makefile
---- postgresql-8.1.4.orig/src/interfaces/ecpg/test/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/ecpg/test/Makefile 2006-09-27 20:58:16.000000000 +0200
-@@ -19,10 +19,10 @@
- all: $(TESTS)
-
- %: %.o
-- $(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lpq $(PTHREAD_LIBS) -o $@
-+ $(CC) $(CFLAGS) $(LDFLAGS) -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes-8.1 -lecpg-8.1 -lpq-8.1 $(PTHREAD_LIBS) -o $@
-
- test_informix: test_informix.o
-- $(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes -lecpg -lecpg_compat -lpq $(PTHREAD_LIBS) -o $@
-+ $(CC) $(CFLAGS) $(LDFLAGS) -L../compatlib -L../ecpglib -L ../pgtypeslib -L../../libpq $^ $(LIBS) -lpgtypes-8.1 -lecpg-8.1 -lecpg_compat-8.1 -lpq-8.1 $(PTHREAD_LIBS) -o $@
-
- %.c: %.pgc
- $(ECPG) -o $@ -I$(srcdir) $<
-diff -Nru postgresql-8.1.4.orig/src/interfaces/Makefile postgresql-8.1.4/src/interfaces/Makefile
---- postgresql-8.1.4.orig/src/interfaces/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/interfaces/Makefile 2006-09-26 16:17:07.000000000 +0200
-@@ -12,7 +12,7 @@
- top_builddir = ../..
- include $(top_builddir)/src/Makefile.global
-
--DIRS := libpq ecpg
-+DIRS := ecpg
-
- ALLDIRS := $(DIRS)
-
-diff -Nru postgresql-8.1.4.orig/src/Makefile postgresql-8.1.4/src/Makefile
---- postgresql-8.1.4.orig/src/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/Makefile 2006-09-26 16:17:07.000000000 +0200
-@@ -18,7 +18,6 @@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
- $(MAKE) -C backend/utils/mb/conversion_procs $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -47,7 +46,6 @@
- $(MAKE) -C port $@
- $(MAKE) -C timezone $@
- $(MAKE) -C backend $@
-- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
- $(MAKE) -C bin $@
- $(MAKE) -C pl $@
-@@ -61,7 +59,6 @@
- -$(MAKE) -C port $@
- -$(MAKE) -C timezone $@
- -$(MAKE) -C backend $@
-- -$(MAKE) -C include $@
- -$(MAKE) -C interfaces $@
- -$(MAKE) -C bin $@
- -$(MAKE) -C pl $@
-diff -Nru postgresql-8.1.4.orig/src/Makefile.global.in postgresql-8.1.4/src/Makefile.global.in
---- postgresql-8.1.4.orig/src/Makefile.global.in 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/Makefile.global.in 2006-09-27 20:53:26.000000000 +0200
-@@ -73,14 +73,14 @@
- datadir := @datadir@
- ifeq "$(findstring pgsql, $(datadir))" ""
- ifeq "$(findstring postgres, $(datadir))" ""
--override datadir := $(datadir)/postgresql
-+override datadir := $(datadir)/postgresql-8.1
- endif
- endif
-
- sysconfdir := @sysconfdir@
- ifeq "$(findstring pgsql, $(sysconfdir))" ""
- ifeq "$(findstring postgres, $(sysconfdir))" ""
--override sysconfdir := $(sysconfdir)/postgresql
-+override sysconfdir := $(sysconfdir)/postgresql-8.1
- endif
- endif
-
-@@ -89,7 +89,7 @@
- pkglibdir = $(libdir)
- ifeq "$(findstring pgsql, $(pkglibdir))" ""
- ifeq "$(findstring postgres, $(pkglibdir))" ""
--override pkglibdir := $(pkglibdir)/postgresql
-+override pkglibdir := $(pkglibdir)/postgresql-8.1
- endif
- endif
-
-@@ -332,8 +332,8 @@
-
- # This is for use for libraries linking to libpq. Because libpqport
- # isn't created with the same link flags as libpq, it can't be used.
--libpq = -L$(libpq_builddir) -lpq
--
-+libpq = -L$(libpq_builddir) -lpq-8.1
-+
- # If doing static linking, shared library dependency can't be
- # used so we specify pthread libs for every usage of libpq
- ifeq ($(enable_shared), no)
-@@ -353,9 +353,9 @@
- # pgport before libpq. This does cause duplicate -lpgport's to appear
- # on client link lines.
- ifdef PGXS
--libpq_pgport = -L$(libdir) -lpgport $(libpq)
-+libpq_pgport = -L$(libdir) -lpgport-8.1 $(libpq)
- else
--libpq_pgport = -L$(top_builddir)/src/port -lpgport $(libpq)
-+libpq_pgport = -L$(top_builddir)/src/port -lpgport-8.1 $(libpq)
- endif
-
-
-@@ -413,7 +413,7 @@
-
- LIBOBJS = @LIBOBJS@ copydir.o dirmod.o exec.o noblock.o path.o pipe.o pgsleep.o pgstrcasecmp.o sprompt.o thread.o
-
--LIBS := -lpgport $(LIBS)
-+LIBS := -lpgport-8.1 $(LIBS)
- # add location of libpgport.a to LDFLAGS
- ifdef PGXS
- override LDFLAGS := -L$(libdir) $(LDFLAGS)
-diff -Nru postgresql-8.1.4.orig/src/Makefile.shlib postgresql-8.1.4/src/Makefile.shlib
---- postgresql-8.1.4.orig/src/Makefile.shlib 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/Makefile.shlib 2006-09-26 16:17:07.000000000 +0200
-@@ -366,10 +366,10 @@
- install-lib: install-lib-static install-lib-shared
-
- install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
- ifeq ($(PORTNAME), darwin)
- cd $(DESTDIR)$(libdir) && \
-- ranlib lib$(NAME).a
-+ ranlib lib$(NAME_STATIC_LIB).a
- endif
-
- ifeq ($(enable_shared), yes)
-diff -Nru postgresql-8.1.4.orig/src/nls-global.mk postgresql-8.1.4/src/nls-global.mk
---- postgresql-8.1.4.orig/src/nls-global.mk 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/nls-global.mk 2006-09-26 16:17:07.000000000 +0200
-@@ -65,7 +65,7 @@
- install-po: all-po installdirs-po
- ifneq (,$(LANGUAGES))
- for lang in $(LANGUAGES); do \
-- $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
-+ $(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME)-8.1.mo || exit 1; \
- done
- endif
-
-diff -Nru postgresql-8.1.4.orig/src/port/Makefile postgresql-8.1.4/src/port/Makefile
---- postgresql-8.1.4.orig/src/port/Makefile 2006-09-25 18:18:44.000000000 +0200
-+++ postgresql-8.1.4/src/port/Makefile 2006-09-26 18:56:45.000000000 +0200
-@@ -33,7 +33,7 @@
-
- # libpgport is needed by some contrib
- install: all
-- $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(libdir)
-+ $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(libdir)/libpgport-8.1.a
-
- uninstall:
- $(RM) $(DESTDIR)$(libdir)/libpgport.a
-diff -Nru postgresql-8.1.4.orig/src/test/regress/pg_regress.sh postgresql-8.1.4/src/test/regress/pg_regress.sh
---- postgresql-8.1.4.orig/src/test/regress/pg_regress.sh 2005-11-01 16:09:11.000000000 +0100
-+++ postgresql-8.1.4/src/test/regress/pg_regress.sh 2006-09-28 00:40:43.000000000 +0200
-@@ -410,7 +410,7 @@
- message "initializing database system"
- [ "$debug" = yes ] && initdb_options="--debug"
- [ "$nolocale" = yes ] && initdb_options="$initdb_options --no-locale"
-- "$bindir/initdb" -D "$PGDATA" -L "$datadir" --noclean $initdb_options >"$LOGDIR/initdb.log" 2>&1
-+ "$bindir/initdb-8.1" -D "$PGDATA" -L "$datadir" --noclean $initdb_options >"$LOGDIR/initdb.log" 2>&1
-
- if [ $? -ne 0 ]
- then
-@@ -433,7 +433,7 @@
- else
- postmaster_options="$postmaster_options -c listen_addresses="
- fi
-- "$bindir/postmaster" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 &
-+ "$bindir/postmaster-8.1" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 &
- postmaster_pid=$!
-
- # Wait till postmaster is able to accept connections (normally only
-@@ -441,7 +441,7 @@
- # wait forever, however.
- i=0
- max=60
-- until "$bindir/psql" -X $psql_options postgres </dev/null 2>/dev/null
-+ until "$bindir/psql-8.1" -X $psql_options postgres </dev/null 2>/dev/null
- do
- i=`expr $i + 1`
- if [ $i -ge $max ]
-@@ -498,7 +498,7 @@
- fi
-
- message "dropping database \"$dbname\""
-- "$bindir/dropdb" $psql_options "$dbname"
-+ "$bindir/dropdb-8.1" $psql_options "$dbname"
- # errors can be ignored
- fi
-
-@@ -507,7 +507,7 @@
- # Set up SQL shell for the test.
- # ----------
-
--PSQL="$bindir/psql -a -q -X $psql_options"
-+PSQL="$bindir/psql-8.1 -a -q -X $psql_options"
-
-
- # ----------
-@@ -538,13 +538,13 @@
- # ----------
-
- message "creating database \"$dbname\""
--"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
-+"$bindir/createdb-8.1" $encoding_opt $psql_options --template template0 "$dbname"
- if [ $? -ne 0 ]; then
- echo "$me: createdb failed"
- (exit 2); exit
- fi
-
--"$bindir/psql" -q -X $psql_options -c "\
-+"$bindir/psql-8.1" -q -X $psql_options -c "\
- alter database \"$dbname\" set lc_messages to 'C';
- alter database \"$dbname\" set lc_monetary to 'C';
- alter database \"$dbname\" set lc_numeric to 'C';
-@@ -560,7 +560,7 @@
- # ----------
-
- message "dropping regression test user accounts"
--"$bindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
-+"$bindir/psql-8.1" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
- if [ $? -eq 2 ]; then
- echo "$me: could not drop user accounts"
- (exit 2); exit
-@@ -575,7 +575,7 @@
- for lang in xyzzy $load_langs ; do
- if [ "$lang" != "xyzzy" ]; then
- message "installing $lang"
-- "$bindir/createlang" $psql_options $lang $dbname
-+ "$bindir/createlang-8.1" $psql_options $lang $dbname
- if [ $? -ne 0 ] && [ $? -ne 2 ]; then
- echo "$me: createlang $lang failed"
- (exit 2); exit
-@@ -738,7 +738,7 @@
-
- if [ -n "$postmaster_pid" ]; then
- message "shutting down postmaster"
-- "$bindir/pg_ctl" -s -D "$PGDATA" stop
-+ "$bindir/pg_ctl-8.1" -s -D "$PGDATA" stop
- wait "$postmaster_pid"
- unset postmaster_pid
- fi
diff --git a/dev-db/postgresql/files/postgresql-8.1-regress_fix.patch b/dev-db/postgresql/files/postgresql-8.1-regress_fix.patch
deleted file mode 100644
index 0cb39d5..0000000
--- a/dev-db/postgresql/files/postgresql-8.1-regress_fix.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- src/test/regress/sql/interval.sql 2006-08-05 14:45:52.000000000 +0200
-+++ src/test/regress/sql/interval.sql 2006-08-05 14:46:15.000000000 +0200
-@@ -61,12 +61,6 @@
-
- SELECT '' AS ten, * FROM INTERVAL_TBL;
-
---- test avg(interval), which is somewhat fragile since people have been
---- known to change the allowed input syntax for type interval without
---- updating pg_aggregate.agginitval
--
--select avg(f1) from interval_tbl;
--
- -- test long interval input
- select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval;
-
---- src/test/regress/expected/interval.out 2006-08-05 14:46:23.000000000 +0200
-+++ src/test/regress/expected/interval.out 2006-08-05 14:46:51.000000000 +0200
-@@ -212,15 +212,6 @@
- | @ 5 mons 12 hours
- (10 rows)
-
---- test avg(interval), which is somewhat fragile since people have been
---- known to change the allowed input syntax for type interval without
---- updating pg_aggregate.agginitval
--select avg(f1) from interval_tbl;
-- avg
---------------------------------------------------
-- @ 4 years 1 mon 9 days 28 hours 18 mins 23 secs
--(1 row)
--
- -- test long interval input
- select '4 millenniums 5 centuries 4 decades 1 year 4 months 4 days 17 minutes 31 seconds'::interval;
- interval
diff --git a/dev-db/postgresql/files/postgresql-8.1-regress_su.patch b/dev-db/postgresql/files/postgresql-8.1-regress_su.patch
deleted file mode 100644
index 7783c60..0000000
--- a/dev-db/postgresql/files/postgresql-8.1-regress_su.patch
+++ /dev/null
@@ -1,116 +0,0 @@
---- src/test/regress/pg_regress.sh 2006-08-01 10:57:17.000000000 +0200
-+++ src/test/regress/pg_regress.sh 2006-08-04 00:14:39.000000000 +0200
-@@ -81,8 +81,8 @@
- # Initialize default settings
- # ----------
-
--: ${inputdir=.}
--: ${outputdir=.}
-+: ${inputdir=PORTAGETEMPDIRPG}
-+: ${outputdir=PORTAGETEMPDIRPG}
-
- libdir='@libdir@'
- bindir='@bindir@'
-@@ -410,7 +410,8 @@
- message "initializing database system"
- [ "$debug" = yes ] && initdb_options="--debug"
- [ "$nolocale" = yes ] && initdb_options="$initdb_options --no-locale"
-- "$bindir/initdb" -D "$PGDATA" -L "$datadir" --noclean $initdb_options >"$LOGDIR/initdb.log" 2>&1
-+ chown portage "${datadir}" "${temp_install}" "${inputdir}/testtablespace"
-+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/initdb -D '$PGDATA' -L '$datadir' --noclean $initdb_options" >"$LOGDIR/initdb.log" 2>&1
-
- if [ $? -ne 0 ]
- then
-@@ -433,7 +434,7 @@
- else
- postmaster_options="$postmaster_options -c listen_addresses="
- fi
-- "$bindir/postmaster" -D "$PGDATA" -F $postmaster_options >"$LOGDIR/postmaster.log" 2>&1 &
-+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/postmaster -D '$PGDATA' -F $postmaster_options" >"$LOGDIR/postmaster.log" 2>&1 &
- postmaster_pid=$!
-
- # Wait till postmaster is able to accept connections (normally only
-@@ -441,7 +442,7 @@
- # wait forever, however.
- i=0
- max=60
-- until "$bindir/psql" -X $psql_options postgres </dev/null 2>/dev/null
-+ until su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/psql -X $psql_options postgres </dev/null 2>/dev/null"
- do
- i=`expr $i + 1`
- if [ $i -ge $max ]
-@@ -498,7 +499,7 @@
- fi
-
- message "dropping database \"$dbname\""
-- "$bindir/dropdb" $psql_options "$dbname"
-+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='ISO, MDY' $bindir/dropdb $psql_options '$dbname'"
- # errors can be ignored
- fi
-
-@@ -538,17 +539,17 @@
- # ----------
-
- message "creating database \"$dbname\""
--"$bindir/createdb" $encoding_opt $psql_options --template template0 "$dbname"
-+su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/createdb $encoding_opt $psql_options --template template0 '$dbname'"
- if [ $? -ne 0 ]; then
- echo "$me: createdb failed"
- (exit 2); exit
- fi
-
--"$bindir/psql" -q -X $psql_options -c "\
-+su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/psql -q -X $psql_options -c \"\
- alter database \"$dbname\" set lc_messages to 'C';
- alter database \"$dbname\" set lc_monetary to 'C';
- alter database \"$dbname\" set lc_numeric to 'C';
--alter database \"$dbname\" set lc_time to 'C';" "$dbname"
-+alter database \"$dbname\" set lc_time to 'C';\" '$dbname'"
- if [ $? -ne 0 ]; then
- echo "$me: could not set database default locales"
- (exit 2); exit
-@@ -560,7 +561,7 @@
- # ----------
-
- message "dropping regression test user accounts"
--"$bindir/psql" -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' $dbname 2>/dev/null
-+su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/psql -q -X $psql_options -c 'DROP GROUP regressgroup1; DROP GROUP regressgroup2; DROP USER regressuser1, regressuser2, regressuser3, regressuser4;' '$dbname' 2>/dev/null"
- if [ $? -eq 2 ]; then
- echo "$me: could not drop user accounts"
- (exit 2); exit
-@@ -575,7 +576,7 @@
- for lang in xyzzy $load_langs ; do
- if [ "$lang" != "xyzzy" ]; then
- message "installing $lang"
-- "$bindir/createlang" $psql_options $lang $dbname
-+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/createlang $psql_options $lang '$dbname'"
- if [ $? -ne 0 ] && [ $? -ne 2 ]; then
- echo "$me: createlang $lang failed"
- (exit 2); exit
-@@ -635,7 +636,7 @@
- # Run a single test
- formatted=`echo $1 | awk '{printf "%-20.20s", $1;}'`
- $ECHO_N "test $formatted ... $ECHO_C"
-- ( $PSQL -d "$dbname" <"$inputdir/sql/$1.sql" >"$outputdir/results/$1.out" 2>&1 )&
-+ ( su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' ${PSQL} -d '${dbname}' < '${inputdir}/sql/${1}.sql' > '${outputdir}/results/${1}.out' 2>&1" )&
- wait
- else
- # Start a parallel group
-@@ -646,7 +647,7 @@
- fi
- for name do
- (
-- $PSQL -d "$dbname" <"$inputdir/sql/$name.sql" >"$outputdir/results/$name.out" 2>&1
-+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' ${PSQL} -d '${dbname}' < '${inputdir}/sql/${name}.sql' > '${outputdir}/results/${name}.out' 2>&1"
- $ECHO_N " $name$ECHO_C"
- ) &
- if [ $maxconnections -gt 0 ] ; then
-@@ -738,7 +739,7 @@
-
- if [ -n "$postmaster_pid" ]; then
- message "shutting down postmaster"
-- "$bindir/pg_ctl" -s -D "$PGDATA" stop
-+ su -s /bin/sh -l portage -c "PGTZ='PST8PDT' PGDATESTYLE='Postgres, MDY' $bindir/pg_ctl -s -D '$PGDATA' stop"
- wait "$postmaster_pid"
- unset postmaster_pid
- fi
diff --git a/dev-db/postgresql/files/postgresql.conf-7.3 b/dev-db/postgresql/files/postgresql.conf-7.3
deleted file mode 100644
index 2ce4491..0000000
--- a/dev-db/postgresql/files/postgresql.conf-7.3
+++ /dev/null
@@ -1,13 +0,0 @@
-# PostgreSQL's Database Directory
-PGDATA="/var/lib/postgresql/data"
-
-# Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!)
-PGLOG="/var/lib/postgresql/data/postgresql.log"
-
-# PostgreSQL User
-PGUSER="postgres"
-
-# Extra options to run postmaster with
-# If you want to enable TCP/IP for PostgreSQL, add -i, like the following:
-# PGOPTS="-N 1024 -B 2048 -i"
-PGOPTS=""
diff --git a/dev-db/postgresql/files/postgresql.conf-7.4 b/dev-db/postgresql/files/postgresql.conf-7.4
deleted file mode 100644
index 2ce4491..0000000
--- a/dev-db/postgresql/files/postgresql.conf-7.4
+++ /dev/null
@@ -1,13 +0,0 @@
-# PostgreSQL's Database Directory
-PGDATA="/var/lib/postgresql/data"
-
-# Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!)
-PGLOG="/var/lib/postgresql/data/postgresql.log"
-
-# PostgreSQL User
-PGUSER="postgres"
-
-# Extra options to run postmaster with
-# If you want to enable TCP/IP for PostgreSQL, add -i, like the following:
-# PGOPTS="-N 1024 -B 2048 -i"
-PGOPTS=""
diff --git a/dev-db/postgresql/files/postgresql.init-7.3 b/dev-db/postgresql/files/postgresql.init-7.3
deleted file mode 100644
index 5157d65..0000000
--- a/dev-db/postgresql/files/postgresql.init-7.3
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-opts="${opts} reload"
-
-depend() {
- use net
-}
-
-checkconfig() {
- if [ ! -d "$PGDATA" ] ; then
- eerror "Directory not found: $PGDATA"
- eerror "You must create the $PGDATA directory first!"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting PostgreSQL"
-
- if [ -f "$PGDATA/postmaster.pid" ] ; then
- rm -f "$PGDATA/postmaster.pid"
- fi
-
- su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'"
-
- while :
- do
- cnt=$(($cnt + 1))
- if [ -f "$PGDATA/postmaster.pid" ] ; then
- ret=0
- break
- fi
-
- if [ $cnt -eq 30 ] ; then
- eerror
- eerror "Please check the $PGLOG log file for errors."
- eerror
- ret=1
- break
- fi
- sleep 1
- done
- eend $ret
-}
-
-stop() {
- ebegin "Stopping PostgreSQL"
- su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast"
- eend $?
-}
-
-svc_restart() {
- ebegin "Restarting PostgreSQL"
- su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -l '$PGLOG' -o '$PGOPTS'"
- eend $?
-}
-
-reload() {
- ebegin "Reloading PostgreSQL configuration"
- su - $PGUSER -c "/usr/bin/pg_ctl reload -D '$PGDATA' -s"
- eend $?
-}
diff --git a/dev-db/postgresql/files/postgresql.init-7.4 b/dev-db/postgresql/files/postgresql.init-7.4
deleted file mode 100644
index 5157d65..0000000
--- a/dev-db/postgresql/files/postgresql.init-7.4
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-opts="${opts} reload"
-
-depend() {
- use net
-}
-
-checkconfig() {
- if [ ! -d "$PGDATA" ] ; then
- eerror "Directory not found: $PGDATA"
- eerror "You must create the $PGDATA directory first!"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting PostgreSQL"
-
- if [ -f "$PGDATA/postmaster.pid" ] ; then
- rm -f "$PGDATA/postmaster.pid"
- fi
-
- su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'"
-
- while :
- do
- cnt=$(($cnt + 1))
- if [ -f "$PGDATA/postmaster.pid" ] ; then
- ret=0
- break
- fi
-
- if [ $cnt -eq 30 ] ; then
- eerror
- eerror "Please check the $PGLOG log file for errors."
- eerror
- ret=1
- break
- fi
- sleep 1
- done
- eend $ret
-}
-
-stop() {
- ebegin "Stopping PostgreSQL"
- su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast"
- eend $?
-}
-
-svc_restart() {
- ebegin "Restarting PostgreSQL"
- su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -l '$PGLOG' -o '$PGOPTS'"
- eend $?
-}
-
-reload() {
- ebegin "Reloading PostgreSQL configuration"
- su - $PGUSER -c "/usr/bin/pg_ctl reload -D '$PGDATA' -s"
- eend $?
-}
diff --git a/dev-db/postgresql/postgresql-7.3.17.ebuild b/dev-db/postgresql/postgresql-7.3.17.ebuild
new file mode 100644
index 0000000..a3f1444
--- /dev/null
+++ b/dev-db/postgresql/postgresql-7.3.17.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+DESCRIPTION="Meta package for PostgreSQL sophisticated and powerful Object-Relational DBMS"
+HOMEPAGE="http://www.postgresql.org/"
+
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="client server doc"
+
+RDEPEND="
+ ~dev-db/postgresql-libs-${PV}
+ client? ( ~dev-db/postgresql-client-${PV} )
+ server? ( ~dev-db/postgresql-server-${PV} )
+ doc? ( ~dev-db/postgresql-docs-${PV} )
+"
+
diff --git a/dev-db/postgresql/postgresql-7.4.15.ebuild b/dev-db/postgresql/postgresql-7.4.15.ebuild
new file mode 100644
index 0000000..a3f1444
--- /dev/null
+++ b/dev-db/postgresql/postgresql-7.4.15.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+DESCRIPTION="Meta package for PostgreSQL sophisticated and powerful Object-Relational DBMS"
+HOMEPAGE="http://www.postgresql.org/"
+
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="client server doc"
+
+RDEPEND="
+ ~dev-db/postgresql-libs-${PV}
+ client? ( ~dev-db/postgresql-client-${PV} )
+ server? ( ~dev-db/postgresql-server-${PV} )
+ doc? ( ~dev-db/postgresql-docs-${PV} )
+"
+
diff --git a/dev-db/postgresql/postgresql-8.0.10.ebuild b/dev-db/postgresql/postgresql-8.0.10.ebuild
new file mode 100644
index 0000000..a3f1444
--- /dev/null
+++ b/dev-db/postgresql/postgresql-8.0.10.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+DESCRIPTION="Meta package for PostgreSQL sophisticated and powerful Object-Relational DBMS"
+HOMEPAGE="http://www.postgresql.org/"
+
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="client server doc"
+
+RDEPEND="
+ ~dev-db/postgresql-libs-${PV}
+ client? ( ~dev-db/postgresql-client-${PV} )
+ server? ( ~dev-db/postgresql-server-${PV} )
+ doc? ( ~dev-db/postgresql-docs-${PV} )
+"
+
diff --git a/dev-db/postgresql/postgresql-8.0.8-r1.ebuild b/dev-db/postgresql/postgresql-8.0.8-r1.ebuild
deleted file mode 100644
index 5c336f9..0000000
--- a/dev-db/postgresql/postgresql-8.0.8-r1.ebuild
+++ /dev/null
@@ -1,246 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils gnuconfig flag-o-matic multilib toolchain-funcs
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-DESCRIPTION="Sophisticated and powerful Object-Relational DBMS."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2
- mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2
- doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 )
- test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )"
-LICENSE="POSTGRESQL"
-SLOT="0"
-IUSE="doc kerberos nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib"
-
-RDEPEND="~dev-db/libpq-${PV}
- >=sys-libs/ncurses-5.2
- kerberos? ( virtual/krb5 )
- pam? ( virtual/pam )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
- readline? ( >=sys-libs/readline-4.1 )
- selinux? ( sec-policy/selinux-postgresql )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- tcl? ( >=dev-lang/tcl-8 )
- xml? ( dev-libs/libxml2 dev-libs/libxslt )
- zlib? ( >=sys-libs/zlib-1.1.3 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )
- xml? ( dev-util/pkgconfig )"
-
-PG_DIR="/var/lib/postgresql"
-
-pkg_setup() {
- if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then
- PG_MAJOR=`cat "${PG_DIR}/data/PG_VERSION" | cut -f1 -d.`
- PG_MINOR=`cat "${PG_DIR}/data/PG_VERSION" | cut -f2 -d.`
- if [ ${PG_MAJOR} -lt 8 ] || [ ${PG_MAJOR} -eq 8 -a ${PG_MINOR} -lt 0 ] ; then
- eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
- eerror "use pg_dump to export your existing databases to a file, and then"
- eerror "pg_restore to import them when you have upgraded completely."
- eerror "You must remove your entire database directory to continue."
- eerror "(database directory = ${PG_DIR})."
- die "Remove your database directory to continue"
- fi
- fi
- enewgroup postgres 70
- enewuser postgres 70 /bin/bash /var/lib postgres
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-${PV%.*}-gentoo.patch"
- epatch "${FILESDIR}/${PN}-${PV%.*}-sh.patch"
-
- # Prepare package for future tests
- if use test ; then
- # Fix sandbox violation
- sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
-
- # We need to run the tests as a non-root user, portage seems the most fitting here,
- # so if userpriv is enabled, we use it directly. If userpriv is disabled, well, we
- # don't support that in this version of PostgreSQL ... :)
- mkdir -p "${S}/src/test/regress/tmp_check"
- chown portage "${S}/src/test/regress/tmp_check"
- einfo "Tests will be run as user portage."
- fi
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # TODO: test if PPC really cannot work with other CFLAGS settings
- # use ppc && CFLAGS="-pipe -fsigned-char"
-
- cd "${S}"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/pgsql \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- $(use_with perl) \
- $(use_enable pg-intdatetime integer-datetimes ) \
- $(use_with python) \
- $(use_with readline) \
- $(use_with ssl openssl) \
- $(use_with tcl) \
- $(use_with zlib) \
- || die "configure failed"
-
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed"
-
- cd "${S}/contrib"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed"
-
- if use xml ; then
- cd "${S}/contrib/xml2"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed"
- fi
-}
-
-src_install() {
- if use perl ; then
- mv -f "${S}/src/pl/plperl/Makefile" "${S}/src/pl/plperl/Makefile_orig"
- sed -e "s:(INST_DYNAMIC) /usr/lib:(INST_DYNAMIC) ${D}/usr/lib:" \
- "${S}/src/pl/plperl/Makefile_orig" > "${S}/src/pl/plperl/Makefile"
- mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
- sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
- "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
- fi
-
- cd "${S}"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed"
-
- cd "${S}/contrib"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed"
-
- if use xml ; then
- cd "${S}/contrib/xml2"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed"
- fi
-
- cd "${S}"
- dodoc README HISTORY
- dodoc contrib/adddepend/*
-
- cd "${S}/doc"
- dodoc FAQ* README.* TODO bug.template
-
- if use doc ; then
- cd "${S}/doc"
- docinto FAQ_html
- dodoc src/FAQ/*
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto TODO.detail
- dodoc TODO.detail/*
- fi
-
- newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql || die "Inserting init.d-file failed"
- newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql || die "Inserting conf.d-file failed"
-
- newinitd "${FILESDIR}/pg_autovacuum.init-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum init.d-file failed"
- newconfd "${FILESDIR}/pg_autovacuum.conf-${PV%.*}" pg_autovacuum || die "Inserting pg_autovacuum conf.d-file failed"
- dosed "s:___DOCDIR___:/usr/share/doc/${PF}:" /etc/init.d/pg_autovacuum
-}
-
-pkg_postinst() {
- elog "Execute the following command to setup the initial database environment:"
- elog
- elog "emerge --config =${PF}"
-}
-
-pkg_config() {
- einfo "Creating the data directory ..."
- mkdir -p "${PG_DIR}/data"
- chown -Rf postgres:postgres "${PG_DIR}"
- chmod 0700 "${PG_DIR}/data"
-
- einfo "Initializing the database ..."
- if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then
- eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
- eerror "You must remove your entire database directory to continue."
- eerror "(database directory = ${PG_DIR})."
- die "Remove your database directory to continue"
- else
- if use kernel_linux ; then
- local SEM=`sysctl -n kernel.sem | cut -f-3`
- local SEMMNI=`sysctl -n kernel.sem | cut -f4`
- local SEMMNI_MIN=`expr \( ${MAX_CONNECTIONS} + 15 \) / 16`
- local SHMMAX=`sysctl -n kernel.shmmax`
- local SHMMAX_MIN=`expr 250000 + 8200 \* 1000 + 14200 \* 100`
-
- if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
- eerror "The current value of SEMMNI is too low"
- eerror "for PostgreSQL to run ${MAX_CONNECTIONS} connections!"
- eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
- echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
- fi
- su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data"
-
- if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
- echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
- ewarn "Restoring the SEMMNI value to the previous value."
- ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
- ewarn "and set it to at least ${SEMMNI_MIN}:"
- ewarn
- ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
- ewarn
- fi
-
- if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
- eerror "The current value of SHMMAX is too low for postgresql to run."
- eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
- eerror
- eerror " kernel.shmmax = ${SHMMAX_MIN}"
- eerror
- fi
- else
- su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data"
- fi
-
- einfo
- einfo "You can use the '${ROOT}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'."
- einfo
- fi
-}
-
-src_test() {
- cd "${S}"
-
- einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
- if hasq userpriv ${FEATURES} ; then
- if ! emake -j1 check ; then
- hasq test ${FEATURES} && die "Make check failed. See above for details."
- hasq test ${FEATURES} || eerror "Make check failed. See above for details."
- fi
- else
- eerror "Tests won't be run if FEATURES=userpriv is disabled!"
- fi
-
- einfo "Yes, there are other tests which could be run."
- einfo "... and no, we don't plan to add/support them."
- einfo "For now, the main regressions tests will suffice."
- einfo "If you think other tests are necessary, please submit a"
- einfo "bug including a patch for this ebuild to enable them."
-}
diff --git a/dev-db/postgresql/postgresql-8.1.4-r1.ebuild b/dev-db/postgresql/postgresql-8.1.4-r1.ebuild
deleted file mode 100644
index 83cd239..0000000
--- a/dev-db/postgresql/postgresql-8.1.4-r1.ebuild
+++ /dev/null
@@ -1,272 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils gnuconfig flag-o-matic multilib toolchain-funcs
-
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-DESCRIPTION="Sophisticated and powerful Object-Relational DBMS."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/${PN}-base-${PV}.tar.bz2
- mirror://postgresql/source/v${PV}/${PN}-opt-${PV}.tar.bz2
- doc? ( mirror://postgresql/source/v${PV}/${PN}-docs-${PV}.tar.bz2 )
- test? ( mirror://postgresql/source/v${PV}/${PN}-test-${PV}.tar.bz2 )"
-LICENSE="POSTGRESQL"
-SLOT="8.1"
-IUSE="doc kerberos nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib"
-
-RDEPEND="~dev-db/libpq-${PV}
- >=sys-libs/ncurses-5.2
- kerberos? ( virtual/krb5 )
- pam? ( virtual/pam )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
- readline? ( >=sys-libs/readline-4.1 )
- selinux? ( sec-policy/selinux-postgresql )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- tcl? ( >=dev-lang/tcl-8 )
- xml? ( dev-libs/libxml2 dev-libs/libxslt )
- zlib? ( >=sys-libs/zlib-1.1.3 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )
- xml? ( dev-util/pkgconfig )"
-
-PG_DIR="/var/lib/postgresql-${SLOT}"
-
-pkg_setup() {
- if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then
- PG_MAJOR=`cat "${PG_DIR}/data/PG_VERSION" | cut -f1 -d.`
- PG_MINOR=`cat "${PG_DIR}/data/PG_VERSION" | cut -f2 -d.`
- if [ ${PG_MAJOR} -lt 8 ] || [ ${PG_MAJOR} -eq 8 -a ${PG_MINOR} -lt 1 ] ; then
- eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
- eerror "use pg_dump to export your existing databases to a file, and then"
- eerror "pg_restore to import them when you have upgraded completely."
- eerror "You must remove your entire database directory to continue."
- eerror "(database directory = ${PG_DIR})."
- die "Remove your database directory to continue"
- fi
- fi
- enewgroup postgres 70
- enewuser postgres 70 /bin/bash /var/lib postgres
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${PN}-${PV%.*}-gentoo.patch"
- epatch "${FILESDIR}/${PN}-${PV%.*}-sh.patch"
-
- # Prepare package for future tests
- if use test ; then
- # Fix sandbox violation
- sed -e "s|/no/such/location|${S}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
-
- # Fix broken tests
- epatch "${FILESDIR}/${PN}-${PV%.*}-regress_fix.patch"
-
- # We need to run the tests as a non-root user, portage seems the most fitting here,
- # so if userpriv is enabled, we use it directly. If userpriv is disabled, we need to
- # su - to a valid user, portage again, so we patch the test-scripts to do that.
- mkdir -p "${S}/src/test/regress/tmp_check"
- chown portage "${S}/src/test/regress/tmp_check"
- einfo "Tests will be run as user portage."
- if ! hasq userpriv ${FEATURES} ; then
- mkdir -p "${S}/src/test/regress/results"
- chown portage "${S}/src/test/regress/results"
- epatch "${FILESDIR}/${PN}-${PV%.*}-regress_su.patch"
- sed -e "s|PORTAGETEMPDIRPG|${S}/src/test/regress|g" -i src/test/regress/pg_regress.sh
- fi
- fi
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # TODO: test if PPC really cannot work with other CFLAGS settings
- # use ppc && CFLAGS="-pipe -fsigned-char"
-
- cd "${S}"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/pgsql-${SLOT} \
- --sysconfdir=/etc/postgresql-${SLOT} \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- $(use_with perl) \
- $(use_enable pg-intdatetime integer-datetimes ) \
- $(use_with python) \
- $(use_with readline) \
- $(use_with ssl openssl) \
- $(use_with tcl) \
- $(use_with zlib) \
- || die "configure failed"
-
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed"
-
- cd "${S}/contrib"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed"
-
- if use xml ; then
- cd "${S}/contrib/xml2"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed"
- fi
-}
-
-src_install() {
- if use perl ; then
- mv -f "${S}/src/pl/plperl/Makefile" "${S}/src/pl/plperl/Makefile_orig"
- sed -e "s:(INST_DYNAMIC) /usr/lib:(INST_DYNAMIC) ${D}/usr/lib:" \
- "${S}/src/pl/plperl/Makefile_orig" > "${S}/src/pl/plperl/Makefile"
- mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
- sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
- "${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
- fi
-
- cd "${S}"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed"
-
- cd "${S}/contrib"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed"
-
- if use xml ; then
- cd "${S}/contrib/xml2"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed"
- fi
-
- cd "${S}"
- dodoc README HISTORY
- dodoc contrib/adddepend/*
-
- cd "${S}/doc"
- dodoc FAQ* README.* TODO bug.template
-
- if use doc ; then
- cd "${S}/doc"
- docinto FAQ_html
- dodoc src/FAQ/*
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto TODO.detail
- dodoc TODO.detail/*
- fi
-
- for bin in "${D}"/usr/bin/* ; do
- mv -f "${bin}" "${bin}-${SLOT}"
- done
-
- for man in "${D}"/usr/share/man/man{1,7}/* ; do
- newman="${man}"
- mannum="${newman:(-1)}"
- newman="${newman%.1}"
- newman="${newman%.7}"
- mv -f "${man}" "${newman}-${SLOT}.${mannum}"
- done
-
- rm -f "${D}/usr/$(get_libdir)/libpgtypes.so.8"
- rm -f "${D}/usr/$(get_libdir)/libpgtypes.so"
- rm -f "${D}/usr/$(get_libdir)/libecpg_compat.so.8"
- rm -f "${D}/usr/$(get_libdir)/libecpg_compat.so"
- rm -f "${D}/usr/$(get_libdir)/libecpg.so.8"
- rm -f "${D}/usr/$(get_libdir)/libecpg.so"
-
- ln -sf "${D}/usr/bin/postgres-${SLOT}" "${D}/usr/bin/postmaster-${SLOT}"
-
- newinitd "${FILESDIR}/postgresql.init-${PV%.*}" postgresql-${SLOT} || die "Inserting init.d-file failed"
- newconfd "${FILESDIR}/postgresql.conf-${PV%.*}" postgresql-${SLOT} || die "Inserting conf.d-file failed"
-}
-
-pkg_postinst() {
- elog "Execute the following command to setup the initial database environment:"
- elog
- elog "emerge --config =${PF}"
- elog
- elog "The autovacuum function, which was in contrib, has been moved to the main"
- elog "PostgreSQL functions starting with 8.1."
- elog "You can enable it in ${ROOT}/etc/postgresql-${SLOT}/postgresql.conf."
-}
-
-pkg_config() {
- einfo "Creating the data directory ..."
- mkdir -p "${PG_DIR}/data"
- chown -Rf postgres:postgres "${PG_DIR}"
- chmod 0700 "${PG_DIR}/data"
-
- einfo "Initializing the database ..."
- if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then
- eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
- eerror "You must remove your entire database directory to continue."
- eerror "(database directory = ${PG_DIR})."
- die "Remove your database directory to continue"
- else
- if use kernel_linux ; then
- local SEM=`sysctl -n kernel.sem | cut -f-3`
- local SEMMNI=`sysctl -n kernel.sem | cut -f4`
- local SEMMNI_MIN=`expr \( ${MAX_CONNECTIONS} + 15 \) / 16`
- local SHMMAX=`sysctl -n kernel.shmmax`
- local SHMMAX_MIN=`expr 250000 + 8200 \* 1000 + 14200 \* 100`
-
- if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
- eerror "The current value of SEMMNI is too low"
- eerror "for PostgreSQL to run ${MAX_CONNECTIONS} connections!"
- eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
- echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
- fi
- su postgres -c "/usr/bin/initdb-${SLOT} --pgdata ${PG_DIR}/data"
-
- if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
- echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
- ewarn "Restoring the SEMMNI value to the previous value."
- ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
- ewarn "and set it to at least ${SEMMNI_MIN}:"
- ewarn
- ewarn " kernel.sem = ${SEM} ${SEMMNI_MIN}"
- ewarn
- fi
-
- if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
- eerror "The current value of SHMMAX is too low for postgresql to run."
- eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
- eerror
- eerror " kernel.shmmax = ${SHMMAX_MIN}"
- eerror
- fi
- else
- su postgres -c "/usr/bin/initdb-${SLOT} --pgdata ${PG_DIR}/data"
- fi
-
- einfo
- einfo "You can use the '${ROOT}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL instead of 'pg_ctl-${SLOT}'."
- einfo
- fi
-}
-
-src_test() {
- cd "${S}"
-
- einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
- if ! emake -j1 check ; then
- hasq test ${FEATURES} && die "Make check failed. See above for details."
- hasq test ${FEATURES} || eerror "Make check failed. See above for details."
- fi
-
- einfo "Yes, there are other tests which could be run."
- einfo "... and no, we don't plan to add/support them."
- einfo "For now, the main regressions tests will suffice."
- einfo "If you think other tests are necessary, please submit a"
- einfo "bug including a patch for this ebuild to enable them."
-}
diff --git a/dev-db/postgresql/postgresql-8.1.6.ebuild b/dev-db/postgresql/postgresql-8.1.6.ebuild
new file mode 100644
index 0000000..a3f1444
--- /dev/null
+++ b/dev-db/postgresql/postgresql-8.1.6.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+DESCRIPTION="Meta package for PostgreSQL sophisticated and powerful Object-Relational DBMS"
+HOMEPAGE="http://www.postgresql.org/"
+
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="client server doc"
+
+RDEPEND="
+ ~dev-db/postgresql-libs-${PV}
+ client? ( ~dev-db/postgresql-client-${PV} )
+ server? ( ~dev-db/postgresql-server-${PV} )
+ doc? ( ~dev-db/postgresql-docs-${PV} )
+"
+
diff --git a/dev-db/postgresql/postgresql-8.2.1.ebuild b/dev-db/postgresql/postgresql-8.2.1.ebuild
new file mode 100644
index 0000000..a3f1444
--- /dev/null
+++ b/dev-db/postgresql/postgresql-8.2.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+DESCRIPTION="Meta package for PostgreSQL sophisticated and powerful Object-Relational DBMS"
+HOMEPAGE="http://www.postgresql.org/"
+
+LICENSE="POSTGRESQL"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="client server doc"
+
+RDEPEND="
+ ~dev-db/postgresql-libs-${PV}
+ client? ( ~dev-db/postgresql-client-${PV} )
+ server? ( ~dev-db/postgresql-server-${PV} )
+ doc? ( ~dev-db/postgresql-docs-${PV} )
+"
+
diff --git a/dev-libs/libpqxx/ChangeLog b/dev-libs/libpqxx/ChangeLog
new file mode 100644
index 0000000..f42c557
--- /dev/null
+++ b/dev-libs/libpqxx/ChangeLog
@@ -0,0 +1,129 @@
+# ChangeLog for dev-libs/libpqxx
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpqxx/ChangeLog,v 1.33 2006/11/25 14:11:25 drizzt Exp $
+
+ 25 Nov 2006; Timothy Redaelli <drizzt@gentoo.org> libpqxx-2.6.8.ebuild:
+ Added ~x86-fbsd keyword.
+
+*libpqxx-2.6.8 (29 Oct 2006)
+
+ 29 Oct 2006; Tiziano Müller <dev-zero@gentoo.org> -libpqxx-1.5.1.ebuild,
+ -libpqxx-2.4.3.ebuild, -libpqxx-2.4.4.ebuild, -libpqxx-2.5.0.ebuild,
+ +libpqxx-2.6.8.ebuild:
+ Version bump. Cleaning out old versions.
+
+ 16 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ libpqxx-2.5.5.ebuild:
+ ppc stable
+
+ 18 Jul 2006; Jeroen Roovers <jer@gentoo.org> libpqxx-2.5.5.ebuild:
+ Marking ~hppa for app-office/koffice
+
+ 21 Feb 2006; Aron Griffis <agriffis@gentoo.org> libpqxx-2.5.5.ebuild:
+ Mark 2.5.5 stable on ia64
+
+ 17 Oct 2005; Brent Baude <ranger@gentoo.org> libpqxx-2.5.1.ebuild:
+ Marking ppc64 for koffice dep on 2005.0 profile
+
+ 11 Oct 2005; Aron Griffis <agriffis@gentoo.org> libpqxx-2.5.5.ebuild:
+ Mark 2.5.5 ~ia64
+
+ 10 Sep 2005; Aron Griffis <agriffis@gentoo.org> libpqxx-2.5.1.ebuild:
+ Mark 2.5.1 stable on alpha
+
+ 03 Sep 2005; Michael Hanselmann <hansmi@gentoo.org> libpqxx-2.5.1.ebuild:
+ Stable on ppc.
+
+ 22 Aug 2005; Gustavo Zacarias <gustavoz@gentoo.org> libpqxx-2.5.1.ebuild:
+ Stable on sparc
+
+ 06 Jul 2005; Masatomo Nakano <nakano@gentoo.org> libpqxx-2.5.1.ebuild:
+ Marked stable on x86.
+
+*libpqxx-2.5.5 (06 Jul 2005)
+
+ 06 Jul 2005; Masatomo Nakano <nakano@gentoo.org> +libpqxx-2.5.5.ebuild:
+ Version bump.
+
+ 30 Jun 2005; Gustavo Zacarias <gustavoz@gentoo.org> libpqxx-2.5.1.ebuild:
+ ~sparc wrt #95128
+
+ 22 Jun 2005; Jose Luis Rivero <yoswink@gentoo.org> libpqxx-2.5.1.ebuild:
+ Keyworded ~alpha since is needed on: #95128
+
+ 22 Jun 2005; Markus Rothe <corsair@gentoo.org> libpqxx-2.5.1.ebuild:
+ added ~ppc64
+
+ 09 May 2005; Masatomo Nakano <nakano@gentoo.org>
+ +files/libpqxx-2.5.1-gentoo.patch, libpqxx-2.5.1.ebuild:
+ Fixed include header path.
+
+*libpqxx-2.5.1 (09 May 2005)
+
+ 09 May 2005; Masatomo Nakano <nakano@gentoo.org> +libpqxx-2.5.1.ebuild:
+ Version bump.
+
+*libpqxx-2.5.0 (21 Apr 2005)
+
+ 21 Apr 2005; Masatomo Nakano <nakano@gentoo.org> +libpqxx-2.5.0.ebuild:
+ Version bump.
+
+ 01 Apr 2005; Simon Stelling <blubb@gentoo.org> libpqxx-2.4.2.ebuild:
+ stable on amd64
+
+*libpqxx-2.4.4 (20 Mar 2005)
+
+ 20 Mar 2005; MATSUU Takuto <matsuu@gentoo.org> +libpqxx-2.4.4.ebuild:
+ Version bumped.
+
+*libpqxx-2.4.3 (09 Feb 2005)
+
+ 09 Feb 2005; Masatomo Nakano <nakano@gentoo.org> +libpqxx-2.4.3.ebuild:
+ Version bump.
+
+ 09 Feb 2005; Masatomo Nakano <nakano@gentoo.org> -libpqxx-2.2.7.ebuild,
+ -libpqxx-2.3.0.ebuild, libpqxx-2.4.2.ebuild:
+ Makred stable on x86.
+
+*libpqxx-2.4.2 (26 Dec 2004)
+
+ 26 Dec 2004; Jared H. Hudson <jhhudso@gentoo.org> : Version bump.
+
+*libpqxx-2.3.0 (22 Aug 2004)
+
+ 22 Aug 2004; Masatomo Nakano <nakano@gentoo.org> -libpqxx-2.2.1.ebuild,
+ libpqxx-2.2.7.ebuild, +libpqxx-2.3.0.ebuild:
+ Fixed DEPEND bug and bumped Version.
+
+*libpqxx-2.2.7 (11 Aug 2004)
+
+ 11 Aug 2004; MATSUU Takuto <matsuu@gentoo.org> +libpqxx-2.2.7.ebuild:
+ Version bumped.
+ Added to ~amd64.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> libpqxx-2.2.1.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 28 Apr 2004; David Holm <dholm@gentoo.org> libpqxx-2.2.1.ebuild:
+ Added to ~ppc.
+
+*libpqxx-2.2.1 (26 Apr 2004)
+
+ 26 Apr 2004; Masatomo Nakano <nakano@gentoo.org> +libpqxx-2.2.1.ebuild:
+ Version bump. Ebuild submitted by Joshua Moore-Oliva <josh@chatgris.com>
+ and Michael Kefeder <h.t.d@gmx.de>. #43312
+
+ 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> libpqxx-1.5.1.ebuild:
+ Add die following econf for bug 48950
+
+ 14 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> libpqxx-1.5.1.ebuild:
+ Don't assign default to S; header fix
+
+*libpqxx-1.5.1 (06 Jun 2003)
+
+ 16 Jun 2003; Masatomo Nakano <nakano@gentoo.org> libpqxx-1.5.1.ebuild:
+ Marked as stable.
+
+ 06 Jun 2003; Masatomo Nakano <nakano@gentoo.org> libpqxx-1.5.1.ebuild:
+ Initial import. Thanks to Andy Pyles <a_pyles@yahoo.com>.
+
diff --git a/dev-libs/libpqxx/Manifest b/dev-libs/libpqxx/Manifest
new file mode 100644
index 0000000..e3465fa
--- /dev/null
+++ b/dev-libs/libpqxx/Manifest
@@ -0,0 +1,44 @@
+AUX libpqxx-2.5.1-namespace-fix.patch 654 RMD160 950e6986937839933ff42263dc391f10fb94a533 SHA1 3ba38411c4ed8fde530ff337ad680c2b15557e78 SHA256 2a5b68ab2c10bdaceeb6f498c3bb00520e84be5275d44baafedcb4ef9e1568b5
+MD5 5a02a9e543af74815ec1a71455b8b11d files/libpqxx-2.5.1-namespace-fix.patch 654
+RMD160 950e6986937839933ff42263dc391f10fb94a533 files/libpqxx-2.5.1-namespace-fix.patch 654
+SHA256 2a5b68ab2c10bdaceeb6f498c3bb00520e84be5275d44baafedcb4ef9e1568b5 files/libpqxx-2.5.1-namespace-fix.patch 654
+DIST libpqxx-2.4.2.tar.gz 843633 RMD160 977ac4744bab40046e2cd3877f18652f6d2d4ead SHA1 181871fc2970e00b2a143b52a543942105e18fb1 SHA256 10018747b71eea128ee72275af5eee9ae1c18aad29b6a46ec21f9047a78c2bc5
+DIST libpqxx-2.5.1.tar.gz 1530502 RMD160 59736ae272dd54d7dd5d4a44aefd30adc9df2eca SHA1 907a8ac363004aec967471a9fe9b680ac2e6324d SHA256 b734b5f180ea6875c169d69b5cd1bfe0923777970a4156df845d29fa6899dfa3
+DIST libpqxx-2.5.5.tar.gz 1566887 RMD160 28d05558982f0c1b2df9eac3ca01a47b5bdee832 SHA1 e7ee3d9ea5acfccf2779bf39fe29d0228bd6479a SHA256 3a39bbe5cd5adb07dc049bdb6c05134dbcf1f710622ca713346d65d42b558239
+DIST libpqxx-2.6.8.tar.gz 1690973 RMD160 5a9a57774ac878d827af8940e87f5d92c2a1b86a SHA1 2f963c98b8a79675d537daadc3ba6c313c35f59d SHA256 b3b4a1de89936d36f61ba1da1ca2c0e0f412cdab004a402761f9433b1d0a3a8d
+EBUILD libpqxx-2.4.2-r1.ebuild 740 RMD160 4b6acdd9938e7288835c99507091bb3747e6e7eb SHA1 9fb9493c10ef34205965a77cdb8ef153abba5959 SHA256 3bdbd9ecbf6c3b27a2ecea1e30cf18573685fb5528a0fc52974f3f38ceed2f24
+MD5 cb0a4418a296cf826e2462289c942051 libpqxx-2.4.2-r1.ebuild 740
+RMD160 4b6acdd9938e7288835c99507091bb3747e6e7eb libpqxx-2.4.2-r1.ebuild 740
+SHA256 3bdbd9ecbf6c3b27a2ecea1e30cf18573685fb5528a0fc52974f3f38ceed2f24 libpqxx-2.4.2-r1.ebuild 740
+EBUILD libpqxx-2.5.1-r1.ebuild 963 RMD160 a8bdfd4fa45713b819c4ba2150d59689225bcc80 SHA1 80d295af6ea004fca168cff55a5d7371626cae57 SHA256 0abbcad4f52941b732d0574d9433fb25a0e6f5d29941e220f625627f1afe4561
+MD5 bf940ee94c6bbeb3c981e2de72cc8ace libpqxx-2.5.1-r1.ebuild 963
+RMD160 a8bdfd4fa45713b819c4ba2150d59689225bcc80 libpqxx-2.5.1-r1.ebuild 963
+SHA256 0abbcad4f52941b732d0574d9433fb25a0e6f5d29941e220f625627f1afe4561 libpqxx-2.5.1-r1.ebuild 963
+EBUILD libpqxx-2.5.5-r1.ebuild 893 RMD160 e8d29fc159e0479e44ad637ef37f6c88a2b352c1 SHA1 dde25e2fbaede1b50912b827eb0ebfbad908c3f1 SHA256 c3bfc0f986d99c16a0742ae59fccbb3f9a2d5b13aeb35165d32b32c2ec898d01
+MD5 6a48082f68e8a705050a890098f98f77 libpqxx-2.5.5-r1.ebuild 893
+RMD160 e8d29fc159e0479e44ad637ef37f6c88a2b352c1 libpqxx-2.5.5-r1.ebuild 893
+SHA256 c3bfc0f986d99c16a0742ae59fccbb3f9a2d5b13aeb35165d32b32c2ec898d01 libpqxx-2.5.5-r1.ebuild 893
+EBUILD libpqxx-2.6.8-r1.ebuild 1613 RMD160 a8c7f0d374a509ffdda3079f4fff9a4d7a4cf019 SHA1 ae1d31cee2931b7e4ecc4c3452457caed3d7e0d7 SHA256 741db8b868b6d0b596a9738abcc5bf7dd1631eb30d3aa783e5aa315d1c40d7cc
+MD5 e6bcc0bff697a13611994fb99f6dbcf1 libpqxx-2.6.8-r1.ebuild 1613
+RMD160 a8c7f0d374a509ffdda3079f4fff9a4d7a4cf019 libpqxx-2.6.8-r1.ebuild 1613
+SHA256 741db8b868b6d0b596a9738abcc5bf7dd1631eb30d3aa783e5aa315d1c40d7cc libpqxx-2.6.8-r1.ebuild 1613
+MISC ChangeLog 4088 RMD160 e16708274aec5a7e5decd1a35be84858fe7275d3 SHA1 6427e254ef6619312bcba23c424b518c8cece5da SHA256 09f5466ae6cb97d2eb6c9827c4f47c81cde7a3b0f2226fd4029c83c2f41fe862
+MD5 2c0b4872e43f28fdb4b6abc4d71f8d39 ChangeLog 4088
+RMD160 e16708274aec5a7e5decd1a35be84858fe7275d3 ChangeLog 4088
+SHA256 09f5466ae6cb97d2eb6c9827c4f47c81cde7a3b0f2226fd4029c83c2f41fe862 ChangeLog 4088
+MISC metadata.xml 163 RMD160 70bbda1c1e8316a09d467334131898ae833a3205 SHA1 f43b9a4a2a82140936f9b04e4e63b3c9a495141f SHA256 f0699a4c3ad24cc38836c2d4a1ba03e4e403a9a5364b51df405db02014005891
+MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
+RMD160 70bbda1c1e8316a09d467334131898ae833a3205 metadata.xml 163
+SHA256 f0699a4c3ad24cc38836c2d4a1ba03e4e403a9a5364b51df405db02014005891 metadata.xml 163
+MD5 3284bc61c77c78c21a92fd1d1c0ad729 files/digest-libpqxx-2.4.2-r1 241
+RMD160 4589005727717492370df0242e0df08dc7d1da07 files/digest-libpqxx-2.4.2-r1 241
+SHA256 7566b8bf2ef8242e7b7a3a22615fa7472401e5c5013619779d0cb24d8b730a5a files/digest-libpqxx-2.4.2-r1 241
+MD5 5aad0d80d20b410670c49defe146c350 files/digest-libpqxx-2.5.1-r1 244
+RMD160 66f41c7ae336d5e08d812124a23a1c35a323b9fd files/digest-libpqxx-2.5.1-r1 244
+SHA256 7279724f9fdd2d13f0eb20e2012e9bfe999ef61d49d2058ccf549958a767602a files/digest-libpqxx-2.5.1-r1 244
+MD5 261f91ea32b89fe17271489799078fac files/digest-libpqxx-2.5.5-r1 244
+RMD160 9332954ed790f0a1ac2e96f3327840de763e4993 files/digest-libpqxx-2.5.5-r1 244
+SHA256 7948ba1db5fe2392fae2ff6d3eb0b3f4f2cfca68e52a2347bc7f91acab1a4bbd files/digest-libpqxx-2.5.5-r1 244
+MD5 ad01392f6a1ef78d0b4c9bb94aeb2c90 files/digest-libpqxx-2.6.8-r1 244
+RMD160 a74e92c89e99c7ef38212a85de57955edb6fff4a files/digest-libpqxx-2.6.8-r1 244
+SHA256 68d1b04bb9df98c65d6e2e3d60def4ccffa1d39c2e0f823e874fcdb0b9406680 files/digest-libpqxx-2.6.8-r1 244
diff --git a/dev-libs/libpqxx/files/digest-libpqxx-2.4.2-r1 b/dev-libs/libpqxx/files/digest-libpqxx-2.4.2-r1
new file mode 100644
index 0000000..c5c4787
--- /dev/null
+++ b/dev-libs/libpqxx/files/digest-libpqxx-2.4.2-r1
@@ -0,0 +1,3 @@
+MD5 f58b366c1a84ed838d76b0febee36e1a libpqxx-2.4.2.tar.gz 843633
+RMD160 977ac4744bab40046e2cd3877f18652f6d2d4ead libpqxx-2.4.2.tar.gz 843633
+SHA256 10018747b71eea128ee72275af5eee9ae1c18aad29b6a46ec21f9047a78c2bc5 libpqxx-2.4.2.tar.gz 843633
diff --git a/dev-libs/libpqxx/files/digest-libpqxx-2.5.1-r1 b/dev-libs/libpqxx/files/digest-libpqxx-2.5.1-r1
new file mode 100644
index 0000000..e7ed00e
--- /dev/null
+++ b/dev-libs/libpqxx/files/digest-libpqxx-2.5.1-r1
@@ -0,0 +1,3 @@
+MD5 3fa0bfb82e2e16ec94fd98161f550390 libpqxx-2.5.1.tar.gz 1530502
+RMD160 59736ae272dd54d7dd5d4a44aefd30adc9df2eca libpqxx-2.5.1.tar.gz 1530502
+SHA256 b734b5f180ea6875c169d69b5cd1bfe0923777970a4156df845d29fa6899dfa3 libpqxx-2.5.1.tar.gz 1530502
diff --git a/dev-libs/libpqxx/files/digest-libpqxx-2.5.5-r1 b/dev-libs/libpqxx/files/digest-libpqxx-2.5.5-r1
new file mode 100644
index 0000000..9e1b8e5
--- /dev/null
+++ b/dev-libs/libpqxx/files/digest-libpqxx-2.5.5-r1
@@ -0,0 +1,3 @@
+MD5 db71975570ee31ecd0a11380dbaa8634 libpqxx-2.5.5.tar.gz 1566887
+RMD160 28d05558982f0c1b2df9eac3ca01a47b5bdee832 libpqxx-2.5.5.tar.gz 1566887
+SHA256 3a39bbe5cd5adb07dc049bdb6c05134dbcf1f710622ca713346d65d42b558239 libpqxx-2.5.5.tar.gz 1566887
diff --git a/dev-libs/libpqxx/files/digest-libpqxx-2.6.8-r1 b/dev-libs/libpqxx/files/digest-libpqxx-2.6.8-r1
new file mode 100644
index 0000000..b205813
--- /dev/null
+++ b/dev-libs/libpqxx/files/digest-libpqxx-2.6.8-r1
@@ -0,0 +1,3 @@
+MD5 cb818ca7698955bcea8b7ba1b7962811 libpqxx-2.6.8.tar.gz 1690973
+RMD160 5a9a57774ac878d827af8940e87f5d92c2a1b86a libpqxx-2.6.8.tar.gz 1690973
+SHA256 b3b4a1de89936d36f61ba1da1ca2c0e0f412cdab004a402761f9433b1d0a3a8d libpqxx-2.6.8.tar.gz 1690973
diff --git a/dev-libs/libpqxx/files/libpqxx-2.5.1-namespace-fix.patch b/dev-libs/libpqxx/files/libpqxx-2.5.1-namespace-fix.patch
new file mode 100644
index 0000000..8235307
--- /dev/null
+++ b/dev-libs/libpqxx/files/libpqxx-2.5.1-namespace-fix.patch
@@ -0,0 +1,28 @@
+diff --git a/src/util.cxx b/src/util.cxx
+index ca3190b..80bd40b 100644
+--- a/src/util.cxx
++++ b/src/util.cxx
+@@ -572,19 +572,20 @@ string pqxx::internal::Quote_charptr(con
+ }
+
+
++namespace pqxx { namespace internal {
+ template<>
+-void pqxx::internal::PQAlloc<pqxx::internal::pq::PGresult>::freemem() throw ()
++void PQAlloc<pqxx::internal::pq::PGresult>::freemem() throw ()
+ {
+ PQclear(m_Obj);
+ }
+
+
+ template<>
+-void pqxx::internal::PQAlloc<pqxx::internal::pq::PGnotify>::freemem() throw ()
++void PQAlloc<pqxx::internal::pq::PGnotify>::freemem() throw ()
+ {
+ freenotif(m_Obj);
+ }
+-
++} }
+
+ string pqxx::internal::namedclass::description() const
+ {
diff --git a/dev-libs/libpqxx/libpqxx-2.4.2-r1.ebuild b/dev-libs/libpqxx/libpqxx-2.4.2-r1.ebuild
new file mode 100644
index 0000000..cfeb578
--- /dev/null
+++ b/dev-libs/libpqxx/libpqxx-2.4.2-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit postgresql
+
+IUSE=""
+DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL. Supersedes older libpq++ interface."
+SRC_URI="ftp://gborg.postgresql.org/pub/libpqxx/stable/${P}.tar.gz"
+HOMEPAGE="http://pqxx.tk/"
+
+LICENSE="BSD"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+
+DEPEND="dev-db/postgresql-libs"
+
+src_compile() {
+ econf --enable-shared PATH="$(postgresql_get_bindir):${PATH}" || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO
+ dohtml -r doc/html/*
+}
diff --git a/dev-libs/libpqxx/libpqxx-2.5.1-r1.ebuild b/dev-libs/libpqxx/libpqxx-2.5.1-r1.ebuild
new file mode 100644
index 0000000..96b4a60
--- /dev/null
+++ b/dev-libs/libpqxx/libpqxx-2.5.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils postgresql
+IUSE=""
+DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL. Supersedes older libpq++ interface."
+SRC_URI="ftp://gborg.postgresql.org/pub/libpqxx/stable/${P}.tar.gz
+ http://gborg.postgresql.org/download/libpqxx/stable/${P}.tar.gz"
+HOMEPAGE="http://gborg.postgresql.org/project/libpqxx/projdisplay.php"
+
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+
+DEPEND="dev-db/postgresql-libs"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-namespace-fix.patch
+}
+
+src_compile() {
+ econf --enable-shared PATH="$(postgresql_get_bindir):${PATH}" || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO
+ dohtml -r doc/html/*
+}
diff --git a/dev-libs/libpqxx/libpqxx-2.5.5-r1.ebuild b/dev-libs/libpqxx/libpqxx-2.5.5-r1.ebuild
new file mode 100644
index 0000000..e887d24
--- /dev/null
+++ b/dev-libs/libpqxx/libpqxx-2.5.5-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils postgresql
+IUSE=""
+DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL. Supersedes older libpq++ interface."
+SRC_URI="ftp://gborg.postgresql.org/pub/libpqxx/stable/${P}.tar.gz
+ http://gborg.postgresql.org/download/libpqxx/stable/${P}.tar.gz"
+HOMEPAGE="http://gborg.postgresql.org/project/libpqxx/projdisplay.php"
+
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+
+DEPEND="dev-db/postgresql-libs"
+
+src_compile() {
+ econf --enable-shared PATH="$(postgresql_get_bindir):${PATH}" || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+ dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO
+ dohtml -r doc/html/*
+}
diff --git a/dev-libs/libpqxx/libpqxx-2.6.8-r1.ebuild b/dev-libs/libpqxx/libpqxx-2.6.8-r1.ebuild
new file mode 100644
index 0000000..3b0f7d3
--- /dev/null
+++ b/dev-libs/libpqxx/libpqxx-2.6.8-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils postgresql
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+
+DESCRIPTION="C++ client API for PostgreSQL. The standard front-end for writing C++ programs that use PostgreSQL. Supersedes older libpq++ interface."
+SRC_URI="ftp://thaiopensource.org/software/${PN}/${P}.tar.gz"
+HOMEPAGE="http://thaiopensource.org/development/libpqxx/"
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-db/postgresql-libs"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # should be safe enough to remove the lines directly from configure,
+ # since it's copied directly from configure.ac
+ sed -i \
+ -e 's/\(gcc_visibility\)=yes/\1=no/g' \
+ -e 's@\(#define PQXX_HAVE_GCC_VISIBILITY 1\)@/* \1 */@g' \
+ -e '/-Werror/d' \
+ configure || die "sed failed"
+}
+
+src_compile() {
+ econf --enable-shared PATH="$(postgresql_get_bindir):${PATH}" || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README* TODO
+ dohtml -r doc/html/*
+}
+
+src_test() {
+ ewarn "The tests need a running PostgreSQL server and an existing database!"
+ ewarn "You can set the following environment variables to change the connection parameters:"
+ ewarn "PGDATABASE (default: username, probably root)"
+ ewarn "PGHOST (default: localhost)"
+ ewarn "PGPORT (default: pg's UNIX domain-socket)"
+ ewarn "PGUSER (default: username, probably root)"
+ epause 10
+
+ cd "${S}/test"
+ emake -j1 check || die "emake check failed"
+}
diff --git a/dev-libs/libpqxx/metadata.xml b/dev-libs/libpqxx/metadata.xml
new file mode 100644
index 0000000..309b51e
--- /dev/null
+++ b/dev-libs/libpqxx/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>postgresql</herd>
+</pkgmetadata>
diff --git a/dev-perl/DBD-Pg/ChangeLog b/dev-perl/DBD-Pg/ChangeLog
new file mode 100644
index 0000000..3046a9f
--- /dev/null
+++ b/dev-perl/DBD-Pg/ChangeLog
@@ -0,0 +1,187 @@
+# ChangeLog for dev-perl/DBD-Pg
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-Pg/ChangeLog,v 1.51 2006/11/08 14:38:44 mcummings Exp $
+
+ 08 Nov 2006; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.49.ebuild:
+ Marking mips stable, tested out on swarm
+
+ 21 Oct 2006; Tobias Scherbaum <dertobi123@gentoo.org> DBD-Pg-1.49.ebuild:
+ ppc stable
+
+ 20 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> DBD-Pg-1.49.ebuild:
+ Stable on Alpha.
+
+ 07 Oct 2006; Yuval Yaari <yuval@gentoo.org> Manifest:
+ Updating Manifest - bug #150400
+
+ 05 Oct 2006; Michael Cummings <mcummings@gentoo.org>
+ -DBD-Pg-1.13-r1.ebuild, -DBD-Pg-1.22.ebuild, -DBD-Pg-1.31.ebuild,
+ -DBD-Pg-1.32.ebuild, -DBD-Pg-1.41.ebuild, DBD-Pg-1.42.ebuild,
+ DBD-Pg-1.43.ebuild, DBD-Pg-1.48.ebuild, DBD-Pg-1.49.ebuild:
+ Marking stable amd64, sparc; cleaning up old ebuilds
+
+ 17 Aug 2006; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.48.ebuild:
+ Marking amd64 stable
+
+ 05 Aug 2006; Michael Cummings <mcummings@gentoo.org>
+ DBD-Pg-1.13-r1.ebuild, DBD-Pg-1.22.ebuild, DBD-Pg-1.31.ebuild,
+ DBD-Pg-1.32.ebuild, DBD-Pg-1.41.ebuild, DBD-Pg-1.42.ebuild,
+ DBD-Pg-1.43.ebuild, DBD-Pg-1.48.ebuild, DBD-Pg-1.49.ebuild:
+ Adding perl dep; fixed DEPEND
+
+*DBD-Pg-1.49 (24 Jun 2006)
+
+ 24 Jun 2006; Michael Cummings <mcummings@gentoo.org> +DBD-Pg-1.49.ebuild:
+ Version bump
+
+ 12 Jun 2006; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.48.ebuild:
+ Marking stable sparc
+
+ 06 Jun 2006; <mcummings@gentoo.org> DBD-Pg-1.13-r1.ebuild,
+ DBD-Pg-1.22.ebuild, DBD-Pg-1.31.ebuild, DBD-Pg-1.32.ebuild,
+ DBD-Pg-1.41.ebuild, DBD-Pg-1.42.ebuild, DBD-Pg-1.43.ebuild,
+ DBD-Pg-1.48.ebuild:
+ Bug 134781
+
+*DBD-Pg-1.48 (23 Apr 2006)
+
+ 23 Apr 2006; Christian Hartmann <ian@gentoo.org> +DBD-Pg-1.48.ebuild:
+ Version bump for new version of www-apps/bugzilla
+
+ 08 Apr 2006; <mcummings@gentoo.org> DBD-Pg-1.43.ebuild:
+ Keywording ~mips, tested on raq2, closes bug 126683
+
+ 13 Feb 2006; <mcumming@gentoo.org> DBD-Pg-1.22.ebuild, DBD-Pg-1.31.ebuild,
+ DBD-Pg-1.32.ebuild, DBD-Pg-1.41.ebuild, DBD-Pg-1.42.ebuild,
+ DBD-Pg-1.43.ebuild:
+ Virtual for perl-core dep
+
+ 24 Nov 2005; Markus Rothe <corsair@gentoo.org> DBD-Pg-1.43.ebuild:
+ Stable on ppc64
+
+ 03 Oct 2005; MATSUU Takuto <matsuu@gentoo.org> DBD-Pg-1.43.ebuild:
+ Stable on sh.
+
+ 19 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> DBD-Pg-1.43.ebuild:
+ Stable on ppc.
+
+ 03 Aug 2005; Bryan Østergaard <kloeri@gentoo.org> DBD-Pg-1.43.ebuild:
+ Stable on alpha.
+
+ 24 Jul 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.43.ebuild:
+ Bumping to stable, see bug 99954
+
+*DBD-Pg-1.43 (09 Jul 2005)
+
+ 09 Jul 2005; Renat Lumpau <rl03@gentoo.org> +DBD-Pg-1.43.ebuild:
+ Version bump, needed for www-apps/bugzilla
+
+ 15 Jun 2005; Michael Cummings <mcummings@gentoo.org> :
+ Correction: Bug 95658
+
+*DBD-Pg-1.42 (15 Jun 2005)
+
+ 15 Jun 2005; Michael Cummings <mcummings@gentoo.org> +DBD-Pg-1.42.ebuild:
+ Bug 93988, bug fixes and memory leaks
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.41.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.32.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.31.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.22.ebuild:
+ dev-perl/Test-Simple => perl-core/Test-Simple migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.41.ebuild:
+ dev-perl/Test-Harness => perl-core/Test-Harness migration
+
+ 25 Apr 2005; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.13-r1.ebuild,
+ -DBD-Pg-1.13.ebuild, DBD-Pg-1.22.ebuild, DBD-Pg-1.31.ebuild,
+ DBD-Pg-1.32.ebuild:
+ Cleaning
+
+ 24 Apr 2005; Guy Martin <gmsoft@gentoo.org> DBD-Pg-1.22.ebuild:
+ Stable on hppa.
+
+ 19 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> DBD-Pg-1.22.ebuild:
+ Stable on ppc.
+
+*DBD-Pg-1.41 (17 Apr 2005)
+
+ 17 Apr 2005; Michael Cummings <mcummings@gentoo.org> +DBD-Pg-1.41.ebuild:
+ New version; bug 85245
+
+ 06 Feb 2005; Markus Rothe <corsair@gentoo.org> DBD-Pg-1.32.ebuild:
+ Stable on ppc64
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 29 Dec 2004; Markus Rothe <corsair@gentoo.org> DBD-Pg-1.32.ebuild:
+ Added ~ppc64 to KEYWORDS
+
+ 06 Jun 2004; Robert Coie <rac@gentoo.org>
+ -files/DBD-Pg-1.32-versparse.patch, DBD-Pg-1.32.ebuild:
+ Remove version parsing patch that doesn't apply any more. Believe it's fixed
+ upstream
+
+*DBD-Pg-1.32 (05 Jun 2004)
+
+ 05 Jun 2004; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.32.ebuild,
+ files/DBD-Pg-1.32-versparse.patch:
+ new version of module, please test
+
+ 26 May 2004; Bryan Østergaard <kloeri@gentoo.org> DBD-Pg-1.31.ebuild:
+ Stable on alpha.
+
+ 16 Apr 2004; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.31.ebuild:
+ Syntax fix for newdepend, bug 29064
+
+ 25 Feb 2004; Sven Blumenstein <bazik@gentoo.org> DBD-Pg-1.22.ebuild:
+ Stable on sparc, thanks to Josh Grebe <josh@brokedown.net> for testing!
+
+ 15 Jan 2004; Eric Sammer <esammer@gentoo.org> DBD-Pg-1.13-r1.ebuild,
+ DBD-Pg-1.13.ebuild, DBD-Pg-1.22.ebuild, DBD-Pg-1.31.ebuild:
+ Updated all headers to include the correct dates. Fixed include paths so
+ libpq-fe.h is found. Fixes but 38196. Masked for testing again on amd64.
+
+*DBD-Pg-1.31 (21 Dec 2003)
+
+ 21 Dec 2003; <rac@gentoo.org> DBD-Pg-1.31.ebuild,
+ files/DBD-Pg-1.31-versparse.patch:
+ Upstream bump
+
+*DBD-Pg-1.22 (07 Jun 2003)
+
+ 07 Jun 2003; Michael Cummings <mcummings@gentoo.org> DBD-Pg-1.22.ebuild:
+ CPAN update. Testing needed, unable to test locally (no PG)
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+ 29 Oct 2002; Seemant Kulleen <seemant@gentoo.org> ChangeLog :
+
+ forced version bump to install into correct locations
+# ChangeLog for dev-perl/DBD-Pg
+
+*DBD-Pg-1.13-r1 (21 Jun 2003)
+
+ 12 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Added missing changelog entry.
+
+*DBD-Pg-1.13 (23 May 2002)
+
+ 31 Jul 2002; Calum Selkirk <cselkirk@gentoo.org> DBD-Pg-1.13.ebuild :
+
+ Added ppc to KEYWORDS.
+
+ 23 May 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/dev-perl/DBD-Pg/DBD-Pg-1.42-r1.ebuild b/dev-perl/DBD-Pg/DBD-Pg-1.42-r1.ebuild
new file mode 100644
index 0000000..9816653
--- /dev/null
+++ b/dev-perl/DBD-Pg/DBD-Pg-1.42-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit perl-module eutils postgresql
+
+DESCRIPTION="The Perl DBD::Pg Module"
+HOMEPAGE="http://cpan.org/modules/by-module/DBD/${P}.readme"
+SRC_URI="mirror://cpan/authors/id/D/DB/DBDPG/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/perl-Test-Simple
+ >=virtual/perl-Test-Harness-2.03
+ >=dev-perl/DBI-1.35
+ >=dev-db/postgresql-libs-7.3
+ dev-lang/perl"
+
+# env variables for compilation:
+export POSTGRES_INCLUDE=$($(postgresql_get_pgconfig) --includedir)
+export POSTGRES_LIB=$($(postgresql_get_pgconfig) --libdir)
+
+mydoc="Changes README"
diff --git a/dev-perl/DBD-Pg/DBD-Pg-1.43-r1.ebuild b/dev-perl/DBD-Pg/DBD-Pg-1.43-r1.ebuild
new file mode 100644
index 0000000..7ad5387
--- /dev/null
+++ b/dev-perl/DBD-Pg/DBD-Pg-1.43-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit perl-module eutils postgresql
+
+DESCRIPTION="The Perl DBD::Pg Module"
+HOMEPAGE="http://cpan.org/modules/by-module/DBD/${P}.readme"
+SRC_URI="mirror://cpan/authors/id/D/DB/DBDPG/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/perl-Test-Simple
+ >=virtual/perl-Test-Harness-2.03
+ >=dev-perl/DBI-1.35
+ >=dev-db/postgresql-libs-7.3
+ dev-lang/perl"
+
+# env variables for compilation:
+export POSTGRES_INCLUDE=$($(postgresql_get_pgconfig) --includedir)
+export POSTGRES_LIB=$($(postgresql_get_pgconfig) --libdir)
+
+mydoc="Changes README"
diff --git a/dev-perl/DBD-Pg/DBD-Pg-1.48-r1.ebuild b/dev-perl/DBD-Pg/DBD-Pg-1.48-r1.ebuild
new file mode 100644
index 0000000..7f27da9
--- /dev/null
+++ b/dev-perl/DBD-Pg/DBD-Pg-1.48-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit perl-module eutils postgresql
+
+DESCRIPTION="The Perl DBD::Pg Module"
+HOMEPAGE="http://cpan.org/modules/by-module/DBD/${P}.readme"
+SRC_URI="mirror://cpan/authors/id/D/DB/DBDPG/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/perl-Test-Simple
+ >=virtual/perl-Test-Harness-2.03
+ >=dev-perl/DBI-1.45
+ >=dev-db/postgresql-libs-7.3
+ dev-lang/perl"
+
+# env variables for compilation:
+export POSTGRES_INCLUDE=$($(postgresql_get_pgconfig) --includedir)
+export POSTGRES_LIB=$($(postgresql_get_pgconfig) --libdir)
+
+mydoc="Changes README"
diff --git a/dev-perl/DBD-Pg/DBD-Pg-1.49-r1.ebuild b/dev-perl/DBD-Pg/DBD-Pg-1.49-r1.ebuild
new file mode 100644
index 0000000..7f27da9
--- /dev/null
+++ b/dev-perl/DBD-Pg/DBD-Pg-1.49-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit perl-module eutils postgresql
+
+DESCRIPTION="The Perl DBD::Pg Module"
+HOMEPAGE="http://cpan.org/modules/by-module/DBD/${P}.readme"
+SRC_URI="mirror://cpan/authors/id/D/DB/DBDPG/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/perl-Test-Simple
+ >=virtual/perl-Test-Harness-2.03
+ >=dev-perl/DBI-1.45
+ >=dev-db/postgresql-libs-7.3
+ dev-lang/perl"
+
+# env variables for compilation:
+export POSTGRES_INCLUDE=$($(postgresql_get_pgconfig) --includedir)
+export POSTGRES_LIB=$($(postgresql_get_pgconfig) --libdir)
+
+mydoc="Changes README"
diff --git a/dev-perl/DBD-Pg/Manifest b/dev-perl/DBD-Pg/Manifest
new file mode 100644
index 0000000..2cda652
--- /dev/null
+++ b/dev-perl/DBD-Pg/Manifest
@@ -0,0 +1,40 @@
+DIST DBD-Pg-1.42.tar.gz 120021 RMD160 3e531c2abdae37cbf3edf4221a4bbacd7fd92d80 SHA1 bb230734bf85469ce5095bf1e88753695047058f SHA256 306132bfcbf73ee03b2891a6b1a03575103419b9d04bd7c82d99fb9a34cdd6cd
+DIST DBD-Pg-1.43.tar.gz 131267 RMD160 969b0ed7c3d2817c71f742cde23697777a6729a4 SHA1 b2fee0d561db533368a14a4e9adc41486ef71d2b SHA256 24d34fa3b0310f61ac7748bf3d566ab6d01800f9c27c0828e42dce7e81574550
+DIST DBD-Pg-1.48.tar.gz 144737 RMD160 972420e0d8f744f5c72522ce6ea6521c81d41b21 SHA1 8fc1633dd20c04bf5040a0ce768b3ffe1b00d484 SHA256 5a2f4e870622cbe4d03e794275d7bc51f742e21ed28de82cc60d7b972a1c2d40
+DIST DBD-Pg-1.49.tar.gz 147310 RMD160 171c1df5f56a11cb9aa3d3eab85e220671f73010 SHA1 37c1c37a02afa00d48f8dd739d5d8502a7c40045 SHA256 6577866f7feac020928c3a5b45dc25726656153d61f366bc67792fb6b8951978
+EBUILD DBD-Pg-1.42-r1.ebuild 758 RMD160 992fc6b5f943200f0a061d9a3e7c5141c1794bff SHA1 11edaecb9582fbd28927922b5b961949d58587d7 SHA256 ee6391cd7b74d0399f06cdd0537057afdb4baac5ec2a90560b522ccc2fcc7465
+MD5 b8d661bc71587edb6d11f53fa7a35f83 DBD-Pg-1.42-r1.ebuild 758
+RMD160 992fc6b5f943200f0a061d9a3e7c5141c1794bff DBD-Pg-1.42-r1.ebuild 758
+SHA256 ee6391cd7b74d0399f06cdd0537057afdb4baac5ec2a90560b522ccc2fcc7465 DBD-Pg-1.42-r1.ebuild 758
+EBUILD DBD-Pg-1.43-r1.ebuild 768 RMD160 6b6b135178690190de3bf6b753dfe43d1270944f SHA1 216f646037c0f9f27759a5aef583924c03121a8a SHA256 d3611f31d2b5f47d5146887001e2f6f1f8c44eeb4391fe0e9cbe466c1d789d5b
+MD5 81284eb70fe6884da3b118dc63d57886 DBD-Pg-1.43-r1.ebuild 768
+RMD160 6b6b135178690190de3bf6b753dfe43d1270944f DBD-Pg-1.43-r1.ebuild 768
+SHA256 d3611f31d2b5f47d5146887001e2f6f1f8c44eeb4391fe0e9cbe466c1d789d5b DBD-Pg-1.43-r1.ebuild 768
+EBUILD DBD-Pg-1.48-r1.ebuild 768 RMD160 b57d057df4e01552d801b4dd5ff689f91ccad444 SHA1 e0c464f6dc470c3a0deb60bf0c97430fb9719738 SHA256 b837cca5e5d1eddc782ab6ae212a508bb499b772440b348985ffc9a7dd7db638
+MD5 a8c2c815fa92a9e14e3c3400dbb0467a DBD-Pg-1.48-r1.ebuild 768
+RMD160 b57d057df4e01552d801b4dd5ff689f91ccad444 DBD-Pg-1.48-r1.ebuild 768
+SHA256 b837cca5e5d1eddc782ab6ae212a508bb499b772440b348985ffc9a7dd7db638 DBD-Pg-1.48-r1.ebuild 768
+EBUILD DBD-Pg-1.49-r1.ebuild 768 RMD160 b57d057df4e01552d801b4dd5ff689f91ccad444 SHA1 e0c464f6dc470c3a0deb60bf0c97430fb9719738 SHA256 b837cca5e5d1eddc782ab6ae212a508bb499b772440b348985ffc9a7dd7db638
+MD5 a8c2c815fa92a9e14e3c3400dbb0467a DBD-Pg-1.49-r1.ebuild 768
+RMD160 b57d057df4e01552d801b4dd5ff689f91ccad444 DBD-Pg-1.49-r1.ebuild 768
+SHA256 b837cca5e5d1eddc782ab6ae212a508bb499b772440b348985ffc9a7dd7db638 DBD-Pg-1.49-r1.ebuild 768
+MISC ChangeLog 6688 RMD160 d69001bb3d7069dca3ff607b6845faa5ebc08634 SHA1 b4a4b26c6ccda6926f5d59814076b23649472435 SHA256 f7667aa0215dcffda0844bb1d3b39447cdbac742efe3604387abb91509da5a42
+MD5 ef6096fbee9d42ba00dd6065cd2c3439 ChangeLog 6688
+RMD160 d69001bb3d7069dca3ff607b6845faa5ebc08634 ChangeLog 6688
+SHA256 f7667aa0215dcffda0844bb1d3b39447cdbac742efe3604387abb91509da5a42 ChangeLog 6688
+MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca
+MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
+RMD160 647980838c590f54441a053916ea629e53e551c0 metadata.xml 305
+SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca metadata.xml 305
+MD5 4941b3c1b97da5ab71c9670305033b56 files/digest-DBD-Pg-1.42-r1 235
+RMD160 663952922c1964d968655de258805c8a8867c00a files/digest-DBD-Pg-1.42-r1 235
+SHA256 97c73ce7c76846f9bc99fde34af82e011f65d30e39b7613837a66f0e1a543c75 files/digest-DBD-Pg-1.42-r1 235
+MD5 d3decc2591f01a12bff4c58920d22114 files/digest-DBD-Pg-1.43-r1 235
+RMD160 03d655dd52ad9ad0ebaaae6059478912160f930c files/digest-DBD-Pg-1.43-r1 235
+SHA256 c0f52935f88040da939895025ffc6f79e00aa4a234313f7fc1993771a6af304b files/digest-DBD-Pg-1.43-r1 235
+MD5 8b81bb3edc280206a0bb34810831b2d1 files/digest-DBD-Pg-1.48-r1 235
+RMD160 c8b87a9b11bac9ee45fda247547998ac4fcdfddb files/digest-DBD-Pg-1.48-r1 235
+SHA256 32bb67d338b9ddfee9a5a25b2a6260807d257c9ab5b23af7c466c05d2bbbb8bb files/digest-DBD-Pg-1.48-r1 235
+MD5 0b779c51df34e826a3c83c92d3407ac7 files/digest-DBD-Pg-1.49-r1 235
+RMD160 5b41537d23bf15f3f92cfc87223b26e914ed6a7e files/digest-DBD-Pg-1.49-r1 235
+SHA256 7a4cc92344826ab91d8ded691fe6f5abe351cfe1ef66652853fce348ed155b58 files/digest-DBD-Pg-1.49-r1 235
diff --git a/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.42-r1 b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.42-r1
new file mode 100644
index 0000000..01d3be0
--- /dev/null
+++ b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.42-r1
@@ -0,0 +1,3 @@
+MD5 2ef800322f3076ea3da696ebaf2b1e1e DBD-Pg-1.42.tar.gz 120021
+RMD160 3e531c2abdae37cbf3edf4221a4bbacd7fd92d80 DBD-Pg-1.42.tar.gz 120021
+SHA256 306132bfcbf73ee03b2891a6b1a03575103419b9d04bd7c82d99fb9a34cdd6cd DBD-Pg-1.42.tar.gz 120021
diff --git a/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.43-r1 b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.43-r1
new file mode 100644
index 0000000..d2fe107
--- /dev/null
+++ b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.43-r1
@@ -0,0 +1,3 @@
+MD5 1ddefc3cb5f8c0d20eaf6ba7aa11049d DBD-Pg-1.43.tar.gz 131267
+RMD160 969b0ed7c3d2817c71f742cde23697777a6729a4 DBD-Pg-1.43.tar.gz 131267
+SHA256 24d34fa3b0310f61ac7748bf3d566ab6d01800f9c27c0828e42dce7e81574550 DBD-Pg-1.43.tar.gz 131267
diff --git a/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.48-r1 b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.48-r1
new file mode 100644
index 0000000..2265101
--- /dev/null
+++ b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.48-r1
@@ -0,0 +1,3 @@
+MD5 77e56726219cccf2abb42f70c58b6eeb DBD-Pg-1.48.tar.gz 144737
+RMD160 972420e0d8f744f5c72522ce6ea6521c81d41b21 DBD-Pg-1.48.tar.gz 144737
+SHA256 5a2f4e870622cbe4d03e794275d7bc51f742e21ed28de82cc60d7b972a1c2d40 DBD-Pg-1.48.tar.gz 144737
diff --git a/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.49-r1 b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.49-r1
new file mode 100644
index 0000000..2752d1c
--- /dev/null
+++ b/dev-perl/DBD-Pg/files/digest-DBD-Pg-1.49-r1
@@ -0,0 +1,3 @@
+MD5 76b9d6a2f4cbaefcba23380f83998215 DBD-Pg-1.49.tar.gz 147310
+RMD160 171c1df5f56a11cb9aa3d3eab85e220671f73010 DBD-Pg-1.49.tar.gz 147310
+SHA256 6577866f7feac020928c3a5b45dc25726656153d61f366bc67792fb6b8951978 DBD-Pg-1.49.tar.gz 147310
diff --git a/dev-perl/DBD-Pg/metadata.xml b/dev-perl/DBD-Pg/metadata.xml
new file mode 100644
index 0000000..86672fe
--- /dev/null
+++ b/dev-perl/DBD-Pg/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>perl</herd>
+ <maintainer>
+ <email>perl@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <longdescription></longdescription>
+</pkgmetadata>
diff --git a/eclass/multislot.eclass b/eclass/multislot.eclass
new file mode 100644
index 0000000..56fbfd8
--- /dev/null
+++ b/eclass/multislot.eclass
@@ -0,0 +1,86 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: root
+# Purpose: Build extensions or plugins supporting multiple versions of framework
+# simultaneously by building the package for all available slots
+#
+
+ECLASS="multislot"
+INHERITED="$INHERITED $ECLASS"
+EXPORT_FUNCTIONS \
+ src_unpack src_compile src_test src_install \
+ slot_src_unpack slot_src_compile slot_src_test slot_src_install
+
+# Store unslotted workdir for future reference if it wasn't stored yet.
+multislot_storeWD() {
+ [[ -z "${MULTISLOT_UNSLOTTED_WORKDIR}" ]] && MULTISLOT_UNSLOTTED_WORKDIR="${WORKDIR}"
+}
+# Discover what slots are we building for
+multislot_storeSlots() {
+ [[ -z "${MULTISLOT_SLOTS}" ]] && MULTISLOT_SLOTS="$(slots_enumerate)"
+}
+
+# Set up WORKDIR, S and SLOTSLOT variables for particular slot
+# Usage: multislot_slot_vars <slot>
+multislot_slot_vars() {
+ multislot_storeWD
+ local new_wd="${MULTISLOT_UNSLOTTED_WORKDIR}/$1"
+ S="${S/${WORKDIR}/${new_wd}}"
+ WORKDIR="${new_wd}"
+ SLOTSLOT="$1"
+}
+
+multislot_src_unpack() {
+ multislot_storeSlots
+ local slot
+ for slot in ${MULTISLOT_SLOTS} ; do
+ multislot_slot_vars $slot
+ mkdir -p "${WORKDIR}"
+ cd "${WORKDIR}"
+ slot_src_unpack
+ done
+}
+
+multislot_src_compile() {
+ multislot_storeSlots
+ local slot
+ for slot in ${MULTISLOT_SLOTS} ; do
+ multislot_slot_vars $slot
+ cd ${S}
+ slot_src_compile
+ done
+}
+multislot_src_test() {
+ multislot_storeSlots
+ local slot
+ for slot in ${MULTISLOT_SLOTS} ; do
+ multislot_slot_vars $slot
+ cd ${S}
+ slot_src_test
+ done
+}
+multislot_src_install() {
+ multislot_storeSlots
+ local slot
+ for slot in ${MULTISLOT_SLOTS} ; do
+ multislot_slot_vars $slot
+ cd ${S}
+ slot_src_install
+ done
+}
+
+multislot_slot_src_unpack() {
+ unpack ${A}
+}
+multislot_slot_src_compile() {
+ :
+}
+multislot_slot_src_test() {
+ :
+}
+multislot_slot_src_install() {
+ :
+}
diff --git a/eclass/postgresql-ext.eclass b/eclass/postgresql-ext.eclass
new file mode 100644
index 0000000..be260ba
--- /dev/null
+++ b/eclass/postgresql-ext.eclass
@@ -0,0 +1,72 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: root
+# Purpose: Installing postgresql extension for all available slots
+#
+
+ECLASS="postgresql-ext"
+INHERITED="$INHERITED $ECLASS"
+inherit postgresql multislot
+EXPORT_FUNCTIONS \
+ src_unpack src_compile src_install \
+ slot_src_unpack slot_src_compile slot_src_test slot_src_install \
+ pgslot_src_unpack pgslot_src_compile pgslot_src_test pgslot_src_install \
+ slots_enumerate
+
+postgresql-ext_slots_enumerate() {
+ postgresql_get_versions_range ${POSTGREXT_SLOTS}
+}
+
+postgresql-ext_src_unpack() {
+ multislot_src_unpack "$@"
+}
+postgresql-ext_src_compile() {
+ multislot_src_compile "$@"
+}
+postgresql-ext_src_install() {
+ multislot_src_install "$@"
+}
+postgresql-ext_src_test() {
+ multislot_src_test "$@"
+}
+
+postgresql-ext_slot_src_unpack() {
+ PATH="$(postgresql_get_bindir_for_slot $SLOTSLOT):${PATH}" pgslot_src_unpack
+}
+postgresql-ext_slot_src_compile() {
+ PATH="$(postgresql_get_bindir_for_slot $SLOTSLOT):${PATH}" pgslot_src_compile
+}
+postgresql-ext_slot_src_test() {
+ PATH="$(postgresql_get_bindir_for_slot $SLOTSLOT):${PATH}" pgslot_src_test
+}
+postgresql-ext_slot_src_install() {
+ PATH="$(postgresql_get_bindir_for_slot $SLOTSLOT):${PATH}" pgslot_src_install
+}
+
+postgresql-ext_pgslot_src_unpack() {
+ multislot_slot_src_unpack
+}
+postgresql-ext_pgslot_src_compile() {
+ multislot_slot_src_compile
+}
+postgresql-ext_pgslot_src_test() {
+ multislot_slot_src_test
+}
+postgresql-ext_pgslot_src_install() {
+ multislot_slot_src_install
+}
+
+pg_slots_depend() {
+ local vers=( ${POSTGREXT_SLOTS} )
+ if [[ -z "${vers[0]}" ]] ; then
+ echo 'dev-db/postgresql-server'
+ else
+ echo ">=dev-db/postgresql-${vers[0]}*"
+ if [[ ! -z "${vers[1]}" ]] ; then
+ echo "<=dev-db/postgresql-${vers[1]}*"
+ fi
+ fi
+}
diff --git a/eclass/postgresql.eclass b/eclass/postgresql.eclass
new file mode 100644
index 0000000..6ae0e27
--- /dev/null
+++ b/eclass/postgresql.eclass
@@ -0,0 +1,91 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: root
+# Purpose: To handle the postgresql selection related tasks.
+#
+
+inherit versionator
+ECLASS="postgresql"
+INHERITED="$INHERITED $ECLASS"
+
+# Usage: postgresql_version_in_range [version[ min_version[ max_version]]]
+# Returns $?=0 if in range
+postgresql_version_in_range() {
+ local v="$1" min="$2" max="$3"
+ if [[ ! -z "$min" ]] ; then
+ version_compare "$min" "$v"
+ [[ "$?" = "3" ]] && return 1
+ fi
+ if [[ ! -z "$max" ]] ; then
+ version_compare "$max" "$v"
+ [[ "$?" = "1" ]] && return 2
+ fi
+ return 0
+}
+
+# Usage: postgresql_get_versions_range [ min_version[ max_version]]
+postgresql_get_versions_range() {
+ local min="$1" max="$2"
+ for s in /usr/lib/eselect-postgresql/slots/* ; do
+ [[ -d "$s" ]] || continue
+ local v="$(basename $s)"
+ postgresql_version_in_range "$v" "$min" "$max" || continue
+ echo "$v"
+ done
+}
+# Usage: postgresql_get_sorted_versions [ min_version[ max_version]]
+postgresql_get_sorted_versions() {
+ version_sort $(postgresql_get_versions_range "$1" "$2")
+}
+
+# Usage: postgresql_find_version [min_version[ max_version[ strategy]]]
+# min_version - minimum supported version (empty string if any)
+# max_version - maximum supported version (empty string if any)
+# strategy - best, worst (that is, if eselected version isn't in range)
+# (best is default)
+# Returns selected version string
+postgresql_find_version() {
+ local min="$1" max="$2" strategy="$3"
+ local eselected="$(eselect postgresql show)"
+ if [[ "$eselected" != "(none)" ]] ; then
+ postgresql_version_in_range "$eselected" "$min" "$max" && { echo "$eselected" ; return 0; }
+ fi
+ local vers=( $(postgresql_get_sorted_versions "$min" "$max") )
+ case "$strategy" in
+ worst)
+ echo "${vers[0]}"
+ ;;
+ *)
+ echo "${vers[${#vers[@]}-1]}"
+ ;;
+ esac
+}
+
+# Usage: postgresql_get_bindir [min_version[ max_version[ strategy]]]
+# See postgresql_find_version
+# Returns path to binaries
+postgresql_get_bindir() {
+ local ver="$(postgresql_find_version "$1" "$2" "$3")"
+ (. /usr/lib/eselect-postgresql/slots/$ver/libs ; echo $postgres_bindir )
+}
+
+# Usage: postgresql_get_pgconfig [min_version[ max_version[ strategy]]]
+# See postgresql_find_version
+# Returns path to pg_config
+postgresql_get_pgconfig() {
+ echo "$(postgresql_get_bindir "$1" "$2" "$3")/pg_config"
+}
+
+# Usage: postgresql_get_bindir_for_slot slot
+# Returns path to binaries for exact slot
+postgresql_get_bindir_for_slot() {
+ (. /usr/lib/eselect-postgresql/slots/$1/libs ; echo $postgres_bindir)
+}
+# Usage: postgresql_get_pgconfig_for_slot slot
+# Returns path to pg_config for exact slot
+postgresql_get_pgconfig_for_slot() {
+ echo "$(. /usr/lib/eselect-postgresql/slots/$1/libs ; echo $postgres_bindir)/pg_config"
+}
diff --git a/profiles/categories b/profiles/categories
index dfb94e4..248c56f 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -1,3 +1,4 @@
+app-admin
app-benchmarks
dev-db
dev-libs
diff --git a/profiles/use.local.desc b/profiles/use.local.desc
index 5ebe18e..2d83d16 100644
--- a/profiles/use.local.desc
+++ b/profiles/use.local.desc
@@ -1,3 +1,8 @@
+dev-db/postgresql-libs:pg-intdatetime - Enables --enable-integer-datetimes configure option, which changes PG to use 64-bit integers for timestamp storage.
+dev-db/postgresql-libs:eselect - Set the slot as active upon installing
+dev-db/postgresql:server - install server applications
+dev-db/postgresql:client - install client applications
+#
dev-db/libpq:pg-intdatetime - Enables --enable-integer-datetimes configure option, which changes PG to use 64-bit integers for timestamp storage.
dev-db/openfts:sampledb - Enable the installation of a sample database.
dev-db/openfts:snowball - Enable Snowball.