diff options
author | Geert Bevin <gbevin@gentoo.org> | 2002-02-05 10:38:14 +0000 |
---|---|---|
committer | Geert Bevin <gbevin@gentoo.org> | 2002-02-05 10:38:14 +0000 |
commit | 014aaee356bb15aec47b89b279888579cdd7430a (patch) | |
tree | 4d8a038118927b342946ddde61695aca95c3b937 /dev-db | |
parent | Fixes to data dir and added binary compatibility slot. (diff) | |
download | gentoo-2-014aaee356bb15aec47b89b279888579cdd7430a.tar.gz gentoo-2-014aaee356bb15aec47b89b279888579cdd7430a.tar.bz2 gentoo-2-014aaee356bb15aec47b89b279888579cdd7430a.zip |
datadir changed to /var/lib/postgresql
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/postgresql/ChangeLog | 5 | ||||
-rw-r--r-- | dev-db/postgresql/postgresql-7.1.3-r4.ebuild | 14 |
2 files changed, 10 insertions, 9 deletions
diff --git a/dev-db/postgresql/ChangeLog b/dev-db/postgresql/ChangeLog index 89003e456eeb..d4b25dc4190a 100644 --- a/dev-db/postgresql/ChangeLog +++ b/dev-db/postgresql/ChangeLog @@ -1,12 +1,13 @@ # ChangeLog for dev-db/postgresql # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.2 2002/02/05 10:35:51 gbevin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.3 2002/02/05 10:38:14 gbevin Exp $ *postgresql-7.1.3-r4 (5 Feb 2002) 5 Feb 2002; G.Bevin <gbevin@gentoo.org> postgresql-7.1.3-r4.ebuild : Changed data dirs to use a fixed path instead of determining it from the - package name. Also added a binary compatibility slot. + package name. Also added a binary compatibility slot. Changed data dir to + /var/lib/postgresql/data to follow what has been done by the mysql ebuild. 5 Feb 2002; G.Bevin <gbevin@gentoo.org> files/7.1.3/postgresql : Fixed wrong data dir in init script. diff --git a/dev-db/postgresql/postgresql-7.1.3-r4.ebuild b/dev-db/postgresql/postgresql-7.1.3-r4.ebuild index fccef583379d..e090e70385ff 100644 --- a/dev-db/postgresql/postgresql-7.1.3-r4.ebuild +++ b/dev-db/postgresql/postgresql-7.1.3-r4.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Geert Bevin <gbevin@theleaf.be> -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.1.3-r4.ebuild,v 1.1 2002/02/05 10:35:51 gbevin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.1.3-r4.ebuild,v 1.2 2002/02/05 10:38:14 gbevin Exp $ S=${WORKDIR}/${P} DESCRIPTION="PostgreSQL is a sophisticated Object-Relational DBMS" @@ -155,16 +155,16 @@ src_install () { pkg_config() { einfo ">>> Creating data directory ..." - mkdir -p /var/db/postgresql/data - chown -Rf postgres.postgres /var/db/postgresql - chmod 700 /var/db/postgresql/data + 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/db/postgresql/data/PG_VERSION ] ; then - echo -n "A postgres data directory already exists from version "; cat /var/db/postgresql/data/PG_VERSION + 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/db/postgresql/data" + su - postgres -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data" fi } |