pkgsrc/www/moodle/Makefile

113 lines
4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.13 2012/07/27 12:44:20 wen Exp $
DISTNAME= moodle-2.1.7
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
Update moodle to 2.1.6, include some security fixes. Based on maintainer update request by PR 46498. Upstream changes: Highlights * MDL-32431 Calendar events can be backed-up and restored * MDL-29262 Moodle 2 backup_controllers table is no longer needlessly massive Functional changes * MDL-27862 Ability to unset a theme * MDL-31835 Recent conversations link added when viewing a message * MDL-27427 Option added to delete external blog entries Security issues * MSA-12-0024 Hidden information access issue * MSA-12-0025 Personal communication access issue * MSA-12-0026 Quiz capability issue * MSA-12-0027 Question bank capability issues * MSA-12-0028 Insecure authentication issue * MSA-12-0029 Information editing access issue * MSA-12-0030 Capability manipulation issue * MSA-12-0031 Cross-site scripting vulnerability in Wiki * MSA-12-0032 Cross-site scripting vulnerability in Web services * MSA-12-0035 Cross-site scripting vulnerability in "download all" * MSA-12-0036 Cross-site scripting vulnerability in category identifier * MSA-12-0037 Write access issue in Database activity module * MSA-12-0038 Calendar event write permission issue Fixes and improvements * MDL-32061 Backup fixed when there is a lesson with attempts in the course * MDL-31008 CSS fixed to display dimmed objects * MDL-30867 Lesson essay question formatting fixed * MDL-31528 Breadcrumbs appearing consistently when editing is off * MDL-31631 Caching fixed so deleted activities do not remain listed * MDL-26674 Wiki Module activity logs activity fully * MDL-31510 Students in groups see only assignments in the Gradebook according to their group allocation * MDL-32141 Custom TinyMCE additions now work in Firefox 11
2012-05-31 14:12:54 +02:00
LICENSE= gnu-gpl-v3
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.3:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.0:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.2.0:../../www/php-curl
DEPENDS+= ${PHP_PKG_PREFIX}-xmlrpc>=5.2.0:../../net/php-xmlrpc
DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.2.0:../../archivers/php-zlib
DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.2.0:../../textproc/php-dom
DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.2.0:../../textproc/php-json
DEPENDS+= ${PHP_PKG_PREFIX}-intl>=2.0.0:../../textproc/php-intl
DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.2.0:../../archivers/php-zip
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_INSTALLATION_TYPES= overwrite pkgviews
APACHE_USER?= www
APACHE_GROUP?= www
BUILD_DEFS+= APACHE_USER APACHE_GROUP
Update www/moodle to 2.1.4 Fixes many security advisories, see below in the changelog. Highlights MDL-28710 - CSS class names have been added for rating div/span elements enabling theming MDL-29579 - Question text included in export of quiz statistics report in Moodle 2.1 Functional changes MDL-19147 - Single Simple forums are no longer targets for moving (and losing) discussions MDL-30273 - Students and teachers can add additional topics to a simple forum discussion Security issues MSA-12-0001 - Recaptcha transmission consistency issue MSA-12-0003 - Added password protection MSA-12-0004 - Added profile image security MSA-12-0005 - Encryption enhancement MSA-12-0006 - Additional email address validation MSA-12-0007 - Email injection prevention MSA-12-0008 - Unsynchronised access via tokens MSA-12-0009 - Role access issue MSA-12-0010 - Unauthorised access to session key MSA-12-0011 - Browser autofill password issue MSA-12-0012 - Form validation issue Fixes and improvements MDL-30376 - Glossary RSS feed no longer generates error MDL-30378 - Site page links fixed in Navigation blocks MDL-30460 - Wiki image dropdown includes files with upper case suffixes MDL-30466 - Writing to database fixed for restoring a course with uses course completion MDL-30569 - Editing the front page when defaulthomepage = mymoodle now works as expected MDL-28180 - Duplicating an assignment that has course completion enabled no longer breaks course completion for the course MDL-27314 - It is now possible to delete or regrade quiz attempts in separate groups mode MDL-29730 - Fixed Lesson question shortanswer with regexp option MDL-30260 - Emailstop option fixed
2012-01-22 13:16:02 +01:00
PKG_SYSCONFSUBDIR= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
CONF_FILES= ${PREFIX}/${EGDIR}/moodle.conf \
${PKG_SYSCONFDIR}/moodle.conf
Update moodle to 2.1.6, include some security fixes. Based on maintainer update request by PR 46498. Upstream changes: Highlights * MDL-32431 Calendar events can be backed-up and restored * MDL-29262 Moodle 2 backup_controllers table is no longer needlessly massive Functional changes * MDL-27862 Ability to unset a theme * MDL-31835 Recent conversations link added when viewing a message * MDL-27427 Option added to delete external blog entries Security issues * MSA-12-0024 Hidden information access issue * MSA-12-0025 Personal communication access issue * MSA-12-0026 Quiz capability issue * MSA-12-0027 Question bank capability issues * MSA-12-0028 Insecure authentication issue * MSA-12-0029 Information editing access issue * MSA-12-0030 Capability manipulation issue * MSA-12-0031 Cross-site scripting vulnerability in Wiki * MSA-12-0032 Cross-site scripting vulnerability in Web services * MSA-12-0035 Cross-site scripting vulnerability in "download all" * MSA-12-0036 Cross-site scripting vulnerability in category identifier * MSA-12-0037 Write access issue in Database activity module * MSA-12-0038 Calendar event write permission issue Fixes and improvements * MDL-32061 Backup fixed when there is a lesson with attempts in the course * MDL-31008 CSS fixed to display dimmed objects * MDL-30867 Lesson essay question formatting fixed * MDL-31528 Breadcrumbs appearing consistently when editing is off * MDL-31631 Caching fixed so deleted activities do not remain listed * MDL-26674 Wiki Module activity logs activity fully * MDL-31510 Students in groups see only assignments in the Gradebook according to their group allocation * MDL-32141 Custom TinyMCE additions now work in Firefox 11
2012-05-31 14:12:54 +02:00
OWN_DIRS_PERMS+= ${MOODLEDATADIR} ${APACHE_USER} ${APACHE_GROUP} 0750
NO_CONFIGURE= YES
NO_BUILD= YES
Update moodle to 2.1.6, include some security fixes. Based on maintainer update request by PR 46498. Upstream changes: Highlights * MDL-32431 Calendar events can be backed-up and restored * MDL-29262 Moodle 2 backup_controllers table is no longer needlessly massive Functional changes * MDL-27862 Ability to unset a theme * MDL-31835 Recent conversations link added when viewing a message * MDL-27427 Option added to delete external blog entries Security issues * MSA-12-0024 Hidden information access issue * MSA-12-0025 Personal communication access issue * MSA-12-0026 Quiz capability issue * MSA-12-0027 Question bank capability issues * MSA-12-0028 Insecure authentication issue * MSA-12-0029 Information editing access issue * MSA-12-0030 Capability manipulation issue * MSA-12-0031 Cross-site scripting vulnerability in Wiki * MSA-12-0032 Cross-site scripting vulnerability in Web services * MSA-12-0035 Cross-site scripting vulnerability in "download all" * MSA-12-0036 Cross-site scripting vulnerability in category identifier * MSA-12-0037 Write access issue in Database activity module * MSA-12-0038 Calendar event write permission issue Fixes and improvements * MDL-32061 Backup fixed when there is a lesson with attempts in the course * MDL-31008 CSS fixed to display dimmed objects * MDL-30867 Lesson essay question formatting fixed * MDL-31528 Breadcrumbs appearing consistently when editing is off * MDL-31631 Caching fixed so deleted activities do not remain listed * MDL-26674 Wiki Module activity logs activity fully * MDL-31510 Students in groups see only assignments in the Gradebook according to their group allocation * MDL-32141 Custom TinyMCE additions now work in Firefox 11
2012-05-31 14:12:54 +02:00
SUBST_CLASSES+= bash
SUBST_MESSAGE.bash= Replacing /bin/bash with ${SH}
SUBST_STAGE.bash= post-patch
SUBST_FILES.bash= lib/editor/tinymce/extra/tools/download_langs.sh
SUBST_SED.bash= -e "s,/bin/bash,${SH},g"
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"
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/ldap/cli/sync_users.php auth/cas/cli/sync_users.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
Update moodle to 2.1.6, include some security fixes. Based on maintainer update request by PR 46498. Upstream changes: Highlights * MDL-32431 Calendar events can be backed-up and restored * MDL-29262 Moodle 2 backup_controllers table is no longer needlessly massive Functional changes * MDL-27862 Ability to unset a theme * MDL-31835 Recent conversations link added when viewing a message * MDL-27427 Option added to delete external blog entries Security issues * MSA-12-0024 Hidden information access issue * MSA-12-0025 Personal communication access issue * MSA-12-0026 Quiz capability issue * MSA-12-0027 Question bank capability issues * MSA-12-0028 Insecure authentication issue * MSA-12-0029 Information editing access issue * MSA-12-0030 Capability manipulation issue * MSA-12-0031 Cross-site scripting vulnerability in Wiki * MSA-12-0032 Cross-site scripting vulnerability in Web services * MSA-12-0035 Cross-site scripting vulnerability in "download all" * MSA-12-0036 Cross-site scripting vulnerability in category identifier * MSA-12-0037 Write access issue in Database activity module * MSA-12-0038 Calendar event write permission issue Fixes and improvements * MDL-32061 Backup fixed when there is a lesson with attempts in the course * MDL-31008 CSS fixed to display dimmed objects * MDL-30867 Lesson essay question formatting fixed * MDL-31528 Breadcrumbs appearing consistently when editing is off * MDL-31631 Caching fixed so deleted activities do not remain listed * MDL-26674 Wiki Module activity logs activity fully * MDL-31510 Students in groups see only assignments in the Gradebook according to their group allocation * MDL-32141 Custom TinyMCE additions now work in Firefox 11
2012-05-31 14:12:54 +02:00
SUBST_FILES.php+= lib/pear/PHP/runsniffer
SUBST_FILES.php+= local/qeupgradehelper/cli/convert.php
SUBST_FILES.php+= mod/chat/chatd.php
SUBST_SED.php= -e "s,/usr/bin/php,${PREFIX}/bin/php,g"
Update moodle to 2.1.6, include some security fixes. Based on maintainer update request by PR 46498. Upstream changes: Highlights * MDL-32431 Calendar events can be backed-up and restored * MDL-29262 Moodle 2 backup_controllers table is no longer needlessly massive Functional changes * MDL-27862 Ability to unset a theme * MDL-31835 Recent conversations link added when viewing a message * MDL-27427 Option added to delete external blog entries Security issues * MSA-12-0024 Hidden information access issue * MSA-12-0025 Personal communication access issue * MSA-12-0026 Quiz capability issue * MSA-12-0027 Question bank capability issues * MSA-12-0028 Insecure authentication issue * MSA-12-0029 Information editing access issue * MSA-12-0030 Capability manipulation issue * MSA-12-0031 Cross-site scripting vulnerability in Wiki * MSA-12-0032 Cross-site scripting vulnerability in Web services * MSA-12-0035 Cross-site scripting vulnerability in "download all" * MSA-12-0036 Cross-site scripting vulnerability in category identifier * MSA-12-0037 Write access issue in Database activity module * MSA-12-0038 Calendar event write permission issue Fixes and improvements * MDL-32061 Backup fixed when there is a lesson with attempts in the course * MDL-31008 CSS fixed to display dimmed objects * MDL-30867 Lesson essay question formatting fixed * MDL-31528 Breadcrumbs appearing consistently when editing is off * MDL-31631 Caching fixed so deleted activities do not remain listed * MDL-26674 Wiki Module activity logs activity fully * MDL-31510 Students in groups see only assignments in the Gradebook according to their group allocation * MDL-32141 Custom TinyMCE additions now work in Firefox 11
2012-05-31 14:12:54 +02:00
SUBST_CLASSES+= php2
SUBST_MESSAGE.php2= Fixing the path of php.
SUBST_STAGE.php2= post-patch
SUBST_FILES.php2+= lib/spikephpcoverage/src/cli/instrument.php
SUBST_SED.php2= -e "s,/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
${RM} ${WRKSRC}/.gitignore
do-install:
cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL_DATA_DIR} \
${DESTDIR}${MOODLEDIR}/{} \; -exec ${CHOWN} \
${APACHE_USER}:${APACHE_GROUP} ${DESTDIR}${MOODLEDIR}/{} \;
cd ${WRKSRC} && ${FIND} . \! -type d -exec ${INSTALL_DATA} {} \
${DESTDIR}${MOODLEDIR}/{} \; -exec ${CHOWN} \
${APACHE_USER}:${APACHE_GROUP} ${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/apache.mk"
.include "../../mk/bsd.pkg.mk"