diff options
author | andreas <andreas@FreeBSD.org> | 1997-06-15 05:10:42 +0800 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 1997-06-15 05:10:42 +0800 |
commit | 39b917988d9fe05c06186c16c33bb241018a38f0 (patch) | |
tree | cb461d87cd31dd6973a4aec115564c01011b1dfd /databases/postgresql82-server | |
parent | 57c2feaa2c9a42dc16341ce6c3091d3ff7dd8a70 (diff) | |
download | freebsd-ports-gnome-39b917988d9fe05c06186c16c33bb241018a38f0.tar.gz freebsd-ports-gnome-39b917988d9fe05c06186c16c33bb241018a38f0.tar.zst freebsd-ports-gnome-39b917988d9fe05c06186c16c33bb241018a38f0.zip |
- 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.
Diffstat (limited to 'databases/postgresql82-server')
-rw-r--r-- | databases/postgresql82-server/Makefile | 18 | ||||
-rw-r--r-- | databases/postgresql82-server/pkg-plist | 12 |
2 files changed, 24 insertions, 6 deletions
diff --git a/databases/postgresql82-server/Makefile b/databases/postgresql82-server/Makefile index 163b68506fb0..de14030f5fc3 100644 --- a/databases/postgresql82-server/Makefile +++ b/databases/postgresql82-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 diff --git a/databases/postgresql82-server/pkg-plist b/databases/postgresql82-server/pkg-plist index 162d85812ab6..88b2a45ecafa 100644 --- a/databases/postgresql82-server/pkg-plist +++ b/databases/postgresql82-server/pkg-plist @@ -151,6 +151,18 @@ pgsql/man/manl/sql.l.gz pgsql/man/manl/update.l.gz pgsql/man/manl/vacuum.l.gz pgsql/post-install-notes +share/doc/pgsql/FAQ +share/doc/pgsql/FAQ-Irix +share/doc/pgsql/FAQ-Linux +share/doc/pgsql/README.GEQO +share/doc/pgsql/README.fsync +share/doc/pgsql/README.support +share/doc/pgsql/TODO +share/doc/pgsql/TODO.GEQO +share/doc/pgsql/bug.template +share/doc/pgsql/libpgtcl.doc +share/doc/pgsql/userguide.ps +@dirrm share/doc/pgsql @dirrm pgsql/lib @dirrm pgsql/bin @dirrm pgsql/include/port/BSD44_derived |