summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/knowledgetree')
-rw-r--r--www-apps/knowledgetree/ChangeLog11
-rw-r--r--www-apps/knowledgetree/Manifest23
-rw-r--r--www-apps/knowledgetree/files/config-hook-2.0.0.sh2
-rw-r--r--www-apps/knowledgetree/files/config-hook-3.0.0.sh7
-rw-r--r--www-apps/knowledgetree/files/digest-knowledgetree-3.0.01
-rw-r--r--www-apps/knowledgetree/files/postinstall-en-3.0.0.txt46
-rw-r--r--www-apps/knowledgetree/files/postupgrade-en-3.0.0.txt22
-rw-r--r--www-apps/knowledgetree/knowledgetree-3.0.0.ebuild73
8 files changed, 168 insertions, 17 deletions
diff --git a/www-apps/knowledgetree/ChangeLog b/www-apps/knowledgetree/ChangeLog
index 967abee4b451..f9b80e95989d 100644
--- a/www-apps/knowledgetree/ChangeLog
+++ b/www-apps/knowledgetree/ChangeLog
@@ -1,6 +1,13 @@
# 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.2 2005/08/22 22:56:10 rl03 Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/knowledgetree/ChangeLog,v 1.3 2006/03/04 09:27:50 wrobel Exp $
+
+*knowledgetree-3.0.0 (04 Mar 2006)
+
+ 04 Mar 2006; <wrobel@gentoo.org> files/config-hook-2.0.0.sh,
+ +files/config-hook-3.0.0.sh, +files/postinstall-en-3.0.0.txt,
+ +files/postupgrade-en-3.0.0.txt, +knowledgetree-3.0.0.ebuild:
+ Added knowledgetree-3.0.0 to the tree.
22 Aug 2005; Renat Lumpau <rl03@gentoo.org>
files/postinstall-en-2.0.7.txt:
diff --git a/www-apps/knowledgetree/Manifest b/www-apps/knowledgetree/Manifest
index 3c5ffa26ee24..f4a15adf8106 100644
--- a/www-apps/knowledgetree/Manifest
+++ b/www-apps/knowledgetree/Manifest
@@ -1,16 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 3fb47784d8a77897d2f2eb449ba57401 ChangeLog 826
+MD5 22b449239fb78913844ae3b6e0dffc0e files/config-hook-2.0.0.sh 250
+MD5 6666e69e804d1d4ea85830dd5802d02e files/config-hook-3.0.0.sh 226
+MD5 74f02fdd8e803af4673121fe6df90ae4 files/digest-knowledgetree-2.0.7 68
+MD5 ed4510167b2c473d45690d514f4a7025 files/digest-knowledgetree-3.0.0 69
+MD5 cdffaf0b390060eab7ac6e2146e91123 files/postinstall-en-2.0.7.txt 1848
+MD5 c13cb36f79f0a40c499cd2b3f402e988 files/postinstall-en-3.0.0.txt 1681
+MD5 84bbd0d86f4302b980d9eb5eccb0831e files/postupgrade-en-3.0.0.txt 735
MD5 6bd6ef4ff11bf403c2b526fbda762a76 knowledgetree-2.0.7.ebuild 2089
-MD5 6825d224fe9c17120e3156bb88d4ae54 ChangeLog 555
+MD5 8048f0817674997ee5bc2379c80a91ef knowledgetree-3.0.0.ebuild 1992
MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161
-MD5 cdffaf0b390060eab7ac6e2146e91123 files/postinstall-en-2.0.7.txt 1848
-MD5 74f02fdd8e803af4673121fe6df90ae4 files/digest-knowledgetree-2.0.7 68
-MD5 3b1ebecb999e40f5b64494b9b9e34096 files/config-hook-2.0.0.sh 251
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFDClgUEzitwsaoONoRAqZSAKDey7LS6xkf4TujYXoSXFHkiztc5ACgn0SB
-KDB3Cmj8seY4CRLXkrjVF5Y=
-=11tp
------END PGP SIGNATURE-----
diff --git a/www-apps/knowledgetree/files/config-hook-2.0.0.sh b/www-apps/knowledgetree/files/config-hook-2.0.0.sh
index cd86b6ae34c8..8be92a226aba 100644
--- a/www-apps/knowledgetree/files/config-hook-2.0.0.sh
+++ b/www-apps/knowledgetree/files/config-hook-2.0.0.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Sets installation directory and hostname when installing knowledgeTree
-if [ "x$1"=="xinstall" ]; then
+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/config-hook-3.0.0.sh b/www-apps/knowledgetree/files/config-hook-3.0.0.sh
new file mode 100644
index 000000000000..c6fe2e9e6968
--- /dev/null
+++ b/www-apps/knowledgetree/files/config-hook-3.0.0.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# Sets installation directory and hostname when installing knowledgeTree
+
+if [ $1 = "install" ]; then
+ cd ${MY_INSTALLDIR}/config
+ sed -i -e "s#rootUrl = default#rootUrl = \"${VHOST_APPDIR}\"#" config.ini
+fi
diff --git a/www-apps/knowledgetree/files/digest-knowledgetree-3.0.0 b/www-apps/knowledgetree/files/digest-knowledgetree-3.0.0
new file mode 100644
index 000000000000..a63acd0efaae
--- /dev/null
+++ b/www-apps/knowledgetree/files/digest-knowledgetree-3.0.0
@@ -0,0 +1 @@
+MD5 a140c9be7cfabff4c53ec2efac633152 knowledgeTree-3.0.0.tgz 2210780
diff --git a/www-apps/knowledgetree/files/postinstall-en-3.0.0.txt b/www-apps/knowledgetree/files/postinstall-en-3.0.0.txt
new file mode 100644
index 000000000000..507e697921d7
--- /dev/null
+++ b/www-apps/knowledgetree/files/postinstall-en-3.0.0.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 <<EOF
+ CREATE DATABASE dms;
+ GRANT SELECT, INSERT, UPDATE, DELETE ON dms.* TO 'dms'@'localhost' IDENTIFIED BY 'djw9281js';
+ FLUSH PRIVILEGES;
+EOF
+
+> mysql -u root -p <<EOF
+ GRANT ALL PRIVILEGES ON dms.* TO 'dmsadmin'@'localhost' IDENTIFIED BY 'js9281djw';
+ FLUSH PRIVILEGES;
+EOF
+
+Please do not forget to choose a different password than
+'js9281djw'. This is just the standard password stored as a default in
+${MY_INSTALLDIR}/config/config.ini.
+
+Now as user "dmsadmin":
+
+> mysql -u dmsadmin -pjs9281djw dms < ${MY_HTDOCSDIR}/sql/mysql/install/structure.sql
+> mysql -u dmsadmin -pjs9281djw dms < ${MY_HTDOCSDIR}/sql/mysql/install/data.sql
+
+Now you need to set the MySQL passwords for the dms and dmsadmin user
+in the ${MY_INSTALLDIR}/config/config.ini file so that knowledgeTree
+can access the database.
+
+Finally you can go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR} and log in
+as user "admin" with the password "admin".
+
+------------------------------------------------------------------------
+!!! PHP4 !!!
+
+This is a php4 application. Do not try to run it under php5. It will fail!
+
+------------------------------------------------------------------------
+POSTGRES
+
+You can also use knowledgtree with postgres. This ebuild currently
+does not provide support for it but if there is a need for it, please
+submit a feature request to the gentoo buzilla system.
diff --git a/www-apps/knowledgetree/files/postupgrade-en-3.0.0.txt b/www-apps/knowledgetree/files/postupgrade-en-3.0.0.txt
new file mode 100644
index 000000000000..19fd912e2944
--- /dev/null
+++ b/www-apps/knowledgetree/files/postupgrade-en-3.0.0.txt
@@ -0,0 +1,22 @@
+------------------------------------------------------------------------
+UPGRADE
+
+If you had customizations in your environment.php you will need to
+transfer these to the new config.ini which now holds all configuration
+values.
+
+NOW BACKUP YOUR OLD DATABASE!!!
+
+This is extremely important since the automatic upgrade process provided
+by knowledgetree managed to break my database.
+
+Finally go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/setup/upgrade.php
+and press the "upgrade" button.
+
+------------------------------------------------------------------------
+!!! PHP4 !!!
+
+This is still a php4 application. Do not try to run it under php5. It
+will fail!
+------------------------------------------------------------------------
+
diff --git a/www-apps/knowledgetree/knowledgetree-3.0.0.ebuild b/www-apps/knowledgetree/knowledgetree-3.0.0.ebuild
new file mode 100644
index 000000000000..5df0d636cd7d
--- /dev/null
+++ b/www-apps/knowledgetree/knowledgetree-3.0.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/knowledgetree/knowledgetree-3.0.0.ebuild,v 1.1 2006/03/04 09:27:50 wrobel Exp $
+
+inherit webapp
+
+MY_PN=${PN/tree/Tree}
+MY_PV=${PV/_/}
+MY_P=${MY_PN}-${MY_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/httpd-php
+ dev-db/mysql
+ app-text/catdoc
+ >=app-text/pstotext-0.94.1
+ "
+
+S=${WORKDIR}/${MY_PN}
+
+src_install() {
+ webapp_src_preinst
+
+ local docs="docs/CREDITS.txt
+ docs/INSTALL.txt
+ docs/README.txt
+ docs/TODO.txt
+ docs/UPGRADE.txt
+ docs/FAQ.txt
+ "
+
+ dodoc ${docs}
+
+ ## Main application
+ cp -r . ${D}${MY_HTDOCSDIR}
+
+ ## Docs installed, remove unnecessary files
+ for doc in ${docs}
+ do
+ rm ${D}${MY_HTDOCSDIR}/${doc}
+ done
+
+ for CFG in ${MY_HTDOCSDIR}/config/{config.ini,dmsDefaults.php,siteMap.inc,tableMappings.inc}
+ do
+ webapp_configfile ${CFG}
+ done
+
+ ## Documents will be saved here
+ webapp_serverowned ${MY_HTDOCSDIR}/var/log
+ webapp_serverowned ${MY_HTDOCSDIR}/var/tmp
+ webapp_serverowned ${MY_HTDOCSDIR}/var/Documents
+ webapp_serverowned "${MY_HTDOCSDIR}/var/Documents/Root Folder"
+ webapp_serverowned "${MY_HTDOCSDIR}/var/Documents/Root Folder/Default Unit"
+
+ webapp_sqlscript mysql sql/mysql/install/structure.sql
+ webapp_sqlscript mysql sql/mysql/install/data.sql
+ webapp_sqlscript postgres sql/pgsql/install/tables.sql
+ webapp_sqlscript postgres sql/pgsql/install/functions.sql
+
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en-3.0.0.txt
+ webapp_postupgrade_txt en ${FILESDIR}/postupgrade-en-3.0.0.txt
+
+ ## Fix for the root folder
+ webapp_hook_script ${FILESDIR}/config-hook-3.0.0.sh
+
+ webapp_src_install
+}