diff options
author | Masatomo Nakano <nakano@gentoo.org> | 2005-09-21 16:31:19 +0000 |
---|---|---|
committer | Masatomo Nakano <nakano@gentoo.org> | 2005-09-21 16:31:19 +0000 |
commit | 61d9c1c3fa98bcccdde98f8bb2d7b839f974cb36 (patch) | |
tree | d74f3e312f913d14a03bb171738472220c54eb21 /dev-db/postgresql/files | |
parent | adding beta version (diff) | |
download | historical-61d9c1c3fa98bcccdde98f8bb2d7b839f974cb36.tar.gz historical-61d9c1c3fa98bcccdde98f8bb2d7b839f974cb36.tar.bz2 historical-61d9c1c3fa98bcccdde98f8bb2d7b839f974cb36.zip |
version bump
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'dev-db/postgresql/files')
5 files changed, 153 insertions, 0 deletions
diff --git a/dev-db/postgresql/files/digest-postgresql-8.1_beta2 b/dev-db/postgresql/files/digest-postgresql-8.1_beta2 new file mode 100644 index 000000000000..6ec37de83a57 --- /dev/null +++ b/dev-db/postgresql/files/digest-postgresql-8.1_beta2 @@ -0,0 +1,3 @@ +MD5 0dd333d7bf38719fca393bad55c689de postgresql-base-8.1beta2.tar.bz2 7968635 +MD5 d28a9b57be29ce5f7ba521df82f5938e postgresql-opt-8.1beta2.tar.bz2 140771 +MD5 3ca3488afacbda566ab4441f70e631f6 postgresql-docs-8.1beta2.tar.bz2 2413203 diff --git a/dev-db/postgresql/files/postgresql-8.1_beta2-gentoo.patch b/dev-db/postgresql/files/postgresql-8.1_beta2-gentoo.patch new file mode 100644 index 000000000000..b93f376d4d1c --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.1_beta2-gentoo.patch @@ -0,0 +1,39 @@ +diff -Naru postgresql-8.1beta1.org/src/interfaces/Makefile postgresql-8.1beta1/src/interfaces/Makefile +--- postgresql-8.1beta1.org/src/interfaces/Makefile 2004-04-20 01:33:51.000000000 +0100 ++++ postgresql-8.1beta1/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) + +diff -Naru postgresql-8.1beta1.org/src/Makefile postgresql-8.1beta1/src/Makefile +--- postgresql-8.1beta1.org/src/Makefile 2005-01-13 18:23:21.000000000 +0000 ++++ postgresql-8.1beta1/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 $@ diff --git a/dev-db/postgresql/files/postgresql-8.1_beta2-sh.patch b/dev-db/postgresql/files/postgresql-8.1_beta2-sh.patch new file mode 100644 index 000000000000..fc59d52af0e8 --- /dev/null +++ b/dev-db/postgresql/files/postgresql-8.1_beta2-sh.patch @@ -0,0 +1,34 @@ +--- 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__ */ + + ++#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__) + #define HAS_TEST_AND_SET + diff --git a/dev-db/postgresql/files/postgresql.conf-8.1_beta2 b/dev-db/postgresql/files/postgresql.conf-8.1_beta2 new file mode 100644 index 000000000000..e8dab3e4c827 --- /dev/null +++ b/dev-db/postgresql/files/postgresql.conf-8.1_beta2 @@ -0,0 +1,14 @@ +# PostgreSQL's Database Directory +PGDATA=/var/lib/postgresql/data + +# Logfile path: (NOTE: This must be uid/gid owned by the value of $PGUSER!) +PGLOG=/var/lib/postgresql/data/postgresql.log + +# Run the PostgreSQL user as: +PGUSER=postgres + +# Extra options to run postmaster with. +# If you want to enable TCP/IP for PostgreSQL, add -i to the following: +# PGOPTS="-N 1024 -B 2048 -i" +PGOPTS="" + diff --git a/dev-db/postgresql/files/postgresql.init-8.1_beta2 b/dev-db/postgresql/files/postgresql.init-8.1_beta2 new file mode 100644 index 000000000000..b35328a92a96 --- /dev/null +++ b/dev-db/postgresql/files/postgresql.init-8.1_beta2 @@ -0,0 +1,63 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-8.1_beta2,v 1.1 2005/09/21 16:31:19 nakano Exp $ + +opts="${opts} reload" + +depend() { + use net +} + +checkconfig() { + if [ ! -d $PGDATA ]; then + eerror "directory not found: $PGDATA" + eerror "You should create PGDATA directory first." + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting PostgreSQL" + if [ -f $PGDATA/postmaster.pid ]; then + rm $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 "Please see log file: $PGLOG" + 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 $? +} |