diff options
| author | Wen Heping <wen@FreeBSD.org> | 2022-06-12 03:41:22 +0000 |
|---|---|---|
| committer | Wen Heping <wen@FreeBSD.org> | 2022-06-12 03:41:22 +0000 |
| commit | cf85acfb8cacc2503e18ee28cda5c1fc12fffae7 (patch) | |
| tree | df1f6ea5796636163957a43bf07fbfd9ea26e078 | |
| parent | 07dda179ed116caf25253cb5fc2b47ac8ff58903 (diff) | |
www/tcexam: Add new port
TCExam is a Open Source system for electronic exams (also know as CBA -
Computer-Based Assessment, CBT - Computer-Based Testing or e-exam) that
enables educators and trainers to author, schedule, deliver, and report
on quizzes, tests and exams.
TCExam is Web-Based, platform independent, language independent (includes
translations in several languages and RTL support) and conforms to W3C
Accessibility and Usability guidelines to provide equal opportunity to
people with disabilities, including blind users.
TCExam automates all assessment phases: authoring, scheduling, delivering,
and reporting. It's easy to use and do not require expensive hardware to
run, nor additional commercial software. Users connect to the TCExam system
using a common Web-browser like Mozilla Firefox or Internet Explorer.
WWW: http://www.tcexam.org/
| -rw-r--r-- | www/Makefile | 1 | ||||
| -rw-r--r-- | www/tcexam/Makefile | 46 | ||||
| -rw-r--r-- | www/tcexam/distinfo | 3 | ||||
| -rw-r--r-- | www/tcexam/files/pkg-message.in | 23 | ||||
| -rw-r--r-- | www/tcexam/pkg-descr | 16 |
5 files changed, 89 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 15a11e6b263a..6b8f8c00277a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2236,6 +2236,7 @@ SUBDIR += suphp SUBDIR += surf SUBDIR += swiggle + SUBDIR += tcexam SUBDIR += tclhttpd SUBDIR += tclwebtest SUBDIR += tdiary diff --git a/www/tcexam/Makefile b/www/tcexam/Makefile new file mode 100644 index 000000000000..74de493619ff --- /dev/null +++ b/www/tcexam/Makefile @@ -0,0 +1,46 @@ +PORTNAME= tcexam +PORTVERSION= 14.8.5 +CATEGORIES= www education +PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} + +MAINTAINER= wen@FreeBSD.org +COMMENT= Open Source system for electronic exams + +LICENSE= GPLv3 + +USES= cpe php:flavors tar:tgz +USE_PHP= curl gd xml + +USE_GITHUB= yes +GH_ACCOUNT= tecnickcom + +OPTIONS_SINGLE= BACKEND +OPTIONS_SINGLE_BACKEND= MYSQL PGSQL +OPTIONS_DEFAULT= MYSQL + +MYSQL_USE= php=mysqli +PGSQL_USE= php=pgsql + +NO_BUILD= yes +PLIST= ${WRKDIR}/plist +SUB_FILES= pkg-message +SUB_LIST= TCDIR=${TCDIR} + +TCDIR?= www/tcexam + +pre-install: + @${ECHO_CMD} "@owner ${WWWOWN}" >> ${PLIST} + @${ECHO_CMD} "@group ${WWWGRP}" >> ${PLIST} + @${ECHO_CMD} "@mode 755" >> ${PLIST} + + @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${TCDIR}?g" >>${PLIST} + @${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dir ${TCDIR}?g" >> ${PLIST} + + @${ECHO_CMD} "@mode" >> ${PLIST} + @${ECHO_CMD} "@group" >> ${PLIST} + @${ECHO_CMD} "@owner" >> ${PLIST} + +do-install: + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${TCDIR} + +.include <bsd.port.mk> diff --git a/www/tcexam/distinfo b/www/tcexam/distinfo new file mode 100644 index 000000000000..12f49a3d8696 --- /dev/null +++ b/www/tcexam/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654691070 +SHA256 (tecnickcom-tcexam-14.8.5_GH0.tar.gz) = c5f2ec40b10df5dce3afb21f67e6b806ab3d08f587be8bd6d5ad819c9642c2e6 +SIZE (tecnickcom-tcexam-14.8.5_GH0.tar.gz) = 17135603 diff --git a/www/tcexam/files/pkg-message.in b/www/tcexam/files/pkg-message.in new file mode 100644 index 000000000000..374c83c29eb8 --- /dev/null +++ b/www/tcexam/files/pkg-message.in @@ -0,0 +1,23 @@ +[ +{ type: install + message: <<EOM + +1) Add the following to your Apache configuration file + httpd.conf, and restart the server: + + Alias /tcexam %%PREFIX%%/%%TCDIR%%/ + AcceptPathInfo On + <Directory %%PREFIX%%/%%TCDIR%%/> + AllowOverride None + Require all granted + </Directory> + +2) Visit your TCExam site with a browser (i.e., + http://your.server.com/tcexam/install/install.php), + +For more information, see the INSTALL DOCUMENTATION: + + https://tcexam.org/docs/installation/ +EOM +} +] diff --git a/www/tcexam/pkg-descr b/www/tcexam/pkg-descr new file mode 100644 index 000000000000..5a752f01e6b8 --- /dev/null +++ b/www/tcexam/pkg-descr @@ -0,0 +1,16 @@ +TCExam is a Open Source system for electronic exams (also know as CBA - +Computer-Based Assessment, CBT - Computer-Based Testing or e-exam) that +enables educators and trainers to author, schedule, deliver, and report +on quizzes, tests and exams. + +TCExam is Web-Based, platform independent, language independent (includes +translations in several languages and RTL support) and conforms to W3C +Accessibility and Usability guidelines to provide equal opportunity to +people with disabilities, including blind users. + +TCExam automates all assessment phases: authoring, scheduling, delivering, +and reporting. It's easy to use and do not require expensive hardware to +run, nor additional commercial software. Users connect to the TCExam system +using a common Web-browser like Mozilla Firefox or Internet Explorer. + +WWW: http://www.tcexam.org/ |
