debian/0000775000000000000000000000000012301064551007165 5ustar debian/lintian0000664000000000000000000000005611555365631010564 0ustar libexpect-php5: binary-or-shlib-defines-rpath debian/copyright0000664000000000000000000000753511371110630011126 0ustar This package was debianized by Alex Denvir on Fri, 07 May 2010 18:48:55 +0100. It was downloaded from http://pecl.php.net/package/expect Upstream Author: Michael Spector Copyright: Copyright (c) 1997-2004 The PHP Group License: -------------------------------------------------------------------- The PHP License, version 3.01 Copyright (c) 1999 - 2010 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 Copyright (C) 2009-2010, Alex Denvir and is licensed under the GPL Version 3, see `/usr/share/common-licenses/GPL-3'. debian/dh_pecl50000775000000000000000000000644111371103331010577 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 php5-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/php5/Zend/zend_modules.h | sed 's/#define ZEND_MODULE_API_NO //'`; chomp($zendapiver); $phpapiver = `grep \'#define PHP_API_VERSION \' /usr/include/php5/main/php.h | sed 's/#define PHP_API_VERSION //'`; chomp($phpapiver); if ($zendapiver eq "") { die "Could not determine Zend API version. Is php5-dev installed?\n"; } if ($phpapiver eq "") { die "Could not determine PHP API version. Is php5-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/rules0000775000000000000000000000265211716543116010262 0ustar #!/usr/bin/make -f CFLAGS = -Wall -g CFLAGS += -O0 configure: configure-stamp configure-stamp: dh_testdir cp -a expect-* build-php5 cd build-php5 && phpize5 cd build-php5 && ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --disable-rpath 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/libexpect-php5 install chmod a+x debian/dh_pecl5 DH_AUTOSCRIPTDIR=debian/ debian/dh_pecl5 -plibexpect-php5 echo "extension=expect.so" > $(CURDIR)/debian/libexpect-php5/usr/share/php5-expect/expect.ini-dist install -o root -g root -m 0644 $(CURDIR)/debian/lintian $(CURDIR)/debian/libexpect-php5/usr/share/lintian/overrides/libexpect-php5 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 debian/source/0000775000000000000000000000000011716554534010503 5ustar debian/source/format0000664000000000000000000000001411371113766011704 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000013411371051207010214 0ustar version=3 http://pecl.php.net/package/expect \ /get/expect-([\d\.]*).tgz debian uupdate debian/changelog0000664000000000000000000000247512301064551011047 0ustar libexpect-php5 (0.3.1-1build3) trusty; urgency=medium * No change rebuild for phpapi-20121212+lfs (LFS ABI break on 32-bit arches). -- Robie Basak Wed, 19 Feb 2014 08:20:57 +0000 libexpect-php5 (0.3.1-1build2) saucy; urgency=low * Rebuild for PHP 5.5. -- Colin Watson Tue, 16 Jul 2013 01:17:40 +0100 libexpect-php5 (0.3.1-1build1) quantal; urgency=low * No-change rebuild for phpapi change -- Ilya Barygin Sat, 30 Jun 2012 13:03:07 +0400 libexpect-php5 (0.3.1-1) unstable; urgency=low * New upstream release -- Alex Denvir Tue, 14 Feb 2012 20:24:02 +0000 libexpect-php5 (0.2.9-1) unstable; urgency=low [ Alex Denvir ] * New upstream release * Bumped Standards Version * Altered long description (Closes: #585872) [ Martin Meredith ] * Fixed issue with postrm referencing ssh2 * Changed Lintian override for tag only - not specific info * Changed post* scripts to use set -e instead of /bin/sh -e -- Alex Denvir Mon, 25 Apr 2011 22:27:55 +0100 libexpect-php5 (0.2.6-1) unstable; urgency=low * Initial Release. (Closes: #580715) * Added Lintian Override for rpath issue with PHP -- Alex Denvir Fri, 07 May 2010 18:48:55 +0100 debian/libexpect-php5.postrm0000664000000000000000000000031411555366412013275 0ustar #!/bin/sh set -e if test "$1" = "purge"; then if which ucf >/dev/null 2>&1; then ucf --purge /etc/php5/conf.d/expect.ini fi rm -f /etc/php5/conf.d/expect.ini fi #DEBHELPER# exit 0 debian/control0000664000000000000000000000067111716542046010605 0ustar Source: libexpect-php5 Section: web Priority: optional Maintainer: Alex Denvir Build-Depends: debhelper (>= 7), php5-dev, expect-dev Standards-Version: 3.9.2 Homepage: http://pecl.php.net/expect Package: libexpect-php5 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ucf Description: expect module for PHP 5 This extension allows PHP to interact with processes through PTY, using expect library. debian/compat0000664000000000000000000000000211371051207010363 0ustar 7 debian/libexpect-php5.postinst0000664000000000000000000000023011555366270013633 0ustar #!/bin/sh set -e if test "$1" = "configure"; then ucf /usr/share/php5-expect/expect.ini-dist /etc/php5/conf.d/expect.ini fi #DEBHELPER# exit 0 debian/libexpect-php5.dirs0000664000000000000000000000007711371126667012722 0ustar usr/lib/php5 usr/share/php5-expect usr/share/lintian/overrides