diff options
author | miwi <miwi@FreeBSD.org> | 2014-06-06 21:07:02 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-06-06 21:07:02 +0800 |
commit | 4c79cf5f7a6ced03020eadfc47a88c8145ff25fc (patch) | |
tree | 88330c701ea8a83d89f3debf5cb4763307b81cf2 /www | |
parent | 1c6539a7cce6b965851cad4dba37f563c71ee9b7 (diff) | |
download | freebsd-ports-gnome-4c79cf5f7a6ced03020eadfc47a88c8145ff25fc.tar.gz freebsd-ports-gnome-4c79cf5f7a6ced03020eadfc47a88c8145ff25fc.tar.zst freebsd-ports-gnome-4c79cf5f7a6ced03020eadfc47a88c8145ff25fc.zip |
- Stage support
PR: 190280
Diffstat (limited to 'www')
-rw-r--r-- | www/moodle/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/www/moodle/Makefile b/www/moodle/Makefile index a7dff635e450..46209879eb79 100644 --- a/www/moodle/Makefile +++ b/www/moodle/Makefile @@ -20,7 +20,6 @@ OPTIONS_DEFAULT= ZLIB NETWORK_DESC= Moodle Network functionality MIMETEX_DESC= mimeTeX filter functionality -NO_STAGE= yes .include <bsd.port.options.mk> .if ! ${PORT_OPTIONS:MMYSQL} && ! ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MMSSQL} @@ -80,21 +79,18 @@ pre-install: @${ECHO} @dirrm ${MOODLEDATADIR} >> ${PLIST} do-install: - @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${MOODLEDIR} - @${FIND} ${PREFIX}/${MOODLEDIR} -type d -exec ${CHMOD} a+x {} \; + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${MOODLEDIR} + @${FIND} ${STAGEDIR}${PREFIX}/${MOODLEDIR} -type d -exec ${CHMOD} a+x {} \; @${ECHO_CMD} '@exec ${FIND} ${PREFIX}/${MOODLEDIR} -type d -exec ${CHMOD} a+x {} \;' \ >> ${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:MMIMETEX} - ${LN} -sf ${PREFIX}/www/cgi-bin/mimetex.cgi ${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd + ${LN} -sf ../../../cgi-bin/mimetex.cgi ${STAGEDIR}${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd .endif -post-install: - @${CAT} ${PKGMESSAGE} - .include <bsd.port.mk> |