From 1cfcd19427085c7959fc425ba1b7d61b859d633b Mon Sep 17 00:00:00 2001 From: Jason Helfman Date: Wed, 18 Jan 2012 21:35:11 +0000 Subject: Fix plist to create directory with proper ownerships PostgreSQL database may start. PR: ports/164273 (critical) Submitted by: Alexander Yerenkow Approved by: maintainer-timeout: girgen (1 day), portmgr (linimon) --- databases/postgresql90-server/Makefile | 2 ++ databases/postgresql90-server/pkg-plist-server | 2 ++ 2 files changed, 4 insertions(+) (limited to 'databases/postgresql90-server') diff --git a/databases/postgresql90-server/Makefile b/databases/postgresql90-server/Makefile index fea48f1f9c7a..a8342e32df0c 100644 --- a/databases/postgresql90-server/Makefile +++ b/databases/postgresql90-server/Makefile @@ -7,6 +7,7 @@ PORTNAME?= postgresql DISTVERSION?= 9.0.6 +PORTREVISION?= 1 CATEGORIES?= databases MASTER_SITES= ${MASTER_SITE_PGSQL} MASTER_SITE_SUBDIR= source/v${DISTVERSION} @@ -367,6 +368,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/postgresql90-server/pkg-plist-server b/databases/postgresql90-server/pkg-plist-server index 02c5c512cafa..853a3ee49b92 100644 --- a/databases/postgresql90-server/pkg-plist-server +++ b/databases/postgresql90-server/pkg-plist-server @@ -771,6 +771,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 -- cgit v1.2.3