From nobody Mon Apr 18 01:16:27 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3AA8A5D6686; Mon, 18 Apr 2022 01:16:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KhTXr17Fxz3HbF; Mon, 18 Apr 2022 01:16:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650244588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nC3SLmfu+cjT41GAkVtoWrFOHh74wQtfGKrDnR0u59o=; b=w0Qs55JcJe83n841+zSr7QjuPx+NIoy/sBqXMutsu7iLYY2RFKEOu+ichZDfnILZs0uqo8 f5QZkWFO77HvGV2642XsC0BHu0cx14cnviJOZDwXSGcg4LWkk9OHL/9IftfUPoDAXUff9m /gMi2Z9cPwMX+aL+NRpDsJYLQrLYMLkFKCzYcT3Y3Xp6NKH8uETJ00B1dfVgvvnJQQrIDD vlr7Aiz/gnQkN6Dy1ZR8FxY7UumYa0IJkecr8feP/a3rtemaS0rCW8ZQ+wlB9xUj1yjN24 +4hkaVOx7oLz1d+nqOMdg99rUAkGPgqA5Ku6w9xbBLGGk8mp9GUIgvqtgWdZ2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 02D4987C; Mon, 18 Apr 2022 01:16:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23I1GRJ3046701; Mon, 18 Apr 2022 01:16:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23I1GRj4046700; Mon, 18 Apr 2022 01:16:27 GMT (envelope-from git) Date: Mon, 18 Apr 2022 01:16:27 GMT Message-Id: <202204180116.23I1GRj4046700@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Wen Heping Subject: git: ac3547c9990f - main - www/moodle40: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac3547c9990f7890d0f52f9a75b8439cf6390f23 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650244588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nC3SLmfu+cjT41GAkVtoWrFOHh74wQtfGKrDnR0u59o=; b=ZsZkjFb3VVatAocoVPoG4B97qVJlUH2HpSsmP9BJAe+hcQtyglNFqDfnGJVsyIR8L5NvYo H8feBSgqkiZ/SuLKn5LiOEpGzeVhlegSvYSiCvu6HURb4a3V0zBnnRnGMrzkSH4E+hL8dM PAm/4uRWeYPKqmzgWbZV4fNa7eQZk4yXdyR44IwjOSfGqo7XPw2Ew4LafvmST3+TEPzqhO YrLUp8UjVzVXXNRa4DY96MVwpFcvRZyDxwEEXo/CnQinznvpT2EqPm7HDX4bUBr7RYYtKj /dkK0RoAu28JCBKaEX4gzEzuKgTO2JBUUX5hOTTvm08y657LleKTPWXYqvG8SA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650244588; a=rsa-sha256; cv=none; b=kXPwL/a7f/5WzACh6xsaBwsCWG6/pr5rsFGE/3SZEp2kf9tQTQkSKpgR/o946EpBToUB0z WQ8dY3g6n/pmxYXtpg7bCBp7aYzzKTNuFLkR9dilyy1LPjFVSndmuRgbgrsX56MCpUrPvX OP3cquWgnA/KyovaWm9fboLE319IqmpQlOOIWNwMkHdFBj5eBxTQU4yiOCw9Bd2CQKB/8/ 5oO3+88lmAM7UsFGFeyCZajxFvYdTSshwxOGWc3PyB18xW3egEFFn/ugDVfUtj9u5z8Xaa fkO1ULYnNB3C2nJX7TDy56W4N8LTlJJsoIpPHyHWh+V7NMliEkqtDU3mQw1Atw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=ac3547c9990f7890d0f52f9a75b8439cf6390f23 commit ac3547c9990f7890d0f52f9a75b8439cf6390f23 Author: Wen Heping AuthorDate: 2022-04-18 01:15:03 +0000 Commit: Wen Heping CommitDate: 2022-04-18 01:15:03 +0000 www/moodle40: Add new port Repocopied from www/moodle311 Moodle is a course management system (CMS) - a free, Open Source software package designed using sound pedagogical principles, to help educators create effective online learning communities. You can use it on any computer you have handy (including webhosts), yet it can scale from a single-teacher site to a 40,000-student University. --- www/Makefile | 1 + www/moodle40/Makefile | 62 +++++++++++++++++++++++++++++++++++++++ www/moodle40/distinfo | 3 ++ www/moodle40/files/pkg-message.in | 59 +++++++++++++++++++++++++++++++++++++ www/moodle40/pkg-descr | 7 +++++ 5 files changed, 132 insertions(+) diff --git a/www/Makefile b/www/Makefile index 14ed26efe9cf..36c0962004e5 100644 --- a/www/Makefile +++ b/www/Makefile @@ -422,6 +422,7 @@ SUBDIR += moodle310 SUBDIR += moodle311 SUBDIR += moodle39 + SUBDIR += moodle40 SUBDIR += morty SUBDIR += mozplugger SUBDIR += multisort diff --git a/www/moodle40/Makefile b/www/moodle40/Makefile new file mode 100644 index 000000000000..9d7961bc27c4 --- /dev/null +++ b/www/moodle40/Makefile @@ -0,0 +1,62 @@ +# Created by: Javier Martin Rueda + +PORTNAME= moodle +PORTVERSION= 4.0 +CATEGORIES= www education +MASTER_SITES= SF/moodle/Moodle/stable400/ +PKGNAMESUFFIX= ${PKGORIGIN:T:S/moodle//}${PHP_PKGNAMESUFFIX} + +MAINTAINER= wen@FreeBSD.org +COMMENT= Course management system based on social constructionism + +LICENSE= GPLv3 + +CONFLICTS= moodle39-3.9.[0-9]* moodle310-3.10.[0-9]* moodle311-3.11.[0-9]* + +USES= cpe php:flavors tar:tgz +USE_PHP= ctype curl dom fileinfo filter gd hash iconv intl json mbstring \ + opcache openssl pcre session simplexml soap sodium spl tokenizer \ + xml xmlreader xmlrpc zip zlib +IGNORE_WITH_PHP= 81 + +WRKSRC= ${WRKDIR}/moodle + +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= MYSQL PGSQL MSSQL +OPTIONS_DEFINE= LDAP +OPTIONS_DEFAULT= MYSQL + +MYSQL_USES= mysql +MYSQL_USE= php=mysqli +PGSQL_USE= php=pgsql +MSSQL_USE= php=mssql +LDAP_USE= php=ldap + +NO_BUILD= yes +PLIST= ${WRKDIR}/plist +SUB_FILES= pkg-message +SUB_LIST= MOODLEDIR=${MOODLEDIR} \ + MOODLEDATADIR=${MOODLEDATADIR} + +MOODLEDIR?= www/moodle +MOODLEDATADIR?= moodledata + +pre-install: + @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST} + @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST} + @${ECHO_CMD} "@mode 755" >> ${PLIST} + @${ECHO} @dir ${MOODLEDATADIR} >> ${PLIST} + @${ECHO_CMD} "@mode" >> ${PLIST} + @${ECHO_CMD} "@group" >> ${PLIST} + @${ECHO_CMD} "@owner" >> ${PLIST} + +# Here for safety I do not set moodle diretory 0755 permission +# It require user write config.php manually then. + @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MOODLEDIR}?g" >>${PLIST} + @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dir ${MOODLEDIR}?g" >> ${PLIST} + +do-install: + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${MOODLEDIR} + @${INSTALL} -d ${STAGEDIR}${PREFIX}/${MOODLEDATADIR} + +.include diff --git a/www/moodle40/distinfo b/www/moodle40/distinfo new file mode 100644 index 000000000000..32b3e6865234 --- /dev/null +++ b/www/moodle40/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650242057 +SHA256 (moodle-4.0.tgz) = 89db03d19c33a31b95c45861a45cbcc563482f880eec6a279c19a549e461a1e3 +SIZE (moodle-4.0.tgz) = 61778671 diff --git a/www/moodle40/files/pkg-message.in b/www/moodle40/files/pkg-message.in new file mode 100644 index 000000000000..149d236084ec --- /dev/null +++ b/www/moodle40/files/pkg-message.in @@ -0,0 +1,59 @@ +[ +{ type: install + message: < + AllowOverride None + Require all granted + + +3) Visit your Moodle site with a browser (i.e., + http://your.server.com/moodle/), and you should + be taken to the install.php script, which will lead + you through creating a config.php file and then + setting up Moodle, creating an admin account, etc. + + At one step, you will get a message saying that the + installer script was not able to automatically create + the config.php file. Just download it and copy it to + %%PREFIX%%/%%MOODLEDIR%%/config.php. Beware that it + will contain the database password in cleartext, so + set up whatever file permissions you deem more adequate. + For instance, user=root, group=www, mask=640. + +4) Set up a cron task to invoke the file admin/cron.php + every five minutes or so. For instance: + */5 * * * * fetch http://your.server.com/moodle/admin/cron.php + +For more information, see the INSTALL DOCUMENTATION: + + http://docs.moodle.org/en/Installing_Moodle + +It may be worth reading the installation docs even if Moodle seems +to be working at first, to ensure your PHP settings and database +configuration will allow Moodle to operate properly. +EOM +} +{ type: upgrade + message: <