ports/190283: [patch] Add staging support to www/moodle24
Joseph Benden
joe at thrallingpenguin.com
Mon May 26 20:40:01 UTC 2014
>Number: 190283
>Category: ports
>Synopsis: [patch] Add staging support to www/moodle24
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon May 26 20:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Joseph Benden
>Release: FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014 root at lucy:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Adds staging support to www/moodle24.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/www/moodle24/Makefile b/www/moodle24/Makefile
index ec4974f..4229b01 100644
--- a/www/moodle24/Makefile
+++ b/www/moodle24/Makefile
@@ -25,7 +25,6 @@ OPTIONS_DEFAULT=MYSQL
MSSQL_DESC= MS SQL Server support
MIMETEX_DESC= mimeTeX filter functionality support
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
@@ -63,21 +62,21 @@ pre-install:
@${ECHO} @dirrm ${MOODLEDATADIR} >> ${PLIST}
do-install:
- @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${MOODLEDIR}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MOODLEDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${MOODLEDIR}
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${MOODLEDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MOODLEDIR}' \
>> ${TMPPLIST}
- ${CHMOD} -R 755 ${PREFIX}/${MOODLEDIR}
+ ${CHMOD} -R 755 ${STAGEDIR}${PREFIX}/${MOODLEDIR}
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${PREFIX}/${MOODLEDIR}' >> ${TMPPLIST}
- @${INSTALL} -d ${PREFIX}/${MOODLEDATADIR}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MOODLEDATADIR}
+ @${INSTALL} -d ${STAGEDIR}${PREFIX}/${MOODLEDATADIR}
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${MOODLEDATADIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MOODLEDATADIR}' \
>> ${TMPPLIST}
- ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR}
+ ${CHMOD} 755 ${STAGEDIR}${PREFIX}/${MOODLEDATADIR}
@${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR}' >> ${TMPPLIST}
.if ${PORT_OPTIONS:MIMETEX}
- ${LN} -sf ${PREFIX}/www/mimetex/cgi-bin/mimetex.cgi ${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd
+ ${LN} -sf ${PREFIX}/www/mimetex/cgi-bin/mimetex.cgi ${STAGEDIR}${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd
.endif
post-install:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list