summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2005-06-29 15:34:13 +0000
committerRenat Lumpau <rl03@gentoo.org>2005-06-29 15:34:13 +0000
commitc9777bad77d151234540d9e71628152363f32290 (patch)
treed12c91729b69e25ca9e0fde1b01c25d128074beb /www-apps
parentrecommit (diff)
downloadgentoo-2-c9777bad77d151234540d9e71628152363f32290.tar.gz
gentoo-2-c9777bad77d151234540d9e71628152363f32290.tar.bz2
gentoo-2-c9777bad77d151234540d9e71628152363f32290.zip
Version bump. Removing old and very broken versions, including stable on ppc. Whoever committed the original ebuild is A BAD MAN.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/twiki/ChangeLog14
-rw-r--r--www-apps/twiki/Manifest17
-rw-r--r--www-apps/twiki/files/digest-twiki-200302011
-rw-r--r--www-apps/twiki/files/digest-twiki-200409011
-rw-r--r--www-apps/twiki/files/digest-twiki-200409021
-rw-r--r--www-apps/twiki/files/digest-twiki-20040902-r11
-rw-r--r--www-apps/twiki/files/digest-twiki-200410301
-rw-r--r--www-apps/twiki/files/execwithsearch.patch15
-rw-r--r--www-apps/twiki/files/postinstall-en.txt20
-rw-r--r--www-apps/twiki/files/reconfig15
-rw-r--r--www-apps/twiki/files/twiki.conf52
-rw-r--r--www-apps/twiki/twiki-20030201.ebuild68
-rw-r--r--www-apps/twiki/twiki-20040901.ebuild70
-rw-r--r--www-apps/twiki/twiki-20040902-r1.ebuild67
-rw-r--r--www-apps/twiki/twiki-20040902.ebuild70
-rw-r--r--www-apps/twiki/twiki-20041030.ebuild59
16 files changed, 156 insertions, 316 deletions
diff --git a/www-apps/twiki/ChangeLog b/www-apps/twiki/ChangeLog
index 3c438794c69e..7aee0b62013d 100644
--- a/www-apps/twiki/ChangeLog
+++ b/www-apps/twiki/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for www-apps/twiki
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/ChangeLog,v 1.12 2005/06/22 02:04:08 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/ChangeLog,v 1.13 2005/06/29 15:34:13 rl03 Exp $
+
+*twiki-20041030 (29 Jun 2005)
+
+ 29 Jun 2005; Renat Lumpau <rl03@gentoo.org> +files/execwithsearch.patch,
+ +files/postinstall-en.txt, +files/reconfig, files/twiki.conf,
+ -twiki-20030201.ebuild, -twiki-20040901.ebuild, -twiki-20040902.ebuild,
+ -twiki-20040902-r1.ebuild, +twiki-20041030.ebuild:
+ Added recent version of twiki with correct dependencies, using
+ webapp.eclass. Fixes #52157, #53057, #60460, #77308, #84589, #93208.
+ Removing old versions of ebuilds, including stable on ppc (which should not
+ have been stabled in the first place). Whoever committed the original ebuild
+ is A BAD MAN.
22 Jun 2005; Jason Wever <weeve@gentoo.org> twiki-20040902-r1.ebuild:
Added ~sparc keyword.
diff --git a/www-apps/twiki/Manifest b/www-apps/twiki/Manifest
index 96e046645ddf..c73defc0d865 100644
--- a/www-apps/twiki/Manifest
+++ b/www-apps/twiki/Manifest
@@ -1,11 +1,8 @@
-MD5 82fab81b3bd6a7d0e5bb47240179dd93 twiki-20040901.ebuild 1750
-MD5 cfe1e57612885c294f2a677dce39238c twiki-20040902.ebuild 1749
-MD5 0b0e2a7c21a620898187a27a4f73a1dd ChangeLog 2548
+MD5 fb20eb9847cc7859f488c7eb0aa6da8f twiki-20041030.ebuild 1312
+MD5 b0f745a59539b44fc50e95d19b73284d ChangeLog 3155
MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280
-MD5 a3b9ed6f1eb7a992d52d92822bd225a6 twiki-20030201.ebuild 1733
-MD5 04f94d0af6fd19687b32938b23b9e4aa twiki-20040902-r1.ebuild 1670
-MD5 03289224ed6b4fd47078e353bc05c650 files/digest-twiki-20030201 65
-MD5 6c6c056f184e8d333ae577837290e282 files/twiki.conf 538
-MD5 171d54d5e23801d47b006999d95f0c75 files/digest-twiki-20040901 66
-MD5 482053b76eef263c5377921e1dedcf08 files/digest-twiki-20040902 66
-MD5 482053b76eef263c5377921e1dedcf08 files/digest-twiki-20040902-r1 66
+MD5 d6ef3da92ece6d68c83fa4be8f6f97be files/twiki.conf 508
+MD5 fab10473182738fadb4188bf90af8162 files/execwithsearch.patch 653
+MD5 627fc47a95051f23c40f7bdd99c872e7 files/postinstall-en.txt 706
+MD5 67624b3735f6d1c92bce9dacf2cb36b8 files/digest-twiki-20041030 67
+MD5 9292c651cfb9e87173cb745c863461dd files/reconfig 487
diff --git a/www-apps/twiki/files/digest-twiki-20030201 b/www-apps/twiki/files/digest-twiki-20030201
deleted file mode 100644
index 40830cd4aea3..000000000000
--- a/www-apps/twiki/files/digest-twiki-20030201
+++ /dev/null
@@ -1 +0,0 @@
-MD5 cbbd937b51b56c5343b5e72f1be6a0cf TWiki20030201.tar.gz 892554
diff --git a/www-apps/twiki/files/digest-twiki-20040901 b/www-apps/twiki/files/digest-twiki-20040901
deleted file mode 100644
index 40caf1c3be88..000000000000
--- a/www-apps/twiki/files/digest-twiki-20040901
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2b94f0f54e769ac1f57b304a242ea4bb TWiki20040901.tar.gz 1832926
diff --git a/www-apps/twiki/files/digest-twiki-20040902 b/www-apps/twiki/files/digest-twiki-20040902
deleted file mode 100644
index 3745c525d900..000000000000
--- a/www-apps/twiki/files/digest-twiki-20040902
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d04b2041d83dc6c97905faa1c6b9116d TWiki20040902.tar.gz 1833008
diff --git a/www-apps/twiki/files/digest-twiki-20040902-r1 b/www-apps/twiki/files/digest-twiki-20040902-r1
deleted file mode 100644
index 3745c525d900..000000000000
--- a/www-apps/twiki/files/digest-twiki-20040902-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 d04b2041d83dc6c97905faa1c6b9116d TWiki20040902.tar.gz 1833008
diff --git a/www-apps/twiki/files/digest-twiki-20041030 b/www-apps/twiki/files/digest-twiki-20041030
new file mode 100644
index 000000000000..2c2dfac017e4
--- /dev/null
+++ b/www-apps/twiki/files/digest-twiki-20041030
@@ -0,0 +1 @@
+MD5 b4acc3ba9e09524d344db4bc76d2faaa TWiki20041030beta.zip 2606614
diff --git a/www-apps/twiki/files/execwithsearch.patch b/www-apps/twiki/files/execwithsearch.patch
new file mode 100644
index 000000000000..7652f53a9ce5
--- /dev/null
+++ b/www-apps/twiki/files/execwithsearch.patch
@@ -0,0 +1,15 @@
+--- Search.pm 2004-10-21 14:41:14.000000000 -0400
++++ Search.pm.fixed 2005-06-28 17:53:53.000000000 -0400
+@@ -442,6 +442,12 @@
+ my $tempVal = "";
+ my $tmpl = "";
+ my $topicCount = 0; # JohnTalintyre
++ # fix for Codev.SecurityAlertExecuteCommandsWithSearch
++ # vulnerability, search: "test_vulnerability '; ls -la'"
++ $theSearchVal =~ s/(^|[^\\])([\'\`])/\\$2/g; # Escape ' and `
++ $theSearchVal =~ s/[\@\$]\(/$1\\\(/g; # Defuse @( ... ) and $( ... )
++ $theSearchVal = substr($theSearchVal, 0, 1500); # Limit string length
++
+ my $originalSearch = $theSearchVal;
+ my $renameTopic;
+ my $renameWeb = "";
diff --git a/www-apps/twiki/files/postinstall-en.txt b/www-apps/twiki/files/postinstall-en.txt
new file mode 100644
index 000000000000..15a4fa50eaf9
--- /dev/null
+++ b/www-apps/twiki/files/postinstall-en.txt
@@ -0,0 +1,20 @@
+
+You are almost done!
+
+1. Apache configs have been installed for you. You will need to restart
+ Apache for them to take effect.
+
+2. You may want to edit TWiki's config to suit your needs:
+ ${MY_INSTALLDIR}/lib/TWiki.cfg
+
+3. Run the testenv script from your browser:
+ http://${VHOST_HOSTNAME}/twiki/bin/testenv.
+ It will show you the user name of the CGI scripts, a table listing all CGI
+ environment variables, and a test of your configuration file.
+
+4. Read the install guide
+ http://twiki.org/cgi-bin/view/TWiki/TWikiInstallationGuide
+ particularly if you wish to set up email preferences or I18N.
+
+5. Visit http://${VHOST_HOSTNAME}/twiki, or
+ http://${VHOST_HOSTNAME}/twiki/bin/view
diff --git a/www-apps/twiki/files/reconfig b/www-apps/twiki/files/reconfig
new file mode 100644
index 000000000000..f8933d7b77fa
--- /dev/null
+++ b/www-apps/twiki/files/reconfig
@@ -0,0 +1,15 @@
+#!/bin/bash
+if [ $1 = "install" ]; then
+ [[ -a /etc/apache/vhosts.d/twiki.conf ]] && sed -e "s|HOST|${VHOST_HOSTNAME}|
+ s|DOCROOT|${VHOST_HTDOCSDIR}|
+ s|ROOTDIR|${MY_INSTALLDIR}|g" -i /etc/apache/vhosts.d/twiki.conf
+
+ # fix lib locations
+ sed -e "s|../lib|${MY_INSTALLDIR}/lib|" -i ${MY_INSTALLDIR}/bin/setlib.cfg
+
+ # fix TWiki.cfg
+ sed -e "s|http://your.domain.com|http://${VHOST_HOSTNAME}|
+ s|/home/httpd/twiki|${MY_INSTALLDIR}|g" -i ${MY_INSTALLDIR}/lib/TWiki.cfg
+else
+ echo $1
+fi
diff --git a/www-apps/twiki/files/twiki.conf b/www-apps/twiki/files/twiki.conf
index c93d241d6b36..2e7bbae677bb 100644
--- a/www-apps/twiki/files/twiki.conf
+++ b/www-apps/twiki/files/twiki.conf
@@ -1,26 +1,26 @@
-ScriptAlias /twiki/bin/ "/var/www/twiki/bin/"
-Alias /twiki/ "/var/www/twiki/"
-
-<Directory "/var/www/twiki">
- Options None
- AllowOverride None
- Order allow,deny
- Allow from all
-</Directory>
-<Directory "/var/www/twiki/bin">
- Options +ExecCGI
- SetHandler cgi-script
- Allow from all
-</Directory>
-
-<Directory "/var/www/twiki/pub">
- Options FollowSymLinks +Includes
- AllowOverride None
- Allow from all
-</Directory>
-<Directory "/var/www/twiki/data">
- deny from all
-</Directory>
-<Directory "/var/www/twiki/templates">
- deny from all
-</Directory>
+<VirtualHost HOST:80>
+ DocumentRoot "DOCROOT"
+
+ <Directory "ROOTDIR">
+ Options None
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+ <Directory "ROOTDIR/bin">
+ Options +ExecCGI
+ SetHandler cgi-script
+ Allow from all
+ </Directory>
+ <Directory "ROOTDIR/pub">
+ Options FollowSymLinks +Includes
+ AllowOverride None
+ Allow from all
+ </Directory>
+ <Directory "ROOTDIR/data">
+ deny from all
+ </Directory>
+ <Directory "ROOTDIR/templates">
+ deny from all
+ </Directory>
+</VirtualHost>
diff --git a/www-apps/twiki/twiki-20030201.ebuild b/www-apps/twiki/twiki-20030201.ebuild
deleted file mode 100644
index 73996509a298..000000000000
--- a/www-apps/twiki/twiki-20030201.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-20030201.ebuild,v 1.5 2005/05/07 15:44:10 beu Exp $
-
-inherit webapp-apache
-
-DESCRIPTION="A Web Based Collaboration Platform"
-HOMEPAGE="http://twiki.org/"
-SRC_URI="http://twiki.org/swd/TWiki${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ppc"
-
-S=${WORKDIR}
-
-RDEPEND="virtual/php
- media-gfx/graphviz
- dev-db/mysql"
-
-IUSE="apache2"
-
-pkg_setup() {
- webapp-detect || NO_WEBSERVER=1
- webapp-pkg_setup "${NO_WEBSERVER}"
- einfo "Installing for ${WEBAPP_SERVER}"
-}
-
-src_unpack() {
- unpack ${A}
-
- sed -i -e 's:\/home\/httpd:\/var\/www:g' lib/TWiki.cfg
-# sed -i -e 's:urlpath\/to:var\/www\/localhost\/htdocs:g' \
-# bin/.htaccess.txt
-# echo "Options ExecCGI" >> bin/.htaccess.txt
-}
-
-
-src_install() {
- local destdir=/var/www/twiki
-
- dodir ${destdir}
- cp -r . ${D}${destdir}
-
- if use apache2; then
- dodir /etc/apache2/conf/modules.d
- insinto /etc/apache2/conf/modules.d
- newins ${FILESDIR}/twiki.conf 97_twiki.conf
- else
- dodir /etc/apache/conf/addon-modules
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/twiki.conf
- fi
-
- dodoc readme.txt license.txt
- chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${D}${destdir}
- chmod 0775 -R ${D}${destdir}/pub ${D}${destdir}/data
- chown nobody -R ${D}${destdir}/pub ${D}${destdir}/data
- #find ${D}/${HTTPD_ROOT}/${PN}/templates -type d -exec chmod 0440 {} \;
-# chmod 0444 -R ${PN}/templates
-}
-
-pkg_postinst() {
- einfo "now go to your ${HTTPD_ROOT}/${PN},"
- einfo "copy bin/.htaccess.txt to bin/.htaccess"
- einfo "and be sure to read"
- einfo "http://localhost/twiki/bin/view/TWiki/TWikiDocumentation#TWiki_Installation_Guide"
-}
diff --git a/www-apps/twiki/twiki-20040901.ebuild b/www-apps/twiki/twiki-20040901.ebuild
deleted file mode 100644
index b82315e33dbb..000000000000
--- a/www-apps/twiki/twiki-20040901.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-20040901.ebuild,v 1.4 2005/05/07 15:44:10 beu Exp $
-
-inherit webapp-apache
-
-DESCRIPTION="A Web Based Collaboration Platform"
-HOMEPAGE="http://twiki.org/"
-SRC_URI="http://twiki.org/swd/TWiki${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc"
-
-S=${WORKDIR}/${PN}
-
-RDEPEND="virtual/php
- media-gfx/graphviz
- dev-db/mysql"
-
-IUSE="apache2"
-
-pkg_setup() {
- webapp-detect || NO_WEBSERVER=1
- webapp-pkg_setup "${NO_WEBSERVER}"
- einfo "Installing for ${WEBAPP_SERVER}"
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
-
- sed -i -e 's:\/home\/httpd:\/var\/www:g' lib/TWiki.cfg
-# sed -i -e 's:urlpath\/to:var\/www\/localhost\/htdocs:g' \
-# bin/.htaccess.txt
-# echo "Options ExecCGI" >> bin/.htaccess.txt
-}
-
-
-src_install() {
- local destdir=/var/www/twiki
-
- dodir ${destdir}
- cp -r . ${D}${destdir}
-
- if use apache2; then
- dodir /etc/apache2/conf/modules.d
- insinto /etc/apache2/conf/modules.d
- newins ${FILESDIR}/twiki.conf 97_twiki.conf
- else
- dodir /etc/apache/conf/addon-modules
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/twiki.conf
- fi
-
- dodoc readme.txt license.txt
- chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${D}${destdir}
- chmod 0775 -R ${D}${destdir}/pub ${D}${destdir}/data
- chown nobody -R ${D}${destdir}/pub ${D}${destdir}/data
- #find ${D}/${HTTPD_ROOT}/${PN}/templates -type d -exec chmod 0440 {} \;
-# chmod 0444 -R ${PN}/templates
-}
-
-pkg_postinst() {
- einfo "now go to your ${HTTPD_ROOT}/${PN},"
- einfo "copy bin/.htaccess.txt to bin/.htaccess"
- einfo "and be sure to read"
- einfo "http://localhost/twiki/bin/view/TWiki/TWikiDocumentation#TWiki_Installation_Guide"
-}
diff --git a/www-apps/twiki/twiki-20040902-r1.ebuild b/www-apps/twiki/twiki-20040902-r1.ebuild
deleted file mode 100644
index 8efff0a6eb17..000000000000
--- a/www-apps/twiki/twiki-20040902-r1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-20040902-r1.ebuild,v 1.5 2005/06/22 02:04:08 weeve Exp $
-
-inherit depend.apache webapp-apache
-
-DESCRIPTION="A Web Based Collaboration Platform"
-HOMEPAGE="http://twiki.org/"
-SRC_URI="http://twiki.org/swd/TWiki${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-
-S=${WORKDIR}/${PN}
-
-RDEPEND="virtual/php
- media-gfx/graphviz
- dev-db/mysql"
-
-IUSE="apache2"
-
-pkg_setup() {
- webapp-detect || NO_WEBSERVER=1
- webapp-pkg_setup "${NO_WEBSERVER}"
- einfo "Installing for ${WEBAPP_SERVER}"
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
-
- sed -i -e 's:\/home\/httpd:\/var\/www:g' lib/TWiki.cfg
-# sed -i -e 's:urlpath\/to:var\/www\/localhost\/htdocs:g' \
-# bin/.htaccess.txt
-# echo "Options ExecCGI" >> bin/.htaccess.txt
-}
-
-
-src_install() {
- local destdir=/var/www/twiki
-
- dodir ${destdir}
- cp -r . ${D}${destdir}
-
- if use apache2; then
- insinto ${APACHE2_MODULES_CONFDIR}
- else
- insinto ${APACHE1_MODULES_CONFDIR}
- fi
- doins ${FILESDIR}/twiki.conf 97_twiki.conf
-
- dodoc readme.txt license.txt
- chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${D}${destdir}
- chmod 0775 -R ${D}${destdir}/pub ${D}${destdir}/data
- chown nobody -R ${D}${destdir}/pub ${D}${destdir}/data
- #find ${D}/${HTTPD_ROOT}/${PN}/templates -type d -exec chmod 0440 {} \;
-# chmod 0444 -R ${PN}/templates
-}
-
-pkg_postinst() {
- einfo "now go to your ${HTTPD_ROOT}/${PN},"
- einfo "copy bin/.htaccess.txt to bin/.htaccess"
- einfo "and be sure to read"
- einfo "http://localhost/twiki/bin/view/TWiki/TWikiDocumentation#TWiki_Installation_Guide"
-}
diff --git a/www-apps/twiki/twiki-20040902.ebuild b/www-apps/twiki/twiki-20040902.ebuild
deleted file mode 100644
index e954c9f5a0ce..000000000000
--- a/www-apps/twiki/twiki-20040902.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-20040902.ebuild,v 1.5 2005/05/07 15:44:10 beu Exp $
-
-inherit webapp-apache
-
-DESCRIPTION="A Web Based Collaboration Platform"
-HOMEPAGE="http://twiki.org/"
-SRC_URI="http://twiki.org/swd/TWiki${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ppc"
-
-S=${WORKDIR}/${PN}
-
-RDEPEND="virtual/php
- media-gfx/graphviz
- dev-db/mysql"
-
-IUSE="apache2"
-
-pkg_setup() {
- webapp-detect || NO_WEBSERVER=1
- webapp-pkg_setup "${NO_WEBSERVER}"
- einfo "Installing for ${WEBAPP_SERVER}"
-}
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
-
- sed -i -e 's:\/home\/httpd:\/var\/www:g' lib/TWiki.cfg
-# sed -i -e 's:urlpath\/to:var\/www\/localhost\/htdocs:g' \
-# bin/.htaccess.txt
-# echo "Options ExecCGI" >> bin/.htaccess.txt
-}
-
-
-src_install() {
- local destdir=/var/www/twiki
-
- dodir ${destdir}
- cp -r . ${D}${destdir}
-
- if use apache2; then
- dodir /etc/apache2/conf/modules.d
- insinto /etc/apache2/conf/modules.d
- newins ${FILESDIR}/twiki.conf 97_twiki.conf
- else
- dodir /etc/apache/conf/addon-modules
- insinto /etc/apache/conf/addon-modules
- doins ${FILESDIR}/twiki.conf
- fi
-
- dodoc readme.txt license.txt
- chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${D}${destdir}
- chmod 0775 -R ${D}${destdir}/pub ${D}${destdir}/data
- chown nobody -R ${D}${destdir}/pub ${D}${destdir}/data
- #find ${D}/${HTTPD_ROOT}/${PN}/templates -type d -exec chmod 0440 {} \;
-# chmod 0444 -R ${PN}/templates
-}
-
-pkg_postinst() {
- einfo "now go to your ${HTTPD_ROOT}/${PN},"
- einfo "copy bin/.htaccess.txt to bin/.htaccess"
- einfo "and be sure to read"
- einfo "http://localhost/twiki/bin/view/TWiki/TWikiDocumentation#TWiki_Installation_Guide"
-}
diff --git a/www-apps/twiki/twiki-20041030.ebuild b/www-apps/twiki/twiki-20041030.ebuild
new file mode 100644
index 000000000000..2a459e51a976
--- /dev/null
+++ b/www-apps/twiki/twiki-20041030.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-20041030.ebuild,v 1.1 2005/06/29 15:34:13 rl03 Exp $
+
+inherit webapp eutils
+
+DESCRIPTION="A Web Based Collaboration Platform"
+HOMEPAGE="http://twiki.org/"
+SRC_URI="http://ftp.ale.org/pub/mirrors/openpkg/sources/DST/${PN}//TWiki${PV}beta.zip"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+S=${WORKDIR}
+
+RDEPEND=">=dev-lang/perl-5.6.2
+ perl-core/CGI
+ dev-perl/libnet
+ >=app-text/rcs-5.7
+ sys-apps/diffutils
+ virtual/cron
+ =net-www/apache-1*"
+# apache2 is not supported, see twiki documentation
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/lib/TWiki
+ epatch ${FILESDIR}/execwithsearch.patch
+ # change web user to apache
+ find . -name '*,v' -exec sed -i 's|nobody:|apache:|g' '{}' ';'
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ webapp_src_preinst
+
+ cp -r . ${D}/${MY_HTDOCSDIR}
+
+ dodoc readme.txt license.txt
+
+ dodir /etc/apache/vhosts.d
+ insinto /etc/apache/vhosts.d
+ doins ${FILESDIR}/twiki.conf
+
+ chmod 0755 ${D}/${MY_HTDOCSDIR}/bin/*
+ for file in `find data pub`; do
+ webapp_serverowned "${MY_HTDOCSDIR}/${file}"
+ done
+
+ webapp_hook_script ${FILESDIR}/reconfig
+ webapp_configfile ${MY_HTDOCSDIR}/bin/setlib.cfg
+ webapp_configfile ${MY_HTDOCSDIR}/lib/TWiki.cfg
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+
+ webapp_src_install
+}