diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2001-02-22 21:06:03 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2001-02-22 21:06:03 +0000 |
commit | fa2d0e0a64c362a79d2a1b9d85e53b34a8dac64a (patch) | |
tree | 256e7a9ac1bdae7df31a388602e31a887c2e84ac /databases/postgresql74-server/Makefile | |
parent | 935cdad5265fce29ac5b9e6d2ae8b80dd2c84e2a (diff) | |
download | ports-fa2d0e0a64c362a79d2a1b9d85e53b34a8dac64a.tar.gz ports-fa2d0e0a64c362a79d2a1b9d85e53b34a8dac64a.zip |
Treat pgsql's .profile as data: it could have been customized to change the
default database location.
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=38618
Diffstat (limited to 'databases/postgresql74-server/Makefile')
-rw-r--r-- | databases/postgresql74-server/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/databases/postgresql74-server/Makefile b/databases/postgresql74-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql74-server/Makefile +++ b/databases/postgresql74-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 |