Mahara is an open source ePortfolio system with a flexible display framework.
Mahara, meaning 'think' or 'thought' in Te Reo M.ori, is user centred environment with a permissions framework that enables different views of an e-portfolio to be easily managed. Mahara also features a weblog, resume builder and social networking system, connecting users and creating online learner communities. WWW: http://www.mahara.org/ PR: ports/131932 Submitted by: Wen Heping <wenheping at gmail.com>
This commit is contained in:
parent
0cea91c5c7
commit
892eb00246
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229881
@ -360,6 +360,7 @@
|
||||
SUBDIR += lws
|
||||
SUBDIR += lynx
|
||||
SUBDIR += lynx-current
|
||||
SUBDIR += mahara
|
||||
SUBDIR += mambo
|
||||
SUBDIR += man2web
|
||||
SUBDIR += mathopd
|
||||
|
61
www/mahara/Makefile
Normal file
61
www/mahara/Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
# New ports collection makefile for: mahara
|
||||
# Date created: 21 Feb, 2009
|
||||
# Whom: Wen Heping <wenheping@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mahara
|
||||
PORTVERSION= 1.0.9
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://eduforge.org/frs/download.php/912/
|
||||
|
||||
MAINTAINER= wenheping@gmail.com
|
||||
COMMENT= An open source ePortfolio system
|
||||
|
||||
USE_PHP= session json curl xml xmlrpc openssl simplexml
|
||||
|
||||
OPTIONS= MYSQL "Add support for a MySQL database server" On \
|
||||
PGSQL "Add support for a PostgreSQL database server" Off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
USE_PHP+= mysql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
USE_PHP+= pgsql
|
||||
.endif
|
||||
|
||||
NO_BUILD= yes
|
||||
PLIST= ${WRKDIR}/plist
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= MAHARADIR=${MAHARADIR} \
|
||||
MAHARADATADIR=${MAHARADATADIR}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/htdocs
|
||||
|
||||
MAHARADIR?= www/mahara
|
||||
MAHARADATADIR?= www/maharadata
|
||||
|
||||
pre-install:
|
||||
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MAHARADIR}?g" >${PLIST}
|
||||
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${MAHARADIR}?g" >> ${PLIST}
|
||||
@${ECHO} @dirrm ${MAHARADATADIR} >> ${PLIST}
|
||||
|
||||
do-install:
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
|
||||
@${INSTALL} -d ${PREFIX}/${MAHARADATADIR}
|
||||
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
|
||||
@${CHMOD} -R 755 ${WWWDIR}
|
||||
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST}
|
||||
|
||||
@${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}
|
||||
@${ECHO_CMD} '@exec ${CHMOD} -R a+w ${PREFIX}/${MAHARADATADIR}' >> ${TMPPLIST}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
www/mahara/distinfo
Normal file
3
www/mahara/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (mahara-1.0.9.tar.gz) = 670146c52352056ec9a462b54c8c5dc8
|
||||
SHA256 (mahara-1.0.9.tar.gz) = 4e8e3c0199ac0f6fe4cdf3a48d4f6bd68952f0568d22108494cd72521d9ed21d
|
||||
SIZE (mahara-1.0.9.tar.gz) = 2023288
|
41
www/mahara/files/pkg-message.in
Normal file
41
www/mahara/files/pkg-message.in
Normal file
@ -0,0 +1,41 @@
|
||||
POST-INSTALL CONFIGURATION FOR MAHARA
|
||||
=====================================
|
||||
|
||||
1) Create a user and a database for MAHARA to store all
|
||||
its tables in (or choose an existing database).
|
||||
|
||||
2) Add the following to your Apache configuration, and
|
||||
restart the server:
|
||||
|
||||
### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
|
||||
Alias /mahara %%PREFIX%%/%%MAHARADIR%%/
|
||||
AcceptPathInfo On
|
||||
<Directory %%PREFIX%%/%%MAHARADIR%%>
|
||||
AllowOverride None
|
||||
Order Allow,Deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
<Directory %%PREFIX%%/%%MAHARADATADIR%%>
|
||||
AllowOverride None
|
||||
Order Allow,Deny
|
||||
Deny from all
|
||||
</Directory>
|
||||
|
||||
3) Make sure that magic_quotes_gpc is off and register_globals is off
|
||||
in your PHP.ini file.
|
||||
|
||||
4) Change into the directory %%PREFIX%%/%%MAHARADIR%% and copy the
|
||||
file config-dist.php to config.php, then go through the file and make
|
||||
changes where appropriate.
|
||||
|
||||
5) Now you can navigate to the Mahara website using your web browser.
|
||||
Log into the system with user "admin", password "mahara".
|
||||
|
||||
Congratulations!
|
||||
|
||||
|
||||
For more information, see the INSTALL DOCUMENTATION:
|
||||
|
||||
http://wiki.mahara.org/System_Administrator%27s_Guide/Installing_Mahara
|
||||
|
||||
=======================================================================
|
8
www/mahara/pkg-descr
Normal file
8
www/mahara/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
Mahara is an open source ePortfolio system with a flexible display framework.
|
||||
Mahara, meaning 'think' or 'thought' in Te Reo M.ori, is user centred
|
||||
environment with a permissions framework that enables different views of an
|
||||
e-portfolio to be easily managed. Mahara also features a weblog, resume builder
|
||||
and social networking system, connecting users and creating online learner
|
||||
communities.
|
||||
|
||||
WWW: http://www.mahara.org/
|
Loading…
Reference in New Issue
Block a user