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 | |
parent | 935cdad5265fce29ac5b9e6d2ae8b80dd2c84e2a (diff) | |
download | ports-fa2d0e0a64c362a79d2a1b9d85e53b34a8dac64a.tar.gz ports-fa2d0e0a64c362a79d2a1b9d85e53b34a8dac64a.zip |
Notes
Diffstat (limited to 'databases')
28 files changed, 112 insertions, 56 deletions
diff --git a/databases/postgresql-devel-server/Makefile b/databases/postgresql-devel-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql-devel-server/Makefile +++ b/databases/postgresql-devel-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 diff --git a/databases/postgresql-devel-server/pkg-plist b/databases/postgresql-devel-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql-devel-server/pkg-plist +++ b/databases/postgresql-devel-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql-devel/Makefile b/databases/postgresql-devel/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql-devel/Makefile +++ b/databases/postgresql-devel/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 diff --git a/databases/postgresql-devel/pkg-plist b/databases/postgresql-devel/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql-devel/pkg-plist +++ b/databases/postgresql-devel/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql7/Makefile b/databases/postgresql7/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql7/Makefile +++ b/databases/postgresql7/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 diff --git a/databases/postgresql7/pkg-plist b/databases/postgresql7/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql7/pkg-plist +++ b/databases/postgresql7/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser 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 diff --git a/databases/postgresql73-server/pkg-plist b/databases/postgresql73-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql73-server/pkg-plist +++ b/databases/postgresql73-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser 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 diff --git a/databases/postgresql73/pkg-plist b/databases/postgresql73/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql73/pkg-plist +++ b/databases/postgresql73/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser 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 diff --git a/databases/postgresql74-server/pkg-plist b/databases/postgresql74-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql74-server/pkg-plist +++ b/databases/postgresql74-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql80-server/Makefile b/databases/postgresql80-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql80-server/Makefile +++ b/databases/postgresql80-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 diff --git a/databases/postgresql80-server/pkg-plist b/databases/postgresql80-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql80-server/pkg-plist +++ b/databases/postgresql80-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql81-server/Makefile b/databases/postgresql81-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql81-server/Makefile +++ b/databases/postgresql81-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 diff --git a/databases/postgresql81-server/pkg-plist b/databases/postgresql81-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql81-server/pkg-plist +++ b/databases/postgresql81-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql82-server/Makefile b/databases/postgresql82-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql82-server/Makefile +++ b/databases/postgresql82-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 diff --git a/databases/postgresql82-server/pkg-plist b/databases/postgresql82-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql82-server/pkg-plist +++ b/databases/postgresql82-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql83-server/Makefile b/databases/postgresql83-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql83-server/Makefile +++ b/databases/postgresql83-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 diff --git a/databases/postgresql83-server/pkg-plist b/databases/postgresql83-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql83-server/pkg-plist +++ b/databases/postgresql83-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql84-server/Makefile b/databases/postgresql84-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql84-server/Makefile +++ b/databases/postgresql84-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 diff --git a/databases/postgresql84-server/pkg-plist b/databases/postgresql84-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql84-server/pkg-plist +++ b/databases/postgresql84-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql90-server/Makefile +++ b/databases/postgresql90-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 diff --git a/databases/postgresql90-server/pkg-plist b/databases/postgresql90-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql90-server/pkg-plist +++ b/databases/postgresql90-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql91-server/Makefile b/databases/postgresql91-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql91-server/Makefile +++ b/databases/postgresql91-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 diff --git a/databases/postgresql91-server/pkg-plist b/databases/postgresql91-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql91-server/pkg-plist +++ b/databases/postgresql91-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser diff --git a/databases/postgresql92-server/Makefile b/databases/postgresql92-server/Makefile index d4f605de97e4..7b13c4070978 100644 --- a/databases/postgresql92-server/Makefile +++ b/databases/postgresql92-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 diff --git a/databases/postgresql92-server/pkg-plist b/databases/postgresql92-server/pkg-plist index 107fac4e503b..fd2bd41937f1 100644 --- a/databases/postgresql92-server/pkg-plist +++ b/databases/postgresql92-server/pkg-plist @@ -1,5 +1,7 @@ +@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi etc/rc.d/pgsql.sh -pgsql/.profile +pgsql/dot.profile.dist +@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile) pgsql/bin/createdb pgsql/bin/createlang pgsql/bin/createuser |