Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 06:20:57 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356595 - head/www/limesurvey
Message-ID:  <201406050620.s556Kvne068614@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Thu Jun  5 06:20:56 2014
New Revision: 356595
URL: http://svnweb.freebsd.org/changeset/ports/356595
QAT: https://qat.redports.org/buildarchive/r356595/

Log:
  - Stage support
  
  PR:		190217

Modified:
  head/www/limesurvey/Makefile

Modified: head/www/limesurvey/Makefile
==============================================================================
--- head/www/limesurvey/Makefile	Thu Jun  5 06:20:04 2014	(r356594)
+++ head/www/limesurvey/Makefile	Thu Jun  5 06:20:56 2014	(r356595)
@@ -21,7 +21,6 @@ GD_DESC=		Install PHP gd extension
 LDAP_DESC=		Install PHP LDAP extension
 ZIP_DESC=		Install PHP zip extension
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 # http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey#Make_sure_you_can_use_LimeSurvey_on_your_website
@@ -59,7 +58,7 @@ SUB_LIST=	PHPSURVEYORURL="${PHPSURVEYORU
 PHPSURVEYORDIR=	${WWWDOCROOT}/${PHPSURVEYORURL}
 
 do-install:
-	${MKDIR} "${WWWDIR}"
+	${MKDIR} "${STAGEDIR}${WWWDIR}"
 .if ${PORT_OPTIONS:MPGSQL}
 	${SED} -E \
 	  -e 's/^(\$$databasetype[[:space:]]*=[[:space:]]*'"')mysql('"'.*)$$/\1postgres\2/'	\
@@ -69,21 +68,22 @@ do-install:
 .else
 	${MV} "${WRKSRC}"/config.php "${WRKSRC}"/config.php-dist
 .endif
-	${TEST} -e "${WWWDIR}"/config.php || ${CP} -p "${WRKSRC}"/config.php-dist "${WRKSRC}"/config.php
-	@cd "${WRKSRC}" && ${COPYTREE_SHARE} . "${WWWDIR}"
-	${MKDIR} "${WWWDIR}"/tmp
-	${CHOWN} -R "${WWWOWN}:${WWWGRP}" "${WWWDIR}"
-	${CHMOD} 755 "${WWWDIR}"/tmp
-	${CHMOD} 755 "${WWWDIR}"/templates
-	${CHMOD} 755 "${WWWDIR}"/upload
-	${CHOWN} -R 0 "${WWWDIR}"/admin
-	${CHMOD} -R go-w "${WWWDIR}"/admin
+	@cd "${WRKSRC}" && ${COPYTREE_SHARE} . "${STAGEDIR}${WWWDIR}"
+	${MKDIR} "${STAGEDIR}${WWWDIR}"/tmp
+	${CHOWN} -R "${WWWOWN}:${WWWGRP}" "${STAGEDIR}${WWWDIR}"
+	${CHMOD} 755 "${STAGEDIR}${WWWDIR}"/tmp
+	${CHMOD} 755 "${STAGEDIR}${WWWDIR}"/templates
+	${CHMOD} 755 "${STAGEDIR}${WWWDIR}"/upload
+	${CHOWN} -R 0 "${STAGEDIR}${WWWDIR}"/admin
+	${CHMOD} -R go-w "${STAGEDIR}${WWWDIR}"/admin
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
-	@${FIND} -s -d ${WWWDIR} -type f -print | \
-		${SED} -e "s#${PREFIX}/##g" >> ${TMPPLIST}
-	@${FIND} -s -d ${WWWDIR} -type d  -print | \
-		${SED} -E -e "s#${PREFIX}/#@dirrm #g" >> ${TMPPLIST}
+	@${ECHO_CMD} "@owner www" >> ${TMPPLIST}
+	@${ECHO_CMD} "@group www" >> ${TMPPLIST}
+	@${FIND} -s -d ${STAGEDIR}${WWWDIR} -type f -print | \
+		${SED} -e "s#${STAGEDIR}${PREFIX}/##g" >> ${TMPPLIST}
+	@${FIND} -s -d ${STAGEDIR}${WWWDIR} -type d  -print | \
+		${SED} -E -e "s#${STAGEDIR}${PREFIX}/#@dirrm #g" >> ${TMPPLIST}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406050620.s556Kvne068614>