diff options
author | agc <agc@pkgsrc.org> | 1998-07-15 12:40:14 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-07-15 12:40:14 +0000 |
commit | c9cfa07505b155d942b2d83d908707141c5a7d60 (patch) | |
tree | c98918112c66ea6f632850953c0238e448114172 /databases/postgresql/Makefile | |
parent | 11a86d7571545d0c7d5e6d03538d8a6abac6e5c7 (diff) | |
download | pkgsrc-c9cfa07505b155d942b2d83d908707141c5a7d60.tar.gz |
Use automatic shared object handling
Diffstat (limited to 'databases/postgresql/Makefile')
-rw-r--r-- | databases/postgresql/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile index 77111c07af5..389a6fe2c3e 100644 --- a/databases/postgresql/Makefile +++ b/databases/postgresql/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 1998/06/22 13:58:26 frueauf Exp $ +# $NetBSD: Makefile,v 1.15 1998/07/15 12:40:14 agc Exp $ # FreeBSD Id: Makefile,v 1.22 1997/12/24 01:21:37 alex Exp DISTNAME= postgresql-6.3.2 @@ -91,7 +91,14 @@ post-install: fi @/usr/sbin/chown -R ${PGUSER}:${PGGROUP} ${PREFIX}/${PGUSER} @${ECHO} 'Initializing PostgreSQL Databases - this may take a few minutes...' - @${LDCONFIG} -m ${PREFIX}/${PGUSER}/lib || ${TRUE} + @case `${GREP} -c '^${PREFIX}/${PGUSER}/lib$$' /etc/ld.so.conf` in \ + 0) \ + ${ECHO} "************** WARNING ********************"; \ + ${ECHO} "Please add ${PREFIX}/${PGUSER}/lib to /etc/ld.so.conf";\ + ${ECHO} "so that this package is usable after any reboot"; \ + ${ECHO} "************** WARNING ********************"; \ + ;; \ + esac @${ECHO} '${SETENV} PATH=${PREFIX}/${PGUSER}/bin:$$PATH ${PREFIX}/${PGUSER}/bin/initdb --pglib=${PREFIX}/${PGUSER}/lib --pgdata=${PREFIX}/${PGUSER}/data' | su -l ${PGUSER} @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \ > ${PREFIX}/etc/rc.d/pgsql.sh |