Skip to content

Commit

Permalink
www/tcexam: Add new port
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
wenheping committed Jun 12, 2022
1 parent 07dda17 commit cf85acf
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -2236,6 +2236,7 @@
SUBDIR += suphp
SUBDIR += surf
SUBDIR += swiggle
SUBDIR += tcexam
SUBDIR += tclhttpd
SUBDIR += tclwebtest
SUBDIR += tdiary
Expand Down
46 changes: 46 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
23 changes: 23 additions & 0 deletions 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
}
]
16 changes: 16 additions & 0 deletions 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/

0 comments on commit cf85acf

Please sign in to comment.