diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile index 1187b0664b8..55693bcbe7e 100644 --- a/databases/postgresql/Makefile +++ b/databases/postgresql/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.44 2001/03/10 16:56:54 brad Exp $ +# $OpenBSD: Makefile,v 1.45 2001/03/10 19:27:15 brad Exp $ # $FreeBSD: Makefile,v 1.25 1998/04/22 08:28:07 asami Exp $ VERSION= 7.0.3 @@ -144,7 +144,10 @@ post-install: @cd ${DOCDIR} && ${MAKE_PROGRAM} POSTGRESDIR="${PREFIX}" man ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgsql ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/pgsql - ${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/pgsql + @rm -f ${WRKBUILD}/README.OpenBSD + @sed -e s#!!PREFIX!!#${TRUEPREFIX}#g ${FILESDIR}/README.OpenBSD > \ + ${WRKBUILD}/README.OpenBSD + ${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD ${PREFIX}/share/doc/pgsql @cd ${DOCDIR} && ${MAKE_PROGRAM} PGDOCS="${PREFIX}/share/doc/pgsql" all ${INSTALL_DATA} ${DOCDIR}/*.ps* ${PREFIX}/share/doc/pgsql diff --git a/databases/postgresql/files/README.OpenBSD b/databases/postgresql/files/README.OpenBSD index 32d5e755838..e79e3a13378 100644 --- a/databases/postgresql/files/README.OpenBSD +++ b/databases/postgresql/files/README.OpenBSD @@ -16,30 +16,30 @@ required: # pgwrap initdb If you are upgrading PostgreSQL you don't need these steps. Read -/usr/local/share/doc/pgsql/INSTALL for more information on how to +!!PREFIX!!/share/doc/pgsql/INSTALL for more information on how to upgrade your existing databases. See also `Special notes for OpenBSD port' below. If you wish to start PostgreSQL automatically during system startup, add the following lines to /etc/rc.local: -if [ -x /usr/local/bin/pgwrap -a -x /usr/local/bin/postmaster ]; \ +if [ -x !!PREFIX!!/bin/pgwrap -a -x !!PREFIX!!/bin/postmaster ]; \ then - /usr/local/bin/pgwrap -o /var/pgsql/log \ + !!PREFIX!!/bin/pgwrap -o /var/pgsql/log \ pg_ctl -w -o "-i -S -o -F" start echo -n ' pgsql' fi -Don't forget to add /usr/local/lib/pgsql directory to shared libraries path in +Don't forget to add !!PREFIX!!/lib/pgsql directory to shared libraries path in /etc/rc.conf (if your architecture supports shared libraries): -shlib_dirs="/usr/local/lib/pgsql" +shlib_dirs="!!PREFIX!!/lib/pgsql" Be shure to update your /etc/man.conf to read SQL functions manual pages: #PostgreSQL man pages _build .l /usr/bin/nroff -man %s - l /usr/local/pgsql/man/manl + l !!PREFIX!!/pgsql/man/manl Please note that OpenBSD port of PostgreSQL requires a kernel compiled @@ -71,7 +71,7 @@ pgwrap [-n] [-o file] cmd [arg ...] System variables (these variables are always set to the following values): - PATH=/usr/local/bin:/bin:/usr/bin + PATH=!!PREFIX!!/bin:/bin:/usr/bin USER=pgsql LOGNAME=pgsql SHELL=/bin/sh @@ -80,7 +80,7 @@ System variables (these variables are always set to the following values): PostgreSQL variables (these variables are set to the following values, unless already set): - PGLIB=/usr/local/lib/pgsql + PGLIB=!!PREFIX!!/lib/pgsql PGDATA=/var/pgsql/data You must have root privilegies to run `pgwrap'.