summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-05-01 12:29:21 +0000
committerStuart Herbert <stuart@gentoo.org>2004-05-01 12:29:21 +0000
commit651501b50738107dd5fa288375daf6a6d263967d (patch)
tree3a7a6982894d74ed447b3a1d8047139a9788df0f /net-www
parentfix net-im/gnome-jabber per bu #49118 (Manifest recommit) (diff)
downloadgentoo-2-651501b50738107dd5fa288375daf6a6d263967d.tar.gz
gentoo-2-651501b50738107dd5fa288375daf6a6d263967d.tar.bz2
gentoo-2-651501b50738107dd5fa288375daf6a6d263967d.zip
Initial import
Diffstat (limited to 'net-www')
-rw-r--r--net-www/wordpress/ChangeLog11
-rw-r--r--net-www/wordpress/Manifest3
-rw-r--r--net-www/wordpress/files/digest-wordpress-1.0.21
-rw-r--r--net-www/wordpress/files/wordpress-1.0.2.gentoo.diff213
-rw-r--r--net-www/wordpress/metadata.xml8
-rw-r--r--net-www/wordpress/wordpress-1.0.2.ebuild77
6 files changed, 313 insertions, 0 deletions
diff --git a/net-www/wordpress/ChangeLog b/net-www/wordpress/ChangeLog
new file mode 100644
index 000000000000..ed021bb40927
--- /dev/null
+++ b/net-www/wordpress/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-www/wordpress
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/wordpress/ChangeLog,v 1.1 2004/05/01 12:29:21 stuart Exp $
+
+*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/net-www/wordpress/Manifest b/net-www/wordpress/Manifest
new file mode 100644
index 000000000000..59826622aaa7
--- /dev/null
+++ b/net-www/wordpress/Manifest
@@ -0,0 +1,3 @@
+MD5 7e628940d23d5caca31e07d7cd65a9fb wordpress-1.0.2.ebuild 2097
+MD5 3310de51163cfb2a4b23c784003c123d files/digest-wordpress-1.0.2 74
+MD5 8798d44320b59c755a81271d58bd3827 files/wordpress-1.0.2.gentoo.diff 7670
diff --git a/net-www/wordpress/files/digest-wordpress-1.0.2 b/net-www/wordpress/files/digest-wordpress-1.0.2
new file mode 100644
index 000000000000..3c7092e89fbb
--- /dev/null
+++ b/net-www/wordpress/files/digest-wordpress-1.0.2
@@ -0,0 +1 @@
+MD5 62ffd1a241ba9a1652b9681c53e979de wordpress-1.0.2-blakey.tar.gz 223901
diff --git a/net-www/wordpress/files/wordpress-1.0.2.gentoo.diff b/net-www/wordpress/files/wordpress-1.0.2.gentoo.diff
new file mode 100644
index 000000000000..fe09c068a3ea
--- /dev/null
+++ b/net-www/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/net-www/wordpress/metadata.xml b/net-www/wordpress/metadata.xml
new file mode 100644
index 000000000000..0d59c319c3eb
--- /dev/null
+++ b/net-www/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/net-www/wordpress/wordpress-1.0.2.ebuild b/net-www/wordpress/wordpress-1.0.2.ebuild
new file mode 100644
index 000000000000..e9d631f8804b
--- /dev/null
+++ b/net-www/wordpress/wordpress-1.0.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/wordpress/wordpress-1.0.2.ebuild,v 1.1 2004/05/01 12:29:21 stuart Exp $
+# Mostly ripped off from the squirrelmail ebuild!
+# By Peter Westwood <peter.westwood@ftwr.co.uk>
+
+inherit webapp
+
+#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"
+SLOT="0"
+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
+}