diff options
author | Andreas Klemm <andreas@FreeBSD.org> | 1997-06-14 21:10:42 +0000 |
---|---|---|
committer | Andreas Klemm <andreas@FreeBSD.org> | 1997-06-14 21:10:42 +0000 |
commit | 8293f985d04e55d11fde2af50126208dd8cfb2b3 (patch) | |
tree | 287dab6320aa7c45e95259c1e08a5b03a65890a1 /databases/postgresql74-server/Makefile | |
parent | Fix DSN args handling (diff) |
- Add shared lib using ldconfig -m before trying to init databases
- Added missing ldconfig -m in startup file
- Modified pgsql user environment
- Make port NOPORTDOCS aware
- Add additional port docs to post-install target and updated PLIST
- recursively change owner of pgsql directory after creating .profile,
so that .profile can be modified by the pgsql user.
Hope everything is fine now.
Notes
Notes:
svn path=/head/; revision=6936
Diffstat (limited to 'databases/postgresql74-server/Makefile')
-rw-r--r-- | databases/postgresql74-server/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/databases/postgresql74-server/Makefile b/databases/postgresql74-server/Makefile index 163b68506fb0..de14030f5fc3 100644 --- a/databases/postgresql74-server/Makefile +++ b/databases/postgresql74-server/Makefile @@ -3,7 +3,7 @@ # Date created: April 2, 1997 # Whom: Marc G. Fournier <scrappy@FreeBSD.ORG> # -# $Id$ +# $Id: Makefile,v 1.11 1997/06/14 19:40:03 andreas Exp $ DISTNAME= postgresql-v6.1 PKGNAME= postgresql-6.1 @@ -46,28 +46,34 @@ pre-install: @ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser post-install: - @ chown -R pgsql:pgsql ${PREFIX}/pgsql @ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \ - echo "PATH=\${PATH}:${PREFIX}/pgsql/bin" \ + echo "PATH=${PATH}:${PREFIX}/pgsql/bin" \ > ${PREFIX}/pgsql/.profile; \ - echo "MANPATH=\${MANPATH}:${PREFIX}/pgsql/bin" \ + echo "MANPATH=${MANPATH}:${PREFIX}/pgsql/bin" \ >> ${PREFIX}/pgsql/.profile; \ - echo "PGLIB=${PREFIX}/pgsql/bin" \ + echo "PGLIB=${PREFIX}/pgsql/lib" \ >> ${PREFIX}/pgsql/.profile; \ - echo "PGDATA=${PREFIX}/pgsql/bin" \ + echo "PGDATA=${PREFIX}/pgsql/data" \ >> ${PREFIX}/pgsql/.profile; \ echo "export PATH MANPATH PGLIB PGDATA" \ >> ${PREFIX}/pgsql/.profile; \ fi + @ chown -R pgsql:pgsql ${PREFIX}/pgsql @ echo 'Initializing PostgreSQL Databases - this may take a few minutes...' + @ /sbin/ldconfig -m ${PREFIX}/pgsql/lib @ su -l pgsql -c '${PREFIX}/pgsql/bin/initdb --pglib=${PREFIX}/pgsql/lib --pgdata=${PREFIX}/pgsql/data' @ if [ ! -f ${PREFIX}/etc/rc.d/postgresql.sh ]; then \ echo "Installing ${PREFIX}/etc/rc.d/postgresql.sh startup file."; \ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/postgresql.sh; \ + echo "[ -d ${PREFIX}/pgsql/lib ] && /sbin/ldconfig -m ${PREFIX}/pgsql/lib" >> ${PREFIX}/etc/rc.d/postgresql.sh; \ echo "[ -x ${PREFIX}/pgsql/bin/postmaster ] && su -l pgsql -c '${PREFIX}/pgsql/bin/postmaster -D${PREFIX}/pgsql/data -o -F > ${PREFIX}/pgsql/errlog &' && echo -n ' pgsql'" >> ${PREFIX}/etc/rc.d/postgresql.sh; \ chmod 751 ${PREFIX}/etc/rc.d/postgresql.sh; \ fi @ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/pgsql +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/pgsql + ${CP} ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/pgsql +.endif .if !defined(BATCH) @ more -e ${FILESDIR}/post-install-notes .endif |