diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2006-11-11 12:15:02 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2006-11-11 12:15:02 +0000 |
commit | 838e4774b6a42ee10b436baeadc5760d0309b2bf (patch) | |
tree | 429df2d865be4e098f89104b944f1790d16b52ca /dev-db | |
parent | Bug #153896, bump for security reasons. Also clean up some minor QA issues, a... (diff) | |
download | gentoo-2-838e4774b6a42ee10b436baeadc5760d0309b2bf.tar.gz gentoo-2-838e4774b6a42ee10b436baeadc5760d0309b2bf.tar.bz2 gentoo-2-838e4774b6a42ee10b436baeadc5760d0309b2bf.zip |
Added PGDATA_ALT env var for postgres-7.4: bug #69139
(Portage version: 2.1.2_rc1-r5)
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/postgresql/ChangeLog | 6 | ||||
-rw-r--r-- | dev-db/postgresql/files/postgresql.conf-7.4 | 7 | ||||
-rw-r--r-- | dev-db/postgresql/files/postgresql.init-7.4 | 4 |
3 files changed, 14 insertions, 3 deletions
diff --git a/dev-db/postgresql/ChangeLog b/dev-db/postgresql/ChangeLog index 7d9c654e1007..ae84a6561246 100644 --- a/dev-db/postgresql/ChangeLog +++ b/dev-db/postgresql/ChangeLog @@ -1,6 +1,10 @@ # 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.298 2006/11/09 18:35:25 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.299 2006/11/11 12:15:02 dev-zero Exp $ + + 11 Nov 2006; Tiziano Müller <dev-zero@gentoo.org> + files/postgresql.conf-7.4, files/postgresql.init-7.4: + Added PGDATA_ALT env var for postgres-7.4: bug #69139 09 Nov 2006; Luca Longinotti <chtekk@gentoo.org> postgresql-7.3.15-r1.ebuild, postgresql-7.3.16.ebuild, diff --git a/dev-db/postgresql/files/postgresql.conf-7.4 b/dev-db/postgresql/files/postgresql.conf-7.4 index c6fd787f744d..6c8ecc5963dc 100644 --- a/dev-db/postgresql/files/postgresql.conf-7.4 +++ b/dev-db/postgresql/files/postgresql.conf-7.4 @@ -1,6 +1,13 @@ # PostgreSQL's Database Directory PGDATA="/var/lib/postgresql/data" +# Alternate database data locations +# Please read http://www.postgresql.org/docs/7.4/static/manage-ag-alternate-locs.html +# for more information. +# Example: +# PGDATA_ALT="PGDATA_RAID=/mnt/superfastraid" +PGDATA_ALT= + # Logfile path (NOTE: This must be owned by the uid/gid of $PGUSER!) PGLOG="/var/lib/postgresql/data/postgresql.log" diff --git a/dev-db/postgresql/files/postgresql.init-7.4 b/dev-db/postgresql/files/postgresql.init-7.4 index 453b93dc0748..4efe43485f26 100644 --- a/dev-db/postgresql/files/postgresql.init-7.4 +++ b/dev-db/postgresql/files/postgresql.init-7.4 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-7.4,v 1.5 2006/11/07 22:48:22 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-7.4,v 1.6 2006/11/11 12:15:02 dev-zero Exp $ opts="${opts} reload" @@ -26,7 +26,7 @@ start() { rm -f "$PGDATA/postmaster.pid" fi - su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'" + su - $PGUSER -c "${PGDATA_ALT} /usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'" while : do |