summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2005-08-09 11:35:05 +0000
committerRenat Lumpau <rl03@gentoo.org>2005-08-09 11:35:05 +0000
commit2a793d92a9f339e2c7ae73fd3f30da569dd79d68 (patch)
tree21a3a57a46910bb62a376e15bdfdace381815795 /www-apps/knowledgetree
parentfix broken link to the upgrade guide, clarify that they should upgrade to 200... (diff)
downloadgentoo-2-2a793d92a9f339e2c7ae73fd3f30da569dd79d68.tar.gz
gentoo-2-2a793d92a9f339e2c7ae73fd3f30da569dd79d68.tar.bz2
gentoo-2-2a793d92a9f339e2c7ae73fd3f30da569dd79d68.zip
Initial commit per bug #65083. Thanks to wrobel.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'www-apps/knowledgetree')
-rw-r--r--www-apps/knowledgetree/ChangeLog11
-rw-r--r--www-apps/knowledgetree/Manifest6
-rw-r--r--www-apps/knowledgetree/files/config-hook-2.0.0.sh7
-rw-r--r--www-apps/knowledgetree/files/digest-knowledgetree-2.0.71
-rw-r--r--www-apps/knowledgetree/files/postinstall-en-2.0.7.txt46
-rw-r--r--www-apps/knowledgetree/knowledgetree-2.0.7.ebuild88
-rw-r--r--www-apps/knowledgetree/metadata.xml5
7 files changed, 164 insertions, 0 deletions
diff --git a/www-apps/knowledgetree/ChangeLog b/www-apps/knowledgetree/ChangeLog
new file mode 100644
index 000000000000..0eac54c6f334
--- /dev/null
+++ b/www-apps/knowledgetree/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apps/knowledgetree
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/knowledgetree/ChangeLog,v 1.1 2005/08/09 11:35:05 rl03 Exp $
+
+*knowledgetree-2.0.7 (09 Aug 2005)
+
+ 09 Aug 2005; Renat Lumpau <rl03@gentoo.org> +files/config-hook-2.0.0.sh,
+ +files/postinstall-en-2.0.7.txt, +metadata.xml,
+ +knowledgetree-2.0.7.ebuild:
+ Initial commit per bug #65083. Thanks to wrobel.
+
diff --git a/www-apps/knowledgetree/Manifest b/www-apps/knowledgetree/Manifest
new file mode 100644
index 000000000000..17dfdbd285bb
--- /dev/null
+++ b/www-apps/knowledgetree/Manifest
@@ -0,0 +1,6 @@
+MD5 f0ccbf524251f959c1399c299896a00f knowledgetree-2.0.7.ebuild 1967
+MD5 da09cb38b827fe3a82308ede7a7403ce ChangeLog 367
+MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161
+MD5 16a0ed193f1dce99f774b42840fd947d files/postinstall-en-2.0.7.txt 1847
+MD5 74f02fdd8e803af4673121fe6df90ae4 files/digest-knowledgetree-2.0.7 68
+MD5 3b1ebecb999e40f5b64494b9b9e34096 files/config-hook-2.0.0.sh 251
diff --git a/www-apps/knowledgetree/files/config-hook-2.0.0.sh b/www-apps/knowledgetree/files/config-hook-2.0.0.sh
new file mode 100644
index 000000000000..cd86b6ae34c8
--- /dev/null
+++ b/www-apps/knowledgetree/files/config-hook-2.0.0.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# Sets installation directory and hostname when installing knowledgeTree
+
+if [ "x$1"=="xinstall" ]; then
+ cd ${MY_INSTALLDIR}/config
+ sed -i -e "s#default->rootUrl = \"\"#default->rootUrl = \"${VHOST_APPDIR}\"#" environment.php
+fi
diff --git a/www-apps/knowledgetree/files/digest-knowledgetree-2.0.7 b/www-apps/knowledgetree/files/digest-knowledgetree-2.0.7
new file mode 100644
index 000000000000..352d94b13c10
--- /dev/null
+++ b/www-apps/knowledgetree/files/digest-knowledgetree-2.0.7
@@ -0,0 +1 @@
+MD5 f17896400535a4ad2159e3ff05a0f1e0 knowledgeTree-2.0.7.tgz 806523
diff --git a/www-apps/knowledgetree/files/postinstall-en-2.0.7.txt b/www-apps/knowledgetree/files/postinstall-en-2.0.7.txt
new file mode 100644
index 000000000000..6e8e2c7eb3f6
--- /dev/null
+++ b/www-apps/knowledgetree/files/postinstall-en-2.0.7.txt
@@ -0,0 +1,46 @@
+------------------------------------------------------------------------
+INSTALLATION
+
+The ebuild installs most parts of knowledgeTree automatically, but
+you will have to create a database for the document management system.
+
+You can do this using the following commands as the mysql root user:
+
+> mysql -u root -p -e "CREATE DATABASE dms;
+ GRANT SELECT, INSERT, UPDATE, DELETE ON dms.* TO 'dms'@'localhost'
+ IDENTIFIED BY 'pass';
+ FLUSH PRIVILEGES;"
+
+> mysql -u root -p -e "GRANT ALL PRIVILEGES ON dms.* TO 'dmsadmin'@'localhost'
+ IDENTIFIED BY 'pass';
+ FLUSH PRIVILEGES;"
+
+Please do not forget to choose a password that is more sensible than
+'pass' ;)
+
+Now as user "dmsadmin":
+
+> mysql -u dmsadmin -ppass dms < ${MY_HTDOCSDIR}/sql/mysql/install/structure.sql
+> mysql -u dmsadmin -ppass dms < ${MY_HTDOCSDIR}/sql/mysql/install/data.sql
+
+You also need to set the MySQL passwords for the dms and dmsadmin user in
+the ${MY_INSTALLDIR}/config/environment.php file so that knowledgeTree can
+access the database.
+
+Now you can go to http://${VHOST_HOSTNAME}${VHOST_APPDIR} and log in
+as user "admin" with the password "admin".
+
+------------------------------------------------------------------------
+UPGRADE
+
+To upgrade from version prior to 2.0.2 please run the necessary sql
+upgrade scripts. All upgrades after 2.0.2 can be done automatically
+from within the web frontend.
+
+> mysql -u dms -ppass dms < ${MY_HTDOCSDIR}/sql/mysql/upgrade/1.2.4-to-2.0.0.sql
+> mysql -u dms -ppass dms < ${MY_HTDOCSDIR}/sql/mysql/upgrade/2.0.0-to-2.0.1.sql
+> mysql -u dms -ppass dms < ${MY_HTDOCSDIR}/sql/mysql/upgrade/2.0.1-to-2.0.2.sql
+
+Please also refer to /usr/share/doc/knowledgetree-2.0.7/UPGRADE.txt.gz
+
+------------------------------------------------------------------------
diff --git a/www-apps/knowledgetree/knowledgetree-2.0.7.ebuild b/www-apps/knowledgetree/knowledgetree-2.0.7.ebuild
new file mode 100644
index 000000000000..2ca7082f0ad1
--- /dev/null
+++ b/www-apps/knowledgetree/knowledgetree-2.0.7.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/knowledgetree/knowledgetree-2.0.7.ebuild,v 1.1 2005/08/09 11:35:05 rl03 Exp $
+
+inherit eutils webapp
+
+MY_PN=${PN/tree/Tree}
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="KnowledgeTree is a document management system providing a content repository, workflow and routing of content, content publication and content metrics definition and analysis."
+HOMEPAGE="http://www.ktdms.com/"
+SRC_URI="mirror://sourceforge/kt-dms/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="
+ virtual/php
+ dev-db/mysql
+ >=PEAR-DB-1.6.4
+ >=PEAR-Log-1.8.3
+ "
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+
+ unpack ${A} && cd "${S}"
+
+ ## The ebuild depends on PEAR-DB and PEAR-Log.
+ ## No need for additional PEAR library files
+ rm -rf thirdparty
+
+ ## not running any tests
+ rm -rf tests
+
+ ## Example apache, php and mysql config files
+ cd etc
+ for FL in *
+ do
+ mv ${FL} example-${FL}
+ done
+}
+
+src_install() {
+ webapp_src_preinst
+
+ local docs="docs/CREDITS.txt
+ docs/ChangeLog.txt
+ docs/INSTALL.txt
+ docs/README.txt
+ docs/TODO.txt
+ docs/UPGRADE.txt
+ docs/faq.txt
+ docs/i18n.txt
+ docs/SearchPermissions.txt
+ sql/mysql/install/user.sql
+ "
+
+ dodoc ${docs} etc/*
+
+ ## Main application
+ cp -r . ${D}${MY_HTDOCSDIR}
+
+ ## Docs installed, remove unnecessary files
+ rm -rf ${D}${MY_HTDOCSDIR}/etc
+ for doc in ${docs}
+ do
+ rm ${D}${MY_HTDOCSDIR}/${doc}
+ done
+
+ for CFG in ${MY_HTDOCSDIR}/config/{browsers.inc,dmsDefaults.php,environment.php,siteMap.inc,tableMappings.inc}
+ do
+ webapp_configfile ${CFG}
+ done
+
+ ## Documents will be saved here
+ webapp_serverowned ${MY_HTDOCSDIR}/log
+ webapp_serverowned ${MY_HTDOCSDIR}/Documents
+ webapp_serverowned ${MY_HTDOCSDIR}/Documents/Root\ Folder
+ webapp_serverowned ${MY_HTDOCSDIR}/Documents/Root\ Folder/Default\ Unit
+
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en-2.0.7.txt
+
+ ## Fix for the root folder
+ webapp_hook_script ${FILESDIR}/config-hook-2.0.0.sh
+
+ webapp_src_install
+}
diff --git a/www-apps/knowledgetree/metadata.xml b/www-apps/knowledgetree/metadata.xml
new file mode 100644
index 000000000000..95c06f0095bb
--- /dev/null
+++ b/www-apps/knowledgetree/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+</pkgmetadata>