--- wordpress-2.1.2.orig/wp-admin/upgrade-functions.php +++ wordpress-2.1.2/wp-admin/upgrade-functions.php @@ -64,27 +64,9 @@ $wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, link_count, category_description) VALUES ('0', '".$wpdb->escape(__('Blogroll'))."', '".sanitize_title(__('Blogroll'))."', '7', '')"); // Now drop in some default links - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://inphotos.org/', 'Donncha', 0, 'http://inphotos.org/feed/', '');"); + $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://planet.ubuntu.com', 'Planet Ubuntu', 0, 'http://planet.ubuntu.com/rss20.xml', '');"); $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (1, 2)" ); - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zengun.org/weblog/', 'Michel', 0, 'http://zengun.org/weblog/feed/', '');"); - $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (2, 2)" ); - - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://boren.nu/', 'Ryan', 0, 'http://boren.nu/feed/', '');"); - $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (3, 2)" ); - - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://photomatt.net/', 'Matt', 0, 'http://xml.photomatt.net/feed/', '');"); - $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (4, 2)" ); - - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zed1.com/journalized/', 'Mike', 0, 'http://zed1.com/journalized/feed/', '');"); - $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (5, 2)" ); - - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://www.alexking.org/', 'Alex', 0, 'http://www.alexking.org/blog/wp-rss2.php', '');"); - $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (6, 2)" ); - - $wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://dougal.gunters.org/', 'Dougal', 0, 'http://dougal.gunters.org/feed/', '');"); - $wpdb->query( "INSERT INTO $wpdb->link2cat (`link_id`, `category_id`) VALUES (7, 2)" ); - // First post $now = date('Y-m-d H:i:s'); $now_gmt = gmdate('Y-m-d H:i:s'); --- wordpress-2.1.2.orig/readme.html +++ wordpress-2.1.2/readme.html @@ -85,7 +85,7 @@

WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.

Copyright

-

WordPress is released under the GPL (see license.txt).

+

WordPress is released under the GPL (see license.txt).

--- wordpress-2.1.2.orig/debian/wordpress.links +++ wordpress-2.1.2/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.1.2.orig/debian/postinst +++ wordpress-2.1.2/debian/postinst @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# To address security bug #363580 +chmod 640 /etc/wordpress/config* >/dev/null 2>&1 || true +chgrp www-data /etc/wordpress/config* >/dev/null 2>&1 || true + +#DEBHELPER# + +exit 0 --- wordpress-2.1.2.orig/debian/docs +++ wordpress-2.1.2/debian/docs @@ -0,0 +1 @@ +readme.html --- wordpress-2.1.2.orig/debian/NEWS +++ wordpress-2.1.2/debian/NEWS @@ -0,0 +1,40 @@ +wordpress (2.0.1-1) unstable; urgency=low + + In accordance with http://bugs.debian.org/348458 + + It might be neccessary to manually run: + /wp-admin/upgrade.php + + -- Kai Hendry Thu, 2 Feb 2006 11:20:15 +0900 + +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.1.2.orig/debian/wordpress.examples +++ wordpress-2.1.2/debian/wordpress.examples @@ -0,0 +1,2 @@ +debian/apache.conf +debian/setup-mysql --- wordpress-2.1.2.orig/debian/changelog +++ wordpress-2.1.2/debian/changelog @@ -0,0 +1,295 @@ +wordpress (2.1.2-1ubuntu1~dapper1) dapper-backports; urgency=low + + * Automated backport upload; no source changes. + + -- Martin Meredith Fri, 9 Mar 2007 15:26:54 +0000 + +wordpress (2.1.2-1ubuntu1) feisty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Changed Blogroll to point to Planet Ubuntu instead of Planet Debian + - debian/control: Change Maintainer/XSBC-Original-Maintainer field. + * Fixes CVE-2007-1230 + * UVF exception: LP: #90532 + + -- Michael Bienia Thu, 8 Mar 2007 12:26:41 +0100 + +wordpress (2.1.2-1) unstable; urgency=high + + * New upstream security release + * possible security issue (Closes: #413171) + * http://trac.wordpress.org/ticket/3879 + * http://wordpress.org/development/2007/03/upgrade-212/ + + -- Kai Hendry Sun, 4 Mar 2007 20:53:12 +0000 + +wordpress (2.1.1-1ubuntu1) feisty; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Changed Blogroll to point to Planet Ubuntu instead of Planet Debian + * debian/control: Change Maintainer/XSBC-Original-Maintainer field. + * UVF exception: LP: #87097 + + -- Michael Bienia Fri, 23 Feb 2007 14:10:37 +0100 + +wordpress (2.1.1-1) unstable; urgency=high + + * New upstream security release + * Updated copyright with new download link + * http://wordpress.org/development/2007/02/new-releases + * http://trac.wordpress.org/milestone/2.1.1 + * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1049 + + -- Kai Hendry Wed, 21 Feb 2007 11:14:33 +0000 + +wordpress (2.1.0-1ubuntu1) feisty; urgency=low + + * Changed Blogroll to point to Planet Ubuntu instead of Planet Debian + + -- Martin Meredith Mon, 5 Feb 2007 15:05:21 +0000 + +wordpress (2.1.0-1) unstable; urgency=low + + * New upstream release + * http://wordpress.org/development/2007/01/ella-21/ + * Thanks to #debian-devel's Sesse and seanius to help fix the execute perm + problems on wp-includes/ + * Modified Blogroll to point only to Planet Debian + + -- Kai Hendry Tue, 23 Jan 2007 14:47:30 +0000 + +wordpress (2.0.7-1) unstable; urgency=low + + * New upstream release + * New upstream available (security fix) (Closes: #407116) + * Thanks to Fabio Tranchitella and Moritz Muehlenhoff for their support + * Improved the copyright at Moritz's request + * Moritz says the security fix does not apply to Debian's PHP hence low + urgency + * See http://wordpress.org/development/2007/01/wordpress-207/ for details of + minor changes + * Tweaked the dependency line for better php5 support + * setup-mysql -h minor usage summary error + should be executable + (Closes: #407496) + + -- Kai Hendry Fri, 19 Jan 2007 10:35:57 +0000 + +wordpress (2.0.6-1) unstable; urgency=high + + * New upstream release + * Security fix, urgency high. + * FrSIRT/ADV-2006-5191, CVE-2006-6808: WordPress "get_file_description()" + Function Client-Side Cross Site Scripting Vulnerability. + (Closes: #405299, #405691) + + -- Kai Hendry Fri, 5 Jan 2007 14:04:56 +0000 + +wordpress (2.0.5-0.1) unstable; urgency=medium + + * NMU on maintainer's request. + * Security fix, urgency medium. + * readme.html: s/license.txt/copyright/. (Closes: #382283) + * New upstream release, which fixes: + - CVE-2006-4208: Directory traversal vulnerability in WP-DB-Backup + plugin for WordPress. (Closes: #384800) + + -- Fabio Tranchitella Fri, 3 Nov 2006 15:12:06 +0100 + +wordpress (2.0.4-2) unstable; urgency=low + + * examples/setup-mysql doesn't work with dash (Closes: #372128) + * installs apache AND apache2 by default (Closes: #379118) + Many thanks to Fabio Tranchitella and Jesus Climent + * "Publish" produces broken links (Closes: #367001) + Disabled "Rich editor" by default + + -- Kai Hendry Sun, 6 Aug 2006 12:39:56 +0100 + +wordpress (2.0.4-1) unstable; urgency=high + + * New upstream release + * examples/setup-mysql doesn't work with dash (Closes: #372128) + + -- Kai Hendry Sun, 6 Aug 2006 11:59:39 +0100 + +wordpress (2.0.3-1) unstable; urgency=high + + * New upstream release + * 'Cache' shell injection vulnerability (Closes: #369014) + + -- Kai Hendry Fri, 2 Jun 2006 21:00:51 +0900 + +wordpress (2.0.2-2) unstable; urgency=high + + * setup-mysql fails if the domain contains a port number (Closes: + #362171) + * Insecure file permissions in /etc/wordpress (Closes: #363580) + * Added a postinst to help users correct permissions + + -- Kai Hendry Thu, 20 Apr 2006 10:12:56 +0900 + +wordpress (2.0.2-1) unstable; urgency=high + + * New upstream release + * 'This would have been out sooner, if I wasn't in hospital' release ;) + * Changed blogroll link to Planet Debian + * Altered 'plugin policy', it's now DIY + * mysql syntax error when running setup-mysql script (Closes: #355958) + * Several vulnerabilities discovered by 'snake oil' Neo Security Team + (Closes: #355055) + http://somethingunpredictable.com/archives/01/03/2006/wordpress-vulnerabilities-bogus/ + * http://wordpress.org/development/2006/03/security-202/ + + -- Kai Hendry Mon, 13 Mar 2006 12:44:44 +0900 + +wordpress (2.0.1-1) unstable; urgency=low + + * New upstream release + * CSS Security Vulnerability (Closes: #328909) + * Please announce that upgrade.php needs to be run after update + (Closes: #348458) + + -- Kai Hendry Thu, 2 Feb 2006 11:22:31 +0900 + +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.1.2.orig/debian/setup-mysql +++ wordpress-2.1.2/debian/setup-mysql @@ -0,0 +1,162 @@ +#!/bin/bash -e + +usage() { +cat < $CONFIG_FILE << EOF + +EOF +# Security to address #363580 +chmod 640 /etc/wordpress/config* +chgrp www-data /etc/wordpress/config* +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 `echo $DOMAIN | sed 's/:[0-9]\+//'` || exit 1 +else + usage + exit 0 +fi + +CONFIG_FILE=/etc/wordpress/config-$DOMAIN.php + +if [ ! $NAME ] ; then +NAME=$(echo $DOMAIN | sed 's,\.,,g') +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.1.2.orig/debian/control +++ wordpress-2.1.2/debian/control @@ -0,0 +1,22 @@ +Source: wordpress +Section: web +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Kai Hendry +Standards-Version: 3.7.2 +Build-Depends: debhelper (>> 4) + +Package: wordpress +Architecture: all +Depends: apache2 | httpd, virtual-mysql-client, libapache2-mod-php5 | php5 | php5-cgi | libapache2-mod-php4 | php4 | php4-cgi, php5-mysql | php4-mysql +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.1.2.orig/debian/postrm +++ wordpress-2.1.2/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.1.2.orig/debian/copyright +++ wordpress-2.1.2/debian/copyright @@ -0,0 +1,69 @@ +This package was initially 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 and enhanced by Kai Hendry. + +It was downloaded from: http://wordpress.org/download/release-archive/ + +Upstream authors and contributors from http://wordpress.org/about/ and +examining the source code: + + * Matt Mullenweg + * Ryan Boren + * Michael Adams + * Robert Deaton + * David House + * Mark Jaquith + * Donncha O'Caoimh + * Andy Skelton + * Dougal Campbell + * Alex King + * Mike Little + * Michel Valdrighi + * Owen Winkler + * Michael Heilemann + * Matt Thomas + * Ulf Harnhammar + * Nico Kaiser + * Danilo Segan + * Moxiecode Systems AB (TinyMCE) + * Maarten Meijer + * Monte Ohrt + * The SquirrelMail Project Team + +For general inquiries, press requests, email Matt Mullenweg + +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'. + +The Debian packaging is copyrighted Kai Hendry and is licensed +also under the GPL. + + + +Wordpress includes the http://script.aculo.us/ javascript library which is +under a MIT License: + +Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --- wordpress-2.1.2.orig/debian/install +++ wordpress-2.1.2/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.1.2.orig/debian/compat +++ wordpress-2.1.2/debian/compat @@ -0,0 +1 @@ +4 --- wordpress-2.1.2.orig/debian/htaccess +++ wordpress-2.1.2/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.1.2.orig/debian/wp-config.php +++ wordpress-2.1.2/debian/wp-config.php @@ -0,0 +1,11 @@ + --- wordpress-2.1.2.orig/debian/dirs +++ wordpress-2.1.2/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +etc/wordpress --- wordpress-2.1.2.orig/debian/rules +++ wordpress-2.1.2/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=0 + +all: + +install: + dh_testdir + dh_testroot + chmod -R a-x,a+X wp-includes/ + dh_install -Xlicense.txt -Xlicense.html -XMIT-LICENSE + 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: +binary-arch: +binary-indep: --- wordpress-2.1.2.orig/debian/apache.conf +++ wordpress-2.1.2/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.1.2.orig/debian/README.debian +++ wordpress-2.1.2/debian/README.debian @@ -0,0 +1,31 @@ +#### 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