summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-15 15:56:24 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-15 15:56:24 +0000
commitedc782290494734bac679ba36b904df13894f70c (patch)
tree8d814d1ebadde093501a1f5b64b0a592355912ae /www-apps/wordpress
parentMoved from net-www/viewcvs to www-apps/viewcvs (diff)
downloadgentoo-2-edc782290494734bac679ba36b904df13894f70c.tar.gz
gentoo-2-edc782290494734bac679ba36b904df13894f70c.tar.bz2
gentoo-2-edc782290494734bac679ba36b904df13894f70c.zip
Moved from net-www/wordpress to www-apps/wordpress.
Diffstat (limited to 'www-apps/wordpress')
-rw-r--r--www-apps/wordpress/ChangeLog46
-rw-r--r--www-apps/wordpress/Manifest11
-rw-r--r--www-apps/wordpress/files/1.2/login-patch.diff69
-rw-r--r--www-apps/wordpress/files/1.2/postinstall-en.txt17
-rw-r--r--www-apps/wordpress/files/digest-wordpress-1.0.21
-rw-r--r--www-apps/wordpress/files/digest-wordpress-1.21
-rw-r--r--www-apps/wordpress/files/digest-wordpress-1.2-r11
-rw-r--r--www-apps/wordpress/files/wordpress-1.0.2.gentoo.diff213
-rw-r--r--www-apps/wordpress/metadata.xml8
-rw-r--r--www-apps/wordpress/wordpress-1.0.2.ebuild76
-rw-r--r--www-apps/wordpress/wordpress-1.2-r1.ebuild71
-rw-r--r--www-apps/wordpress/wordpress-1.2.ebuild71
12 files changed, 585 insertions, 0 deletions
diff --git a/www-apps/wordpress/ChangeLog b/www-apps/wordpress/ChangeLog
new file mode 100644
index 000000000000..8bd9b1a42981
--- /dev/null
+++ b/www-apps/wordpress/ChangeLog
@@ -0,0 +1,46 @@
+# ChangeLog for net-www/wordpress
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/wordpress/ChangeLog,v 1.1 2004/08/15 15:56:24 stuart Exp $
+
+*wordpress-1.2 (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/wordpress-1.0.2.gentoo.diff, +files/1.2/login-patch.diff,
+ +files/1.2/postinstall-en.txt, +wordpress-1.0.2.ebuild,
+ +wordpress-1.2-r1.ebuild, +wordpress-1.2.ebuild:
+ Moved from net-www/wordpress to www-apps/wordpress.
+
+*wordpress-1.2-r1 (08 Aug 2004)
+
+ 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> files/1.2/login-patch.diff,
+ +wordpress-1.2-r1.ebuild:
+ Improved login patch; thanks to Kai Groner <kai@ubergeeks.com>
+
+ 20 Jul 2004; Stuart Herbert <stuart@gentoo.org> files/1.2/login-patch.diff:
+ New login patch; this one works for me on Konquerer and Mozilla
+
+ 20 Jul 2004; Stuart Herbert <stuart@gentoo.org> files/1.2/login-patch.diff,
+ wordpress-1.2.ebuild:
+ New version of the login patch, which now works w/ both Konquerer & Mozilla
+
+*wordpress-1.2 (11 Jul 2004)
+
+ 11 Jul 2004; Stuart Herbert <stuart@gentoo.org> +files/1.2/login-patch.diff,
+ +files/1.2/postinstall-en.txt, +wordpress-1.2.ebuild:
+ Version bump; see bug #53563; thanks to Peter Westwood
+ <peter.westwood@ftwr.co.uk>
+
+ 07 May 2004; Stuart Herbert <stuart@gentoo.org> wordpress-1.0.2.ebuild:
+ Removed SLOT= from ebuild - that's handled by the webapp eclass. Fixes bug
+ #50160
+
+ 01 May 2004; Aron Griffis <agriffis@gentoo.org> wordpress-1.0.2.ebuild:
+ Add inherit eutils
+
+*wordpress-1.0.2 (01 May 2004)
+
+ 01 May 2004; Stuart Herbert <stuart@gentoo.org> metadata.xml,
+ wordpress-1.0.2.ebuild, files/wordpress-1.0.2.gentoo.diff:
+ Initial import; thanks to Peter Westwood <peter.westwood@ftwr.co.uk>; see bug
+ #43025
+
diff --git a/www-apps/wordpress/Manifest b/www-apps/wordpress/Manifest
new file mode 100644
index 000000000000..361b06b75c08
--- /dev/null
+++ b/www-apps/wordpress/Manifest
@@ -0,0 +1,11 @@
+MD5 466144f1c1091f2f9be0189696ca3133 ChangeLog 1495
+MD5 9d471cc484027d6985487e1f0064643f wordpress-1.0.2.ebuild 1959
+MD5 3d182d43f7f0341a9a42f96694f04e72 metadata.xml 224
+MD5 854b49269847305ac5b9d202007ee6e2 wordpress-1.2.ebuild 1930
+MD5 b76db346dcc1b670f7a8b07425673c62 wordpress-1.2-r1.ebuild 1933
+MD5 3310de51163cfb2a4b23c784003c123d files/digest-wordpress-1.0.2 74
+MD5 8798d44320b59c755a81271d58bd3827 files/wordpress-1.0.2.gentoo.diff 7670
+MD5 60c89171f6db7c359da81d9bd4a78853 files/digest-wordpress-1.2 72
+MD5 60c89171f6db7c359da81d9bd4a78853 files/digest-wordpress-1.2-r1 72
+MD5 c2b531747ebb18f8bc7eed6261710c66 files/1.2/postinstall-en.txt 490
+MD5 bf77b16b46337e5eb66a5fb42c3b263d files/1.2/login-patch.diff 2062
diff --git a/www-apps/wordpress/files/1.2/login-patch.diff b/www-apps/wordpress/files/1.2/login-patch.diff
new file mode 100644
index 000000000000..2ed450fc1705
--- /dev/null
+++ b/www-apps/wordpress/files/1.2/login-patch.diff
@@ -0,0 +1,69 @@
+diff -u --recursive wordpress/wp-admin/auth.php diary/wp-admin/auth.php
+--- wordpress/wp-admin/auth.php 2004-05-19 08:05:40.000000000 +0100
++++ diary/wp-admin/auth.php 2004-07-20 21:32:39.048004629 +0100
+@@ -15,9 +15,13 @@
+ }
+
+ if ('' == $user_login)
++ {
+ return false;
++ }
+ if (!$user_pass_md5)
++ {
+ return false;
++ }
+
+ $login = $wpdb->get_row("SELECT user_login, user_pass FROM $tableusers WHERE user_login = '$user_login'");
+
+@@ -25,7 +29,7 @@
+ return false;
+
+ } else {
+- if ($login->user_login == $user_login && md5($login->user_pass) == $user_pass_md5) {
++ if ($login->user_login == $user_login && $login->user_pass == $user_pass_md5) {
+ return true;
+ } else {
+ return false;
+@@ -46,4 +50,4 @@
+ exit();
+ }
+
+-?>
+\ No newline at end of file
++?>
+Only in /srv/stu.gnqs.org/www/htdocs/diary/: wp-config.php
+diff -u --recursive wordpress/wp-login.php diary/wp-login.php
+--- wordpress/wp-login.php 2004-05-18 02:29:29.000000000 +0100
++++ diary/wp-login.php 2004-07-20 22:10:53.836444653 +0100
+@@ -74,8 +74,8 @@
+ global $wpdb, $log, $pwd, $error, $user_ID;
+ global $tableusers, $pass_is_md5;
+ $user_login = &$log;
+- $pwd = md5($pwd);
+- $password = &$pwd;
++ $password = md5($pwd);
++
+ if (!$user_login) {
+ $error = __('<strong>Error</strong>: the login field is empty.');
+ return false;
+@@ -95,8 +95,9 @@
+ $pwd = '';
+ return false;
+ } else {
+- $user_ID = $login->ID;
+- if (($pass_is_md5 == 0 && $login->user_login == $user_login && $login->user_pass == $password) || ($pass_is_md5 == 1 && $login->user_login == $user_login && $login->user_pass == md5($password))) {
++ $user_ID = $login->ID;
++
++ if ($login->user_login == $user_login && $login->user_pass == $password) {
+ return true;
+ } else {
+ $error = __('<strong>Error</strong>: wrong login or password.');
+@@ -242,7 +243,7 @@
+
+ $userdata = get_userdatabylogin($user_login);
+
+- if ($user_pass_md5 != md5($userdata->user_pass)) {
++ if (!$userdata || $user_pass_md5 != $userdata->user_pass) {
+ return false;
+ } else {
+ return true;
diff --git a/www-apps/wordpress/files/1.2/postinstall-en.txt b/www-apps/wordpress/files/1.2/postinstall-en.txt
new file mode 100644
index 000000000000..3ce17f858fcc
--- /dev/null
+++ b/www-apps/wordpress/files/1.2/postinstall-en.txt
@@ -0,0 +1,17 @@
+Install instructions
+
+1) Open up wp-config-sample.php and fill in your database connection details
+2) Save the file as wp-config.php
+
+3) Launch /wp-admin/install.php in your browser.
+4) Note the password given to you.
+
+The install script should then send you to the login page.
+
+Sign in with the username admin and the password generated during the installation.
+
+You can then click on 'Profile' to change the password.
+
+Upgrade instructions
+
+1) Point your browser to /wp-admin/upgrade.php
diff --git a/www-apps/wordpress/files/digest-wordpress-1.0.2 b/www-apps/wordpress/files/digest-wordpress-1.0.2
new file mode 100644
index 000000000000..3c7092e89fbb
--- /dev/null
+++ b/www-apps/wordpress/files/digest-wordpress-1.0.2
@@ -0,0 +1 @@
+MD5 62ffd1a241ba9a1652b9681c53e979de wordpress-1.0.2-blakey.tar.gz 223901
diff --git a/www-apps/wordpress/files/digest-wordpress-1.2 b/www-apps/wordpress/files/digest-wordpress-1.2
new file mode 100644
index 000000000000..8f1647645808
--- /dev/null
+++ b/www-apps/wordpress/files/digest-wordpress-1.2
@@ -0,0 +1 @@
+MD5 1ba3cde7b7245d4cadc4a31d067dfa46 wordpress-1.2-mingus.tar.gz 247985
diff --git a/www-apps/wordpress/files/digest-wordpress-1.2-r1 b/www-apps/wordpress/files/digest-wordpress-1.2-r1
new file mode 100644
index 000000000000..8f1647645808
--- /dev/null
+++ b/www-apps/wordpress/files/digest-wordpress-1.2-r1
@@ -0,0 +1 @@
+MD5 1ba3cde7b7245d4cadc4a31d067dfa46 wordpress-1.2-mingus.tar.gz 247985
diff --git a/www-apps/wordpress/files/wordpress-1.0.2.gentoo.diff b/www-apps/wordpress/files/wordpress-1.0.2.gentoo.diff
new file mode 100644
index 000000000000..fe09c068a3ea
--- /dev/null
+++ b/www-apps/wordpress/files/wordpress-1.0.2.gentoo.diff
@@ -0,0 +1,213 @@
+diff -u --recursive wordpress-1.0.2/b2rdf.php wordpress-1.0.2-patched/b2rdf.php
+--- wordpress-1.0.2/b2rdf.php 2004-03-11 19:15:11.000000000 +0000
++++ wordpress-1.0.2-patched/b2rdf.php 2004-05-01 11:35:57.924240544 +0100
+@@ -1,7 +1,6 @@
+ <?php
+-$curpath = dirname(__FILE__).'/';
+-require_once ($curpath.'wp-config.php');
+-require_once ($curpath.WPINC.'/template-functions.php');
++require_once ('./wp-config.php');
++require_once ('wp-includes/template-functions.php');
+ if (!empty($_SERVER["QUERY_STRING"])) {
+ $location = get_bloginfo('rdf_url').'?'.$_SERVER["QUERY_STRING"];
+ }
+@@ -11,4 +10,4 @@
+ header('HTTP/1.0 301 Moved Permanently');
+ header('Location: ' . $location . "\n");
+ exit;
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/b2rss.php wordpress-1.0.2-patched/b2rss.php
+--- wordpress-1.0.2/b2rss.php 2004-03-11 19:15:12.000000000 +0000
++++ wordpress-1.0.2-patched/b2rss.php 2004-05-01 11:36:22.726470032 +0100
+@@ -1,7 +1,6 @@
+ <?php
+-$curpath = dirname(__FILE__).'/';
+-require_once ($curpath.'wp-config.php');
+-require_once ($curpath.WPINC.'/template-functions.php');
++require_once ('./wp-config.php');
++require_once ('wp-includes/template-functions.php');
+ if (!empty($_SERVER["QUERY_STRING"])) {
+ $location = get_bloginfo('rss_url').'?'.$_SERVER["QUERY_STRING"];
+ }
+@@ -11,4 +10,4 @@
+ header('HTTP/1.0 301 Moved Permanently');
+ header('Location: ' . $location . "\n");
+ exit;
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/b2rss2.php wordpress-1.0.2-patched/b2rss2.php
+--- wordpress-1.0.2/b2rss2.php 2004-03-11 19:15:12.000000000 +0000
++++ wordpress-1.0.2-patched/b2rss2.php 2004-05-01 11:36:46.635835256 +0100
+@@ -1,7 +1,6 @@
+ <?php
+-$curpath = dirname(__FILE__).'/';
+-require_once ($curpath.'wp-config.php');
+-require_once ($curpath.WPINC.'/template-functions.php');
++require_once ('./wp-config.php');
++require_once ('wp-includes/template-functions.php');
+ if (!empty($_SERVER["QUERY_STRING"])) {
+ $location = get_bloginfo('rss2_url').'?'.$_SERVER["QUERY_STRING"];
+ }
+@@ -11,4 +10,4 @@
+ header('HTTP/1.0 301 Moved Permanently');
+ header('Location: ' . $location . "\n");
+ exit;
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/index.php wordpress-1.0.2-patched/index.php
+--- wordpress-1.0.2/index.php 2004-03-11 19:15:12.000000000 +0000
++++ wordpress-1.0.2-patched/index.php 2004-05-01 11:37:09.586346248 +0100
+@@ -56,7 +56,7 @@
+ <?php trackback_rdf(); ?>
+ -->
+
+-<?php include(ABSPATH . 'wp-comments.php'); ?>
++<?php include('./wp-comments.php'); ?>
+ </div>
+
+ <?php } } else { // end foreach, end if any posts ?>
+@@ -114,4 +114,4 @@
+
+ <p class="credit"><!--<?php echo $wpdb->querycount; ?> queries.--> <?php timer_stop(1); ?> || <cite>Powered by <a href="http://wordpress.org" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
+ </body>
+-</html>
+\ No newline at end of file
++</html>
+diff -u --recursive wordpress-1.0.2/wp-blog-header.php wordpress-1.0.2-patched/wp-blog-header.php
+--- wordpress-1.0.2/wp-blog-header.php 2004-03-11 19:15:48.000000000 +0000
++++ wordpress-1.0.2-patched/wp-blog-header.php 2004-05-01 11:38:12.799736352 +0100
+@@ -3,7 +3,7 @@
+ $use_cache = 1; // No reason not to
+
+ /* Including config and functions files */
+-$curpath = dirname(__FILE__).'/';
++$curpath = '.';
+
+ if (!file_exists($curpath . '/wp-config.php'))
+ die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
+@@ -363,4 +363,4 @@
+ }
+ }
+ }
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/wp-comments-post.php wordpress-1.0.2-patched/wp-comments-post.php
+--- wordpress-1.0.2/wp-comments-post.php 2004-03-11 19:15:48.000000000 +0000
++++ wordpress-1.0.2-patched/wp-comments-post.php 2004-05-01 11:38:32.395757304 +0100
+@@ -1,5 +1,5 @@
+ <?php
+-require(dirname(__FILE__) . '/wp-config.php');
++require('./wp-config.php');
+
+ function add_magic_quotes($array) {
+ foreach ($array as $k => $v) {
+@@ -129,4 +129,4 @@
+ die('Sorry, you can only post a new comment once every 10 seconds. Slow down cowboy.');
+ }
+
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/wp-includes/links-update-xml.php wordpress-1.0.2-patched/wp-includes/links-update-xml.php
+--- wordpress-1.0.2/wp-includes/links-update-xml.php 2004-03-11 19:16:07.000000000 +0000
++++ wordpress-1.0.2-patched/wp-includes/links-update-xml.php 2004-05-01 11:39:00.026556784 +0100
+@@ -3,7 +3,7 @@
+ // Copyright (C) 2003 Mike Little -- mike@zed1.com
+
+ // Get the path of our parent directory:
+-$parentpath = dirname(dirname(__FILE__));
++$parentpath = "../";
+
+ require_once($parentpath.'/wp-config.php');
+
+@@ -171,4 +171,4 @@
+ //echo('</pre>');
+ } // end if updated cache file
+
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/wp-login.php wordpress-1.0.2-patched/wp-login.php
+--- wordpress-1.0.2/wp-login.php 2004-03-11 19:16:10.000000000 +0000
++++ wordpress-1.0.2-patched/wp-login.php 2004-05-01 11:39:15.439213704 +0100
+@@ -1,5 +1,5 @@
+ <?php
+-require(dirname(__FILE__) . '/wp-config.php');
++require('./wp-config.php');
+
+ if (!function_exists('add_magic_quotes')) {
+ function add_magic_quotes($array) {
+diff -u --recursive wordpress-1.0.2/wp-mail.php wordpress-1.0.2-patched/wp-mail.php
+--- wordpress-1.0.2/wp-mail.php 2004-03-11 19:16:11.000000000 +0000
++++ wordpress-1.0.2-patched/wp-mail.php 2004-05-01 11:40:02.043128832 +0100
+@@ -1,7 +1,7 @@
+ <?php
+-require(dirname(__FILE__) . '/wp-config.php');
++require('./wp-config.php');
+
+-require_once(ABSPATH.WPINC.'/class-pop3.php');
++require_once('wp-includes/class-pop3.php');
+
+
+ timer_start();
+@@ -286,4 +286,4 @@
+ timer_stop($output_debugging_info);
+ exit;
+
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/wp-pass.php wordpress-1.0.2-patched/wp-pass.php
+--- wordpress-1.0.2/wp-pass.php 2004-03-11 19:16:11.000000000 +0000
++++ wordpress-1.0.2-patched/wp-pass.php 2004-05-01 11:40:17.169829224 +0100
+@@ -4,8 +4,8 @@
+ It doesn't need to connect to the DB, or do anything fancy at all. Yum.
+ -- Matt
+ */
+-require(dirname(__FILE__) . '/wp-config.php');
++require('./wp-config.php');
+ setcookie('wp-postpass_'.$cookiehash, $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
+ header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
+
+-?>
+\ No newline at end of file
++?>
+diff -u --recursive wordpress-1.0.2/wp-register.php wordpress-1.0.2-patched/wp-register.php
+--- wordpress-1.0.2/wp-register.php 2004-03-11 19:16:11.000000000 +0000
++++ wordpress-1.0.2-patched/wp-register.php 2004-05-01 11:40:28.837055536 +0100
+@@ -1,5 +1,5 @@
+ <?php
+-require(dirname(__FILE__) . '/wp-config.php');
++require('./wp-config.php');
+
+ function add_magic_quotes($array) {
+ foreach ($array as $k => $v) {
+@@ -191,4 +191,4 @@
+ <?php
+
+ break;
+-}
+\ No newline at end of file
++}
+diff -u --recursive wordpress-1.0.2/wp-trackback.php wordpress-1.0.2-patched/wp-trackback.php
+--- wordpress-1.0.2/wp-trackback.php 2004-03-11 19:16:13.000000000 +0000
++++ wordpress-1.0.2-patched/wp-trackback.php 2004-05-01 11:40:37.655714896 +0100
+@@ -1,5 +1,5 @@
+ <?php
+-require(dirname(__FILE__) . '/wp-config.php');
++require('./wp-config.php');
+
+ // trackback is done by a POST
+ $request_array = 'HTTP_POST_VARS';
+@@ -84,4 +84,4 @@
+ trackback_response(0);
+ }
+ }
+-?>
+\ No newline at end of file
++?>
diff --git a/www-apps/wordpress/metadata.xml b/www-apps/wordpress/metadata.xml
new file mode 100644
index 000000000000..0d59c319c3eb
--- /dev/null
+++ b/www-apps/wordpress/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>webapps</herd>
+<maintainer>
+ <email>web-apps@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/wordpress/wordpress-1.0.2.ebuild b/www-apps/wordpress/wordpress-1.0.2.ebuild
new file mode 100644
index 000000000000..49815266c5f2
--- /dev/null
+++ b/www-apps/wordpress/wordpress-1.0.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/wordpress/wordpress-1.0.2.ebuild,v 1.1 2004/08/15 15:56:24 stuart Exp $
+# Mostly ripped off from the squirrelmail ebuild!
+# By Peter Westwood <peter.westwood@ftwr.co.uk>
+
+inherit webapp eutils
+
+#Wordpress releases have a release name tagged on the end of the version on the tar.gz files
+MY_EXT="blakey"
+
+DESCRIPTION="Wordpress php and mysql based CMS system."
+HOMEPAGE="http://wordpress.org/"
+SRC_URI="mirror://sourceforge/cafelog/${P}-${MY_EXT}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc"
+IUSE=""
+RDEPEND=">=dev-php/mod_php-4.1
+ >=dev-db/mysql-3.23.23"
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}"
+
+src_unpack() {
+ unpack "${A}"
+ cd ${S}
+ epatch ${FILESDIR}/${P}.gentoo.diff
+}
+
+src_compile() {
+ #Do we need to do any random passwd setup?
+
+ #we need to have this empty function ... default compile hangs
+ echo "Nothing to compile"
+}
+
+src_install() {
+ local docs="license.txt readme.html"
+
+ webapp_src_preinst
+
+ einfo "Installing main files"
+ echo ${D}
+ cp -r . ${D}${MY_HTDOCSDIR}
+
+ # handle documentation files
+ #
+ # NOTE that doc files go into /usr/share/doc as normal; they do NOT
+ # get installed per vhost!
+
+ dodoc ${docs}
+ for doc in ${docs} INSTALL; do
+ rm -f ${doc}
+ done
+
+ # Identify the configuration files that this app uses
+ # User can want to make changes to these!
+ webapp_serverowned ${MY_HTDOCSDIR}/index.php
+ webapp_serverowned ${MY_HTDOCSDIR}/wp-layout.css
+ webapp_serverowned ${MY_HTDOCSDIR}/wp-admin/menu.txt
+ webapp_serverowned ${MY_HTDOCSDIR}
+
+ # Identify any script files that need #! headers adding to run under
+ # a CGI script (such as PHP/CGI)
+ #
+ # for wordpress, we *assume* that all .php files need to have CGI/BIN
+ # support added
+
+ for x in `find . -name '*.php' -print ` ; do
+ webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
+ done
+
+ # now strut stuff
+ webapp_src_install
+}
diff --git a/www-apps/wordpress/wordpress-1.2-r1.ebuild b/www-apps/wordpress/wordpress-1.2-r1.ebuild
new file mode 100644
index 000000000000..38c7ded756c0
--- /dev/null
+++ b/www-apps/wordpress/wordpress-1.2-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/wordpress/wordpress-1.2-r1.ebuild,v 1.1 2004/08/15 15:56:24 stuart Exp $
+# Mostly ripped off from the squirrelmail ebuild!
+# By Peter Westwood <peter.westwood@ftwr.co.uk>
+
+inherit webapp eutils
+
+#Wordpress releases have a release name tagged on the end of the version on the tar.gz files
+MY_EXT="mingus"
+
+DESCRIPTION="Wordpress php and mysql based CMS system."
+HOMEPAGE="http://wordpress.org/"
+SRC_URI="mirror://sourceforge/cafelog/${P}-${MY_EXT}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc"
+IUSE=""
+RDEPEND=">=dev-php/mod_php-4.1
+ >=dev-db/mysql-3.23.23"
+
+DEPEND="${DEPEND} ${RDEPEND} >=net-www/webapp-config-1.10-r5"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PV}/login-patch.diff
+}
+
+src_install() {
+ local docs="license.txt readme.html"
+
+ webapp_src_preinst
+
+ einfo "Installing main files"
+ cp -r * ${D}${MY_HTDOCSDIR}
+ einfo "Done"
+
+ # handle documentation files
+ #
+ # NOTE that doc files go into /usr/share/doc as normal; they do NOT
+ # get installed per vhost!
+
+ dodoc ${docs}
+ for doc in ${docs} INSTALL; do
+ rm -f ${doc}
+ done
+
+ # Identify the configuration files that this app uses
+ # User can want to make changes to these!
+ webapp_serverowned ${MY_HTDOCSDIR}/index.php
+ webapp_serverowned ${MY_HTDOCSDIR}/wp-layout.css
+ webapp_serverowned ${MY_HTDOCSDIR}/wp-admin/menu.php
+ webapp_serverowned ${MY_HTDOCSDIR}
+
+ # Identify any script files that need #! headers adding to run under
+ # a CGI script (such as PHP/CGI)
+ #
+ # for wordpress, we *assume* that all .php files need to have CGI/BIN
+ # support added
+
+ for x in `find . -name '*.php' -print ` ; do
+ webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
+ done
+
+ # post-install instructions
+ webapp_postinst_txt en ${FILESDIR}/1.2/postinstall-en.txt
+
+ # now strut stuff
+ webapp_src_install
+}
diff --git a/www-apps/wordpress/wordpress-1.2.ebuild b/www-apps/wordpress/wordpress-1.2.ebuild
new file mode 100644
index 000000000000..569022b56b30
--- /dev/null
+++ b/www-apps/wordpress/wordpress-1.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/wordpress/wordpress-1.2.ebuild,v 1.1 2004/08/15 15:56:24 stuart Exp $
+# Mostly ripped off from the squirrelmail ebuild!
+# By Peter Westwood <peter.westwood@ftwr.co.uk>
+
+inherit webapp eutils
+
+#Wordpress releases have a release name tagged on the end of the version on the tar.gz files
+MY_EXT="mingus"
+
+DESCRIPTION="Wordpress php and mysql based CMS system."
+HOMEPAGE="http://wordpress.org/"
+SRC_URI="mirror://sourceforge/cafelog/${P}-${MY_EXT}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc"
+IUSE=""
+RDEPEND=">=dev-php/mod_php-4.1
+ >=dev-db/mysql-3.23.23"
+
+DEPEND="${DEPEND} ${RDEPEND} >=net-www/webapp-config-1.10-r5"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PV}/login-patch.diff
+}
+
+src_install() {
+ local docs="license.txt readme.html"
+
+ webapp_src_preinst
+
+ einfo "Installing main files"
+ cp -r * ${D}${MY_HTDOCSDIR}
+ einfo "Done"
+
+ # handle documentation files
+ #
+ # NOTE that doc files go into /usr/share/doc as normal; they do NOT
+ # get installed per vhost!
+
+ dodoc ${docs}
+ for doc in ${docs} INSTALL; do
+ rm -f ${doc}
+ done
+
+ # Identify the configuration files that this app uses
+ # User can want to make changes to these!
+ webapp_serverowned ${MY_HTDOCSDIR}/index.php
+ webapp_serverowned ${MY_HTDOCSDIR}/wp-layout.css
+ webapp_serverowned ${MY_HTDOCSDIR}/wp-admin/menu.php
+ webapp_serverowned ${MY_HTDOCSDIR}
+
+ # Identify any script files that need #! headers adding to run under
+ # a CGI script (such as PHP/CGI)
+ #
+ # for wordpress, we *assume* that all .php files need to have CGI/BIN
+ # support added
+
+ for x in `find . -name '*.php' -print ` ; do
+ webapp_runbycgibin php ${MY_HTDOCSDIR}/$x
+ done
+
+ # post-install instructions
+ webapp_postinst_txt en ${FILESDIR}/1.2/postinstall-en.txt
+
+ # now strut stuff
+ webapp_src_install
+}