- Disable support for versions of PHP below 8.x, per Moodle documentation;
- Set 'max_input_vars' to 5000 as required by Moodle since 4.2, and reference it within MESSAGE; ok wen@
This commit is contained in:
parent
a5896c384b
commit
268fab4f7f
|
@ -1,5 +1,5 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE,v 1.1.1.1 2010/06/04 09:20:00 wiz Exp $
|
||||
$NetBSD: MESSAGE,v 1.2 2024/03/06 23:09:32 jym Exp $
|
||||
|
||||
Add the following line to httpd.conf to make Moodle accessible
|
||||
through your HTTP server:
|
||||
|
@ -15,6 +15,22 @@ its tables in (or choose an existing database).
|
|||
|
||||
For more information, see the INSTALL DOCUMENTATION:
|
||||
|
||||
http://docs.moodle.org/en/Installing_Moodle
|
||||
https://docs.moodle.org/en/Installing_Moodle
|
||||
|
||||
# NOTE: `max_input_vars' requirement
|
||||
|
||||
Starting with PHP 8.0, Moodle requires a minimal value of 5000 for the
|
||||
`max_input_vars' environment variable. This can be directly set within
|
||||
the php.ini file, usually found under:
|
||||
|
||||
${PKG_SYSCONFBASE}/php.ini
|
||||
|
||||
Or overriden through the Apache configuration file; see example in:
|
||||
|
||||
${PKG_SYSCONFDIR}/moodle.conf
|
||||
|
||||
More details are available via the Moodle documentation:
|
||||
|
||||
https://docs.moodle.org/403/en/Environment_-_max_input_vars
|
||||
|
||||
===========================================================================
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.100 2024/03/04 00:38:28 wen Exp $
|
||||
# $NetBSD: Makefile,v 1.101 2024/03/06 23:09:32 jym Exp $
|
||||
|
||||
DISTNAME= moodle-4.3.3
|
||||
CATEGORIES= www
|
||||
|
@ -7,7 +7,7 @@ MASTER_SITES= https://sourceforge.net/projects/moodle/files/Moodle/stable403/ \
|
|||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= wen@NetBSD.org
|
||||
HOMEPAGE= http://www.moodle.org/
|
||||
HOMEPAGE= https://moodle.org/
|
||||
COMMENT= Course management system based on social constructionism
|
||||
LICENSE= gnu-gpl-v3
|
||||
|
||||
|
@ -31,21 +31,21 @@ INSTALLATION_DIRS= ${EGDIR} share/moodle
|
|||
.include "../../mk/bsd.prefs.mk"
|
||||
.include "options.mk"
|
||||
|
||||
PHP_VERSIONS_ACCEPTED= 80 81
|
||||
PHP_VERSIONS_INCOMPATIBLE= 56 74
|
||||
|
||||
PKG_GROUPS_VARS= APACHE_GROUP
|
||||
PKG_USERS_VARS= APACHE_USER
|
||||
BUILD_DEFS+= APACHE_USER APACHE_GROUP
|
||||
BUILD_DEFS+= APACHE_USER APACHE_GROUP PKG_SYSCONFBASE
|
||||
|
||||
PKG_SYSCONFSUBDIR= httpd
|
||||
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
||||
MESSAGE_SUBST+= PKG_SYSCONFBASE=${PKG_SYSCONFBASE:Q}
|
||||
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
||||
|
||||
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
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
</IfModule>
|
||||
|
||||
<Directory "@MOODLEDIR@">
|
||||
<IfModule mod_php.c>
|
||||
# Moodle requires a value of 5000 for `max_input_vars'
|
||||
php_value max_input_vars 5000
|
||||
</IfModule>
|
||||
Options Indexes
|
||||
DirectoryIndex index.php index.html
|
||||
AllowOverride None
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: options.mk,v 1.6 2017/11/25 13:27:10 wen Exp $
|
||||
# $NetBSD: options.mk,v 1.7 2024/03/06 23:09:32 jym Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.moodle
|
||||
|
||||
|
@ -12,7 +12,7 @@ PKG_SUGGESTED_OPTIONS= mysql
|
|||
### Use mysql or postgresql backend
|
||||
###
|
||||
.if !empty(PKG_OPTIONS:Mmysql)
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=7.0.0:../../databases/php-mysqli
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=8.0:../../databases/php-mysqli
|
||||
.elif !empty(PKG_OPTIONS:Mpgsql)
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=7.0.0:../../databases/php-pgsql
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=8.0:../../databases/php-pgsql
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue