From d638f86d9cfa33e896082faa46d5aefed8d331ef Mon Sep 17 00:00:00 2001 From: olgeni Date: Thu, 22 Feb 2001 21:06:03 +0000 Subject: Treat pgsql's .profile as data: it could have been customized to change the default database location. Approved by: maintainer --- databases/postgresql73-server/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'databases/postgresql73-server/Makefile') diff --git a/databases/postgresql73-server/Makefile b/databases/postgresql73-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql73-server/Makefile +++ b/databases/postgresql73-server/Makefile @@ -124,10 +124,12 @@ post-install: # ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/*ps.gz ${PREFIX}/share/doc/pgsql @ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${TMPPLIST} .endif + @ ${SED} 's|%%PREFIX%%|${PREFIX}|g' \ + < ${FILESDIR}/dot.profile.in \ + > ${PREFIX}/pgsql/dot.profile.dist; @ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \ - ${SED} 's|%%PREFIX%%|${PREFIX}|g' \ - < ${FILESDIR}/dot.profile.in \ - > ${PREFIX}/pgsql/.profile; \ + ${CP} ${PREFIX}/pgsql/dot.profile.dist \ + ${PREFIX}/pgsql/.profile; \ fi @ ${CHOWN} -R pgsql:pgsql ${PREFIX}/pgsql @ ${CHOWN} root:pgsql ${PREFIX}/pgsql/lib -- cgit