Package: drush Version: 3.0-rc1 Severity: wishlist Tags: patch Please update to the latest version available.
The patch is to be applied against the source code of the 3.0 version -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-ARCH (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..de158b6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,124 @@ +drush (3.0-rc1) unstable; urgency=low + + * 3.0 release : + - #723768: Various improvements to sql-sync and temp file handling + - #723742 by moshe weitzman. CVS package handler installs package in + duplicate subdirectories + - Add section about site aliases to README. Links to dman's doc at + http://drupal.org/node/670460. + - Add link to http://drupal.org/node/670460 from sitealias.inc + - #712098 by scor and grendzy. CVS package handler does not work in symlink + paths + - #724512 by scor. better fix for cvs.inc destination. + - #683844 by greg.1.anderson. db-su has no password passing feature? + - #729380 by jonhattan. notice fix in ws + - #726974 by ezraw. Table prefixing lost + - #725660 by hanoii and moshe weitzman. fix help on pm-list options. + - #722722 by anarcat. drush_prompt to prompt the user for arbitrary strings. + - #733970 by techlive. fix table prefixing on delete queries. + - #732602 by hanoii. drush enable won't enable 'disabled' modules on D5 + - #547902 by jonhattan, nelinz. tail the watchdog + - #733564 by jonhattan. theme_username in watchdog commands. + - #730788 by moshe weitzman. Improve response of drush dl when there is no + recommended release + - #691944 by chiddicks. Add --pipe support to updatecode + - Some work on site-update command which touched sql-sync as well. More to + do. + - #654682 by hanoii. --package: Package column and grouping for pm-list + - #725686 by hanoii. more pm-list improvements. multiple value filters. + - #733256: Aliases should be loaded from 'aliases.drushrc.php' file + - #670994: Improve site alias documentation + - #670994: rsync help should point to example.aliases.drushrc.php now + - #739844 by brad bulger: allow complete file name as parameter to + php-script command + - #740498: Put a guard around drush_conf_override + - #741560: Site alias command should not require bootstrap to drupal + configuration + - #740496 by dman. Drupal7 renamed WATCHDOG_EMERG to WATCHDOG_EMERGENCY + - #740448 by owen barton. tput errors when running 'drush' script in cron + - #743368 by alex_b: Warn about ['base_url'] when Drush falls back to + 'default' + - #434944: Allow minor upgrades of drupal core + - #738460 by tpfeiffer: Wrong parameter quoting for PostgreSQL + - More robust vget + - Remove stray hook command. Its in devel now. + - Fix a nasty bug where variables would go missing from . A recent commit by + Greg exposed a long standing bug. + - #737610: Inheritance for site aliases and relative aliases + - #751986 by scor. Fix drush_commandfile_list() documentation + - #751010 by brad bulger. variable-get (vget) doesn't show all variables + when no argument supplied + - #754226: Create an 'examples' directory + - #750722 drupal-project-rename is proper option name. + + -- Arthur Gautier <[email protected]> Mon, 29 Mar 2010 20:03:15 -0400 + +drush (2.0-6) unstable; urgency=low + + * put this back to GPL2+ after discussions with Drupal.org people + * update to standards 3.8.3: no change required + * fix subversion dependencies, push php depends up to Recommends + + -- Antoine Beaupré <[email protected]> Fri, 11 Sep 2009 22:47:11 +0200 + +drush (2.0-5) unstable; urgency=low + + * fix copyright notice to claim GPL-2 (and not GPL-2+) + * update to standards 3.8.2: put in php section + * backport a few fixes that have been committed to CVS after the 2.0 + release + - #500324 dman - fails to download install profile in proper + location. Incorrect path. + - #493456 by guidot. three tiny errors in drush help dl Examples + ... Also a text improvement. + - #503328 - fix drush cron due to drush shutdown exiting. register + exit helper in drush_shutdown. Thanks david goode + - #533496 ZoFreX - Drush does not like being invoked from a path that + contains spaces + + -- Antoine Beaupré <[email protected]> Wed, 29 Jul 2009 17:52:18 -0400 + +drush (2.0-5~koumbit50+1) stable; urgency=low + + * backport to lenny + + -- Antoine Beaupré <[email protected]> Wed, 29 Jul 2009 17:48:18 -0400 + +drush (2.0-4) unstable; urgency=low + + * fix paths in VCS fields + * add DM-Upload-Allowed field since I am a Debian Maintainer + * add VCS-* fields to debian/control file + + -- Antoine Beaupré <[email protected]> Tue, 14 Jul 2009 21:21:00 -0400 + +drush (2.0-4~koumbit50+1) stable; urgency=low + + * backport to lenny + * add VCS-* fields to debian/control file + + -- Antoine Beaupré <[email protected]> Wed, 17 Jun 2009 21:07:18 -0400 + +drush (2.0-3) unstable; urgency=low + + * use dh_prep instead of dh_clean to silence warnings on sid. this will + now fail to build on lenny. + * cleanup comments in watch and rules files + * update to standards 3.8.1 + + -- Antoine Beaupré <[email protected]> Sun, 14 Jun 2009 17:10:59 -0400 + +drush (2.0-2) unstable; urgency=medium + + * don't use the bash wrapper because it breaks in cron + + -- Antoine Beaupré <[email protected]> Sun, 14 Jun 2009 16:47:43 -0400 + +drush (2.0-1) unstable; urgency=low + + * Initial release (Closes: #532723) + * Write a manpage + * Includes the table.inc file from PEAR's Console_Table + + -- Antoine Beaupré <[email protected]> Thu, 11 Jun 2009 21:56:06 -0400 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..beb1dbc --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: drush +Section: php +Priority: optional +Maintainer: Antoine Beaupré <[email protected]> +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.3 +Homepage: http://drupal.org/project/drush +Vcs-git: git://git.koumbit.net/drupal/modules/drush +Vcs-browser: http://git.koumbit.net/?p=drupal/modules/drush + +Package: drush +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, php5-cli (>= 5.2) +Recommends: wget, php5-mysql | php5-pgsql +Suggests: cvs, subversion, mysql-client +Description: command line shell and Unix scripting interface for Drupal + drush is a command line shell and Unix scripting interface for Drupal, a + veritable Swiss Army knife designed to make life easier for those of us + who spend some of our working hours hacking away at the command prompt. + . + Drush core ships with lots of useful commands for interacting with code + like modules/themes/profiles. Similarly, it runs update.php, executes + sql queries and DB migrations, and misc utilities like run cron or clear + cache. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..409d0a8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,86 @@ +This package was debianized by Antoine Beaupré <[email protected]> on +Thu, 11 Jun 2009 21:40:53 -0400. + +It was downloaded from <http://drupal.org/project/drush> + +The includes/table.inc file was downloaded from +<http://pear.php.net/package/Console_Table>, version 1.1.3. + +Upstream Authors: + + Arto Bendiken <http://bendiken.net/> + Franz Heinzmann (frando) <http://unbiskant.org/> + Moshe Weitzman <http://drupal.org/moshe> + Richard Heyes <[email protected]> + Jan Schneider <[email protected]> + +Copyright: + 2006 Arto Bendiken + 2007 Franz Heinzmann + 2008 - 2009 Moshe Weitzman + + The includes/table.inc file is from the Console_Table PEAR package: + + 2002 - 2005 Richard Heyes + 2006 - 2008 Jan Schneider + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +Drush is a Drupal module, and as all Drupal.org hosted code, it is +GPL2+, according to the Drupal association: + +http://drupal.org/licensing/faq + +"Drupal and all contributed files hosted on Drupal.org are licensed +under the GNU General Public License, version 2 or later. That means you +are free to download, reuse, modify, and distribute any files hosted on +Drupal.org's CVS repository under the terms of either the GPL version 2 +or version 3, and to run Drupal in combination with any code with any +license that is compatible with either versions 2 or 3, such as the +Affero General Public License (AGPL) version 3." + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is (C) 2009, Antoine Beaupré <[email protected]> and +is licensed under the GPL, see above. + +The includes/table.inc comes from the Console_Table package and is +licensed under the BSD License (3 clause): + + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o The names of the authors may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/drush.1 b/debian/drush.1 new file mode 100644 index 0000000..08384ea --- /dev/null +++ b/debian/drush.1 @@ -0,0 +1,185 @@ +.\" Hey, EMACS: -*- nroff -*- +'\" t -*- coding: UTF-8 -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH DRUSH 1 "June 11, 2009" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp <n> insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +drush \- shell scripting interface for Drupal +.SH SYNOPSIS +.B drush +.RI [ options ] " command" ... +.SH DESCRIPTION +.PP +\fBdrush\fP is a veritable Swiss Army knife designed to make life +easier for those of us who spend some of our working hours hacking +away at the command prompt. +.PP +\fBDrush\fP core ships with lots of useful commands for interacting with +code like modules/themes/profiles. Similarly, it runs update.php, +executes sql queries and DB migrations, and misc utilities like run +cron or clear cache. +.SH OPTIONS +.TP +.BI \-r\ path ,\ \-\-root= path +Drupal root directory to use (default: current directory) +.TP +.BI \-l\ uri ,\ \-\-uri= uri +URI of the drupal site to use (only needed in multisite environments) +.TP +.BI \-v\ level ,\ \-\-verbose= level +Display extra information about the command. +.TP +.B \-q, \-\-quiet +Hide all output +.TP +.B \-d, \-\-debug +Display even more information, including internal messages. +.TP +.B \-y, \-\-yes +Assume 'yes' as answer to all prompts +.TP +.B \-s, \-\-simulate +Simulate all relevant actions (don't actually change the system) +.TP +.B \-i, \-\-include +A list of paths to search for drush commands +.TP +.BI \-c\ file ,\ \-\-config= file +Specify a config file to use. See +.IR example.drushrc.php +.TP +.BI \-u\ user ,\ \-\-user= user +Specify a user to login with. May be a name or a number. +.TP +.B \-b, \-\-backend +Hide all output and return structured data (internal use only). +.TP +.B \-p, \-\-pipe +Emit a compact representation of the command for scripting. +.PP +If you get tired of typing options all the time, you can add them to +your drush.php alias or create a drushrc.php file. These provide +additional options for your drush call. They provide great flexibility +for a multi-site installation, for example. See example.drushrc.php. +.SH COMMANDS +Drush is all based around "commands" that are usually defined in +various modules. This manual only lists the builtin commands shipped +with the Drush core, but other modules may extend this list. See the +.B help +command to see the up to date list. The list of available comands may +also vary based on the state of the Drupal accessed by +.B drush +(if it's installed, offline, working or not, which modules are +installed, etc). +.TP +.B help +Print the help message. Use --filter to limit command list to one +command file (e.g. --filter=pm). +.TP +.B cron +Run all cron hooks. +.TP +.B updatedb +Execute the update.php process from the command line +.TP +.B status +Provides a birds-eye view of the current Drupal installation, if any. +.TP +.B script +Run php script(s). +.TP +.B cache clear +Clear all caches. +.TP +.B watchdog show +Shows recent watchdog log messages. Optionally filter for a specific type. +.TP +.B watchdog delete +Delete all messages or only those of a specified type. +.TP +.B sync +Rsync the Drupal tree to/from another server using ssh. +.TP +.B eval +Evaluate arbitrary php code after bootstrapping Drupal. +.TP +.B enable +Enable one or more modules. +.TP +.B disable +Disable one or more modules. +.TP +.B uninstall +Uninstall one or more modules. +.TP +.B statusmodules +Show module enabled/disabled status +.TP +.B refresh +Refresh update status information +.TP +.B updatecode +Update your project code +.TP +.B update +Update your project code and apply any database updates required (update.php) +.TP +.B info +Release information for a project +.TP +.B dl +Download core Drupal and projects like CCK, Zen, etc. +.TP +.B test mail +Run all tests and mail the results to your team. +.TP +.B test clean +Delete leftover tables and files from prior test runs. +.TP +.B sql conf +Print database connection details. +.TP +.B sql connect +A string for connecting to the DB. +.TP +.B sql dump +Exports the Drupal DB as SQL using mysqldump. +.TP +.B sql query +Execute a query against the site database. +.TP +.B sql load +Copy source database to target database. +.TP +.B sql cli +Open a SQL command-line interface using Drupal's credentials. +.SH FILES +.IR /etc/drush/drushrc.php +.br +.I /usr/share/doc/drush/examples/example.drushrc.php +.SH SEE ALSO +.BR cvs (1), +.BR svn (1), +.BR wget (1). +.SH AUTHOR +Drush was originally developed by Arto for Drupal 4.7 (this alpha code +can still be found in the DRUPAL-4-7 branch). In May 2007, it was +partly rewritten and redesigned for Drupal 5 by frando. Since 2008, +the module has been maintained by Moshe Weitzman, Owen Barton and +Adrian Rossouw. +.PP +This manual page was written by Antoine Beaupré <[email protected]>, +for the Debian project (but may be used by others). diff --git a/debian/drush.dirs b/debian/drush.dirs new file mode 100644 index 0000000..e5700ce --- /dev/null +++ b/debian/drush.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/drush +etc/drush diff --git a/debian/drush.docs b/debian/drush.docs new file mode 100644 index 0000000..71dfd5b --- /dev/null +++ b/debian/drush.docs @@ -0,0 +1 @@ +README.txt diff --git a/debian/drush.examples b/debian/drush.examples new file mode 100644 index 0000000..1a20113 --- /dev/null +++ b/debian/drush.examples @@ -0,0 +1,2 @@ +examples/example.drush.inc +examples/example.drushrc.php diff --git a/debian/drush.manpages b/debian/drush.manpages new file mode 100644 index 0000000..10b3a4b --- /dev/null +++ b/debian/drush.manpages @@ -0,0 +1 @@ +debian/drush.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8c4e1d2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + cp -r $(CURDIR)/commands $(CURDIR)/includes $(CURDIR)/debian/drush/usr/share/drush + cp -r $(CURDIR)/drush.php $(CURDIR)/debian/drush/usr/share/drush/ + chmod a+x $(CURDIR)/debian/drush/usr/share/drush/drush.php + ln -s /usr/share/drush/drush.php $(CURDIR)/debian/drush/usr/bin/drush + + +# Build architecture-dependent files here. +binary-arch: build install +# Nothing to do here, we're Arch: all + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + +release: git-buildpackage + +MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog) +REV=$(shell env LANG=C git show --pretty=format:%h | head -1) +VERSION="${MAJOR}~git${REV}" +export VERSION +export MAJOR +DRUPAL_VERSION=$(shell sed -ne 's/^[^(]*(\([^)-]*\).*).*/\1/;s/\./-/;1p' debian/changelog ) + +build-snapshot: + @echo "building a package based on the current snapshot (${VERSION})" + svn update || true + svn export . ../alternc-${VERSION} + cd ../alternc-${VERSION} && sed -i -e '1s/)/~svn${REV})/' debian/changelog && debuild + +git-buildpackage: + git-buildpackage --git-debian-branch=debian --git-upstream-tag=DRUPAL-6--${DRUPAL_VERSION} diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..7dbbf09 --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +http://ftp.drupal.org/files/projects/drush-All-Versions-([0-9].*)\.tar\.gz

