]> Frank Brehm's Git Trees - config/samara/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorfbrehm <fbrehm@samara.profitbricks.localdomain>
Thu, 7 Jun 2012 06:52:35 +0000 (08:52 +0200)
committerroot <root@samara.profitbricks.localdomain>
Thu, 7 Jun 2012 06:52:35 +0000 (08:52 +0200)
28 files changed:
.etckeeper
conf.d/._cfg0000_acpid [deleted file]
conf.d/acpid
config-archive/etc/conf.d/acpid [new file with mode: 0644]
config-archive/etc/conf.d/acpid.dist [new file with mode: 0644]
config-archive/etc/eselect/postgresql/slots/9.1/base
config-archive/etc/eselect/postgresql/slots/9.1/base.1 [new file with mode: 0644]
config-archive/etc/eselect/postgresql/slots/9.1/base.dist
config-archive/etc/eselect/postgresql/slots/9.1/docs
config-archive/etc/eselect/postgresql/slots/9.1/docs.1 [new file with mode: 0644]
config-archive/etc/eselect/postgresql/slots/9.1/docs.dist
config-archive/etc/eselect/postgresql/slots/9.1/server
config-archive/etc/eselect/postgresql/slots/9.1/server.1 [new file with mode: 0644]
config-archive/etc/eselect/postgresql/slots/9.1/server.dist
config-archive/etc/init.d/acpid [new file with mode: 0755]
config-archive/etc/init.d/acpid.dist [new file with mode: 0755]
config-archive/etc/init.d/postgresql-9.1 [new file with mode: 0755]
config-archive/etc/init.d/postgresql-9.1.dist [new file with mode: 0755]
eselect/postgresql/slots/9.1/._cfg0000_base [deleted file]
eselect/postgresql/slots/9.1/._cfg0000_docs [deleted file]
eselect/postgresql/slots/9.1/._cfg0000_server [deleted file]
eselect/postgresql/slots/9.1/base
eselect/postgresql/slots/9.1/docs
eselect/postgresql/slots/9.1/server
init.d/._cfg0000_acpid [deleted file]
init.d/._cfg0000_postgresql-9.1 [deleted file]
init.d/acpid
init.d/postgresql-9.1

index b91fa22b5a6186d69905da55b6539f0fef4e6049..21efa1c308f15a9761bf2a2941a01c4f955fc1ef 100755 (executable)
@@ -226,7 +226,6 @@ maybe chmod 0644 './colord.conf'
 maybe chmod 0644 './colordiffrc'
 maybe chmod 0644 './colordiffrc-lightbg'
 maybe chmod 0755 './conf.d'
-maybe chmod 0644 './conf.d/._cfg0000_acpid'
 maybe chmod 0644 './conf.d/acpid'
 maybe chmod 0644 './conf.d/alsasound'
 maybe chmod 0644 './conf.d/apache2'
@@ -313,6 +312,8 @@ maybe chmod 0644 './config-archive/etc/bash/bashrc.dist.new'
 maybe chmod 0644 './config-archive/etc/colord.conf'
 maybe chmod 0644 './config-archive/etc/colord.conf.dist'
 maybe chmod 0755 './config-archive/etc/conf.d'
+maybe chmod 0644 './config-archive/etc/conf.d/acpid'
+maybe chmod 0644 './config-archive/etc/conf.d/acpid.dist'
 maybe chmod 0644 './config-archive/etc/conf.d/alsasound'
 maybe chmod 0644 './config-archive/etc/conf.d/alsasound.dist'
 maybe chmod 0644 './config-archive/etc/conf.d/libvirtd'
@@ -342,10 +343,13 @@ maybe chmod 0755 './config-archive/etc/eselect/postgresql'
 maybe chmod 0755 './config-archive/etc/eselect/postgresql/slots'
 maybe chmod 0755 './config-archive/etc/eselect/postgresql/slots/9.1'
 maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/base'
+maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/base.1'
 maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/base.dist'
 maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/docs'
+maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/docs.1'
 maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/docs.dist'
 maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/server'
+maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/server.1'
 maybe chmod 0644 './config-archive/etc/eselect/postgresql/slots/9.1/server.dist'
 maybe chmod 0755 './config-archive/etc/gentoo'
 maybe chmod 0644 './config-archive/etc/gentoo/gentoorc'
@@ -356,6 +360,8 @@ maybe chmod 0755 './config-archive/etc/hp'
 maybe chmod 0644 './config-archive/etc/hp/hplip.conf'
 maybe chmod 0644 './config-archive/etc/hp/hplip.conf.dist'
 maybe chmod 0755 './config-archive/etc/init.d'
+maybe chmod 0755 './config-archive/etc/init.d/acpid'
+maybe chmod 0755 './config-archive/etc/init.d/acpid.dist'
 maybe chmod 0755 './config-archive/etc/init.d/alsasound'
 maybe chmod 0755 './config-archive/etc/init.d/alsasound.dist'
 maybe chmod 0755 './config-archive/etc/init.d/apache2'
@@ -370,6 +376,8 @@ maybe chmod 0755 './config-archive/etc/init.d/libvirtd'
 maybe chmod 0755 './config-archive/etc/init.d/libvirtd.dist'
 maybe chmod 0755 './config-archive/etc/init.d/nscd'
 maybe chmod 0755 './config-archive/etc/init.d/nscd.dist'
+maybe chmod 0755 './config-archive/etc/init.d/postgresql-9.1'
+maybe chmod 0755 './config-archive/etc/init.d/postgresql-9.1.dist'
 maybe chmod 0755 './config-archive/etc/init.d/slapd'
 maybe chmod 0755 './config-archive/etc/init.d/slapd.dist'
 maybe chmod 0755 './config-archive/etc/init.d/sshd'
@@ -846,9 +854,6 @@ maybe chmod 0644 './eselect/postgresql/active.links'
 maybe chmod 0644 './eselect/postgresql/active.links91'
 maybe chmod 0755 './eselect/postgresql/slots'
 maybe chmod 0755 './eselect/postgresql/slots/9.1'
-maybe chmod 0644 './eselect/postgresql/slots/9.1/._cfg0000_base'
-maybe chmod 0644 './eselect/postgresql/slots/9.1/._cfg0000_docs'
-maybe chmod 0644 './eselect/postgresql/slots/9.1/._cfg0000_server'
 maybe chmod 0644 './eselect/postgresql/slots/9.1/base'
 maybe chmod 0644 './eselect/postgresql/slots/9.1/docs'
 maybe chmod 0644 './eselect/postgresql/slots/9.1/server'
@@ -1177,8 +1182,6 @@ maybe chmod 0644 './imlib/im_palette-tiny.pal'
 maybe chmod 0644 './imlib/im_palette.pal'
 maybe chmod 0644 './imlib/imrc'
 maybe chmod 0755 './init.d'
-maybe chmod 0755 './init.d/._cfg0000_acpid'
-maybe chmod 0755 './init.d/._cfg0000_postgresql-9.1'
 maybe chmod 0755 './init.d/NetworkManager'
 maybe chmod 0755 './init.d/acpid'
 maybe chmod 0755 './init.d/aiccu'
diff --git a/conf.d/._cfg0000_acpid b/conf.d/._cfg0000_acpid
deleted file mode 100644 (file)
index 9aadb4c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/acpid: config file for /etc/init.d/acpid
-
-# Options to pass to the acpid daemon.
-# See the acpid(8) man page for more info.
-
-ACPID_ARGS=""
index 30329760fc14b8f7d8a29c8ce6fe56f326f96c67..9aadb4cd814ae2cb1422d1cd22949f88936f557c 100644 (file)
@@ -3,4 +3,4 @@
 # Options to pass to the acpid daemon.
 # See the acpid(8) man page for more info.
 
-ACPID_OPTIONS=""
+ACPID_ARGS=""
diff --git a/config-archive/etc/conf.d/acpid b/config-archive/etc/conf.d/acpid
new file mode 100644 (file)
index 0000000..3032976
--- /dev/null
@@ -0,0 +1,6 @@
+# /etc/conf.d/acpid: config file for /etc/init.d/acpid
+
+# Options to pass to the acpid daemon.
+# See the acpid(8) man page for more info.
+
+ACPID_OPTIONS=""
diff --git a/config-archive/etc/conf.d/acpid.dist b/config-archive/etc/conf.d/acpid.dist
new file mode 100644 (file)
index 0000000..9aadb4c
--- /dev/null
@@ -0,0 +1,6 @@
+# /etc/conf.d/acpid: config file for /etc/init.d/acpid
+
+# Options to pass to the acpid daemon.
+# See the acpid(8) man page for more info.
+
+ACPID_ARGS=""
index 479bd41dcea03ee4637a4cbce028d821495cd272..34425d9b099e8779c099687321c3944ab1277a69 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.2"
+postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.3"
diff --git a/config-archive/etc/eselect/postgresql/slots/9.1/base.1 b/config-archive/etc/eselect/postgresql/slots/9.1/base.1
new file mode 100644 (file)
index 0000000..479bd41
--- /dev/null
@@ -0,0 +1 @@
+postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.2"
index 34425d9b099e8779c099687321c3944ab1277a69..bb3cb403c537cd8983122aceb8dd7e7241e17d69 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.3"
+postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.4"
index 8cec4d405f29249f9df3dfbbd11871e6d0880df9..4b0d9a89b3cc4cae4e183e1c0c60491ab2288b24 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.2"
+postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.3"
diff --git a/config-archive/etc/eselect/postgresql/slots/9.1/docs.1 b/config-archive/etc/eselect/postgresql/slots/9.1/docs.1
new file mode 100644 (file)
index 0000000..8cec4d4
--- /dev/null
@@ -0,0 +1 @@
+postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.2"
index 4b0d9a89b3cc4cae4e183e1c0c60491ab2288b24..348f602059f2ee5b4adf08e3b5ee73292ac6e504 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.3"
+postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.4"
index 7a0a9c0fb2013b88ed776926cf75e83df1a067a5..a02e0871bdbf5ff3f9f3f270e22f43d6b95a4639 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.2-r2"
+postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.3"
diff --git a/config-archive/etc/eselect/postgresql/slots/9.1/server.1 b/config-archive/etc/eselect/postgresql/slots/9.1/server.1
new file mode 100644 (file)
index 0000000..7a0a9c0
--- /dev/null
@@ -0,0 +1 @@
+postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.2-r2"
index a02e0871bdbf5ff3f9f3f270e22f43d6b95a4639..8805b8c91ad12cfc8c77a4fbe291bb346cca1a43 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.3"
+postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.4"
diff --git a/config-archive/etc/init.d/acpid b/config-archive/etc/init.d/acpid
new file mode 100755 (executable)
index 0000000..946e39b
--- /dev/null
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.11-init.d,v 1.7 2011/12/04 10:33:21 swegener Exp $
+
+extra_started_commands="reload"
+command="/usr/sbin/acpid"
+command_args="${ACPID_OPTIONS}"
+start_stop_daemon_args="--quiet"
+description="Daemon for Advanced Configuration and Power Interface"
+
+depend() {
+       need localmount
+       use logger
+}
+
+if [ "${RC_VERSION:-0}" = "0" ]; then
+       start() {
+               eerror "This script cannot be used for baselayout-1."
+               return 1
+       }
+fi
+
+reload() {
+       ebegin "Reloading acpid configuration"
+       start-stop-daemon --exec $command --signal HUP
+       eend $?
+}
diff --git a/config-archive/etc/init.d/acpid.dist b/config-archive/etc/init.d/acpid.dist
new file mode 100755 (executable)
index 0000000..412a265
--- /dev/null
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-init.d,v 1.1 2012/05/19 09:53:59 ssuominen Exp $
+
+extra_started_commands="reload"
+command="/usr/sbin/acpid"
+command_args="${ACPID_ARGS}"
+start_stop_daemon_args="--quiet"
+description="Daemon for Advanced Configuration and Power Interface"
+
+depend() {
+       need localmount
+       use logger
+}
+
+reload() {
+       ebegin "Reloading acpid configuration"
+       start-stop-daemon --exec $command --signal HUP
+       eend $?
+}
diff --git a/config-archive/etc/init.d/postgresql-9.1 b/config-archive/etc/init.d/postgresql-9.1
new file mode 100755 (executable)
index 0000000..0137691
--- /dev/null
@@ -0,0 +1,141 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+extra_started_commands="reload"
+
+get_config() {
+    [ -f ${PGDATA}/postgresql.conf ] || return 1
+
+    eval echo $(sed -e 's:#.*::' ${PGDATA}/postgresql.conf | awk '$1 == "'$1'" { print $2 == "=" ? $3 : $2 }')
+}
+
+depend() {
+    use net
+    provide postgresql
+
+    if [ "$(get_config log_destination)" = "syslog" ]; then
+               use logger
+    fi
+}
+
+configured_port=$(get_config port)
+: ${configured_port:=${PGPORT}}
+socket_path=$(get_config unix_socket_path)
+: ${socket_path:=/var/run/postgresql}
+
+checkconfig() {
+       # Check that DATA_DIR has been set and exists
+       if [ -z ${DATA_DIR} ] ; then
+               eerror "DATA_DIR not set"
+               eerror "HINT: Perhaps you need to update /etc/conf.d/postgresql-9.1"
+       fi
+       if [ ! -d ${DATA_DIR} ] ; then
+               eerror "Directory not found: ${DATA_DIR}"
+               eerror "HINT: Ensure that DATA_DIR points to the right path."
+               eerror "HINT: Or perhaps you need to create the database cluster:"
+               eerror "    emerge --config dev-db/postgresql-server:9.1"
+               return 1
+       fi
+
+       # Check for the existence of and PostgreSQL's ability to read the config files.
+       if [ ! -f ${PGDATA}/postgresql.conf -o \
+               ! -f ${PGDATA}/pg_hba.conf -o ! -f ${PGDATA}/pg_ident.conf ] ; then
+               eerror "The following file(s) were not found in ${PGDATA}:"
+               [ ! -f ${PGDATA}/postgresql.conf ] && eerror "    postgresql.conf"
+               [ ! -f ${PGDATA}/pg_hba.conf ] && eerror "    pg_hba.conf"
+               [ ! -f ${PGDATA}/pg_ident.conf ] && eerror "    pg_ident.conf"
+               eerror "HINT: Try:"
+               eerror "    mv ${DATA_DIR}/*.conf ${PGDATA}"
+               return 1
+       fi
+
+       local file
+       local failed
+       for file in pg_hba pg_ident postgresql ; do
+               file="${PGDATA}/${file}.conf"
+               su postgres -c "test -r ${file}" || failed="${file} ${failed}"
+       done
+       if [ -n "${failed}" ] ; then
+               eerror "The following file(s) are not readable by 'postgres':"
+               local x
+               for x in ${failed} ; do
+                       eerror "    ${x}"
+               done
+               eerror "HINT: Try: 'chmod 644 ${PGDATA}/*.conf'"
+               return 1
+       fi
+
+       checkpath -d -m 0770 -o postgres:postgres ${socket_path}
+       if [ -e ${socket_path}/.s.PGSQL.${configured_port} ] ; then
+               eerror "Socket conflict."
+               eerror "A server is already listening on:"
+               eerror "    ${socket_path}/.s.PGSQL.${configured_port}"
+               eerror "HINT: Change PGPORT to listen on a different socket."
+               return 1
+       fi
+}
+
+start() {
+       checkconfig || return 1
+
+       ebegin "Starting PostgreSQL"
+
+       rm -f ${DATA_DIR}/postmaster.pid
+
+       local extraenv
+       local x
+       for x in ${PG_EXTRA_ENV} ; do
+               extraenv="${extraenv} --env ${x}"
+       done
+
+       start-stop-daemon --start \
+               --user postgres \
+               --exec /usr/lib/postgresql-9.1/bin/postgres \
+               --env "PGPORT=${configured_port}" \
+               ${extraenv} \
+               --wait $((${START_TIMEOUT}*1000)) \
+               --pidfile ${DATA_DIR}/postmaster.pid \
+               -- -D ${PGDATA} --data-directory=${DATA_DIR} --silent-mode=true ${PGOPTS}
+       local retval=$?
+
+       if [ $retval -ne 0 ] ; then
+               eerror "Check the PostgreSQL 9.1 log for a detailed explanation of the above error."
+               eend $retval
+               return $retval
+       fi
+
+       eend $retval
+}
+
+stop() {
+       local seconds=$(( ${NICE_TIMEOUT} + ${RUDE_TIMEOUT} + ${FORCE_TIMEOUT} ))
+       ebegin "Stopping PostgreSQL (this can take up to ${seconds} seconds)"
+
+       local retval
+       local retries=SIGTERM/${NICE_TIMEOUT}
+
+       if [ "${RUDE_QUIT}" != "NO" ] ; then
+               einfo "RUDE_QUIT enabled."
+               retries="${retries}/SIGINT/${RUDE_TIMEOUT}"
+       fi
+       if [ "${FORCE_QUIT}" = "YES" ] ; then
+               einfo "FORCE_QUIT enabled."
+               ewarn "A recover-run might be executed on next startup."
+               retries="${retries}/SIGQUIT/${FORCE_TIMEOUT}"
+       fi
+
+       start-stop-daemon --stop \
+               --exec /usr/lib/postgresql-9.1/bin/postgres \
+               --retry ${retries} \
+               --pidfile ${DATA_DIR}/postmaster.pid
+
+       eend
+}
+
+reload() {
+       ebegin "Reloading PostgreSQL configuration"
+       kill -HUP $(head -n1 ${DATA_DIR}/postmaster.pid)
+       eend $?
+}
diff --git a/config-archive/etc/init.d/postgresql-9.1.dist b/config-archive/etc/init.d/postgresql-9.1.dist
new file mode 100755 (executable)
index 0000000..a7616fd
--- /dev/null
@@ -0,0 +1,141 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+extra_started_commands="reload"
+
+get_config() {
+    [ -f ${PGDATA}/postgresql.conf ] || return 1
+
+    eval echo $(sed -e 's:#.*::' ${PGDATA}/postgresql.conf | awk '$1 == "'$1'" { print $2 == "=" ? $3 : $2 }')
+}
+
+depend() {
+    use net
+    provide postgresql
+
+    if [ "$(get_config log_destination)" = "syslog" ]; then
+               use logger
+    fi
+}
+
+configured_port=$(get_config port)
+: ${configured_port:=${PGPORT}}
+socket_path=$(get_config unix_socket_path)
+: ${socket_path:=/run/postgresql}
+
+checkconfig() {
+       # Check that DATA_DIR has been set and exists
+       if [ -z ${DATA_DIR} ] ; then
+               eerror "DATA_DIR not set"
+               eerror "HINT: Perhaps you need to update /etc/conf.d/postgresql-9.1"
+       fi
+       if [ ! -d ${DATA_DIR} ] ; then
+               eerror "Directory not found: ${DATA_DIR}"
+               eerror "HINT: Ensure that DATA_DIR points to the right path."
+               eerror "HINT: Or perhaps you need to create the database cluster:"
+               eerror "    emerge --config dev-db/postgresql-server:9.1"
+               return 1
+       fi
+
+       # Check for the existence of and PostgreSQL's ability to read the config files.
+       if [ ! -f ${PGDATA}/postgresql.conf -o \
+               ! -f ${PGDATA}/pg_hba.conf -o ! -f ${PGDATA}/pg_ident.conf ] ; then
+               eerror "The following file(s) were not found in ${PGDATA}:"
+               [ ! -f ${PGDATA}/postgresql.conf ] && eerror "    postgresql.conf"
+               [ ! -f ${PGDATA}/pg_hba.conf ] && eerror "    pg_hba.conf"
+               [ ! -f ${PGDATA}/pg_ident.conf ] && eerror "    pg_ident.conf"
+               eerror "HINT: Try:"
+               eerror "    mv ${DATA_DIR}/*.conf ${PGDATA}"
+               return 1
+       fi
+
+       local file
+       local failed
+       for file in pg_hba pg_ident postgresql ; do
+               file="${PGDATA}/${file}.conf"
+               su postgres -c "test -r ${file}" || failed="${file} ${failed}"
+       done
+       if [ -n "${failed}" ] ; then
+               eerror "The following file(s) are not readable by 'postgres':"
+               local x
+               for x in ${failed} ; do
+                       eerror "    ${x}"
+               done
+               eerror "HINT: Try: 'chmod 644 ${PGDATA}/*.conf'"
+               return 1
+       fi
+
+       checkpath -d -m 0770 -o postgres:postgres ${socket_path}
+       if [ -e ${socket_path}/.s.PGSQL.${configured_port} ] ; then
+               eerror "Socket conflict."
+               eerror "A server is already listening on:"
+               eerror "    ${socket_path}/.s.PGSQL.${configured_port}"
+               eerror "HINT: Change PGPORT to listen on a different socket."
+               return 1
+       fi
+}
+
+start() {
+       checkconfig || return 1
+
+       ebegin "Starting PostgreSQL"
+
+       rm -f ${DATA_DIR}/postmaster.pid
+
+       local extraenv
+       local x
+       for x in ${PG_EXTRA_ENV} ; do
+               extraenv="${extraenv} --env ${x}"
+       done
+
+       start-stop-daemon --start \
+               --user postgres \
+               --exec /usr/lib/postgresql-9.1/bin/postgres \
+               --env "PGPORT=${configured_port}" \
+               ${extraenv} \
+               --wait $((${START_TIMEOUT}*1000)) \
+               --pidfile ${DATA_DIR}/postmaster.pid \
+               -- -D ${PGDATA} --data-directory=${DATA_DIR} --silent-mode=true ${PGOPTS}
+       local retval=$?
+
+       if [ $retval -ne 0 ] ; then
+               eerror "Check the PostgreSQL 9.1 log for a detailed explanation of the above error."
+               eend $retval
+               return $retval
+       fi
+
+       eend $retval
+}
+
+stop() {
+       local seconds=$(( ${NICE_TIMEOUT} + ${RUDE_TIMEOUT} + ${FORCE_TIMEOUT} ))
+       ebegin "Stopping PostgreSQL (this can take up to ${seconds} seconds)"
+
+       local retval
+       local retries=SIGTERM/${NICE_TIMEOUT}
+
+       if [ "${RUDE_QUIT}" != "NO" ] ; then
+               einfo "RUDE_QUIT enabled."
+               retries="${retries}/SIGINT/${RUDE_TIMEOUT}"
+       fi
+       if [ "${FORCE_QUIT}" = "YES" ] ; then
+               einfo "FORCE_QUIT enabled."
+               ewarn "A recover-run might be executed on next startup."
+               retries="${retries}/SIGQUIT/${FORCE_TIMEOUT}"
+       fi
+
+       start-stop-daemon --stop \
+               --exec /usr/lib/postgresql-9.1/bin/postgres \
+               --retry ${retries} \
+               --pidfile ${DATA_DIR}/postmaster.pid
+
+       eend
+}
+
+reload() {
+       ebegin "Reloading PostgreSQL configuration"
+       kill -HUP $(head -n1 ${DATA_DIR}/postmaster.pid)
+       eend $?
+}
diff --git a/eselect/postgresql/slots/9.1/._cfg0000_base b/eselect/postgresql/slots/9.1/._cfg0000_base
deleted file mode 100644 (file)
index bb3cb40..0000000
+++ /dev/null
@@ -1 +0,0 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.4"
diff --git a/eselect/postgresql/slots/9.1/._cfg0000_docs b/eselect/postgresql/slots/9.1/._cfg0000_docs
deleted file mode 100644 (file)
index 348f602..0000000
+++ /dev/null
@@ -1 +0,0 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.4"
diff --git a/eselect/postgresql/slots/9.1/._cfg0000_server b/eselect/postgresql/slots/9.1/._cfg0000_server
deleted file mode 100644 (file)
index 8805b8c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.4"
index 34425d9b099e8779c099687321c3944ab1277a69..bb3cb403c537cd8983122aceb8dd7e7241e17d69 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.3"
+postgres_ebuilds="${postgres_ebuilds} postgresql-base-9.1.4"
index 4b0d9a89b3cc4cae4e183e1c0c60491ab2288b24..348f602059f2ee5b4adf08e3b5ee73292ac6e504 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.3"
+postgres_ebuilds="${postgres_ebuilds} postgresql-docs-9.1.4"
index a02e0871bdbf5ff3f9f3f270e22f43d6b95a4639..8805b8c91ad12cfc8c77a4fbe291bb346cca1a43 100644 (file)
@@ -1 +1 @@
-postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.3"
+postgres_ebuilds="${postgres_ebuilds} postgresql-server-9.1.4"
diff --git a/init.d/._cfg0000_acpid b/init.d/._cfg0000_acpid
deleted file mode 100755 (executable)
index 412a265..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-init.d,v 1.1 2012/05/19 09:53:59 ssuominen Exp $
-
-extra_started_commands="reload"
-command="/usr/sbin/acpid"
-command_args="${ACPID_ARGS}"
-start_stop_daemon_args="--quiet"
-description="Daemon for Advanced Configuration and Power Interface"
-
-depend() {
-       need localmount
-       use logger
-}
-
-reload() {
-       ebegin "Reloading acpid configuration"
-       start-stop-daemon --exec $command --signal HUP
-       eend $?
-}
diff --git a/init.d/._cfg0000_postgresql-9.1 b/init.d/._cfg0000_postgresql-9.1
deleted file mode 100755 (executable)
index a7616fd..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-extra_started_commands="reload"
-
-get_config() {
-    [ -f ${PGDATA}/postgresql.conf ] || return 1
-
-    eval echo $(sed -e 's:#.*::' ${PGDATA}/postgresql.conf | awk '$1 == "'$1'" { print $2 == "=" ? $3 : $2 }')
-}
-
-depend() {
-    use net
-    provide postgresql
-
-    if [ "$(get_config log_destination)" = "syslog" ]; then
-               use logger
-    fi
-}
-
-configured_port=$(get_config port)
-: ${configured_port:=${PGPORT}}
-socket_path=$(get_config unix_socket_path)
-: ${socket_path:=/run/postgresql}
-
-checkconfig() {
-       # Check that DATA_DIR has been set and exists
-       if [ -z ${DATA_DIR} ] ; then
-               eerror "DATA_DIR not set"
-               eerror "HINT: Perhaps you need to update /etc/conf.d/postgresql-9.1"
-       fi
-       if [ ! -d ${DATA_DIR} ] ; then
-               eerror "Directory not found: ${DATA_DIR}"
-               eerror "HINT: Ensure that DATA_DIR points to the right path."
-               eerror "HINT: Or perhaps you need to create the database cluster:"
-               eerror "    emerge --config dev-db/postgresql-server:9.1"
-               return 1
-       fi
-
-       # Check for the existence of and PostgreSQL's ability to read the config files.
-       if [ ! -f ${PGDATA}/postgresql.conf -o \
-               ! -f ${PGDATA}/pg_hba.conf -o ! -f ${PGDATA}/pg_ident.conf ] ; then
-               eerror "The following file(s) were not found in ${PGDATA}:"
-               [ ! -f ${PGDATA}/postgresql.conf ] && eerror "    postgresql.conf"
-               [ ! -f ${PGDATA}/pg_hba.conf ] && eerror "    pg_hba.conf"
-               [ ! -f ${PGDATA}/pg_ident.conf ] && eerror "    pg_ident.conf"
-               eerror "HINT: Try:"
-               eerror "    mv ${DATA_DIR}/*.conf ${PGDATA}"
-               return 1
-       fi
-
-       local file
-       local failed
-       for file in pg_hba pg_ident postgresql ; do
-               file="${PGDATA}/${file}.conf"
-               su postgres -c "test -r ${file}" || failed="${file} ${failed}"
-       done
-       if [ -n "${failed}" ] ; then
-               eerror "The following file(s) are not readable by 'postgres':"
-               local x
-               for x in ${failed} ; do
-                       eerror "    ${x}"
-               done
-               eerror "HINT: Try: 'chmod 644 ${PGDATA}/*.conf'"
-               return 1
-       fi
-
-       checkpath -d -m 0770 -o postgres:postgres ${socket_path}
-       if [ -e ${socket_path}/.s.PGSQL.${configured_port} ] ; then
-               eerror "Socket conflict."
-               eerror "A server is already listening on:"
-               eerror "    ${socket_path}/.s.PGSQL.${configured_port}"
-               eerror "HINT: Change PGPORT to listen on a different socket."
-               return 1
-       fi
-}
-
-start() {
-       checkconfig || return 1
-
-       ebegin "Starting PostgreSQL"
-
-       rm -f ${DATA_DIR}/postmaster.pid
-
-       local extraenv
-       local x
-       for x in ${PG_EXTRA_ENV} ; do
-               extraenv="${extraenv} --env ${x}"
-       done
-
-       start-stop-daemon --start \
-               --user postgres \
-               --exec /usr/lib/postgresql-9.1/bin/postgres \
-               --env "PGPORT=${configured_port}" \
-               ${extraenv} \
-               --wait $((${START_TIMEOUT}*1000)) \
-               --pidfile ${DATA_DIR}/postmaster.pid \
-               -- -D ${PGDATA} --data-directory=${DATA_DIR} --silent-mode=true ${PGOPTS}
-       local retval=$?
-
-       if [ $retval -ne 0 ] ; then
-               eerror "Check the PostgreSQL 9.1 log for a detailed explanation of the above error."
-               eend $retval
-               return $retval
-       fi
-
-       eend $retval
-}
-
-stop() {
-       local seconds=$(( ${NICE_TIMEOUT} + ${RUDE_TIMEOUT} + ${FORCE_TIMEOUT} ))
-       ebegin "Stopping PostgreSQL (this can take up to ${seconds} seconds)"
-
-       local retval
-       local retries=SIGTERM/${NICE_TIMEOUT}
-
-       if [ "${RUDE_QUIT}" != "NO" ] ; then
-               einfo "RUDE_QUIT enabled."
-               retries="${retries}/SIGINT/${RUDE_TIMEOUT}"
-       fi
-       if [ "${FORCE_QUIT}" = "YES" ] ; then
-               einfo "FORCE_QUIT enabled."
-               ewarn "A recover-run might be executed on next startup."
-               retries="${retries}/SIGQUIT/${FORCE_TIMEOUT}"
-       fi
-
-       start-stop-daemon --stop \
-               --exec /usr/lib/postgresql-9.1/bin/postgres \
-               --retry ${retries} \
-               --pidfile ${DATA_DIR}/postmaster.pid
-
-       eend
-}
-
-reload() {
-       ebegin "Reloading PostgreSQL configuration"
-       kill -HUP $(head -n1 ${DATA_DIR}/postmaster.pid)
-       eend $?
-}
index 946e39bf4aa334bc137ea7b4f1c0bbde1114cdda..412a265fc56b1cb0837c52f731f7289ba5ecdc84 100755 (executable)
@@ -1,11 +1,11 @@
 #!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.11-init.d,v 1.7 2011/12/04 10:33:21 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-init.d,v 1.1 2012/05/19 09:53:59 ssuominen Exp $
 
 extra_started_commands="reload"
 command="/usr/sbin/acpid"
-command_args="${ACPID_OPTIONS}"
+command_args="${ACPID_ARGS}"
 start_stop_daemon_args="--quiet"
 description="Daemon for Advanced Configuration and Power Interface"
 
@@ -14,13 +14,6 @@ depend() {
        use logger
 }
 
-if [ "${RC_VERSION:-0}" = "0" ]; then
-       start() {
-               eerror "This script cannot be used for baselayout-1."
-               return 1
-       }
-fi
-
 reload() {
        ebegin "Reloading acpid configuration"
        start-stop-daemon --exec $command --signal HUP
index 0137691061b573b8e7f2845fab0bb190b2ab3a52..a7616fd01d02e08861bc6a1a8ea287a2352e175d 100755 (executable)
@@ -23,7 +23,7 @@ depend() {
 configured_port=$(get_config port)
 : ${configured_port:=${PGPORT}}
 socket_path=$(get_config unix_socket_path)
-: ${socket_path:=/var/run/postgresql}
+: ${socket_path:=/run/postgresql}
 
 checkconfig() {
        # Check that DATA_DIR has been set and exists