diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-06-04 18:07:01 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-06-04 18:07:01 +0000 |
commit | 3a78d13d9a561c034faa3e0444be56a6d1d12e3c (patch) | |
tree | cc8b6681e8a0b348cf5ebf167eb1162075db08c4 /databases/postgresql83-server/files | |
parent | Does not build with supported versions of PostgreSQL (diff) |
Remove postgresql83-*; it expired at the beginning of March.
While here, fix flo's typo...
Notes
Notes:
svn path=/head/; revision=319888
Diffstat (limited to 'databases/postgresql83-server/files')
17 files changed, 0 insertions, 524 deletions
diff --git a/databases/postgresql83-server/files/502.pgsql.in b/databases/postgresql83-server/files/502.pgsql.in deleted file mode 100644 index 0a80253cffc3..000000000000 --- a/databases/postgresql83-server/files/502.pgsql.in +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/databases/postgresql83-server/files/502.pgsql.in,v 1.1 2011-10-18 09:03:31 girgen Exp $ -# -# Maintenance shell script to vacuum and backup database -# Put this in /usr/local/etc/periodic/daily, and it will be run -# every night -# -# Written by Palle Girgensohn <girgen@pingpong.net> -# -# In public domain, do what you like with it, -# and use it at your own risk... :) -# - -# Define these variables in either /etc/periodic.conf or -# /etc/periodic.conf.local to override the default values. -# -# daily_pgsql_backup_enable="YES" # do backup of all databases -# daily_pgsql_backup_enable="foo bar db1 db2" # only do backup of a limited selection of databases -# daily_pgsql_vacuum_enable="YES" # do vacuum - -daily_pgsql_user=%%PG_USER%% -daily_pgsql_vacuum_args="-U ${daily_pgsql_user} -qaz" -daily_pgsql_pgdump_args="-U ${daily_pgsql_user} -bF c" -daily_pgsql_pgdumpall_globals_args="-U ${daily_pgsql_user}" -# backupdir is relative to ~pgsql home directory unless it begins with a slash: -daily_pgsql_backupdir="~${daily_pgsql_user}/backups" -daily_pgsql_savedays="7" - -# If there is a global system configuration file, suck it in. -# -if [ -r /etc/defaults/periodic.conf ] -then - . /etc/defaults/periodic.conf - source_periodic_confs -fi - -# allow '~´ in dir name -eval backupdir=${daily_pgsql_backupdir} - -rc=0 - -pgsql_backup() { - # daily_pgsql_backupdir must be writeable by user %%PG_USER%% - # ~%%PG_USER%% is just that under normal circumstances, - # but this might not be where you want the backups... - if [ ! -d ${backupdir} ] ; then - echo Creating ${backupdir} - mkdir -m 700 ${backupdir}; chown ${daily_pgsql_user} ${backupdir} - fi - - echo - echo "PostgreSQL backups" - - # Protect the data - umask 077 - rc=$? - now=`date "+%Y-%m-%dT%H:%M:%S"` - file=${daily_pgsql_backupdir}/pgglobals_${now} - su -l ${daily_pgsql_user} -c \ - "umask 077; pg_dumpall -g ${daily_pgsql_pgdumpall_globals_args} | gzip -9 > ${file}.gz" - - db=$1 - while shift; do - echo -n " $db" - file=${backupdir}/pgdump_${db}_${now} - su -l ${daily_pgsql_user} -c "umask 077; pg_dump ${daily_pgsql_pgdump_args} -f ${file} ${db}" - [ $? -gt 0 ] && rc=3 - db=$1 - done - - if [ $rc -gt 0 ]; then - echo - echo "Errors were reported during backup." - fi - - # cleaning up old data - find ${backupdir} \( -name 'pgdump_*' -o -name 'pgglobals_*' \) \ - -a -mtime +${daily_pgsql_savedays} -delete - echo -} - -case "$daily_pgsql_backup_enable" in - [Yy][Ee][Ss]) - dbnames=`su -l %%PG_USER%% -c "umask 077; psql -q -t -A -d template1 -U %%PG_USER%% -c SELECT\ datname\ FROM\ pg_database\ WHERE\ datname!=\'template0\'"` - pgsql_backup $dbnames - ;; - - [Nn][Oo]) - ;; - - "") - ;; - - *) - pgsql_backup $daily_pgsql_backup_enable - ;; -esac - -case "$daily_pgsql_vacuum_enable" in - [Yy][Ee][Ss]) - - echo - echo "PostgreSQL vacuum" - su -l ${daily_pgsql_user} -c "vacuumdb ${daily_pgsql_vacuum_args}" - if [ $? -gt 0 ] - then - echo - echo "Errors were reported during vacuum." - rc=3 - fi - ;; -esac - -exit $rc diff --git a/databases/postgresql83-server/files/dot.cshrc.in b/databases/postgresql83-server/files/dot.cshrc.in deleted file mode 100644 index 4069398b376e..000000000000 --- a/databases/postgresql83-server/files/dot.cshrc.in +++ /dev/null @@ -1,11 +0,0 @@ -setenv PGLIB %%PREFIX%%/lib - -# note: PGDATA can be overridden by the -D startup option -setenv PGDATA $HOME/data - -#You might want to set some locale stuff here -#setenv PGDATESTYLE ISO -#setenv LC_ALL sv_SE.ISO_8859-1 - -# if you want to make regression tests use this TZ -#setenv TZ PST8PDT diff --git a/databases/postgresql83-server/files/dot.profile.in b/databases/postgresql83-server/files/dot.profile.in deleted file mode 100644 index 954e22eae8f8..000000000000 --- a/databases/postgresql83-server/files/dot.profile.in +++ /dev/null @@ -1,22 +0,0 @@ -PGLIB=%%PREFIX%%/lib - -# note: PGDATA can be overridden by the -D startup option -PGDATA=${HOME}/data - -export PATH PGLIB PGDATA - -# if you use the periodic script from share/postgresql/502.pgsql, you -# can set these -#PGDUMP_ARGS="-b -F c" -#PGBACKUPDIR=${HOME}/backups -#PGBACKUP_SAVE_DAYS=7 -#export PGBACKUPDIR PGDUMP_ARGS PGBACKUP_SAVE_DAYS - -#You might want to set some locale stuff here -#PGDATESTYLE=ISO -#LC_ALL=sv_SE.ISO_8859-1 -#export PGDATESTYLE LC_ALL - -# if you want to make regression tests use this TZ -#TZ=PST8PDT -#export TZ diff --git a/databases/postgresql83-server/files/extra-patch-icu4 b/databases/postgresql83-server/files/extra-patch-icu4 deleted file mode 100644 index 25c79eb9e062..000000000000 --- a/databases/postgresql83-server/files/extra-patch-icu4 +++ /dev/null @@ -1,53 +0,0 @@ ---- configure.in.orig 2010-12-17 11:17:22.892862951 +0100 -+++ configure.in 2010-12-17 11:17:59.498605923 +0100 -@@ -19,7 +19,7 @@ - - AC_INIT([PostgreSQL], [8.3.13], [pgsql-bugs@postgresql.org]) - --m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.62], [], [m4_fatal([Autoconf version 2.62 is required. -+m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.68], [], [m4_fatal([Autoconf version 2.68 is required. - Untested combinations of 'autoconf' and PostgreSQL versions are not - recommended. You can remove the check from 'configure.in' but it is then - your responsibility whether the result works or not.])]) -@@ -795,19 +795,31 @@ - fi - - if test "$with_icu" = yes ; then -- AC_CHECK_LIB(icui18n, ucol_open_43, [], [ -- AC_CHECK_LIB(icui18n, ucol_open_3_8, [], [ -- AC_CHECK_LIB(icui18n, ucol_open_3_6, [], [ -- AC_CHECK_LIB(icui18n, ucol_open_3_4, [], [AC_MSG_ERROR([library 'icui18n' is required for ICU])]) -+ AC_CHECK_LIB(icui18n, ucol_open_50, [], [ -+ AC_CHECK_LIB(icui18n, ucol_open_48, [], [ -+ AC_CHECK_LIB(icui18n, ucol_open_44, [], [ -+ AC_CHECK_LIB(icui18n, ucol_open_43, [], [ -+ AC_CHECK_LIB(icui18n, ucol_open_3_8, [], [ -+ AC_CHECK_LIB(icui18n, ucol_open_3_6, [], [ -+ AC_CHECK_LIB(icui18n, ucol_open_3_4, [], [AC_MSG_ERROR([library 'icui18n' is required for ICU])]) -+ ]) - ]) -- ]) -+ ]) -+ ]) -+ ]) - ]) -- AC_CHECK_LIB(icuuc, ucnv_fromUChars_43, [], [ -- AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_8, [], [ -- AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_6, [], [ -- AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_4, [], [AC_MSG_ERROR([library 'icuuc' is required for ICU])]) -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_50, [], [ -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_48, [], [ -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_44, [], [ -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_43, [], [ -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_8, [], [ -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_6, [], [ -+ AC_CHECK_LIB(icuuc, ucnv_fromUChars_3_4, [], [AC_MSG_ERROR([library 'icuuc' is required for ICU])]) -+ ]) - ]) -- ]) -+ ]) -+ ]) -+ ]) - ]) - fi - diff --git a/databases/postgresql83-server/files/patch-doc-Makefile b/databases/postgresql83-server/files/patch-doc-Makefile deleted file mode 100644 index 805b541b438a..000000000000 --- a/databases/postgresql83-server/files/patch-doc-Makefile +++ /dev/null @@ -1,20 +0,0 @@ ---- doc/Makefile.orig 2007-02-09 16:55:57.000000000 +0100 -+++ doc/Makefile 2008-01-02 11:38:43.000000000 +0100 -@@ -25,11 +25,12 @@ - - .NOTPARALLEL: - --ifneq ($(wildcard $(srcdir)/postgres.tar.gz),) --ifneq (,$(docdir)) --found_html = yes --endif --endif -+# FreeBSD has a separate port for installing the documentation -+#ifneq ($(wildcard $(srcdir)/postgres.tar.gz),) -+#ifneq (,$(docdir)) -+#found_html = yes -+#endif -+#endif - - ifneq ($(wildcard $(srcdir)/man.tar.gz),) - # SCO OpenServer's man system is sufficiently different to not bother. diff --git a/databases/postgresql83-server/files/patch-plpython-Makefile b/databases/postgresql83-server/files/patch-plpython-Makefile deleted file mode 100644 index 3357b699da8a..000000000000 --- a/databases/postgresql83-server/files/patch-plpython-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- src/pl/plpython/Makefile.orig Fri Nov 19 20:23:01 2004 -+++ src/pl/plpython/Makefile Tue Dec 28 23:32:16 2004 -@@ -9,7 +9,7 @@ - # shared library. Since there is no official way to determine this - # (at least not in pre-2.3 Python), we see if there is a file that is - # named like a shared library. --ifneq (,$(wildcard $(python_libdir)/libpython*$(DLSUFFIX)*)) -+ifneq (,$(wildcard $(python_libdir)/../../libpython*$(DLSUFFIX)*)) - shared_libpython = yes - endif - diff --git a/databases/postgresql83-server/files/patch-src-makefiles-Makefile.freebsd b/databases/postgresql83-server/files/patch-src-makefiles-Makefile.freebsd deleted file mode 100644 index 81339e98e8db..000000000000 --- a/databases/postgresql83-server/files/patch-src-makefiles-Makefile.freebsd +++ /dev/null @@ -1,8 +0,0 @@ ---- src/makefiles/Makefile.freebsd.orig Fri Nov 19 01:41:39 2004 -+++ src/makefiles/Makefile.freebsd Tue Dec 21 02:44:09 2004 -@@ -29,3 +29,5 @@ - endif - - sqlmansect = 7 -+ -+allow_nonpic_in_shlib = yes diff --git a/databases/postgresql83-server/files/patch-src:backend:utils:misc:postgresql.conf.sample b/databases/postgresql83-server/files/patch-src:backend:utils:misc:postgresql.conf.sample deleted file mode 100644 index fade23fba5cf..000000000000 --- a/databases/postgresql83-server/files/patch-src:backend:utils:misc:postgresql.conf.sample +++ /dev/null @@ -1,27 +0,0 @@ ---- src/backend/utils/misc/postgresql.conf.sample.orig 2008-01-30 19:35:55.000000000 +0100 -+++ src/backend/utils/misc/postgresql.conf.sample 2008-02-18 13:49:42.000000000 +0100 -@@ -231,6 +231,7 @@ - - # - Where to Log - - -+log_destination = 'syslog' - #log_destination = 'stderr' # Valid values are combinations of - # stderr, csvlog, syslog and eventlog, - # depending on platform. csvlog -@@ -313,6 +314,7 @@ - # and their durations, > 0 logs only - # statements running at least this time. - -+silent_mode = on - #silent_mode = off # DO NOT USE without syslog or - # logging_collector - # (change requires restart) -@@ -365,6 +367,8 @@ - #track_counts = on - #update_process_title = on - -+# On FreeBSD, this is a performance hog, so keep it off if you need speed -+update_process_title = off - - # - Statistics Monitoring - - diff --git a/databases/postgresql83-server/files/patch-ssl-init-state b/databases/postgresql83-server/files/patch-ssl-init-state deleted file mode 100644 index edfc33622410..000000000000 --- a/databases/postgresql83-server/files/patch-ssl-init-state +++ /dev/null @@ -1,25 +0,0 @@ ---- src/backend/postmaster/fork_process.c.orig 2013-02-04 22:29:07.000000000 +0100 -+++ src/backend/postmaster/fork_process.c 2013-04-02 12:57:18.489126586 +0200 -@@ -15,6 +15,9 @@ - #include <time.h> - #include <sys/time.h> - #include <unistd.h> -+#ifdef USE_SSL -+#include <openssl/rand.h> -+#endif - - #ifndef WIN32 - /* -@@ -60,6 +63,12 @@ - setitimer(ITIMER_PROF, &prof_itimer, NULL); - #endif - -+ /* -+ * Make sure processes do not share OpenSSL randomness state. -+ */ -+#ifdef USE_SSL -+ RAND_cleanup(); -+#endif - } - - return result; diff --git a/databases/postgresql83-server/files/pkg-message-client.in b/databases/postgresql83-server/files/pkg-message-client.in deleted file mode 100644 index 3f98190bbd84..000000000000 --- a/databases/postgresql83-server/files/pkg-message-client.in +++ /dev/null @@ -1,32 +0,0 @@ -The PostgreSQL port has a collection of "side orders": - -postgresql-docs - For all of the html documentation - -p5-Pg - A perl5 API for client access to PostgreSQL databases. - -postgresql-tcltk - If you want tcl/tk client support. - -postgresql-jdbc - For Java JDBC support. - -postgresql-odbc - For client access from unix applications using ODBC as access - method. Not needed to access unix PostgreSQL servers from Win32 - using ODBC. See below. - -ruby-postgres, py-PyGreSQL - For client access to PostgreSQL databases using the ruby & python - languages. - -postgresql-plperl, postgresql-pltcl & postgresql-plruby - For using perl5, tcl & ruby as procedural languages. - -postgresql-contrib - Lots of contributed utilities, postgresql functions and - datatypes. There you find pg_standby, pgcrypto and many other cool - things. - -etc... diff --git a/databases/postgresql83-server/files/pkg-message-contrib.in b/databases/postgresql83-server/files/pkg-message-contrib.in deleted file mode 100644 index 2b29ffd33041..000000000000 --- a/databases/postgresql83-server/files/pkg-message-contrib.in +++ /dev/null @@ -1,3 +0,0 @@ -The PostgreSQL contrib utilities have been installed. Please see -%%PREFIX%%/share/doc/postgresql/contrib/README -for more information. diff --git a/databases/postgresql83-server/files/pkg-message-plperl.in b/databases/postgresql83-server/files/pkg-message-plperl.in deleted file mode 100644 index 5d0c83920563..000000000000 --- a/databases/postgresql83-server/files/pkg-message-plperl.in +++ /dev/null @@ -1,3 +0,0 @@ -PL/Perl has been installed. Check the createlang(l) manpage for more -info. You can install PL/Perl as trusted or untrusted, by using either -"createlang plperl" or "createlang plperlu". diff --git a/databases/postgresql83-server/files/pkg-message-plpython.in b/databases/postgresql83-server/files/pkg-message-plpython.in deleted file mode 100644 index c413582b6295..000000000000 --- a/databases/postgresql83-server/files/pkg-message-plpython.in +++ /dev/null @@ -1,3 +0,0 @@ -PL/Python has been installed. Check the createlang(l) manpage for more -info. You can install PL/Python by using "createlang plpythonu" (it -exists as an untrusted language only). diff --git a/databases/postgresql83-server/files/pkg-message-pltcl.in b/databases/postgresql83-server/files/pkg-message-pltcl.in deleted file mode 100644 index 0902b858de0b..000000000000 --- a/databases/postgresql83-server/files/pkg-message-pltcl.in +++ /dev/null @@ -1,3 +0,0 @@ -PL/Tcl has been installed. Check the createlang(l) manpage for more -info. You can install pltcl as trusted or untrusted, by using either -"createlang pltcl" or "createlang pltclu". diff --git a/databases/postgresql83-server/files/pkg-message-server.in b/databases/postgresql83-server/files/pkg-message-server.in deleted file mode 100644 index 54f397448198..000000000000 --- a/databases/postgresql83-server/files/pkg-message-server.in +++ /dev/null @@ -1,70 +0,0 @@ -For procedural languages and postgresql functions, please note that -you might have to update them when updating the server. - -If you have many tables and many clients running, consider raising -kern.maxfiles using sysctl(8), or reconfigure your kernel -appropriately. - -The port is set up to use autovacuum for new databases, but you might -also want to vacuum and perhaps backup your database regularly. There -is a periodic script, %%PREFIX%%/etc/periodic/daily/502.pgsql, that -you may find useful. You can use it to backup and perfom vacuum on all -databases nightly. Per default, it perfoms `vacuum analyze'. See the -script for instructions. For autovacuum settings, please review -~pgsql/data/postgresql.conf. - -To allow many simultaneous connections to your PostgreSQL server, you -should raise the SystemV shared memory limits in your kernel. Here are -example values for allowing up to 180 clients (configurations in -postgresql.conf also needed, of course): - options SYSVSHM - options SYSVSEM - options SYSVMSG - options SHMMAXPGS=65536 - options SEMMNI=40 - options SEMMNS=240 - options SEMUME=40 - options SEMMNU=120 - -If you plan to access your PostgreSQL server using ODBC, please -consider running the SQL script %%PREFIX%%/share/postgresql/odbc.sql -to get the functions required for ODBC compliance. - -Please note that if you use the rc script, -%%PREFIX%%/etc/rc.d/postgresql, to initialize the database, unicode -(UTF-8) will be used to store character data by default. Set -postgresql_initdb_flags or use login.conf settings described below to -alter this behaviour. See the start rc script for more info. - -To set limits, environment stuff like locale and collation and other -things, you can set up a class in /etc/login.conf before initializing -the database. Add something similar to this to /etc/login.conf: ---- -postgres:\ - :lang=en_US.UTF-8:\ - :setenv=LC_COLLATE=C:\ - :tc=default: ---- -and run `cap_mkdb /etc/login.conf'. -Then add 'postgresql_class="postgres"' to /etc/rc.conf. - -====================================================================== - -To initialize the database, run - - %%PREFIX%%/etc/rc.d/postgresql initdb - -You can then start PostgreSQL by running: - - %%PREFIX%%/etc/rc.d/postgresql start - -For postmaster settings, see ~pgsql/data/postgresql.conf - -NB. FreeBSD's PostgreSQL port logs to syslog by default - See ~pgsql/data/postgresql.conf for more info - -====================================================================== - -To run PostgreSQL at startup, add -'postgresql_enable="YES"' to /etc/rc.conf - diff --git a/databases/postgresql83-server/files/pkgIndex.tcl.in b/databases/postgresql83-server/files/pkgIndex.tcl.in deleted file mode 100644 index bd8329b15c69..000000000000 --- a/databases/postgresql83-server/files/pkgIndex.tcl.in +++ /dev/null @@ -1,4 +0,0 @@ -# Package-index file for Pgtcl-package. Enables you to load PostgreSQL -# interface functions right into you TCL-interpreter as simply as -# package require Pgtcl -package ifneeded Pgtcl 1.3 "load %%PREFIX%%/lib/libpgtcl.so" diff --git a/databases/postgresql83-server/files/postgresql.in b/databases/postgresql83-server/files/postgresql.in deleted file mode 100644 index 51598ff7cd29..000000000000 --- a/databases/postgresql83-server/files/postgresql.in +++ /dev/null @@ -1,114 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ -# -# PROVIDE: postgresql -# REQUIRE: LOGIN -# KEYWORD: shutdown -# -# Add the following line to /etc/rc.conf to enable PostgreSQL: -# -# postgresql_enable="YES" -# # optional -# postgresql_data="%%PREFIX%%/pgsql/data" -# postgresql_flags="-w -s -m fast" -# postgresql_initdb_flags="--encoding=utf-8 --lc-collate=C" -# postgresql_class="default" -# postgresql_profiles="" -# -# See %%PREFIX%%/share/doc/postgresql/README-server for more info -# -# This scripts takes one of the following commands: -# -# start stop restart reload status initdb -# -# For postmaster startup options, edit ${postgresql_data}/postgresql.conf - -command=%%PREFIX%%/bin/pg_ctl - -. /etc/rc.subr - -load_rc_config postgresql - -# set defaults -postgresql_enable=${postgresql_enable:-"NO"} -postgresql_flags=${postgresql_flags:-"-w -s -m fast"} -postgresql_user=pgsql -eval postgresql_data=${postgresql_data:-"~${postgresql_user}/data"} -postgresql_class=${postgresql_class:-"default"} -postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} - -name=postgresql -rcvar=postgresql_enable -extra_commands="reload initdb" - -start_cmd="postgresql_command start" -stop_cmd="postgresql_command stop" -restart_cmd="postgresql_command restart" -reload_cmd="postgresql_command reload" -status_cmd="postgresql_command status" - -initdb_cmd="postgresql_initdb" - -if [ -n "$2" ]; then - profile="$2" - if [ "x${postgresql_profiles}" != "x" ]; then - eval postgresql_data="\${postgresql_${profile}_data:-}" - if [ "x${postgresql_data}" = "x" ]; then - echo "You must define a data directory (postgresql_${profile}_data)" - exit 1 - fi - eval postgresql_enable="\${postgresql_${profile}_enable:-${postgresql_enable}} - eval postgresql_data="\${postgresql_${profile}_data:-${postgresql_data}} - eval postgresql_flags="\${postgresql_${profile}_flags:-${postgresql_flags}}" - eval postgresql_initdb_flags="\${postgresql_${profile}_initdb_flags:-${postgresql_initdb_flags}}" - fi -else - if [ "x${postgresql_profiles}" != "x" -a "x$1" != "x" ]; then - for profile in ${postgresql_profiles}; do - eval _enable="\${postgresql_${profile}_enable}" - case "x${_enable:-${postgresql_enable}}" in - x|x[Nn][Oo]|x[Nn][Oo][Nn][Ee]) - continue - ;; - x[Yy][Ee][Ss]) - ;; - *) - if test -z "$_enable"; then - _var=postgresql_enable - else - _var=postgresql_"${profile}"_enable - fi - echo "Bad value" \ - "'${_enable:-${postgresql_enable}}'" \ - "for ${_var}. " \ - "Profile ${profile} skipped." - continue - ;; - esac - echo "===> postgresql profile: ${profile}" - %%PREFIX%%/etc/rc.d/postgresql $1 ${profile} - retcode="$?" - if [ "0${retcode}" -ne 0 ]; then - failed="${profile} (${retcode}) ${failed:-}" - else - success="${profile} ${success:-}" - fi - done - exit 0 - fi -fi - -command_args="-D ${postgresql_data} ${postgresql_flags}" - -postgresql_command() -{ - su -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}" -} - -postgresql_initdb() -{ - su -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data}" -} - -run_rc_command "$1" |