Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43025 - Ebuild for Wordpress CMS/blog system
Summary: Ebuild for Wordpress CMS/blog system
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
: 50646 (view as bug list)
Depends on:
Reported: 2004-02-26 13:22 UTC by Peter Westwood
Modified: 2004-06-26 17:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

a simple ebuild (wordpress-1.0.1.ebuild,1.50 KB, application/octet-stream)
2004-02-26 13:23 UTC, Peter Westwood
wordpress-1.0.1-r1 ebuild (wordpress-1.0.1-r1.ebuild,2.15 KB, application/octet-stream)
2004-04-29 02:04 UTC, Peter Westwood
wordpress-1.0.2.ebuild (wordpress-1.0.2.ebuild,2.16 KB, application/octet-stream)
2004-04-29 02:05 UTC, Peter Westwood

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Westwood 2004-02-26 13:22:28 UTC
Basic ebuild for wordpress a open source blog / content management system

Reproducible: Always
Steps to Reproduce:
Comment 1 Peter Westwood 2004-02-26 13:23:29 UTC
Created attachment 26422 [details]
a simple ebuild

A simple ebuild.
RDEPENDS versions are based on the specific versions detailed in the packages
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 05:37:26 UTC

Sorry for the delay in replying.  We've been very busy putting a new
framework in place for ebuilds for web-based applications.  This has
now been added to Portage.

We need you to update your ebuild to use the new framework before we
can accept your ebuild.

Please emerge net-www/webapp-config (make sure you get version 1.2 or
later), and update your ebuild to work with this new tool.  You can
use 'man 5 webapp.eclass', 'man 5 webapp-config' and 'man 8 webapp-config'
to learn more about how your ebuild needs to work.

You can find an example ebuild, for phpmyadmin, in

If you encounter any difficulties with the new framework (and we
apologise, but there are sure to be a few at first), please let us know
and we'll do our best to help you.

Best regards,
Comment 3 Peter Westwood 2004-04-23 05:46:35 UTC

Ok I'll give this a go this weekend hopefully and post a new ebuild.


Comment 4 Peter Westwood 2004-04-29 02:04:44 UTC
Created attachment 30302 [details]
wordpress-1.0.1-r1 ebuild

Updates previous ebuild to provide a webapp aware one.

Still needs a postinstall step done taking the postinstall comments from the
previous ebuild
Comment 5 Peter Westwood 2004-04-29 02:05:35 UTC
Created attachment 30303 [details]

Updates previous ebuild to latest version of wordpress.

Still needs a postinstall step done taking the postinstall comments from the
first ebuild
Comment 6 Peter Westwood 2004-04-29 02:30:30 UTC
Note these ebuilds aren't quite ready for real time yet!

Some of the files use "dirname(__FILE__)" to find other files relatively which gets mucked up by the symlinks ...

so far found wp-blog-header.php and wp-login.php which will need patching!
Comment 7 Peter Westwood 2004-04-29 02:32:30 UTC
full list of files to fix with a patch:

alice blog # grep "dirname(__FILE__)" * -r
b2rdf.php:$curpath = dirname(__FILE__).'/';
b2rss.php:$curpath = dirname(__FILE__).'/';
b2rss2.php:$curpath = dirname(__FILE__).'/';
wp-blog-header.php:$curpath = dirname(__FILE__).'/';
wp-blog-header.php.sym:$curpath = dirname(__FILE__).'/';
wp-comments-post.php:require(dirname(__FILE__) . '/wp-config.php');
wp-config-sample.php:define('ABSPATH', dirname(__FILE__).'/');
wp-config.php:define('ABSPATH', dirname(__FILE__).'/');
wp-includes/links-update-xml.php:$parentpath = dirname(dirname(__FILE__));
wp-login.php:require(dirname(__FILE__) . '/wp-config.php');
wp-mail.php:require(dirname(__FILE__) . '/wp-config.php');
wp-pass.php:require(dirname(__FILE__) . '/wp-config.php');
wp-register.php:require(dirname(__FILE__) . '/wp-config.php');
wp-trackback.php:require(dirname(__FILE__) . '/wp-config.php');

Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2004-05-01 03:58:08 UTC

I'm currently finishing off this ebuild ... I'll post again once it's committed to Portage.

Best regards,
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2004-05-01 05:31:24 UTC
Okay, I've committed the ebuild for v1.0.2 to Portage.  It should show up on your local rsync mirror in about an hour.

It seems to work fine for me.  Let me know how well it works for you ;-)

Best regards,
Comment 10 Peter Westwood 2004-05-07 12:40:24 UTC
Test Report.

Works fine for me! -

Only issue found so far is the edit post page in the admin section "wp-admin/edit.php" doesn't seem to work - it's not finding wp-config.php due to sa similar but different issue to do with the symlinking again!


Login and then click on the edit link next to posts works!
Comment 11 Jonathan S. Romero 2004-05-10 13:36:18 UTC
*** Bug 50646 has been marked as a duplicate of this bug. ***
Comment 12 Stuart Herbert (RETIRED) gentoo-dev 2004-06-26 17:38:04 UTC
Closing old bug.