From 892eb002467f49f8a4ccdddaea7863514ab9ca53 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 11 Mar 2009 16:41:42 +0000 Subject: [PATCH] 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 --- www/Makefile | 1 + www/mahara/Makefile | 61 +++++++++++++++++++++++++++++++++ www/mahara/distinfo | 3 ++ www/mahara/files/pkg-message.in | 41 ++++++++++++++++++++++ www/mahara/pkg-descr | 8 +++++ 5 files changed, 114 insertions(+) create mode 100644 www/mahara/Makefile create mode 100644 www/mahara/distinfo create mode 100644 www/mahara/files/pkg-message.in create mode 100644 www/mahara/pkg-descr diff --git a/www/Makefile b/www/Makefile index a2af3c028a4d..e225b22e9ce1 100644 --- a/www/Makefile +++ b/www/Makefile @@ -360,6 +360,7 @@ SUBDIR += lws SUBDIR += lynx SUBDIR += lynx-current + SUBDIR += mahara SUBDIR += mambo SUBDIR += man2web SUBDIR += mathopd diff --git a/www/mahara/Makefile b/www/mahara/Makefile new file mode 100644 index 000000000000..942a78a152de --- /dev/null +++ b/www/mahara/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: mahara +# Date created: 21 Feb, 2009 +# Whom: Wen Heping +# +# $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 + +.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 diff --git a/www/mahara/distinfo b/www/mahara/distinfo new file mode 100644 index 000000000000..aa0ee3ea216b --- /dev/null +++ b/www/mahara/distinfo @@ -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 diff --git a/www/mahara/files/pkg-message.in b/www/mahara/files/pkg-message.in new file mode 100644 index 000000000000..27cf42277557 --- /dev/null +++ b/www/mahara/files/pkg-message.in @@ -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 + + AllowOverride None + Order Allow,Deny + Allow from all + + + AllowOverride None + Order Allow,Deny + Deny from all + + +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 + +======================================================================= diff --git a/www/mahara/pkg-descr b/www/mahara/pkg-descr new file mode 100644 index 000000000000..570d43d63669 --- /dev/null +++ b/www/mahara/pkg-descr @@ -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/