debian/0000775000000000000000000000000012301065053007163 5ustar debian/postinst0000664000000000000000000000050112201721061010762 0ustar #! /bin/sh set -e case "$1" in configure) ucf /usr/share/php5-ssh2/ssh2.ini-dist /etc/php5/mods-available/ssh2.ini php5enmod ssh2 ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/copyright0000664000000000000000000000755411501032631011126 0ustar This package was debianized by Martin Meredith on Wed, 14 Jan 2009 13:55:00 +0000. It was downloaded from http://pecl.php.net/package/ssh2 Upstream Authors: Sara Golemon Mike Sullivan Copyright: Copyright (c) 1997-2009 The PHP Group License: -------------------------------------------------------------------- The PHP License, version 3.01 Copyright (c) 1999 - 2009 The PHP Group. 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 "PHP" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact group@php.net. 4. Products derived from this software may not be called "PHP", nor may "PHP" appear in their name, without prior written permission from group@php.net. You may indicate that your software works in conjunction with PHP by saying "Foo for PHP" instead of calling it "PHP Foo" or "phpfoo" 5. The PHP Group 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 the PHP Group. No one other than the PHP Group 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 PHP software, freely available from ". THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``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 many individuals on behalf of the PHP Group. The PHP Group can be contacted via Email at group@php.net. For more information on the PHP Group and the PHP project, please see . PHP includes the Zend Engine, freely available at . The Debian packaging is (C) 2008, Martin Meredith and is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. debian/dh_pecl50000775000000000000000000000644111501032631010576 0ustar #!/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 debian/rules0000775000000000000000000000247412201722721010253 0ustar #!/usr/bin/make -f CFLAGS = -Wall -g CFLAGS += -O0 configure: configure-stamp configure-stamp: dh_testdir cp -a ssh2-* build-php5 cd build-php5 && phpize5 cd build-php5 && ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --enable-ssh2 touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: 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_prep dh_installdirs cd build-php5 && \ $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/libssh2-php install chmod a+x debian/dh_pecl5 DH_AUTOSCRIPTDIR=debian/ debian/dh_pecl5 -plibssh2-php mkdir -p $(CURDIR)/debian/libssh2-php/usr/share/php5-ssh2/ echo "extension=ssh2.so" > $(CURDIR)/debian/libssh2-php/usr/share/php5-ssh2/ssh2.ini-dist binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installdebconf dh_installchangelogs 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 debian/source/0000775000000000000000000000000011706406334010474 5ustar debian/source/format0000664000000000000000000000001411501032751011671 0ustar 3.0 (quilt) debian/prerm0000664000000000000000000000133612201721010010225 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) php5dismod ssh2 ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/watch0000664000000000000000000000010311501032631010203 0ustar version=3 http://pecl.php.net/package/ssh2 /get/ssh2-(\d+.*).tgz debian/changelog0000664000000000000000000000323012301065053011033 0ustar php-ssh2 (0.12-1build1) trusty; urgency=medium * No change rebuild for phpapi-20121212+lfs (LFS ABI break on 32-bit arches). -- Robie Basak Wed, 19 Feb 2014 08:24:11 +0000 php-ssh2 (0.12-1) unstable; urgency=low * New upstream release * Switch conffile to /etc/php5/mods-available and use php5enmod and php5dismod (Closes: #667782) -- Lior Kaplan Sun, 11 Aug 2013 11:52:03 +0200 php-ssh2 (0.11.3-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release - Has PHP 5.4 support (Closes: #656487) - Add a patch to fix reported version from 0.11.3-dev to 0.11.3 * Fix lintian warning duplicate-changelog-files -- Lior Kaplan Sat, 21 Jan 2012 02:45:49 +0200 php-ssh2 (0.11.2-1) unstable; urgency=low * New upstream release * Switch to dpkg-source 3.0 (quilt) format -- Martin Meredith Sun, 12 Dec 2010 02:39:37 +0000 php-ssh2 (0.11.0-2.1) unstable; urgency=low * Non-maintainer upload. * Remove extra 'static' keyword (Closes: #569377) -- Raphael Geissert Wed, 24 Feb 2010 01:48:37 -0600 php-ssh2 (0.11.0-2) unstable; urgency=low * Updated rules to change dh_clean -k to dh_prep * Added Version number to GPL file link in copyright * Fixed issue with dh_pecl being called against wrong package name (Closes: #531011) -- Martin Meredith Sun, 12 Apr 2009 17:36:16 +0100 php-ssh2 (0.11.0-1) unstable; urgency=low * Initial release (Closes: #511444, #447487) -- Martin Meredith Wed, 14 Jan 2009 13:55:00 +0000 debian/postrm0000664000000000000000000000033012201721031010420 0ustar #! /bin/sh set -e if test "$1" = "purge"; then if which ucf >/dev/null 2>&1; then ucf --purge /etc/php5/mods-available/ssh2.ini fi rm -f /etc/php5/mods-available/ssh2.ini fi #DEBHELPER# exit 0 debian/control0000664000000000000000000000076112201727263010601 0ustar Source: php-ssh2 Section: devel Priority: extra Maintainer: Martin Meredith Uploaders: Lior Kaplan Build-Depends: debhelper (>= 7), php5-dev, libssh2-1-dev, libtool Standards-Version: 3.9.4 Homepage: http://pecl.php.net/package/ssh2 Package: libssh2-php Architecture: any Depends: ucf, ${shlibs:Depends}, ${misc:Depends}, ${php:Depends} Description: PHP Bindings for libssh2 Provides bindings to the functions of libssh2 which implements the SSH2 protocol. debian/patches/0000775000000000000000000000000012201721012010603 5ustar debian/patches/series0000664000000000000000000000000012201677527012033 0ustar debian/compat0000664000000000000000000000000211501032631010356 0ustar 7