Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 2014 03:01:18 +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: r357812 - head/www/webcalendar
Message-ID:  <201406150301.s5F31IXt051542@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sun Jun 15 03:01:17 2014
New Revision: 357812
URL: http://svnweb.freebsd.org/changeset/ports/357812
QAT: https://qat.redports.org/buildarchive/r357812/

Log:
  - Stage support
  
  PR:		190998

Modified:
  head/www/webcalendar/Makefile

Modified: head/www/webcalendar/Makefile
==============================================================================
--- head/www/webcalendar/Makefile	Sun Jun 15 03:00:35 2014	(r357811)
+++ head/www/webcalendar/Makefile	Sun Jun 15 03:01:17 2014	(r357812)
@@ -32,10 +32,8 @@ OPTIONS_DEFAULT=	MYSQL
 DB_DESC=	Database backend
 DBASE_DESC=	DBase database support
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MDOCS}
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:tl}
 PORTDOCS=	README \
 		WebCalendar-Database.html \
@@ -43,7 +41,6 @@ PORTDOCS=	README \
 		WebCalendar-Styling.html \
 		WebCalendar-SysAdmin.html \
 		newwin.gif
-.endif
 
 .if ${PORT_OPTIONS:MMYSQL}
 USE_PHP+=	mysql
@@ -83,17 +80,19 @@ pre-install:
 	@${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
 
 do-install:
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${WCDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WCDIR}
-	@${FIND} ${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${WCDIR}
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${WCDIR}
+	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${WCDIR}
+	@${FIND} ${STAGEDIR}${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
 	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
 		${WCDIR:S|^|%D/|}' >> ${TMPPLIST}
+	@${MKDIR} ${STAGEDIR}${PREFIX}/www/data \
+		${STAGEDIR}${PREFIX}/www/data-dist
+	@${ECHO_CMD} '@dirrmtry www/data' >> ${TMPPLIST}
+	@${ECHO_CMD} '@dirrmtry www/data-dist' >> ${TMPPLIST}
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
-	@${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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