Dropped old versions. Added note for people having the pg-hier USE-flag set.
authorTiziano Müller <dev-zero@gentoo.org>
Sun, 17 Dec 2006 09:40:42 +0000 (09:40 +0000)
committerTiziano Müller <dev-zero@gentoo.org>
Sun, 17 Dec 2006 09:40:42 +0000 (09:40 +0000)
Package-Manager: portage-2.1.2_rc3

dev-db/postgresql/ChangeLog
dev-db/postgresql/postgresql-7.4.14.ebuild
dev-db/postgresql/postgresql-8.0.9-r1.ebuild

index 123c7f7424eb1e7303fff1aaee2cce7b2ecc3e5b..9a270f99f4bdeffc86b9d8363c3c8864a3ee5129 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for dev-db/postgresql
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.307 2006/12/17 08:08:48 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.308 2006/12/17 09:40:42 dev-zero Exp $
+
+  17 Dec 2006; Tiziano Müller <dev-zero@gentoo.org>
+  postgresql-7.4.14.ebuild, -postgresql-8.0.9.ebuild,
+  postgresql-8.0.9-r1.ebuild, -postgresql-8.1.5.ebuild:
+  Dropped old versions. Added note for people having the pg-hier USE-flag set.
 
   17 Dec 2006; Tobias Scherbaum <dertobi123@gentoo.org>
   postgresql-7.3.16.ebuild, postgresql-7.4.14.ebuild,
index 201960076c57a0936d3fe8fb5c812b2752260cb6..9b0f3012450963dcf50401ae175579ce977500dc 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.14.ebuild,v 1.8 2006/12/17 08:08:48 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.14.ebuild,v 1.9 2006/12/17 09:40:42 dev-zero Exp $
 
 inherit eutils gnuconfig flag-o-matic multilib toolchain-funcs versionator
 
@@ -47,7 +47,17 @@ pkg_setup() {
                        eerror "(database directory = ${PG_DIR})."
                        die "Remove your database directory to continue"
                fi
+               if built_with_use dev-db/postgresql pg-hier ; then
+                       eerror "The hier-patch has been dropped and your existing database"
+                       eerror "can't be used without it. You have to use pg_dump to export your"
+                       eerror "existing database cluster, move ${PG_DIR}/data away and then use"
+                       eerror "pg_restore to re-create the database using the new version."
+                       eerror "Sorry for the inconvience. Please open a bug if you really need"
+                       eerror "the hier-patch."
+                       die "Move your database directory to continue."
+               fi
        fi
+
        enewgroup postgres 70
        enewuser postgres 70 /bin/bash /var/lib postgres
 }
index bfbf17d7740ef9c64339c3b182b9ef5220a4c229..9afc18467a2ec1944393ad01f9bc33f9cd5c8204 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.0.9-r1.ebuild,v 1.4 2006/12/17 08:08:48 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.0.9-r1.ebuild,v 1.5 2006/12/17 09:40:42 dev-zero Exp $
 
 inherit eutils gnuconfig flag-o-matic multilib toolchain-funcs versionator
 
@@ -47,7 +47,17 @@ pkg_setup() {
                        eerror "(database directory = ${PG_DIR})."
                        die "Remove your database directory to continue"
                fi
+               if built_with_use dev-db/postgresql pg-hier ; then
+                       eerror "The hier-patch has been dropped and your existing database"
+                       eerror "can't be used without it. You have to use pg_dump to export your"
+                       eerror "existing database cluster, move ${PG_DIR}/data away and then use"
+                       eerror "pg_restore to re-create the database using the new version."
+                       eerror "Sorry for the inconvience. Please open a bug if you really need"
+                       eerror "the hier-patch."
+                       die "Move your database directory to continue."
+               fi
        fi
+
        enewgroup postgres 70
        enewuser postgres 70 /bin/bash /var/lib postgres
 }