aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-03-11 16:41:42 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-03-11 16:41:42 +0000
commit892eb002467f49f8a4ccdddaea7863514ab9ca53 (patch)
tree2e6725218b0d78dda994c5fb32c3d8d8a5bd0ad1
parent0cea91c5c7b105cb6dd141eb48a4823996385661 (diff)
downloadports-892eb002467f49f8a4ccdddaea7863514ab9ca53.tar.gz
ports-892eb002467f49f8a4ccdddaea7863514ab9ca53.zip
Notes
-rw-r--r--www/Makefile1
-rw-r--r--www/mahara/Makefile61
-rw-r--r--www/mahara/distinfo3
-rw-r--r--www/mahara/files/pkg-message.in41
-rw-r--r--www/mahara/pkg-descr8
5 files changed, 114 insertions, 0 deletions
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 <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>
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
+ <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
+
+=======================================================================
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/