summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-05-15 21:45:53 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-05-15 21:45:53 +0000
commit111f9cedbea9c24ee4fb982ab806d6e6ff4e1e94 (patch)
tree6a45573d7e37f1ce80da176affdd8e8a2002a607 /dev-db/postgresql
parentcleanup (diff)
downloadgentoo-2-111f9cedbea9c24ee4fb982ab806d6e6ff4e1e94.tar.gz
gentoo-2-111f9cedbea9c24ee4fb982ab806d6e6ff4e1e94.tar.bz2
gentoo-2-111f9cedbea9c24ee4fb982ab806d6e6ff4e1e94.zip
cleanup
Diffstat (limited to 'dev-db/postgresql')
-rw-r--r--dev-db/postgresql/Manifest11
-rw-r--r--dev-db/postgresql/files/7.1.3/postgresql35
-rw-r--r--dev-db/postgresql/files/7.2.1/postgresql21
-rw-r--r--dev-db/postgresql/files/7.2.2/postgresql21
-rw-r--r--dev-db/postgresql/files/7.2.3/postgresql27
-rw-r--r--dev-db/postgresql/files/7.2/postgresql21
-rw-r--r--dev-db/postgresql/files/7.3.1/postgresql27
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2-r21
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2-r31
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2.11
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2.1-r11
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2.1-r21
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2.21
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2.31
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.2.3-r11
-rw-r--r--dev-db/postgresql/files/digest-postgresql-7.3.11
-rw-r--r--dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff29
-rw-r--r--dev-db/postgresql/files/postgresql-7.1.3-dyn-libperl-gentoo.diff36
-rw-r--r--dev-db/postgresql/files/postgresql-7.1.3-perl5-GNUmakefile-gentoo.diff29
-rw-r--r--dev-db/postgresql/files/postgresql-7.1.3-python21-configure-gentoo.diff20
-rw-r--r--dev-db/postgresql/files/postgresql-7.1.3-python21-makefiles-gentoo.diff44
-rw-r--r--dev-db/postgresql/files/postgresql-7.2-dyn-libperl-gentoo.diff39
-rw-r--r--dev-db/postgresql/files/postgresql-7.2.1-dyn-libperl-gentoo.diff39
-rw-r--r--dev-db/postgresql/files/postgresql-7.2.2-dyn-libperl-gentoo.diff39
-rw-r--r--dev-db/postgresql/files/postgresql-7.2.2-perl-gentoo.diff12
-rw-r--r--dev-db/postgresql/files/postgresql-7.2.3-dyn-libperl-gentoo.diff39
-rw-r--r--dev-db/postgresql/files/postgresql-7.2.3-perl-gentoo.diff12
-rw-r--r--dev-db/postgresql/postgresql-7.2-r2.ebuild146
-rw-r--r--dev-db/postgresql/postgresql-7.2-r3.ebuild159
-rw-r--r--dev-db/postgresql/postgresql-7.2.1-r1.ebuild168
-rw-r--r--dev-db/postgresql/postgresql-7.2.1-r2.ebuild147
-rw-r--r--dev-db/postgresql/postgresql-7.2.1.ebuild148
-rw-r--r--dev-db/postgresql/postgresql-7.2.2.ebuild154
-rw-r--r--dev-db/postgresql/postgresql-7.2.3-r1.ebuild153
-rw-r--r--dev-db/postgresql/postgresql-7.2.3.ebuild157
-rw-r--r--dev-db/postgresql/postgresql-7.3.1.ebuild166
36 files changed, 11 insertions, 1897 deletions
diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest
new file mode 100644
index 000000000000..edd6709a7901
--- /dev/null
+++ b/dev-db/postgresql/Manifest
@@ -0,0 +1,11 @@
+MD5 f968d8ec03c1e78021222e6dd6a46525 ChangeLog 9228
+MD5 ef642371d0d41a8ce91799bdbba00cd1 postgresql-7.3.2.ebuild 5680
+MD5 b74ddef00a98e9d3a9ca05f73def5222 postgresql-7.3.ebuild 5542
+MD5 ed9c20d88bfaf8e24e28a79309a17a52 files/digest-postgresql-7.3 68
+MD5 7506f28d74e703211fb53ebd246b5791 files/digest-postgresql-7.3.2 70
+MD5 bc6938c5fbc47a864dddb0c885f0a6dd files/pgsql 613
+MD5 26e2c8e4978d59f58bf13e94bbdc446b files/postgres 851
+MD5 2b0c84d2c26622573d4e2b7e0518fdad files/postgresql 375
+MD5 a9021afba518a106483188ea60dadc7c files/postmaster-wrapper 445
+MD5 c6a4bb3c0ed81f48ad1d6b675c32842e files/7.3/postgresql 678
+MD5 c6a4bb3c0ed81f48ad1d6b675c32842e files/7.3.2/postgresql 678
diff --git a/dev-db/postgresql/files/7.1.3/postgresql b/dev-db/postgresql/files/7.1.3/postgresql
deleted file mode 100644
index a384c47a5354..000000000000
--- a/dev-db/postgresql/files/7.1.3/postgresql
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-
-PREFIX="/usr"
-PGDATA="/var/lib/postgresql/data"
-PGUSER="postgres"
-PATH="/bin:/usr/bin"
-DAEMON="$PREFIX/bin/pg_ctl"
-
-opts="start stop restart status"
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting PostgreSQL"
- su - $PGUSER -c "$DAEMON start -D '$PGDATA' -s -o -i" | logger 1>&2 &
- eend $?
-}
-
-stop() {
- ebegin "Stopping PostgreSQL"
- su - $PGUSER -c "$DAEMON stop -D '$PGDATA' -s -m fast"
- eend $?
-}
-
-restart() {
- ebegin "Restarting PostgreSQL"
- su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast" &
- eend $?
-}
-
-status() {
- su - $PGUSER -c "$DAEMON status -D '$PGDATA'"
-}
diff --git a/dev-db/postgresql/files/7.2.1/postgresql b/dev-db/postgresql/files/7.2.1/postgresql
deleted file mode 100644
index d2c0d82e1e09..000000000000
--- a/dev-db/postgresql/files/7.2.1/postgresql
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# /space/gentoo/cvsroot/gentoo-x86/dev-db/mysql/files/mysql.rc6,v 1.1 2002/01/06 00:53:24 woodchip Exp
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postgres"
- start-stop-daemon --start --quiet --background --chuid postgres --exec \
- /usr/bin/postmaster -- -D/var/lib/postgresql/data -N 1024 -B 2048
- eend $?
-}
-
-stop () {
- ebegin "Stopping postgres"
- start-stop-daemon --stop --quiet --pidfile=/var/lib/postgresql/data/postmaster.pid
- eend $?
-}
diff --git a/dev-db/postgresql/files/7.2.2/postgresql b/dev-db/postgresql/files/7.2.2/postgresql
deleted file mode 100644
index d2c0d82e1e09..000000000000
--- a/dev-db/postgresql/files/7.2.2/postgresql
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# /space/gentoo/cvsroot/gentoo-x86/dev-db/mysql/files/mysql.rc6,v 1.1 2002/01/06 00:53:24 woodchip Exp
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postgres"
- start-stop-daemon --start --quiet --background --chuid postgres --exec \
- /usr/bin/postmaster -- -D/var/lib/postgresql/data -N 1024 -B 2048
- eend $?
-}
-
-stop () {
- ebegin "Stopping postgres"
- start-stop-daemon --stop --quiet --pidfile=/var/lib/postgresql/data/postmaster.pid
- eend $?
-}
diff --git a/dev-db/postgresql/files/7.2.3/postgresql b/dev-db/postgresql/files/7.2.3/postgresql
deleted file mode 100644
index de14f1c33b15..000000000000
--- a/dev-db/postgresql/files/7.2.3/postgresql
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# /space/gentoo/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.rc6,v 1.1 2002/01/06 00:53:24 woodchip Exp
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postgres"
- su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'"
- eend $?
-}
-
-stop () {
- ebegin "Stopping postgres"
- su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast"
- eend $?
-}
-
-svc_restart () {
- ebegin "Restarting postgres"
- su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -l '$PGLOG' -o '$PGOPTS'"
- eend $?
-}
-
diff --git a/dev-db/postgresql/files/7.2/postgresql b/dev-db/postgresql/files/7.2/postgresql
deleted file mode 100644
index d2c0d82e1e09..000000000000
--- a/dev-db/postgresql/files/7.2/postgresql
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# /space/gentoo/cvsroot/gentoo-x86/dev-db/mysql/files/mysql.rc6,v 1.1 2002/01/06 00:53:24 woodchip Exp
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postgres"
- start-stop-daemon --start --quiet --background --chuid postgres --exec \
- /usr/bin/postmaster -- -D/var/lib/postgresql/data -N 1024 -B 2048
- eend $?
-}
-
-stop () {
- ebegin "Stopping postgres"
- start-stop-daemon --stop --quiet --pidfile=/var/lib/postgresql/data/postmaster.pid
- eend $?
-}
diff --git a/dev-db/postgresql/files/7.3.1/postgresql b/dev-db/postgresql/files/7.3.1/postgresql
deleted file mode 100644
index de14f1c33b15..000000000000
--- a/dev-db/postgresql/files/7.3.1/postgresql
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# /space/gentoo/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.rc6,v 1.1 2002/01/06 00:53:24 woodchip Exp
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postgres"
- su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'"
- eend $?
-}
-
-stop () {
- ebegin "Stopping postgres"
- su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast"
- eend $?
-}
-
-svc_restart () {
- ebegin "Restarting postgres"
- su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -l '$PGLOG' -o '$PGOPTS'"
- eend $?
-}
-
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2-r2 b/dev-db/postgresql/files/digest-postgresql-7.2-r2
deleted file mode 100644
index c0daa65f8ba7..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 4174777cd91f3cc96f91efb2e4e1bc7c postgresql-7.2.tar.gz 9180168
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2-r3 b/dev-db/postgresql/files/digest-postgresql-7.2-r3
deleted file mode 100644
index c0daa65f8ba7..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 4174777cd91f3cc96f91efb2e4e1bc7c postgresql-7.2.tar.gz 9180168
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2.1 b/dev-db/postgresql/files/digest-postgresql-7.2.1
deleted file mode 100644
index 456643406fd4..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d075e9c49135899645dff57bc58d6233 postgresql-7.2.1.tar.gz 9237680
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2.1-r1 b/dev-db/postgresql/files/digest-postgresql-7.2.1-r1
deleted file mode 100644
index 456643406fd4..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2.1-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d075e9c49135899645dff57bc58d6233 postgresql-7.2.1.tar.gz 9237680
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2.1-r2 b/dev-db/postgresql/files/digest-postgresql-7.2.1-r2
deleted file mode 100644
index 456643406fd4..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2.1-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d075e9c49135899645dff57bc58d6233 postgresql-7.2.1.tar.gz 9237680
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2.2 b/dev-db/postgresql/files/digest-postgresql-7.2.2
deleted file mode 100644
index 625009b2bc41..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2.2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 853bf330837b50a6c6e3edf540ad1792 postgresql-7.2.2.tar.gz 9239158
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2.3 b/dev-db/postgresql/files/digest-postgresql-7.2.3
deleted file mode 100644
index aad92780bc2a..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2.3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 cf665c93a08a60e4a99db3a6dfe7ba10 postgresql-7.2.3.tar.gz 9244039
diff --git a/dev-db/postgresql/files/digest-postgresql-7.2.3-r1 b/dev-db/postgresql/files/digest-postgresql-7.2.3-r1
deleted file mode 100644
index aad92780bc2a..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.2.3-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 cf665c93a08a60e4a99db3a6dfe7ba10 postgresql-7.2.3.tar.gz 9244039
diff --git a/dev-db/postgresql/files/digest-postgresql-7.3.1 b/dev-db/postgresql/files/digest-postgresql-7.3.1
deleted file mode 100644
index 9c133a42d2ab..000000000000
--- a/dev-db/postgresql/files/digest-postgresql-7.3.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 924b21c3114f595834e2456277f1bffb postgresql-7.3.1.tar.gz 11171551
diff --git a/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff b/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff
deleted file mode 100644
index d1483d2f3620..000000000000
--- a/dev-db/postgresql/files/postgresql-7.1-perl5-GNUmakefile-gentoo.diff
+++ /dev/null
@@ -1,29 +0,0 @@
---- postgresql-7.1/src/interfaces/perl5/GNUmakefile.orig Tue Apr 17 21:28:21 2001
-+++ postgresql-7.1/src/interfaces/perl5/GNUmakefile Tue Apr 17 21:28:27 2001
-@@ -36,20 +36,12 @@
-
- install: Makefile
- $(MAKE) -f Makefile clean
-- POSTGRES_LIB="$(libdir)" \
-- POSTGRES_INCLUDE="$(includedir)" \
-- $(PERL) $(srcdir)/Makefile.PL
-- $(MAKE) -f Makefile all
-- -@if [ -w "`$(MAKE) --quiet -f Makefile echo-installdir`" ]; then \
-- $(MAKE) -f Makefile install; \
-- $(MAKE) clean; \
-- else \
-- echo "*****" ;\
-- echo "* Skipping the installation of the Perl module for lack of permissions."; \
-- echo "* To install it, change to the directory "`pwd`","; \
-- echo "* become the appropriate user, and do \`$(MAKE) install'."; \
-- echo "*****"; \
-- fi
-+ POSTGRES_LIB="$(DESTDIR)$(libdir)" \
-+ POSTGRES_INCLUDE="$(DESTDIR)$(includedir)" \
-+ $(PERL) $(srcdir)/Makefile.PL
-+ $(MAKE) -f Makefile all; \
-+ $(MAKE) PREFIX=$(DESTDIR)$(prefix) INSTALLMAN3DIR=$(DESTDIR)$(mandir)/man3 -f Makefile install; \
-+ $(MAKE) clean;
-
-
- uninstall:
diff --git a/dev-db/postgresql/files/postgresql-7.1.3-dyn-libperl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.1.3-dyn-libperl-gentoo.diff
deleted file mode 100644
index 782800f2c866..000000000000
--- a/dev-db/postgresql/files/postgresql-7.1.3-dyn-libperl-gentoo.diff
+++ /dev/null
@@ -1,36 +0,0 @@
---- postgresql-7.1.3/src/pl/plperl/Makefile.PL_orig 2002-01-31 02:34:59.000000000 +0100
-+++ postgresql-7.1.3/src/pl/plperl/Makefile.PL 2002-01-31 02:35:11.000000000 +0100
-@@ -4,33 +4,6 @@
- use Config;
-
- #
--# Can't build a shared plperl unless libperl is shared too.
--# (Actually, it would be enough if code in libperl.a is compiled
--# to be position-independent, but that is hard to check for and
--# seems pretty unlikely anyway.)
--#
--if ($Config{'useshrplib'} ne 'true') {
-- open(OUT, ">Makefile") or die "Can't write Makefile: $!\n";
-- print OUT <<'EndOfMakefile';
--# Dummy Makefile for use when we can't build plperl
--
--all install:
-- @echo "*****"; \
-- echo "* Cannot build PL/Perl because libperl is not a shared library." ; \
-- echo "* Skipped."; \
-- echo "*****"
--
--
--clean realclean:
-- rm -f Makefile
--
--EndOfMakefile
-- close(OUT);
-- exit(0);
--}
--
--
--#
- # get the location of the Opcode module
- #
- my $opcode = '';
diff --git a/dev-db/postgresql/files/postgresql-7.1.3-perl5-GNUmakefile-gentoo.diff b/dev-db/postgresql/files/postgresql-7.1.3-perl5-GNUmakefile-gentoo.diff
deleted file mode 100644
index d1483d2f3620..000000000000
--- a/dev-db/postgresql/files/postgresql-7.1.3-perl5-GNUmakefile-gentoo.diff
+++ /dev/null
@@ -1,29 +0,0 @@
---- postgresql-7.1/src/interfaces/perl5/GNUmakefile.orig Tue Apr 17 21:28:21 2001
-+++ postgresql-7.1/src/interfaces/perl5/GNUmakefile Tue Apr 17 21:28:27 2001
-@@ -36,20 +36,12 @@
-
- install: Makefile
- $(MAKE) -f Makefile clean
-- POSTGRES_LIB="$(libdir)" \
-- POSTGRES_INCLUDE="$(includedir)" \
-- $(PERL) $(srcdir)/Makefile.PL
-- $(MAKE) -f Makefile all
-- -@if [ -w "`$(MAKE) --quiet -f Makefile echo-installdir`" ]; then \
-- $(MAKE) -f Makefile install; \
-- $(MAKE) clean; \
-- else \
-- echo "*****" ;\
-- echo "* Skipping the installation of the Perl module for lack of permissions."; \
-- echo "* To install it, change to the directory "`pwd`","; \
-- echo "* become the appropriate user, and do \`$(MAKE) install'."; \
-- echo "*****"; \
-- fi
-+ POSTGRES_LIB="$(DESTDIR)$(libdir)" \
-+ POSTGRES_INCLUDE="$(DESTDIR)$(includedir)" \
-+ $(PERL) $(srcdir)/Makefile.PL
-+ $(MAKE) -f Makefile all; \
-+ $(MAKE) PREFIX=$(DESTDIR)$(prefix) INSTALLMAN3DIR=$(DESTDIR)$(mandir)/man3 -f Makefile install; \
-+ $(MAKE) clean;
-
-
- uninstall:
diff --git a/dev-db/postgresql/files/postgresql-7.1.3-python21-configure-gentoo.diff b/dev-db/postgresql/files/postgresql-7.1.3-python21-configure-gentoo.diff
deleted file mode 100644
index f3376a4a1938..000000000000
--- a/dev-db/postgresql/files/postgresql-7.1.3-python21-configure-gentoo.diff
+++ /dev/null
@@ -1,20 +0,0 @@
---- postgresql-7.1.3/configure_orig 2002-01-31 13:51:50.000000000 +0100
-+++ postgresql-7.1.3/configure 2002-01-31 13:52:01.000000000 +0100
-@@ -1834,7 +1834,7 @@
- yes)
- echo "$ac_t""yes" 1>&6
- # Extract the first word of "python", so it can be a program name with args.
--set dummy python; ac_word=$2
-+set dummy python2.1; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- echo "configure:1840: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
-@@ -1848,7 +1848,7 @@
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
-- ac_cv_prog_PYTHON="python"
-+ ac_cv_prog_PYTHON="python2.1"
- break
- fi
- done
diff --git a/dev-db/postgresql/files/postgresql-7.1.3-python21-makefiles-gentoo.diff b/dev-db/postgresql/files/postgresql-7.1.3-python21-makefiles-gentoo.diff
deleted file mode 100644
index 86bc53454003..000000000000
--- a/dev-db/postgresql/files/postgresql-7.1.3-python21-makefiles-gentoo.diff
+++ /dev/null
@@ -1,44 +0,0 @@
---- postgresql-7.1.3/src/interfaces/python/Makefile.pre.in_orig 2002-01-31 14:19:30.000000000 +0100
-+++ postgresql-7.1.3/src/interfaces/python/Makefile.pre.in 2002-01-31 14:19:55.000000000 +0100
-@@ -89,10 +89,10 @@
- # === Variables that you may want to customize (rarely) ===
-
- # (Static) build target
--TARGET= python
-+TARGET= python2.1
-
- # Installed python binary (used only by boot target)
--PYTHON= python
-+PYTHON= python2.1
-
- # Add more -I and -D options here
- CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
---- postgresql-7.1.3/src/interfaces/python/mkdefines_orig 2000-10-02 05:27:27.000000000 +0200
-+++ postgresql-7.1.3/src/interfaces/python/mkdefines 2002-01-31 14:20:15.000000000 +0100
-@@ -1,4 +1,4 @@
--#! /usr/bin/env python
-+#! /usr/bin/env python2.1
-
- import string
-
---- postgresql-7.1.3/src/interfaces/python/PyGreSQL.spec_orig 2002-01-31 14:20:36.000000000 +0100
-+++ postgresql-7.1.3/src/interfaces/python/PyGreSQL.spec 2002-01-31 14:21:26.000000000 +0100
-@@ -37,8 +37,8 @@
- mkdir -p $RPM_BUILD_ROOT/usr/lib/python%{pythonversion}/lib-dynload
- cc -fpic -shared -o $RPM_BUILD_ROOT/usr/lib/python%{pythonversion}/lib-dynload/_pg.so -I/usr/include/pgsql/ -I/usr/include/python1.5 pgmodule.c -lpq
- ## import fails, since _pg is not yet installed
--python -c 'import pg' || true
--python -c 'import pgdb' || true
-+python2.1 -c 'import pg' || true
-+python2.1 -c 'import pgdb' || true
-
- %install
- cp *.py *.pyc $RPM_BUILD_ROOT/usr/lib/python%{pythonversion}/
---- postgresql-7.1.3/src/interfaces/python/setup.py_orig 2002-01-31 14:20:41.000000000 +0100
-+++ postgresql-7.1.3/src/interfaces/python/setup.py 2002-01-31 14:21:01.000000000 +0100
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/env python2.1
-
- # Setup script for the PyGreSQL version 3
- # created 2000/04 Mark Alexander <mwa@gate.net>
diff --git a/dev-db/postgresql/files/postgresql-7.2-dyn-libperl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.2-dyn-libperl-gentoo.diff
deleted file mode 100644
index 6b6b57a45051..000000000000
--- a/dev-db/postgresql/files/postgresql-7.2-dyn-libperl-gentoo.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- postgresql-7.2/src/pl/plperl/Makefile.PL_orig 2002-02-15 16:59:00.000000000 +0100
-+++ postgresql-7.2/src/pl/plperl/Makefile.PL 2002-02-15 16:59:23.000000000 +0100
-@@ -3,36 +3,6 @@
- use DynaLoader;
- use Config;
-
--# On some platforms you can't build plperl unless libperl is a shared
--# library. (Actually, it would be enough if code in libperl.a is
--# compiled to be position-independent, but that is hard to check for
--# and seems pretty unlikely anyway.) On some platforms it doesn't
--# matter and they can pass in the --force flag to build anyway.
--# (Having a shared libperl is still a lot better for efficiency,
--# though.)
--
--if ($Config{'useshrplib'} ne 'true' && $ARGV[0] ne '--force') {
-- open(OUT, ">Makefile") or die "Can't write Makefile: $!\n";
-- print OUT <<'EndOfMakefile';
--# Dummy Makefile for use when we can't build plperl
--
--all:
-- @echo ""; \
-- echo "*** Cannot build PL/Perl because libperl is not a shared library." ; \
-- echo "*** You might have to rebuild your Perl installation. Refer to"; \
-- echo "*** the documentation for details."; \
-- echo ""
--
--install:
--
--clean realclean:
-- rm -f Makefile
--
--EndOfMakefile
-- close(OUT);
-- exit(0);
--}
--
- my $ldopts=ldopts();
- $ldopts=~s/$Config{ccdlflags}//;
-
diff --git a/dev-db/postgresql/files/postgresql-7.2.1-dyn-libperl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.2.1-dyn-libperl-gentoo.diff
deleted file mode 100644
index 6b6b57a45051..000000000000
--- a/dev-db/postgresql/files/postgresql-7.2.1-dyn-libperl-gentoo.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- postgresql-7.2/src/pl/plperl/Makefile.PL_orig 2002-02-15 16:59:00.000000000 +0100
-+++ postgresql-7.2/src/pl/plperl/Makefile.PL 2002-02-15 16:59:23.000000000 +0100
-@@ -3,36 +3,6 @@
- use DynaLoader;
- use Config;
-
--# On some platforms you can't build plperl unless libperl is a shared
--# library. (Actually, it would be enough if code in libperl.a is
--# compiled to be position-independent, but that is hard to check for
--# and seems pretty unlikely anyway.) On some platforms it doesn't
--# matter and they can pass in the --force flag to build anyway.
--# (Having a shared libperl is still a lot better for efficiency,
--# though.)
--
--if ($Config{'useshrplib'} ne 'true' && $ARGV[0] ne '--force') {
-- open(OUT, ">Makefile") or die "Can't write Makefile: $!\n";
-- print OUT <<'EndOfMakefile';
--# Dummy Makefile for use when we can't build plperl
--
--all:
-- @echo ""; \
-- echo "*** Cannot build PL/Perl because libperl is not a shared library." ; \
-- echo "*** You might have to rebuild your Perl installation. Refer to"; \
-- echo "*** the documentation for details."; \
-- echo ""
--
--install:
--
--clean realclean:
-- rm -f Makefile
--
--EndOfMakefile
-- close(OUT);
-- exit(0);
--}
--
- my $ldopts=ldopts();
- $ldopts=~s/$Config{ccdlflags}//;
-
diff --git a/dev-db/postgresql/files/postgresql-7.2.2-dyn-libperl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.2.2-dyn-libperl-gentoo.diff
deleted file mode 100644
index 6b6b57a45051..000000000000
--- a/dev-db/postgresql/files/postgresql-7.2.2-dyn-libperl-gentoo.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- postgresql-7.2/src/pl/plperl/Makefile.PL_orig 2002-02-15 16:59:00.000000000 +0100
-+++ postgresql-7.2/src/pl/plperl/Makefile.PL 2002-02-15 16:59:23.000000000 +0100
-@@ -3,36 +3,6 @@
- use DynaLoader;
- use Config;
-
--# On some platforms you can't build plperl unless libperl is a shared
--# library. (Actually, it would be enough if code in libperl.a is
--# compiled to be position-independent, but that is hard to check for
--# and seems pretty unlikely anyway.) On some platforms it doesn't
--# matter and they can pass in the --force flag to build anyway.
--# (Having a shared libperl is still a lot better for efficiency,
--# though.)
--
--if ($Config{'useshrplib'} ne 'true' && $ARGV[0] ne '--force') {
-- open(OUT, ">Makefile") or die "Can't write Makefile: $!\n";
-- print OUT <<'EndOfMakefile';
--# Dummy Makefile for use when we can't build plperl
--
--all:
-- @echo ""; \
-- echo "*** Cannot build PL/Perl because libperl is not a shared library." ; \
-- echo "*** You might have to rebuild your Perl installation. Refer to"; \
-- echo "*** the documentation for details."; \
-- echo ""
--
--install:
--
--clean realclean:
-- rm -f Makefile
--
--EndOfMakefile
-- close(OUT);
-- exit(0);
--}
--
- my $ldopts=ldopts();
- $ldopts=~s/$Config{ccdlflags}//;
-
diff --git a/dev-db/postgresql/files/postgresql-7.2.2-perl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.2.2-perl-gentoo.diff
deleted file mode 100644
index 3c36f296aab8..000000000000
--- a/dev-db/postgresql/files/postgresql-7.2.2-perl-gentoo.diff
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr postgresql-7.2.2-orig/work/postgresql-7.2.2/src/interfaces/perl5/GNUmakefile postgresql-7.2.2/work/postgresql-7.2.2/src/interfaces/perl5/GNUmakefile
---- src/interfaces/perl5/GNUmakefile Sun Aug 26 18:28:04 2001
-+++ src/interfaces/perl5/GNUmakefile Tue Sep 24 17:10:32 2002
-@@ -38,7 +38,7 @@
- LIBS="-L$$abs_libpq_builddir -lpq" \
- INSTALLSITEARCH='$$(DESTDIR)$(perl_installsitearch)' \
- INSTALLSITELIB='$$(DESTDIR)$(perl_installsitelib)' \
-- INSTALLMAN3DIR='$$(DESTDIR)$(perl_installman3dir)' \
-+ INSTALLSITEMAN3DIR='$$(DESTDIR)$(perl_installman3dir)' \
- MAKEFILE="$$abs_builddir/Makefile"
-
- .PHONY: libpq-all
diff --git a/dev-db/postgresql/files/postgresql-7.2.3-dyn-libperl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.2.3-dyn-libperl-gentoo.diff
deleted file mode 100644
index 6b6b57a45051..000000000000
--- a/dev-db/postgresql/files/postgresql-7.2.3-dyn-libperl-gentoo.diff
+++ /dev/null
@@ -1,39 +0,0 @@
---- postgresql-7.2/src/pl/plperl/Makefile.PL_orig 2002-02-15 16:59:00.000000000 +0100
-+++ postgresql-7.2/src/pl/plperl/Makefile.PL 2002-02-15 16:59:23.000000000 +0100
-@@ -3,36 +3,6 @@
- use DynaLoader;
- use Config;
-
--# On some platforms you can't build plperl unless libperl is a shared
--# library. (Actually, it would be enough if code in libperl.a is
--# compiled to be position-independent, but that is hard to check for
--# and seems pretty unlikely anyway.) On some platforms it doesn't
--# matter and they can pass in the --force flag to build anyway.
--# (Having a shared libperl is still a lot better for efficiency,
--# though.)
--
--if ($Config{'useshrplib'} ne 'true' && $ARGV[0] ne '--force') {
-- open(OUT, ">Makefile") or die "Can't write Makefile: $!\n";
-- print OUT <<'EndOfMakefile';
--# Dummy Makefile for use when we can't build plperl
--
--all:
-- @echo ""; \
-- echo "*** Cannot build PL/Perl because libperl is not a shared library." ; \
-- echo "*** You might have to rebuild your Perl installation. Refer to"; \
-- echo "*** the documentation for details."; \
-- echo ""
--
--install:
--
--clean realclean:
-- rm -f Makefile
--
--EndOfMakefile
-- close(OUT);
-- exit(0);
--}
--
- my $ldopts=ldopts();
- $ldopts=~s/$Config{ccdlflags}//;
-
diff --git a/dev-db/postgresql/files/postgresql-7.2.3-perl-gentoo.diff b/dev-db/postgresql/files/postgresql-7.2.3-perl-gentoo.diff
deleted file mode 100644
index 3c36f296aab8..000000000000
--- a/dev-db/postgresql/files/postgresql-7.2.3-perl-gentoo.diff
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr postgresql-7.2.2-orig/work/postgresql-7.2.2/src/interfaces/perl5/GNUmakefile postgresql-7.2.2/work/postgresql-7.2.2/src/interfaces/perl5/GNUmakefile
---- src/interfaces/perl5/GNUmakefile Sun Aug 26 18:28:04 2001
-+++ src/interfaces/perl5/GNUmakefile Tue Sep 24 17:10:32 2002
-@@ -38,7 +38,7 @@
- LIBS="-L$$abs_libpq_builddir -lpq" \
- INSTALLSITEARCH='$$(DESTDIR)$(perl_installsitearch)' \
- INSTALLSITELIB='$$(DESTDIR)$(perl_installsitelib)' \
-- INSTALLMAN3DIR='$$(DESTDIR)$(perl_installman3dir)' \
-+ INSTALLSITEMAN3DIR='$$(DESTDIR)$(perl_installman3dir)' \
- MAKEFILE="$$abs_builddir/Makefile"
-
- .PHONY: libpq-all
diff --git a/dev-db/postgresql/postgresql-7.2-r2.ebuild b/dev-db/postgresql/postgresql-7.2-r2.ebuild
deleted file mode 100644
index f6122489825f..000000000000
--- a/dev-db/postgresql/postgresql-7.2-r2.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2-r2.ebuild,v 1.13 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use an 1.3.x JDK instead."
- exit 1
- fi
-}
-
-src_unpack() {
- unpack postgresql-${PV}.tar.gz
-
- cd ${S}
-
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
-}
-
-src_compile() {
- local myconf
- if [ "`use tcltk`" ]
- then
- myconf="--with-tcl"
- fi
- if [ "`use python`" ]
- then
- myconf="$myconf --with-python"
- fi
- if [ "`use perl`" ]
- then
- myconf="$myconf --with-perl"
- fi
- if [ "`use java`" ]
- then
- myconf="$myconf --with-java"
- fi
- if [ "`use ssl`" ]
- then
- myconf="$myconf --with-openssl=/usr"
- fi
- if [ "`use nls`" ]
- then
- myconf="$myconf --enable-locale"
- fi
- if [ "`use libg++`" ]
- then
- myconf="$myconf --with-CXX"
- fi
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- $myconf || die
-
- emake || die
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- dodoc *.tar.gz
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- su - postgres -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data"
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2-r3.ebuild b/dev-db/postgresql/postgresql-7.2-r3.ebuild
deleted file mode 100644
index 879df921cc56..000000000000
--- a/dev-db/postgresql/postgresql-7.2-r3.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2-r3.ebuild,v 1.16 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use an 1.3.x JDK instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack postgresql-${PV}.tar.gz
-
- cd ${S}
-
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
-}
-
-src_compile() {
- local myconf
- if [ "`use tcltk`" ]
- then
- myconf="--with-tcl"
- fi
- if [ "`use python`" ]
- then
- myconf="$myconf --with-python"
- fi
- if [ "`use perl`" ]
- then
- myconf="$myconf --with-perl"
- fi
- if [ "`use java`" ]
- then
- myconf="$myconf --with-java"
- fi
- if [ "`use ssl`" ]
- then
- myconf="$myconf --with-openssl"
- fi
- if [ "`use nls`" ]
- then
- myconf="$myconf --enable-locale"
- fi
- if [ "`use libg++`" ]
- then
- myconf="$myconf --with-CXX"
- fi
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- $myconf || die
-
- emake || die
-}
-
-pkg_preinst() {
- if ! groupmod postgres ; then
- groupadd -g 70 postgres || die "problem adding group postgres"
- fi
-
- if ! id postgres; then
- useradd -g postgres -s /dev/null -d /var/lib/postgresql -c "postgres" postgres
- assert "problem adding user postgres"
- fi
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- dodoc *.tar.gz
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- setuidgid postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2.1-r1.ebuild b/dev-db/postgresql/postgresql-7.2.1-r1.ebuild
deleted file mode 100644
index 48f9c7d39ecd..000000000000
--- a/dev-db/postgresql/postgresql-7.2.1-r1.ebuild
+++ /dev/null
@@ -1,168 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.1-r1.ebuild,v 1.20 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- app-admin/sudo
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use any of the 1.3.x JDKs instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack postgresql-${PV}.tar.gz
-
- cd ${S}
-
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
- # cp ${FILESDIR}/${P}-build.xml ${S}/src/interfaces/jdbc/build.xml
-}
-
-src_compile() {
- local myconf
- if [ "`use tcltk`" ]
- then
- myconf="--with-tcl"
- fi
- if [ "`use python`" ]
- then
- myconf="$myconf --with-python"
- fi
- if [ "`use perl`" ]
- then
- myconf="$myconf --with-perl"
- fi
- if [ "`use java`" ]
- then
- myconf="$myconf --with-java"
- fi
- if [ "`use ssl`" ]
- then
- myconf="$myconf --with-openssl=yes"
- fi
- if [ "`use nls`" ]
- then
- myconf="$myconf --enable-locale --enable-nls"
- fi
- if [ "`use libg++`" ]
- then
- myconf="$myconf --with-CXX"
- fi
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- --enable-depend \
- --with-gnu-ld \
- --with-pam \
- --with-maxbackends=1024 \
- $myconf || die
-
- emake || die
-}
-
-pkg_preinst() {
- if ! groupmod postgres ; then
- groupadd -g 70 postgres || die "problem adding group postgres"
- fi
-
- if ! id postgres; then
- useradd -g postgres -s /dev/null -d /var/lib/postgresql -c "postgres" postgres
- assert "problem adding user postgres"
- fi
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- dodoc *.tar.gz
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
-
- dodir ${D}/usr/include/postgresql/pgsql
- ln -s ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- sudo -u postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2.1-r2.ebuild b/dev-db/postgresql/postgresql-7.2.1-r2.ebuild
deleted file mode 100644
index 7b753a4ec45f..000000000000
--- a/dev-db/postgresql/postgresql-7.2.1-r2.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.1-r2.ebuild,v 1.11 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- app-admin/sudo
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use any of the 1.3.x JDKs instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack postgresql-${PV}.tar.gz
-
- cd ${S}
-
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
- # cp ${FILESDIR}/${P}-build.xml ${S}/src/interfaces/jdbc/build.xml
-}
-
-src_compile() {
- local myconf
- use tcltk && myconf="--with-tcl"
- use python && myconf="$myconf --with-python"
- use perl && myconf="$myconf --with-perl"
- use java && myconf="$myconf --with-java"
- use ssl && myconf="$myconf --with-openssl=yes"
- use nls && myconf="$myconf --enable-locale --enable-nls --enable-multibyte"
- use libg++ && myconf="$myconf --with-CXX"
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- --enable-depend \
- --with-gnu-ld \
- --with-pam \
- --with-maxbackends=1024 \
- $myconf || die
-
- make || die
-}
-
-pkg_preinst() {
- if ! groupmod postgres ; then
- groupadd -g 70 postgres || die "problem adding group postgres"
- fi
-
- if ! id postgres; then
- useradd -g postgres -s /dev/null -d /var/lib/postgresql -c "postgres" postgres
- assert "problem adding user postgres"
- fi
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- dodoc *.tar.gz
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
-
- dodir ${D}/usr/include/postgresql/pgsql
- ln -s ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- sudo -u postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2.1.ebuild b/dev-db/postgresql/postgresql-7.2.1.ebuild
deleted file mode 100644
index bf3f92819fc7..000000000000
--- a/dev-db/postgresql/postgresql-7.2.1.ebuild
+++ /dev/null
@@ -1,148 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.1.ebuild,v 1.12 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use an 1.3.x JDK instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack postgresql-${PV}.tar.gz
-
- cd ${S}
-
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
-}
-
-src_compile() {
- local myconf
- if [ "`use tcltk`" ]
- then
- myconf="--with-tcl"
- fi
- if [ "`use python`" ]
- then
- myconf="$myconf --with-python"
- fi
- if [ "`use perl`" ]
- then
- myconf="$myconf --with-perl"
- fi
- if [ "`use java`" ]
- then
- myconf="$myconf --with-java"
- fi
- if [ "`use ssl`" ]
- then
- myconf="$myconf --with-openssl=/usr"
- fi
- if [ "`use nls`" ]
- then
- myconf="$myconf --enable-locale"
- fi
- if [ "`use libg++`" ]
- then
- myconf="$myconf --with-CXX"
- fi
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- $myconf || die
-
- emake || die
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- dodoc *.tar.gz
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- su - postgres -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data"
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2.2.ebuild b/dev-db/postgresql/postgresql-7.2.2.ebuild
deleted file mode 100644
index 407271d7bca8..000000000000
--- a/dev-db/postgresql/postgresql-7.2.2.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.2.ebuild,v 1.19 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- app-admin/sudo
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 >=dev-lang/tk-8.3.3-r1 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-# java dep workaround for portage bug
-# x86? ( java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 ) )
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use any of the 1.3.x JDKs instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
- patch -p0 < ${FILESDIR}/${P}-perl-gentoo.diff || die
-
- # cp ${FILESDIR}/${P}-build.xml ${S}/src/interfaces/jdbc/build.xml
-}
-
-src_compile() {
- local myconf
- use tcltk && myconf="--with-tcl"
- use python && myconf="$myconf --with-python"
- use perl && myconf="$myconf --with-perl"
- use java && myconf="$myconf --with-java"
- use ssl && myconf="$myconf --with-openssl"
- use nls && myconf="$myconf --enable-locale --enable-nls --enable-multibyte"
- use libg++ && myconf="$myconf --with-CXX"
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- --enable-depend \
- --with-gnu-ld \
- --with-pam \
- --with-maxbackends=1024 \
- $myconf || die
-
-
- make || die
-}
-
-pkg_preinst() {
- if ! groupmod postgres ; then
- groupadd -g 70 postgres || die "problem adding group postgres"
- fi
-
- if ! id postgres; then
- useradd -g postgres -s /bin/bash -d /var/lib/postgresql -c "postgres" postgres
- assert "problem adding user postgres"
- fi
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- if [ `use java` ]; then
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
- fi
-
- dodir /usr/include/postgresql/pgsql
- cp ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-}
-
-pkg_postinst() {
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- sudo -u postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2.3-r1.ebuild b/dev-db/postgresql/postgresql-7.2.3-r1.ebuild
deleted file mode 100644
index d466bb181e74..000000000000
--- a/dev-db/postgresql/postgresql-7.2.3-r1.ebuild
+++ /dev/null
@@ -1,153 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.3-r1.ebuild,v 1.10 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- app-admin/sudo
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 >=dev-lang/tk-8.3.3-r1 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-# java dep workaround for portage bug
-# x86? ( java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 ) )
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use any of the 1.3.x JDKs instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
- patch -p0 < ${FILESDIR}/${P}-perl-gentoo.diff || die
-
- # cp ${FILESDIR}/${P}-build.xml ${S}/src/interfaces/jdbc/build.xml
-}
-
-src_compile() {
- local myconf
- use tcltk && myconf="--with-tcl"
- use python && myconf="$myconf --with-python"
- use perl && myconf="$myconf --with-perl"
- use java && myconf="$myconf --with-java"
- use ssl && myconf="$myconf --with-openssl"
- use nls && myconf="$myconf --enable-locale --enable-nls --enable-multibyte"
- use libg++ && myconf="$myconf --with-CXX"
-
- # these are the only working CFLAGS I could get on ppc, so locking them
- # down, anything more aggressive fails (i.e. -mcpu or -Ox)
- # Gerk - Nov 26, 2002
- use ppc && CFLAGS="-pipe -fsigned-char"
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- --enable-depend \
- --with-gnu-ld \
- --with-pam \
- --with-maxbackends=1024 \
- $myconf || die
-
-
- make || die
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- if [ `use java` ]; then
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
- fi
-
- dodir /usr/include/postgresql/pgsql
- cp ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- exeinto /etc/conf.d/
- doexe ${FILESDIR}/postgresql
-}
-
-pkg_postinst() {
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${PF}/${PF}.ebuild config"
- einfo ">>> to setup the initial database environment."
- einfo ">>> "
- einfo ">>> Make sure the postgres user in /etc/passwd has an account setup with /bin/bash as the shell, or /bin/true"
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- sudo -u postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.2.3.ebuild b/dev-db/postgresql/postgresql-7.2.3.ebuild
deleted file mode 100644
index bc99f0c721ef..000000000000
--- a/dev-db/postgresql/postgresql-7.2.3.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.3.ebuild,v 1.8 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.easynet.be/postgresql/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="x86 -ppc"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- app-admin/sudo
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 >=dev-lang/tk-8.3.3-r1 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-# java dep workaround for portage bug
-# x86? ( java? ( =virtual/jdk-1.3* >=dev-java/ant-1.3 ) )
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( =virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-pkg_setup() {
- local foo
- if [ "`use java`" ] ; then
- foo=`java-config --java-version 2>&1 | grep "1.4.0"`
- if [ ! -z "$foo" ] ; then
- einfo "Cannot build with Sun JDK 1.4.0, use any of the 1.3.x JDKs instead."
- exit 1
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- # we know that a shared libperl is present, the default perl
- # config is however set to the static libperl.a
- # just remove the check
- patch -p1 < ${FILESDIR}/${P}-dyn-libperl-gentoo.diff || die
- patch -p0 < ${FILESDIR}/${P}-perl-gentoo.diff || die
-
- # cp ${FILESDIR}/${P}-build.xml ${S}/src/interfaces/jdbc/build.xml
-}
-
-src_compile() {
- local myconf
- use tcltk && myconf="--with-tcl"
- use python && myconf="$myconf --with-python"
- use perl && myconf="$myconf --with-perl"
- use java && myconf="$myconf --with-java"
- use ssl && myconf="$myconf --with-openssl"
- use nls && myconf="$myconf --enable-locale --enable-nls --enable-multibyte"
- use libg++ && myconf="$myconf --with-CXX"
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- --enable-depend \
- --with-gnu-ld \
- --with-pam \
- --with-maxbackends=1024 \
- $myconf || die
-
-
- make || die
-}
-
-pkg_preinst() {
- if ! groupmod postgres ; then
- groupadd -g 70 postgres || die "problem adding group postgres"
- fi
-
- if ! id postgres; then
- useradd -g postgres -s /bin/bash -d /var/lib/postgresql -c "postgres" postgres
- assert "problem adding user postgres"
- fi
-}
-
-src_install() {
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- if [ `use java` ]; then
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
- fi
-
- dodir /usr/include/postgresql/pgsql
- cp ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- exeinto /etc/conf.d/
- doexe ${FILESDIR}/postgresql
-}
-
-pkg_postinst() {
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${P}/${P}.ebuild config"
- einfo ">>> to setup the initial database environment."
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p /var/lib/postgresql/data
- chown -Rf postgres.postgres /var/lib/postgresql
- chmod 700 /var/lib/postgresql/data
-
- einfo ">>> Initializing the database ..."
- if [ -f /var/lib/postgresql/data/PG_VERSION ] ; then
- echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION
- echo "Read the documentation to check how to upgrade to version ${PV}."
- else
- sudo -u postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data
- fi
-}
diff --git a/dev-db/postgresql/postgresql-7.3.1.ebuild b/dev-db/postgresql/postgresql-7.3.1.ebuild
deleted file mode 100644
index 4bf7da94be48..000000000000
--- a/dev-db/postgresql/postgresql-7.3.1.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.3.1.ebuild,v 1.9 2003/03/11 21:11:45 seemant Exp $
-
-DESCRIPTION="sophisticated Object-Relational DBMS"
-SRC_URI="ftp://ftp.us.postgresql.org/source/v${PV}/${P}.tar.gz"
-HOMEPAGE="http://www.postgresql.org/"
-
-LICENSE="POSTGRESQL"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~alpha"
-IUSE="ssl nls java python tcltk perl"
-
-DEPEND="virtual/glibc
- sys-devel/autoconf
- app-admin/sudo
- >=sys-libs/readline-4.1
- >=sys-libs/ncurses-5.2
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 >=dev-lang/tk-8.3.3-r1 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
- java? ( >=virtual/jdk-1.3* >=dev-java/ant-1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )"
-# java dep workaround for portage bug
-# x86? ( java? ( =dev-java/sun-jdk-1.3* >=dev-java/ant-1.3 ) )
-RDEPEND="virtual/glibc
- >=sys-libs/zlib-1.1.3
- tcltk? ( >=dev-lang/tcl-8 )
- perl? ( >=dev-lang/perl-5.6.1-r2 )
- python? ( >=dev-lang/python-2.2 )
- java? ( >=virtual/jdk-1.3* )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )"
-
-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 7 ] || [ ${PG_MAJOR} -eq 7 -a ${PG_MINOR} -lt 3 ] ; then
- eerror "Postgres ${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})."
- exit 1
- fi
- fi
-}
-
-src_compile() {
- local myconf
- use tcltk && myconf="--with-tcl"
- use python && myconf="$myconf --with-python"
- use perl && myconf="$myconf --with-perl"
- use java && myconf="$myconf --with-java"
- use ssl && myconf="$myconf --with-openssl"
- use nls && myconf="$myconf --enable-locale --enable-nls --enable-multibyte"
- use libg++ && myconf="$myconf --with-CXX"
-
- # these are the only working CFLAGS I could get on ppc, so locking them
- # down, anything more aggressive fails (i.e. -mcpu or -Ox)
- # Gerk - Nov 26, 2002
- use ppc && CFLAGS="-pipe -fsigned-char"
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${P} \
- --libdir=/usr/lib \
- --enable-syslog \
- --enable-depend \
- --with-gnu-ld \
- --with-pam \
- --with-maxbackends=1024 \
- $myconf || die
-
-
- make || die
- cd contrib
- make || die
-}
-
-src_install() {
- addwrite "/usr/share/man/man3/Pg.3pm"
-
- if [ "`use perl`" ]
- then
- mv ${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 ${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
-
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- make DESTDIR=${D} install-all-headers || die
- cd ${S}/contrib
- make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
- cd ${S}
- dodoc COPYRIGHT HISTORY INSTALL README register.txt
- dodoc contrib/adddepend/*
- cd ${S}/doc
- dodoc FAQ* KNOWN_BUGS MISSING_FEATURES README*
- dodoc TODO internals.ps bug.template
- docinto sgml
- dodoc src/sgml/*.{sgml,dsl}
- docinto sgml/ref
- dodoc src/sgml/ref/*.sgml
- docinto sgml/graphics
- dodoc src/graphics/*
- rm -rf ${D}/usr/doc ${D}/mnt
- exeinto /usr/bin
-
- if [ `use java` ]; then
- dojar ${D}/usr/share/postgresql/java/postgresql.jar
- rm ${D}/usr/share/postgresql/java/postgresql.jar
- fi
-
- dodir /usr/include/postgresql/pgsql
- cp ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql
-
- exeinto /etc/init.d/
- doexe ${FILESDIR}/${PV}/${PN}
-
- exeinto /etc/conf.d/
- doexe ${FILESDIR}/postgresql
-}
-
-pkg_postinst() {
- einfo ">>> Execute the following command"
- einfo ">>> ebuild /var/db/pkg/dev-db/${PF}/${PF}.ebuild config"
- einfo ">>> to setup the initial database environment."
- einfo ">>> "
- einfo ">>> Make sure the postgres user in /etc/passwd has an account setup with /bin/bash as the shell, or /bin/true"
-}
-
-pkg_config() {
- einfo ">>> Creating data directory ..."
- mkdir -p ${PG_DIR}/data
- chown -Rf postgres.postgres ${PG_DIR}
- chmod 700 ${PG_DIR}/data
-
- einfo ">>> Initializing the database ..."
- 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 7 ] || [ ${PG_MAJOR} -eq 7 -a ${PG_MINOR} -lt 3 ] ; then
- eerror "Postgres ${PV} cannot upgrade your existing databases."
- eerror "You must remove your entire database directory to continue."
- eerror "(database directory = ${PG_DIR})."
- exit 1
- else
- einfo -n "A postgres data directory already exists from version "; cat ${PG_DIR}/data/PG_VERSION
- einfo "Read the documentation to check how to upgrade to version ${PV}."
- fi
- else
- sudo -u postgres /usr/bin/initdb --pgdata ${PG_DIR}/data
- einfo "If you are upgrading from a pre-7.3 version of PostgreSQL, please read"
- einfo "the README.adddepend file for information on how to properly migrate"
- einfo "all serial columns, unique keys and foreign keys to this version."
- fi
-}