summaryrefslogtreecommitdiff
path: root/databases/postgresql73/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql73/Makefile')
-rw-r--r--databases/postgresql73/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/databases/postgresql73/Makefile b/databases/postgresql73/Makefile
index d4f605de97e4..7b13c4070978 100644
--- a/databases/postgresql73/Makefile
+++ b/databases/postgresql73/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