diff options
Diffstat (limited to 'databases/postgresql92-server')
-rw-r--r-- | databases/postgresql92-server/Makefile | 2 | ||||
-rw-r--r-- | databases/postgresql92-server/pkg-plist-server | 2 |
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 |