diff options
author | Gunnar Wrobel <wrobel@gentoo.org> | 2006-05-19 09:14:58 +0000 |
---|---|---|
committer | Gunnar Wrobel <wrobel@gentoo.org> | 2006-05-19 09:14:58 +0000 |
commit | 118ea29160061eccf59bb098ca9676198a2f0332 (patch) | |
tree | dd49b0153577215bc3b5a1bc11b60561aa7a7c62 /www-apps/knowledgetree | |
parent | Initial port. Ebuild contributed by Matthew Kennedy <mkennedy@gentoo.org>. (diff) | |
download | historical-118ea29160061eccf59bb098ca9676198a2f0332.tar.gz historical-118ea29160061eccf59bb098ca9676198a2f0332.tar.bz2 historical-118ea29160061eccf59bb098ca9676198a2f0332.zip |
Updated knowledgetree to version 3.0.2. Some new useflags added.
Package-Manager: portage-2.0.54-r2
Diffstat (limited to 'www-apps/knowledgetree')
-rw-r--r-- | www-apps/knowledgetree/ChangeLog | 9 | ||||
-rw-r--r-- | www-apps/knowledgetree/Manifest | 7 | ||||
-rw-r--r-- | www-apps/knowledgetree/files/config-hook-3.0.2.sh | 7 | ||||
-rw-r--r-- | www-apps/knowledgetree/files/digest-knowledgetree-3.0.2 | 1 | ||||
-rw-r--r-- | www-apps/knowledgetree/files/postinstall-en-3.0.2.txt | 46 | ||||
-rw-r--r-- | www-apps/knowledgetree/files/postupgrade-en-3.0.2.txt | 19 | ||||
-rw-r--r-- | www-apps/knowledgetree/knowledgetree-3.0.2.ebuild | 76 |
7 files changed, 163 insertions, 2 deletions
diff --git a/www-apps/knowledgetree/ChangeLog b/www-apps/knowledgetree/ChangeLog index 4bbc6a38d855..687b37f9264f 100644 --- a/www-apps/knowledgetree/ChangeLog +++ b/www-apps/knowledgetree/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for www-apps/knowledgetree # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/knowledgetree/ChangeLog,v 1.4 2006/03/24 06:47:50 wrobel Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/knowledgetree/ChangeLog,v 1.5 2006/05/19 09:14:58 wrobel Exp $ + +*knowledgetree-3.0.2 (19 May 2006) + + 19 May 2006; <wrobel@gentoo.org> +files/config-hook-3.0.2.sh, + +files/postinstall-en-3.0.2.txt, +files/postupgrade-en-3.0.2.txt, + +knowledgetree-3.0.2.ebuild: + Updated knowledgetree to version 3.0.2. Some new useflags added. *knowledgetree-3.0.1 (24 Mar 2006) diff --git a/www-apps/knowledgetree/Manifest b/www-apps/knowledgetree/Manifest index 84e2b2848174..a3ab7179cf4b 100644 --- a/www-apps/knowledgetree/Manifest +++ b/www-apps/knowledgetree/Manifest @@ -1,11 +1,16 @@ -MD5 2975518cf7a80272de090993c2df1ab8 ChangeLog 1209 +MD5 71958009d43dcb2ba1de46f926ae4785 ChangeLog 1476 MD5 22b449239fb78913844ae3b6e0dffc0e files/config-hook-2.0.0.sh 250 MD5 6666e69e804d1d4ea85830dd5802d02e files/config-hook-3.0.1.sh 226 +MD5 6666e69e804d1d4ea85830dd5802d02e files/config-hook-3.0.2.sh 226 MD5 74f02fdd8e803af4673121fe6df90ae4 files/digest-knowledgetree-2.0.7 68 MD5 463f90c7043a38ac2bba89fa96ad057c files/digest-knowledgetree-3.0.1 69 +MD5 e36a1df48d034e660a423e5d8da83e93 files/digest-knowledgetree-3.0.2 69 MD5 cdffaf0b390060eab7ac6e2146e91123 files/postinstall-en-2.0.7.txt 1848 MD5 c13cb36f79f0a40c499cd2b3f402e988 files/postinstall-en-3.0.1.txt 1681 +MD5 c13cb36f79f0a40c499cd2b3f402e988 files/postinstall-en-3.0.2.txt 1681 MD5 74c339e2cae7428170cffffc458ebc1f files/postupgrade-en-3.0.1.txt 681 +MD5 74c339e2cae7428170cffffc458ebc1f files/postupgrade-en-3.0.2.txt 681 MD5 6bd6ef4ff11bf403c2b526fbda762a76 knowledgetree-2.0.7.ebuild 2089 MD5 d24e8897790113c2427588f553b25b6a knowledgetree-3.0.1.ebuild 1992 +MD5 368850ffd98386eda880684fc5c7d93b knowledgetree-3.0.2.ebuild 2131 MD5 f61bfa064e3acdfcd826e4a38b121196 metadata.xml 161 diff --git a/www-apps/knowledgetree/files/config-hook-3.0.2.sh b/www-apps/knowledgetree/files/config-hook-3.0.2.sh new file mode 100644 index 000000000000..c6fe2e9e6968 --- /dev/null +++ b/www-apps/knowledgetree/files/config-hook-3.0.2.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.2 b/www-apps/knowledgetree/files/digest-knowledgetree-3.0.2 new file mode 100644 index 000000000000..09f2fa7e8883 --- /dev/null +++ b/www-apps/knowledgetree/files/digest-knowledgetree-3.0.2 @@ -0,0 +1 @@ +MD5 277cd3b62c705194c3e956b1d0f0c86c knowledgeTree-3.0.2.tgz 1878918 diff --git a/www-apps/knowledgetree/files/postinstall-en-3.0.2.txt b/www-apps/knowledgetree/files/postinstall-en-3.0.2.txt new file mode 100644 index 000000000000..507e697921d7 --- /dev/null +++ b/www-apps/knowledgetree/files/postinstall-en-3.0.2.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.2.txt b/www-apps/knowledgetree/files/postupgrade-en-3.0.2.txt new file mode 100644 index 000000000000..47a2ba0ea71a --- /dev/null +++ b/www-apps/knowledgetree/files/postupgrade-en-3.0.2.txt @@ -0,0 +1,19 @@ +------------------------------------------------------------------------ +UPGRADE + +If you are upgrading from knowledgetree-2.* and had customizations in +your environment.php you will need to transfer these to the new +config.ini which now holds all configuration values. + +YOU ARE ADVISED TO BACKUP YOUR OLD DATABASE BEFORE UPGRADING!!! + +Now 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.2.ebuild b/www-apps/knowledgetree/knowledgetree-3.0.2.ebuild new file mode 100644 index 000000000000..ebd908bf669d --- /dev/null +++ b/www-apps/knowledgetree/knowledgetree-3.0.2.ebuild @@ -0,0 +1,76 @@ +# 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.2.ebuild,v 1.1 2006/05/19 09:14:58 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="office opendoc pdf ps" + +DEPEND="virtual/httpd-php + dev-db/mysql + office? (>=app-text/catdoc-0.94.1) + ps? (app-text/pstotext) + pdf? (app-text/poppler) + opendoc? (app-arch/unzip) + " + +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/cache + 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-${PV}.txt + webapp_postupgrade_txt en ${FILESDIR}/postupgrade-en-${PV}.txt + + ## Fix for the root folder + webapp_hook_script ${FILESDIR}/config-hook-${PV}.sh + + webapp_src_install +} |