pkgsrc/www/moodle/Makefile
wen e3f7dec4ee Update to 3.3.3
Upstream changes:
Highlights

    MDL-59798 - Assignment: Show Due Date in calendar for teachers and managers
    MDL-36580 - External Tool: backup/restore consumer key and secret (on the same site only)
    MDL-57560 - Show file upload progress bar in Boost theme
    MDL-37810 - List custom roles in the filter on Participants page

Security issues

A number of security related issues were resolved. Details of these issues will be released after a period of approximately one week to allow system administrators to safely update to the latest version.
Fixes and improvements

    MDL-52131 - Respect comment format in questions manual comments when Plain text area editor is used
    MDL-55849 - Assignment: Reopening a group assignment should not create additional attempts for each group member
    MDL-59909 - Fixed error in ad-hoc refresh_mod_calendar_events_task that caused exceptions and very long cron run time
    MDL-59780 - Restore MathJax filter settings that were lost in previous upgrades
    MDL-54540 - External tool: Allow to switch to full screen mode
    MDL-51892 - Better explaination of the reason for failed logins in the logs report
    MDL-57055 - Label resource: allow to access "Label administration" without Administration block on the "Edit label" page
    MDL-53244 - Show error message when incorrect CAPTCHA is entered on sign-up page
    MDL-57477 - Fixed configuration of PHP 7 sessions using memcached (3.x.x)
    MDL-59854 - Forum: Avoid creating duplicate subscriptions due to race conditions
    MDL-60366 - Feedback: fixed upgrade script (introduced in 3.1.6 and 3.2.3) that deleted valid multiple anonymous attempts. If your site was affected, please follow MDL-60592 for the script that restores accidentally deleted data.
2017-11-17 03:15:40 +00:00

101 lines
3.4 KiB
Makefile

# $NetBSD: Makefile,v 1.59 2017/11/17 03:15:40 wen Exp $
DISTNAME= moodle-3.3.3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=moodle/}
EXTRACT_SUFX= .tgz
MAINTAINER= wenheping@gmail.com
HOMEPAGE= http://www.moodle.org/
COMMENT= Course management system based on social constructionism
LICENSE= gnu-gpl-v3
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.4.4:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=5.4.4:../../converters/php-iconv
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.4.4:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.4.4:../../www/php-curl
DEPENDS+= ${PHP_PKG_PREFIX}-xmlrpc>=5.4.4:../../net/php-xmlrpc
DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.4.4:../../net/php-soap
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.4.4:../../textproc/php-json
DEPENDS+= ${PHP_PKG_PREFIX}-intl>=5.4.4:../../textproc/php-intl
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.4.4:../../archivers/php-zip
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.4.4:../../archivers/php-zlib
DEPENDS+= ${PHP_PKG_PREFIX}-opcache>=5.4.4:../../devel/php-opcache
EGDIR= share/examples/moodle
MOODLEDIR= ${PREFIX}/share/moodle
MOODLEDATADIR= ${PREFIX}/moodledata
PKG_DESTDIR_SUPPORT= destdir
INSTALLATION_DIRS= ${EGDIR} share/moodle
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
PKG_GROUPS_VARS= APACHE_GROUP
PKG_USERS_VARS= APACHE_USER
BUILD_DEFS+= APACHE_USER APACHE_GROUP
PKG_SYSCONFSUBDIR= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
CONF_FILES= ${PREFIX}/${EGDIR}/moodle.conf \
${PKG_SYSCONFDIR}/moodle.conf
OWN_DIRS_PERMS+= ${MOODLEDATADIR} ${APACHE_USER} ${APACHE_GROUP} 0750
USE_TOOLS+= pax
NO_CONFIGURE= yes
NO_BUILD= yes
PLIST_SRC+= ${PKGDIR}/PLIST ${WRKDIR}/PLIST.AUTO
.include "../../mk/apache.mk"
SUBST_CLASSES+= conf
SUBST_MESSAGE.conf= Fixing pathnames in configuration file.
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= ../moodle.conf
SUBST_SED.conf= -e "s,@MOODLEDIR@,${MOODLEDIR},g"
SUBST_SED.conf+= -e "s,@MOODLEDATADIR@,${MOODLEDATADIR},g"
.if ${PKG_APACHE} == "apache24"
SUBST_SED.conf+= -e "/Order allow,deny/d"
SUBST_SED.conf+= -e "s,Allow from all,Require all granted,g"
.endif
SUBST_CLASSES+= php
SUBST_MESSAGE.php= Fixing the path of php.
SUBST_STAGE.php= post-patch
SUBST_FILES.php= admin/cli/mysql_engine.php admin/cli/maintenance.php admin/cli/cron.php
SUBST_FILES.php+= admin/cli/reset_password.php admin/cli/automated_backups.php
SUBST_FILES.php+= admin/cli/install.php admin/cli/install_database.php admin/cli/upgrade.php
SUBST_FILES.php+= admin/mailout-debugger.php admin/process_email.php
SUBST_FILES.php+= auth/db/cli/sync_users.php
SUBST_FILES.php+= enrol/ldap/cli/sync.php enrol/database/cli/sync.php enrol/category/cli/sync.php
SUBST_SED.php= -e "s,/usr/bin/php,${PREFIX}/bin/php,g"
SUBST_CLASSES+= perl
SUBST_MESSAGE.perl= Fixing the path of perl.
SUBST_STAGE.perl= post-patch
SUBST_FILES.perl= filter/algebra/algebra2tex.pl
SUBST_SED.perl= -e "s,/usr/bin/perl,${PREFIX}/bin/perl,g"
WRKSRC= ${WRKDIR}/moodle
post-extract:
${CP} ${FILESDIR}/moodle.conf ${WRKDIR}/moodle.conf
post-patch:
cd ${WRKDIR} && ${FIND} moodle -type f -print \
| ${SED} -e 's,^,share/,' > ${WRKDIR}/PLIST.AUTO
do-install:
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${MOODLEDIR}/
${INSTALL_DATA} ${WRKDIR}/moodle.conf \
${DESTDIR}${PREFIX}/${EGDIR}/moodle.conf
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${MOODLEDATADIR}
${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${MOODLEDATADIR}
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"