aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql92-server
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-02-23 05:06:03 +0800
committerolgeni <olgeni@FreeBSD.org>2001-02-23 05:06:03 +0800
commitd638f86d9cfa33e896082faa46d5aefed8d331ef (patch)
treeb7300ee356feba9881a9c03f611c52f987b1aa0f /databases/postgresql92-server
parenta6720a287af0c373ac64256900a767f48cb70c76 (diff)
downloadfreebsd-ports-graphics-d638f86d9cfa33e896082faa46d5aefed8d331ef.tar.gz
freebsd-ports-graphics-d638f86d9cfa33e896082faa46d5aefed8d331ef.tar.zst
freebsd-ports-graphics-d638f86d9cfa33e896082faa46d5aefed8d331ef.zip
Treat pgsql's .profile as data: it could have been customized to change the
default database location. Approved by: maintainer
Diffstat (limited to 'databases/postgresql92-server')
-rw-r--r--databases/postgresql92-server/Makefile8
-rw-r--r--databases/postgresql92-server/pkg-plist4
2 files changed, 8 insertions, 4 deletions
diff --git a/databases/postgresql92-server/Makefile b/databases/postgresql92-server/Makefile
index d4f605de97e..7b13c407097 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 107fac4e503..fd2bd41937f 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
'/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/multimedia/dvdrip?id=aaf6a178619c3d8941766ca639123b71ae1ccd32'>- Update to 0.52.7mnag2006-05-308-100/+27 * - Fix hang on startup with perl 5.8.8pav2006-03-272-2/+13 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-071-1/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-15/+15 * convert to OPTIONSoliver2006-01-191-9/+20 * Chase libversion bumb to libMagick.so.9edwin2006-01-051-1/+1