--- xdebug-2.0.5.orig/debian/rules +++ xdebug-2.0.5/debian/rules @@ -0,0 +1,70 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall -g + +CFLAGS += -O0 + +configure: configure-stamp +configure-stamp: + dh_testdir + + cp -a xdebug-* build-php5 + cd build-php5 && phpize5 + cd build-php5 && ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --enable-xdebug + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + cd build-php5 && $(MAKE) CFLAGS="$(CFLAGS)" + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + rm -rf build-php5 + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cd build-php5 && \ + $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/php5-xdebug install + chmod a+x debian/dh_pecl5 + DH_AUTOSCRIPTDIR=debian/ debian/dh_pecl5 -pphp5-xdebug + mkdir -p $(CURDIR)/debian/php5-xdebug/usr/share/php5-xdebug/ + echo "zend_extension=$(shell /usr/bin/php-config5 --extension-dir)/xdebug.so" > $(CURDIR)/debian/php5-xdebug/usr/share/php5-xdebug/xdebug.ini-dist + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdebconf + dh_installchangelogs debian/changelog + dh_installdocs + dh_installexamples + dh_install + 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 --- xdebug-2.0.5.orig/debian/watch +++ xdebug-2.0.5/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.xdebug.org/download.php files/xdebug-([0-9\.]+).tgz --- xdebug-2.0.5.orig/debian/copyright +++ xdebug-2.0.5/debian/copyright @@ -0,0 +1,167 @@ +This package was debianized by Marcelo Jorge Vieira (metal) on +Mon, 24 Dec 2007 15:32:08 -0200. + +It was downloaded from + +Copyright: + + Copyright (c) 2002-2007, Derick Rethans + + For file xdebug_llist.h: + + Copyright (C) 2002, Sterling Hughes + Daniel R. Kalowsky + + For file xdebug_llist.c and xdebug_hash.c: + + Copyright (C) 2002, Sterling Hughes + + For file xdebug_compat.c: + + Copyright (c) 2002-2008 Derick Rethans + (c) 1997-2004 Jim Winstead + (c) 1998-2004 Andi Gutmans and + Zeev Suraski + + +License: + + -------------------------------------------------------------------- + The Xdebug License, version 1.01 + (Based on "The PHP License", version 3.0) + Copyright (c) 2002-2007 Derick Rethans. All rights reserved. + -------------------------------------------------------------------- + + Redistribution and use in source and binary forms, with or without + modification, is permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. 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. + + 3. The name "Xdebug" must not be used to endorse or promote products + derived from this software without prior written permission. For + written permission, please contact derick@xdebug.org. + + 4. Products derived from this software may not be called "Xdebug", nor + may "Xdebug" appear in their name, without prior written permission + from derick@xdebug.org. + + 5. Derick Rethans may publish revised and/or new versions of the + license from time to time. Each version will be given a + distinguishing version number. Once covered code has been + published under a particular version of the license, you may + always continue to use it under the terms of that version. You + may also choose to use such covered code under the terms of any + subsequent version of the license published by Derick Rethans. No + one other than Derick Rethans has the right to modify the terms + applicable to covered code created under this License. + + 6. Redistributions of any form whatsoever must retain the following + acknowledgment: "This product includes Xdebug, freely available + from ". + + THIS SOFTWARE IS PROVIDED BY DERICK RETHANS ``AS IS'' AND ANY + EXPRESSED 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 PHP DEVELOPMENT TEAM OR + ITS 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. + + -------------------------------------------------------------------- + + This software consists of voluntary contributions made by some + individuals on behalf of Derick Rethans. + + Derick Rethans can be contacted via e-mail at derick@xdebug.org. + + For more information Xdebug, please see . + + +The files xdebug_hash.h, xdebug_hash.c, xdebug_llist.c, xdebug_llist.h +are licensed under the following conditions: + + Vulcan Logic Public Licence + (Based upon the Apache Software License) + + Version 1.1 + Copyright (c) 2002 Vulcan Logic. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. 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. + + 3. The end-user documentation included with the redistribution, if any, must + include the following acknowledgment: + + "This product includes software developed by Vulcan Logic + (http://www.vl-srm.net/)." + + Alternately, this acknowledgment may appear in the software itself, + if and wherever such third-party acknowledgments normally appear. + + 4. The names "Vulcan Logic" and "SRM" must not be used to endorse or promote + products derived from this software without prior written permission. + For written permission, please contact group@vl-srm.net. + + 5. Products derived from this software may not be called "SRM", nor may + "SRM" appear in their name, without prior written permission of the + Vulcan Logic Group. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED 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 + APACHE SOFTWARE FOUNDATION OR ITS 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. + + +The file xdebug_compat.c is licensed under the following conditions: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. 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. + + 3. The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. --- xdebug-2.0.5.orig/debian/control +++ xdebug-2.0.5/debian/control @@ -0,0 +1,31 @@ +Source: xdebug +Section: devel +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Martin Meredith +Uploaders: Martin Meredith +Build-Depends: debhelper (>= 6), php5-dev (>= 5.1) +Standards-Version: 3.8.2 +Homepage: http://xdebug.org/ +Vcs-bzr: sftp://bzr.debian.org/bzr/collab-maint/xdebug + +Package: php5-xdebug +Architecture: any +Depends: ucf, ${shlibs:Depends}, ${misc:Depends}, ${php:Depends} +Description: Xdebug Module for PHP 5 + The Xdebug extension helps you debugging your script by providing a lot of + valuable debug information. The debug information that Xdebug can provide + includes the following: + . + * stack traces and function traces in error messages with: + - full parameter display for user defined functions + - function name, file name and line indications + - support for member functions + * memory allocation + * protection for infinite recursions + . + Xdebug also provides: + . + * profiling information for PHP scripts + * script execution analysis + * capabilities to debug your scripts interactively with a debug client --- xdebug-2.0.5.orig/debian/source.lintian-overrides +++ xdebug-2.0.5/debian/source.lintian-overrides @@ -0,0 +1,4 @@ +# We don't build the debugclient (yet) so we don't need to update these. +xdebug source: outdated-autotools-helper-file xdebug-2.0.4/debugclient/config.guess 2001-09-04 +xdebug source: outdated-autotools-helper-file xdebug-2.0.4/debugclient/config.sub 2001-09-07 +xdebug source: ancient-libtool xdebug-2.0.4/debugclient/ltmain.sh 1.4.2 --- xdebug-2.0.5.orig/debian/changelog +++ xdebug-2.0.5/debian/changelog @@ -0,0 +1,36 @@ +xdebug (2.0.5-1ubuntu1) lucid; urgency=low + + * Rebuilt for PHP 5.3. + + -- Chuck Short Wed, 03 Mar 2010 21:12:12 -0500 + +xdebug (2.0.5-1) unstable; urgency=low + + * New upstream release + * Bumped Standards Version + + -- Martin Meredith Mon, 27 Jul 2009 21:27:36 +0100 + +xdebug (2.0.4-2) unstable; urgency=low + + * Fix broken watch file (which somehow went missing from the previous upload) + + -- Martin Meredith Mon, 12 Jan 2009 00:44:43 +0000 + +xdebug (2.0.4-1) unstable; urgency=low + + * New upstream release + * Fixed watch file for new download location + * Removed Uploader (have never had any contact from him) + * Changed Maintainer (for new Debian Address) + * Updated Standards Version + * Changed php5-dev depends (can build with 5.1 or greater) + + -- Martin Meredith Wed, 07 Jan 2009 19:48:57 +0000 + +xdebug (2.0.3-1) unstable; urgency=low + + * Initial release (Closes: #377348) + + -- Martin Meredith Tue, 08 Apr 2008 15:25:16 +0100 + --- xdebug-2.0.5.orig/debian/php5-xdebug.postinst +++ xdebug-2.0.5/debian/php5-xdebug.postinst @@ -0,0 +1,9 @@ +#! /bin/sh -e + +if test "$1" = "configure"; then + ucf /usr/share/php5-xdebug/xdebug.ini-dist /etc/php5/conf.d/xdebug.ini +fi + +#DEBHELPER# + +exit 0 --- xdebug-2.0.5.orig/debian/compat +++ xdebug-2.0.5/debian/compat @@ -0,0 +1 @@ +6 --- xdebug-2.0.5.orig/debian/php5-xdebug.postrm +++ xdebug-2.0.5/debian/php5-xdebug.postrm @@ -0,0 +1,12 @@ +#! /bin/sh -e + +if test "$1" = "purge"; then + if which ucf >/dev/null 2>&1; then + ucf --purge /etc/php5/conf.d/xdebug.ini + fi + rm -f /etc/php5/conf.d/xdebug.ini +fi + +#DEBHELPER# + +exit 0 --- xdebug-2.0.5.orig/debian/dh_pecl5 +++ xdebug-2.0.5/debian/dh_pecl5 @@ -0,0 +1,145 @@ +#!/usr/bin/perl -w + +=head1 NAME + +dh_pecl - calculate zendapi dependencies and adds postinst and prerm scripts + +=cut + +use strict; +use File::Find; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [S>] [B<-n>] [I] + +=head1 DESCRIPTION + +dh_pecl is a debhelper program that is responsible for generating +${misc:Depends} substitutions and adding them to substvars files. It +will also add a postinst and a prerm script if required. + +The program will look at any PECL modules in your package, and +will use this information to generate a dependency on a specific version of +the Zend API, and install the module into the right place. +The dependency will be substituted into your +package's control file wherever you place the token "${misc:Depends}". + +If you use this program, your package should build-depend on php4-dev. + +=head1 OPTIONS + +=over 4 + +=item I + +A list of modules, relative to the build root directory, that you want to +install into the PHP modules directory. + +=item B<-n>, B<--noscripts> + +Do not modify postinst/postrm scripts. + +=back + +=head1 CONFORMS TO + +Debian policy, version 3.6.1 + +=cut + +# Dh_Lib initialiser +init(); + +# Determine the current phpapi version. We need to support the new (php +# 4.4.0 and later) method, as well as the older, hackier method. + +my $phpapiver = `php-config5 --phpapi`; +my $apivirtpkgs; + +if ($phpapiver =~ /^Usage:/) +{ + # php-config obviously doesn't support --phpapi yet, so we'll just + # go and work the answers out for ourselves. + + # The current Zend API version + my $zendapiver = `grep \'#define ZEND_MODULE_API_NO \' /usr/include/php4/Zend/zend_modules.h | sed 's/#define ZEND_MODULE_API_NO //'`; + chomp($zendapiver); + $phpapiver = `grep \'#define PHP_API_VERSION \' /usr/include/php4/main/php.h | sed 's/#define PHP_API_VERSION //'`; + chomp($phpapiver); + + if ($zendapiver eq "") + { + die "Could not determine Zend API version. Is php4-dev installed?\n"; + } + + if ($phpapiver eq "") + { + die "Could not determine PHP API version. Is php4-dev installed?\n"; + } + + $apivirtpkgs = "phpapi-$phpapiver | zendapi-$zendapiver"; +} +else +{ + # Yay for the new method! + chomp($phpapiver); + + $apivirtpkgs = "phpapi-$phpapiver"; +} + +chomp(my $moduledir = `/usr/bin/php-config5 --extension-dir`); + +foreach my $package (@{$dh{DOPACKAGES}}) +{ + my $tmp = tmpdir($package); + my $mfile = pkgfile($package, "pecl"); + + my @modules = []; + if ($mfile) + { + @modules = filearray($mfile, "."); + } + else + { + @modules = @ARGV; + } + + if (@modules) + { + # Create me a module directory + doit("install", "-g", 0, "-o", 0, "-d", "$tmp/$moduledir"); + + foreach my $mod (@modules) + { + doit("install", "-g", 0, "-o", 0, $mod, "$tmp/$moduledir"); + chmod 0644, "$tmp/$moduledir/$mod"; + my $modbase = `basename $mod`; + chomp($modbase); + + # debhelper script snippets, once per module because we have + # to add and/or remove each module separately + my $subst = "s/#PECLMOD#/$modbase/"; + autoscript($package, "postinst", "postinst-pecl", $subst); + autoscript($package, "prerm", "prerm-pecl", $subst); + } + } + + # Add the Zend API dependency + addsubstvar($package, "misc:Depends", $apivirtpkgs); +} + +=head1 SEE ALSO + +L + +This program is a part of debhelper. + +=head1 AUTHOR + +Matthew Palmer + +Based on dh_python by Josselin Mouette + +=cut