From nobody Tue Oct 08 13:32:27 2024 X-Original-To: dev-commits-ports-main@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 4XNH4q6thSz5ZQjn; Tue, 08 Oct 2024 13:32:27 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XNH4q5pP1z4j8H; Tue, 8 Oct 2024 13:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728394347; 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=sPhk+dgdEvpekBVGbEI7lzs7eNO0efHDWkZ+sN7jSeU=; b=bdk68zU7vmxrrfKFWEp66h6OY/swougs4zeEoj9UF0sutpCWUjVLLWpdyC3ax5Y6COhKoj yUYUj9H+cJiLAauijgOEj2sou3wpYLoJ94L9AR/k+ZE/Z1od7VQ2fA6u6TdqQkrdzcvnz9 ZPmZypIFP9ZL0IjOj9K64BpToJI1CKSFu1uQ3XfV8IPS+t+ANaZuVJB4ZZUQhy3Mxyk5ob 31ucINK0NVYGMm2qM/cMYSzfcgNBxDFV9xpjIrFakm739u/OstPphjJZh5A3XA/enr+47w adToDia6gyJiVYilAPHADEySdxx7BoJcixa8nNrJufR3hEu81JtA0s+8HyEP0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728394347; 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=sPhk+dgdEvpekBVGbEI7lzs7eNO0efHDWkZ+sN7jSeU=; b=LoLqqgkLnm11dg4J6eDc2WTYg5f4D9WXW4G4oITvD5oBeB2DGR+e+jqZ8pk1sKteNrRbjG xPUMVTiJnR3OULlu8MfKm+nQphNG6CqATj36KcAp+Uof5RdyFkDp2uxK51Z9LsOLV5pP2U ESEqm2txX7ijMpo+8TMi2UPd+V4oD8VfhA8mObcNgGgjrgzoc0eMCyjhipWg6aBmwDEccl Jkrd7PGC5mf/b/QxCYUDqbeqwssbQEG6FoeGsHzFkeu0XYWKeHrJ/zjsoeL3ZHTV3S3Vuq U6s4a2NBZ+O9b+ETDv9KzO7fDB+REJLGHVhDgMLLSASRGXXokScaLXIob7KeNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728394347; a=rsa-sha256; cv=none; b=IX8rqOX2Bm+WDnfm5il/8HB72unh9fVrMcoweuqq43pA24NIxiavtXfNCc1+3b+igjqD6Y oaX32HzVVO+Smr0y2iicmkNS8Eyf6SC+v5H5Hd1fC9wGcT5YA0yX1tW68911b7FA9hY9QQ 8fHDrzmZC6wIrYl8w9frwJJdXngbCke+2zypJjR7wH0KrDmD/J8sMpH9RKxx6qIC7G/cGU EYyE7dzb2Jrj56ZYpRsK0oiV/VNCU7wNBEawwbZg0fJDZ42o4uOSK8U5RlSntcH5Aq5fAy y23EiGqdG6tKA1ll2dV379GKtLIUNBLrQSMh/hRBuj4hpPvce1za5lnyF7/vUA== 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 4XNH4q5Pr4zYHf; Tue, 8 Oct 2024 13:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 498DWRqA015338; Tue, 8 Oct 2024 13:32:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 498DWRJD015335; Tue, 8 Oct 2024 13:32:27 GMT (envelope-from git) Date: Tue, 8 Oct 2024 13:32:27 GMT Message-Id: <202410081332.498DWRJD015335@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: 6b8812d81f07 - main - www/moodle45: New port, copied from www/moodle44 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@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: 6b8812d81f07bc474b9ed95ddfdf811b421d2982 Auto-Submitted: auto-generated The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=6b8812d81f07bc474b9ed95ddfdf811b421d2982 commit 6b8812d81f07bc474b9ed95ddfdf811b421d2982 Author: Wen Heping AuthorDate: 2024-10-08 13:31:05 +0000 Commit: Wen Heping CommitDate: 2024-10-08 13:32:02 +0000 www/moodle45: New port, copied from www/moodle44 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/moodle45/Makefile | 61 +++++++++++++++++++++++++++++++++++++++ www/moodle45/distinfo | 3 ++ www/moodle45/files/pkg-message.in | 59 +++++++++++++++++++++++++++++++++++++ www/moodle45/pkg-descr | 5 ++++ 5 files changed, 129 insertions(+) diff --git a/www/Makefile b/www/Makefile index 80c73184653f..eb327f3bbc42 100644 --- a/www/Makefile +++ b/www/Makefile @@ -437,6 +437,7 @@ SUBDIR += moodle42 SUBDIR += moodle43 SUBDIR += moodle44 + SUBDIR += moodle45 SUBDIR += morty SUBDIR += multisort SUBDIR += multiwatch diff --git a/www/moodle45/Makefile b/www/moodle45/Makefile new file mode 100644 index 000000000000..81a8e3481602 --- /dev/null +++ b/www/moodle45/Makefile @@ -0,0 +1,61 @@ +PORTNAME= moodle +PORTVERSION= 4.5 +CATEGORIES= www education +MASTER_SITES= SF/moodle/Moodle/stable405/ +PKGNAMESUFFIX= ${PKGORIGIN:T:S/moodle//}${PHP_PKGNAMESUFFIX} + +MAINTAINER= wen@FreeBSD.org +COMMENT= Course management system based on social constructionism +WWW= https://www.moodle.org/ + +LICENSE= GPLv3 + +CONFLICTS= moodle41-4.1.[0-9]* moodle42-4.2.[0-9]* moodle43-4.3.[0-9]* \ + moodle44-4.4.[0-9]* + +USES= cpe php:flavors tar:tgz +USE_PHP= ctype curl dom exif fileinfo filter gd \ + iconv intl mbstring opcache \ + session simplexml soap sodium tokenizer \ + xml xmlreader xmlrpc zip zlib + +WRKSRC= ${WRKDIR}/moodle + +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= MYSQL PGSQL +OPTIONS_DEFINE= LDAP +OPTIONS_DEFAULT= MYSQL + +MYSQL_USES= mysql +MYSQL_USE= php=mysqli +PGSQL_USE= php=pgsql +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/moodle45/distinfo b/www/moodle45/distinfo new file mode 100644 index 000000000000..d9a6831aba93 --- /dev/null +++ b/www/moodle45/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1728394013 +SHA256 (moodle-4.5.tgz) = 95337bee866e16402a41358f6f1363daee564a4ffe97b405566279d384fafb80 +SIZE (moodle-4.5.tgz) = 74155937 diff --git a/www/moodle45/files/pkg-message.in b/www/moodle45/files/pkg-message.in new file mode 100644 index 000000000000..5282847317fb --- /dev/null +++ b/www/moodle45/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: <