--- wordpress-2.0.orig/wp-admin/install.php +++ wordpress-2.0/wp-admin/install.php @@ -147,13 +147,7 @@ // Now drop in some default links $wpdb->query("INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, '".$wpdb->escape(__('Blogroll'))."')"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://blogs.linux.ie/xeer/', 'Donncha', 1, 'http://blogs.linux.ie/xeer/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zengun.org/weblog/', 'Michel', 1, 'http://zengun.org/weblog/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://boren.nu/', 'Ryan', 1, 'http://boren.nu/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://photomatt.net/', 'Matt', 1, 'http://xml.photomatt.net/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zed1.com/journalized/', 'Mike', 1, 'http://zed1.com/journalized/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://www.alexking.org/', 'Alex', 1, 'http://www.alexking.org/blog/wp-rss2.php', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://dougal.gunters.org/', 'Dougal', 1, 'http://dougal.gunters.org/feed/', '');"); +$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://natalian.org/archives/category/wordpress/', 'Debian Wordpress Blog', 1, 'http://natalian.org/archives/category/wordpress/feed/', '');"); // Default category $wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, category_count, category_description) VALUES ('0', '".$wpdb->escape(__('Uncategorized'))."', '".sanitize_title(__('Uncategorized'))."', '1', '')"); --- wordpress-2.0.orig/debian/wp-config.php +++ wordpress-2.0/debian/wp-config.php @@ -0,0 +1,11 @@ + --- wordpress-2.0.orig/debian/control +++ wordpress-2.0/debian/control @@ -0,0 +1,21 @@ +Source: wordpress +Section: web +Priority: optional +Maintainer: Kai Hendry +Standards-Version: 3.6.2 +Build-Depends-Indep: debhelper (>> 4) + +Package: wordpress +Architecture: all +Depends: apache | httpd, php5 | php4 | libapache2-mod-php4, php4-mysql | php5-mysql, virtual-mysql-client +Suggests: virtual-mysql-server, php4-gd | php5-gd +Conflicts: mysql-server (<< 4.0.20-8) +Description: an award winning weblog manager + WordPress is a full featured web blogging tool: + * Instant publishing (no rebuilding) + * Comment pingback support with spam protection + * Non-crufty URLs + * Zillions of themes and plugins + * And much more + . + Homepage: http://wordpress.org --- wordpress-2.0.orig/debian/compat +++ wordpress-2.0/debian/compat @@ -0,0 +1 @@ +4 --- wordpress-2.0.orig/debian/postrm +++ wordpress-2.0/debian/postrm @@ -0,0 +1,16 @@ +#!/bin/sh + +NAME="wordpress" + +case "$1" in + + purge) + rm -rf /etc/wordpress + rm -rf /usr/share/wordpress + ;; + +esac + +#DEBHELPER# + +exit 0 --- wordpress-2.0.orig/debian/changelog +++ wordpress-2.0/debian/changelog @@ -0,0 +1,141 @@ +wordpress (2.0-1) unstable; urgency=low + + * New upstream release + * Closes: #320462: Wordpress replaces valid characters in urls with + HTML entities, breaking the URL + * Closes: #326685: Incorrectly mangles URLs using the wptexturize + function + * Closes: #347339: Wordpress version 2 is available + * Closes: #345508: Should have a dependancy on the php5-gd package + + -- Kai Hendry Fri, 13 Jan 2006 03:58:59 +0000 + +wordpress (1.5.2-2) unstable; urgency=low + + * Now with support for PHP5 + * Requires mysql-server when the server can actually be on a remote + server (Closes: #328554) + + -- Kai Hendry Thu, 22 Sep 2005 13:56:50 +1000 + +wordpress (1.5.2-1) unstable; urgency=high + + * New upstream "security fix" release + * Closes: #323040: CAN-2005-2612 + * See: http://wordpress.org/development/2005/08/one-five-two/ + + -- Kai Hendry Fri, 19 Aug 2005 10:58:17 +1000 + +wordpress (1.5.1.3-4) unstable; urgency=medium + + * 'I really should have tested this on another machine' release + * Closes: #319007: dbconfig dep screws upgrade + + -- Kai Hendry Tue, 19 Jul 2005 20:03:10 +1000 + +wordpress (1.5.1.3-3) unstable; urgency=low + + * Improved the setup-mysql script for Wordpress MASS hosting with Apache's + VirtualDocumentRoot + + -- Kai Hendry Fri, 15 Jul 2005 10:50:59 +1000 + +wordpress (1.5.1.3-2) unstable; urgency=high + + * The no XML-RPC vulnerabilities here release. ;) + * Strongly advised to upgrade due to inconsistencies between 1.5.1.3-1 orig + tar.gz and the upstream 1.5.1.3 latest.tar.gz after checking. + * Closes: #312721: wordpress does not see mysql + * Changed upstream's default links. Controversial? + + -- Kai Hendry Fri, 8 Jul 2005 12:11:23 +1000 + +wordpress (1.5.1.3-1) unstable; urgency=high + + * New upstream release + * Yet another security release: + http://wordpress.org/development/2005/06/wordpress-1513 + + -- Kai Hendry Thu, 30 Jun 2005 15:25:27 +1000 + +wordpress (1.5.1.2-1) unstable; urgency=high + + * New upstream release + * Another security release: + http://wordpress.org/development/2005/05/security-update/ + + -- Kai Hendry Sun, 29 May 2005 00:52:39 +1000 + +wordpress (1.5.1-1) unstable; urgency=high + + * Upstream changelog is here: + http://codex.wordpress.org/Changelog/1.5.1 + * Fixes an unannounced "important security fix" + + -- Tue, 10 May 2005 01:48:34 +0100 + +wordpress (1.5.0-2) unstable; urgency=low + + * Thanks to NOKUBI Takatsugu and the Debian Japan people for making this + release possible + * Moved mysql setup out of postinst allowing multiple blogs on the host at + the loss of automated mysql setup. + * Closes: #298563: incompatible with mysql-server-4.1 + * Closes: #298571: multiple installation support + * Closes: #300200: multiple installation support + * Closes: #300757: How would one add plugins to wordpress ? + + -- Kai Hendry Sat, 23 Apr 2005 15:17:45 +0900 + +wordpress (1.5.0-1) unstable; urgency=high + + * Closes: #275814: New version fixes security flaws + http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1559 + * Closes: #288613: /usr/share/wordpress/readme.html missing + * Closes: #287086: new upstream 1.2.2 + * Added some NEWS that users will find helpful in the upgrade + + -- Kai Hendry Fri, 25 Feb 2005 07:11:47 +0200 + +wordpress (1.2.2-1.1) unstable; urgency=medium + + * NMU + * Thank you Dominic Hargreaves and svn-upgrade + + -- Kai Hendry Sat, 18 Dec 2004 09:32:14 +0200 + +wordpress (1.2.1-1.1) unstable; urgency=medium + + * NMU + * Closes: #275814: New upstream release that fixes security problem + detailed: http://secunia.com/advisories/12773/ + * Closes: #276112: Need more complete README.Debian for new users + Added some detail to README.Debian + * Escaped a mysql line in the postrm that might avoid a bug. + + -- Kai Hendry Sat, 27 Nov 2004 16:48:32 +0200 + +wordpress (1.2.0-1.1) unstable; urgency=low + + * NMU + * Closes: #250812: New upstream + * Closes: #251653: apache2 support + * Closes: #255121: conffiles not marked + * Revised dependency on mysql-server otherwise debian-sys-maint will never work + * Thanks to Teemu Hukkanen, Corey Wright, Christian Hammers and Matt Mullenweg + + -- Kai Hendry Thu, 12 Aug 2004 21:50:04 +0300 + +wordpress (1.0.2-1) unstable; urgency=low + + * New upstream release + * New package description (Closes: #237137) + * Made a plain text version of readme.html + + -- Gabriel Rodríguez Alberich Sun, 21 Mar 2004 18:25:20 +0000 + +wordpress (1.0.1-1) unstable; urgency=low + + * Initial release (Closes: #230034) + + -- Gabriel Rodríguez Alberich Thu, 26 Feb 2004 19:37:33 +0000 --- wordpress-2.0.orig/debian/docs +++ wordpress-2.0/debian/docs @@ -0,0 +1 @@ +readme.html --- wordpress-2.0.orig/debian/rules +++ wordpress-2.0/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=0 + +all: + +install: + dh_testdir + dh_testroot + dh_install -Xlicense.txt + dh_installdocs + dh_installchangelogs + dh_installexamples + dh_compress + dh_fixperms + dh_installdeb + dh_link + dh_gencontrol + dh_md5sums + dh_builddeb + +clean: + dh_clean + +binary: install + +build: --- wordpress-2.0.orig/debian/htaccess +++ wordpress-2.0/debian/htaccess @@ -0,0 +1,3 @@ +# For rewrite rules needed for making Wordpress URL friendly +# See Options -> Permalinks for details and please use the defaults, +# especially in mind when hosting several blogs on one machine! --- wordpress-2.0.orig/debian/dirs +++ wordpress-2.0/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +etc/wordpress --- wordpress-2.0.orig/debian/setup-mysql +++ wordpress-2.0/debian/setup-mysql @@ -0,0 +1,160 @@ +#!/bin/sh -e +# $Id: setup-mysql 1486 2005-07-17 13:10:41Z hendry $ + +usage() { +cat < $CONFIG_FILE << EOF + +EOF +echo $CONFIG_FILE wrote +} + +create() { +# Create the database and user +# Wordpress's install.php creates the tables btw +mysql --defaults-extra-file=/etc/mysql/debian.cnf < $BACKUPFILE && echo Wrote $BACKUPFILE +} + +destroy() { +echo Destroying $NAME +prompt +mysql --defaults-extra-file=/etc/mysql/debian.cnf <&2 ; exit 1 ;; + esac +done +shift $(($OPTIND - 1)) + +if [ "$(id -u)" != "0" ] +then + echo "You must be root to use this script." + exit 1 +fi + +DOMAIN=$1 + +if [ $DOMAIN ] ; then +ping -c 1 $DOMAIN || exit 1 +else + usage + exit 0 +fi + +CONFIG_FILE=/etc/wordpress/config-$DOMAIN.php + +if [ ! $NAME ] ; then +NAME=$(echo $DOMAIN | sed 's,\.,,') +echo Constructed database name and user: $NAME from $DOMAIN +fi + +if [ ${#NAME} -gt 16 ]; then +echo "$NAME is longer than MySQL's limit of 16 characters. Please specify a shorter one." +exit 1 +fi + +if [ $BACKUP ] ; then +backup +exit 0 +fi + +if [ $DESTROY ] ; then +destroy +exit 0 +fi + +defaultsetup +create --- wordpress-2.0.orig/debian/apache.conf +++ wordpress-2.0/debian/apache.conf @@ -0,0 +1,49 @@ +# There are about 3 ways to do this in Apache. In order of preference: + +########## Virtual host VirtualDocumentRoot + +NameVirtualHost *:80 + + +UseCanonicalName Off +VirtualDocumentRoot /srv/www/%0 +Options All + + +#And then link the blog to your preferred domain, e.g.: +#ln -s /usr/share/wordpress /srv/www/blog.example.com + +#Of course make sure that the domain name 'blog.example.com' resolves to your +#local machine. + +################################# +########## A defined Virtual host + +NameVirtualHost *:80 + + +VirtualDocumentRoot /usr/share/wordpress/ +ServerName blog.example.com +ErrorLog /var/log/apache/wp-error.log +TransferLog /var/log/apache/wp-access.log + + +########## Without using Virtual host, hosted off /blog + +Alias /blog /usr/share/wordpress + + Options FollowSymLinks + AllowOverride Limit Options FileInfo + DirectoryIndex index.php + + +########## Tips +### If permalinks or rewrite is not working you probably need: + + Options FollowSymLinks + AllowOverride All + +# In your httpd.conf + +### If NameVirtualHost *:80 is not working +You probably need to replace the * with the actual IP or hostname --- wordpress-2.0.orig/debian/wordpress.examples +++ wordpress-2.0/debian/wordpress.examples @@ -0,0 +1,2 @@ +debian/apache.conf +debian/setup-mysql --- wordpress-2.0.orig/debian/install +++ wordpress-2.0/debian/install @@ -0,0 +1,6 @@ +debian/wp-config.php etc/wordpress +debian/htaccess etc/wordpress +wp-admin usr/share/wordpress +wp-content usr/share/wordpress +wp-includes usr/share/wordpress +*.php usr/share/wordpress --- wordpress-2.0.orig/debian/wordpress.links +++ wordpress-2.0/debian/wordpress.links @@ -0,0 +1,3 @@ +etc/wordpress/htaccess usr/share/wordpress/.htaccess +etc/wordpress/wp-config.php usr/share/wordpress/wp-config.php +usr/share/doc/wordpress/readme.html usr/share/wordpress/readme.html --- wordpress-2.0.orig/debian/copyright +++ wordpress-2.0/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Gabriel Rodríguez Alberich chewie@the-geek.org +on Thu, 26 Feb 2004 19:37:33 +0000. Since Aug 2004 this package has been +maintained by Kai Hendry. + +It was downloaded from: http://wordpress.org/download/ + +Upstream authors: http://wordpress.org/about/ + +License: + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. --- wordpress-2.0.orig/debian/NEWS +++ wordpress-2.0/debian/NEWS @@ -0,0 +1,31 @@ +wordpress (1.5.0-1) unstable; urgency=high + + Background read http://codex.wordpress.org/Upgrading_WordPress + Please http://codex.wordpress.org/Backing_up_your_database + + You need to run wp-admin/upgrade.php + + A new theme system means you need to: + http://codex.wordpress.org/Upgrade_1.2_to_1.5#Upgrading_Old_Templates + + Update your (rewrites) + Check your plugins (e.g. Markdown) are activated + + -- Kai Hendry Tue, 22 Feb 2005 05:53:50 +0200 + +wordpress (1.2.0-1) unstable; urgency=low + + UPGRADE NOTICES + When upgrading from wordpress 1.0 you will need to run + http://your-wordpress-installation/wp-admin/upgrade.php otherwise you might get + a post_date_gmt error. + + The configuration files are now kept in /etc/wordpress. Please + copy in your wp-config.php into /etc/wordpress and run: ln -s + /etc/wordpress/wp-config.php /usr/share/wordpress/wp-config.php + Modify 'ABSPATH' to: + define('ABSPATH', '/usr/share/wordpress/'); + + And do not forget to check your .htaccess rewrite rules. + + -- Kai Hendry Sat, 29 May 2004 23:40:53 +0300 --- wordpress-2.0.orig/debian/README.debian +++ wordpress-2.0/debian/README.debian @@ -0,0 +1,36 @@ +#### Quick setup + +Setup apache to point to /usr/share/wordpress. See the examples/apache.conf + +Database setup can be done with the help of a script in examples/setup-mysql + +#### A little more about the (multiple blog) configuration + +The default wp-config.php searches for a (mysql) configuration filename based +on the blog's host. This allows you to host more than one blog on a Debian +system. + +#### Upgrading from 1.5-1 and below + +If you would like to use the optional default multiple blog configuration from +version 1.5-2 then: + +Backup your database. http://codex.wordpress.org/Backing_up_your_database +Backup your configs, sudo cp -r /etc/wordpress/ ~/asafeplace +Purge wordpress, apt-get remove --purge wordpress +Install wordpress, apt-get install wordpress +Point your browser to your blog and you should get an error message similar to above. +Copy in your backed up wp-config.php to what it failed to open in the Fatal error, e.g. /etc/wordpress/config-my.blog.example.com.php +Ensure correct permissions, sudo chown :www-data /etc/wordpress/* + +#### Plugins, themes and extra bits related to Wordpress + +Currently plugins and themes need to be dropped in by root into: +/usr/share/wordpress/wp-content +Or better by utilising symbolic links. e.g. +ln -s /home/user/mytheme /usr/share/wordpress/wp-content/themes/mytheme + +If there is a demand (file a bug) for a certain plugin/theme, perhaps this can +be packaged or included in this package. + +