aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql92-server
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2012-01-18 21:35:11 +0000
committerJason Helfman <jgh@FreeBSD.org>2012-01-18 21:35:11 +0000
commit1cfcd19427085c7959fc425ba1b7d61b859d633b (patch)
tree4e6865102006724179a8389cecc8a631fd8cd30c /databases/postgresql92-server
parent4ebfa5d84c0ddec0cf505a5c4cfa8f7a05fe42e4 (diff)
downloadports-1cfcd19427085c7959fc425ba1b7d61b859d633b.tar.gz
ports-1cfcd19427085c7959fc425ba1b7d61b859d633b.zip
Notes
Diffstat (limited to 'databases/postgresql92-server')
-rw-r--r--databases/postgresql92-server/Makefile2
-rw-r--r--databases/postgresql92-server/pkg-plist-server2
2 files changed, 4 insertions, 0 deletions
diff --git a/databases/postgresql92-server/Makefile b/databases/postgresql92-server/Makefile
index ceab5d0308d6..9ea3808d7ef2 100644
--- a/databases/postgresql92-server/Makefile
+++ b/databases/postgresql92-server/Makefile
@@ -7,6 +7,7 @@
PORTNAME?= postgresql
DISTVERSION?= 9.1.2
+PORTREVISION?= 1
CATEGORIES?= databases
MASTER_SITES= ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR= source/v${DISTVERSION}
@@ -354,6 +355,7 @@ do-install:
${MKDIR} ${PREFIX}/etc/periodic/daily ;\
${INSTALL_SCRIPT} ${WRKDIR}/502.pgsql \
${PREFIX}/etc/periodic/daily
+ ${MKDIR} ${LOCALBASE}/${PG_USER} && ${CHOWN} ${PG_USER}:${PG_GROUP} ${LOCALBASE}/${PG_USER}
. endif # SERVER_ONLY
. if defined(CLIENT_ONLY)
@ cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} install-local
diff --git a/databases/postgresql92-server/pkg-plist-server b/databases/postgresql92-server/pkg-plist-server
index 2e2e06aac640..a53b19100fd2 100644
--- a/databases/postgresql92-server/pkg-plist-server
+++ b/databases/postgresql92-server/pkg-plist-server
@@ -765,6 +765,8 @@ share/postgresql/tsearch_data/ispell_sample.affix
share/postgresql/tsearch_data/ispell_sample.dict
share/postgresql/tsearch_data/synonym_sample.syn
share/postgresql/tsearch_data/thesaurus_sample.ths
+@exec /bin/mkdir -p %%LOCALBASE%%/%%PG_USER%% || /usr/bin/true
+@exec /usr/bin/chown %%PG_USER%%:%%PG_GROUP %%LOCALBASE%%/%%PG_USER%% || /usr/bin/true
@dirrmtry share/postgresql/tsearch_data
@dirrmtry share/postgresql
@dirrmtry etc/periodic/daily