From: Konstantin V. Arkhipov Date: Wed, 2 May 2007 10:20:46 +0000 (+0000) Subject: + ugh, forgotten files.. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8de2eec0d6f8ad5d1a1c38874172f5a30ce4dad2;p=gentoo.git + ugh, forgotten files.. Package-Manager: portage-2.1.2.5 --- diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest index def7c4bb166b..509e1c944943 100644 --- a/dev-db/postgresql/Manifest +++ b/dev-db/postgresql/Manifest @@ -170,6 +170,10 @@ AUX postgresql.conf-8.1 1714 RMD160 d726aaffa860620b8b8c30f6f713d3a388adf1e5 SHA MD5 fa89b0f3a1fb05a19d803bf69099eda8 files/postgresql.conf-8.1 1714 RMD160 d726aaffa860620b8b8c30f6f713d3a388adf1e5 files/postgresql.conf-8.1 1714 SHA256 29ae16457bb8e356f84a3368948876480858ed7d346734649ba7049431cb11eb files/postgresql.conf-8.1 1714 +AUX postgresql.conf-8.2 1714 RMD160 d726aaffa860620b8b8c30f6f713d3a388adf1e5 SHA1 eb2e7ead1a24f655f513ae68c34e879d58a41928 SHA256 29ae16457bb8e356f84a3368948876480858ed7d346734649ba7049431cb11eb +MD5 fa89b0f3a1fb05a19d803bf69099eda8 files/postgresql.conf-8.2 1714 +RMD160 d726aaffa860620b8b8c30f6f713d3a388adf1e5 files/postgresql.conf-8.2 1714 +SHA256 29ae16457bb8e356f84a3368948876480858ed7d346734649ba7049431cb11eb files/postgresql.conf-8.2 1714 AUX postgresql.init-7.3 1332 RMD160 deb0bbb69d96ec21ac9b9b636f62fb47f5d997ab SHA1 571fc01d85a37061baef8f7e291cae481f6cf87a SHA256 15296b663506b9840990a08d592adda16acbb1b59b57b81484808e5486b35ab4 MD5 0f39215e02d3c179cb2a49334bf82fee files/postgresql.init-7.3 1332 RMD160 deb0bbb69d96ec21ac9b9b636f62fb47f5d997ab files/postgresql.init-7.3 1332 @@ -186,6 +190,10 @@ AUX postgresql.init-8.1 1523 RMD160 4776cc4989bdc153d77f66d6c8c92a560f99fe82 SHA MD5 102f0dc365606c088f903371d0b0d6c1 files/postgresql.init-8.1 1523 RMD160 4776cc4989bdc153d77f66d6c8c92a560f99fe82 files/postgresql.init-8.1 1523 SHA256 d79d9bf91873697ab3be5da578630fcaa5ac07d3bd9bdc44f7f0543a1e6cae82 files/postgresql.init-8.1 1523 +AUX postgresql.init-8.2 1296 RMD160 6d6e25483050ef1f050ad9f2db1e2b90de45fccd SHA1 9d1acc1446e92c0fa864e7a2ae19bb28eed63c64 SHA256 8093531ab1d18eb8ff5231d1357cf5ba6f77bd98debaf9bd8666a8707a3e25e7 +MD5 3cd8ff8b92a56885ecdf76fcab7f7322 files/postgresql.init-8.2 1296 +RMD160 6d6e25483050ef1f050ad9f2db1e2b90de45fccd files/postgresql.init-8.2 1296 +SHA256 8093531ab1d18eb8ff5231d1357cf5ba6f77bd98debaf9bd8666a8707a3e25e7 files/postgresql.init-8.2 1296 DIST hier-Pg7.4-0.5.3.tar.gz 34662 RMD160 758a67262ad3dbad649cc8a6b3ef610e6123dd68 SHA1 5b99167a9a87130cc2b7f582e28e3aef6f7f67b3 SHA256 1e56f76560c86227b08faabf78e3a53de4188c6a8f9d1f38b1481427e8fdf74c DIST hier-Pg8.0.1-0.5.4.diff.gz 30662 RMD160 f212f840d06a914fd668398848baef5a269875eb SHA1 c1a1141363c1d3c14025d97993b5367166c85da4 SHA256 e6ec8792d6a33ec5f0031b530d794aa3877397c3f980f11dc958d480d2352eda DIST postgresql-base-7.3.15.tar.bz2 5695061 RMD160 55cc363e1ce26ea0c7f79c5adfd90714988afb46 SHA1 059f16d3e98df525e9c0962f29f2126a9397dc02 SHA256 81da1ab6c3d9e19aef068cc1db81ca696771dfa5c8ff262bcb1bf977ac7429dc diff --git a/dev-db/postgresql/files/postgresql.conf-8.2 b/dev-db/postgresql/files/postgresql.conf-8.2 new file mode 100644 index 000000000000..23956741a02e --- /dev/null +++ b/dev-db/postgresql/files/postgresql.conf-8.2 @@ -0,0 +1,47 @@ +# PostgreSQL's Database Directory +PGDATA="/var/lib/postgresql/data" + +# PostgreSQL User +PGUSER="postgres" + +# PostgreSQL Group +PGGROUP="postgres" + +# Extra options to run postmaster with +# -N is the maximal number of client connections +# -B is the number of shared buffers and has to be at least 2x the value for -N +# Please read the man-page to postmaster for more options. Many of these options +# can be set directly in the configuration-file. +PGOPTS="-N 512 -B 1024" + + +# SERVER SHUTDOWN: +# The server will receive 3 signals in the worst case: +# 1. SIGTERM +# This signals the server to ignore new connections and to +# wait for all clients to end their transactions before shutting down. +# Use WAIT_FOR_DISCONNECT to control how much time the clients +# should have until the next signal is being sent. +# 2. SIGINT +# Tell the server to forcefully disconnect all clients. +# Terminating a client results in a rollback of the open transactions for this client. +# Use WAIT_FOR_CLEANUP to determine how much time the server has +# for cleanup. (Set it to "forever" if you want to wait forever.) +# 3. SIGQUIT +# This will terminate the server immediately and results in a recovery run for the next start. + +# Wait for clients to disconnect (seconds or "forever") +WAIT_FOR_DISCONNECT=10 + +# Time the server has to clean up (seconds or "forever") +WAIT_FOR_CLEANUP=10 + +# If you have to export environment variables for the database process, +# this can be done here. +# Just define a new variable ENV_identifier="ENV_VAR_NAME=env_var_content", +# ENV_VAR_NAME will then be exported to the postgresql's environment. +# +# Example: +# ENV_plr="R_HOME=/usr/lib/R" +# This exports a variable R_HOME with the content "/usr/lib/R" + diff --git a/dev-db/postgresql/files/postgresql.init-8.2 b/dev-db/postgresql/files/postgresql.init-8.2 new file mode 100644 index 000000000000..6ccad4af17fe --- /dev/null +++ b/dev-db/postgresql/files/postgresql.init-8.2 @@ -0,0 +1,55 @@ +#!/sbin/runscript + +opts="${opts} reload" + +depend() { + use net +} + +checkconfig() { + if [ ! -d "$PGDATA" ] ; then + eerror "Directory not found: $PGDATA" + eerror "Please make sure that PGDATA points to the right path." + eerror "You can run 'emerge postgresql --config' to setup a new database cluster." + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting PostgreSQL" + + if [ -f "$PGDATA/postmaster.pid" ] ; then + rm -f "$PGDATA/postmaster.pid" + fi + + local env_vars + for var in ${!ENV_*} ; do env_vars="${env_vars} -e ${!var}" ; done + start-stop-daemon --start \ + --pidfile "${PGDATA}/postmaster.pid" \ + --chuid ${PGUSER}:${PGGROUP} \ + --exec /usr/bin/postmaster \ + ${env_vars} -- \ + -D "${PGDATA}" \ + --silent-mode=true \ + ${PGOPTS} + + eend $? +} + +stop() { + ebegin "Stopping PostgreSQL" + # Note: we have to do --oknodo here, otherwise it will always fail + # when there are open transactions. This bug has been corrected + # in baselayout-1.13.0_alpha8. + start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \ + --retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo + eend $? +} + +reload() { + ebegin "Reloading PostgreSQL configuration" + start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" --signal HUP --oknodo + eend $? +}