debian/0000775000000000000000000000000012306427605007175 5ustar debian/watch0000664000000000000000000000013012261256010010206 0ustar version=3 http://pecl.php.net/package/sasl \ /get/sasl-([\d\.]*).tgz debian uupdate debian/php50000664000000000000000000000002412261256010007756 0ustar mod debian/sasl.ini debian/source/0000775000000000000000000000000012261256010010463 5ustar debian/source/format0000664000000000000000000000001412261256010011671 0ustar 3.0 (quilt) debian/control0000664000000000000000000000146612261256010010575 0ustar Source: php-sasl Section: php Priority: optional Maintainer: Debian PHP PECL Maintainers Uploaders: Prach Pongpanich Build-Depends: debhelper (>= 9), dh-php5, libsasl2-dev, php5-dev, pkg-php-tools (>= 1.6~) Standards-Version: 3.9.5 Homepage: http://pecl.php.net/package/sasl Vcs-Git: git://anonscm.debian.org/pkg-php/php-sasl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-sasl.git Package: php5-sasl Architecture: any Depends: ${misc:Depends}, ${php:Depends}, ${phppear:Debian-Depends}, ${shlibs:Depends} Recommends: ${misc:Recommends}, ${phppear:Debian-Recommends} Breaks: ${phppear:Debian-Breaks} Description: ${phppear:summary} ${phppear:description} debian/patches/0000775000000000000000000000000012261256010010612 5ustar debian/patches/0001-Fix-Check-for-libsasl-in-the-multiarch-path.patch0000664000000000000000000000141112261256010022264 0ustar From: gregor herrmann Date: Wed, 14 Sep 2011 17:41:51 +0200 Subject: Fix "Check for libsasl in the multiarch path" Add patch from Ubuntu / Steve Langasek Bug-Debian: http://bugs.debian.org/638053 --- sasl-0.1.0/config.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sasl-0.1.0/config.m4 b/sasl-0.1.0/config.m4 index bc41856..89e9479 100755 --- a/sasl-0.1.0/config.m4 +++ b/sasl-0.1.0/config.m4 @@ -31,7 +31,7 @@ if test "$PHP_SASL" != "no"; then AC_MSG_CHECKING(for SASL library in $SASL_DIR/lib) for i in $SEARCH_LIBS; do - if test -r $SASL_DIR/lib/lib$i.a; then + if test -r $SASL_DIR/lib/lib$i.a || test -r $SASL_DIR/lib/$DEB_HOST_MULTIARCH/lib$i.a; then SASL_LIB=$i AC_MSG_RESULT(found -l$i) fi debian/patches/0002-Support-PHP-5.4.patch0000664000000000000000000000117712261256010014625 0ustar From: Lior Kaplan Date: Sat, 21 Jan 2012 16:45:21 +0200 Subject: Support PHP 5.4 Bug-Debian: http://bugs.debian.org/656489 --- sasl-0.1.0/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sasl-0.1.0/sasl.c b/sasl-0.1.0/sasl.c index f04730b..941a435 100644 --- a/sasl-0.1.0/sasl.c +++ b/sasl-0.1.0/sasl.c @@ -67,7 +67,7 @@ static void php_sasl_destroy_conn(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ sasl_functions[] */ -function_entry sasl_functions[] = { +zend_function_entry sasl_functions[] = { /* Common Functions */ PHP_FE(sasl_version, NULL) PHP_FE(sasl_errstring, NULL) debian/patches/series0000664000000000000000000000012212261256010012022 0ustar 0001-Fix-Check-for-libsasl-in-the-multiarch-path.patch 0002-Support-PHP-5.4.patch debian/compat0000664000000000000000000000000212261256010010361 0ustar 9 debian/copyright0000664000000000000000000000550712261256010011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: PECL::Package::sasl Upstream-Contact: Jon Parise Source: http://pecl.php.net/package/sasl Files: * Copyright: 1997-2004, The PHP Group License: PHP-3.01 License: PHP-3.01 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. debian/changelog0000664000000000000000000000352612306427605011055 0ustar php-sasl (0.1.0-3build2) trusty; urgency=medium * No-change rebuild to generate correct description in dbgsym packages -- Iain Lane Fri, 07 Mar 2014 20:43:49 +0000 php-sasl (0.1.0-3build1) 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:04 +0000 php-sasl (0.1.0-3) unstable; urgency=low * Set Maintainer to Debian PHP PECL Maintainers * Add myself as Uploaders (Closes: #680183) * Thanks to David Prévot for QA uploaded -- Prach Pongpanich Thu, 26 Dec 2013 15:21:22 +0700 php-sasl (0.1.0-2) unstable; urgency=low * QA Upload * Switch section to php * Orphan the package, as documented in #680183 * Switch to pkg-php-tools and dh-sequencer (Closes: #667781) * Bump standards version to 3.9.5 * Declare Homepage and Vcs- * Convert copyright to format 1.0 * Convert to format 3.0 (quilt) * Set Uploaders to Debian PHP PECL Maintainers -- David Prévot Fri, 01 Nov 2013 12:16:34 -0400 php-sasl (0.1.0-1.2) unstable; urgency=low * Non-maintainer upload. * Support PHP 5.4 (Closes: #656489) * Add dependency of dh-make-php to generate changelog -- Lior Kaplan Sat, 21 Jan 2012 16:45:21 +0200 php-sasl (0.1.0-1.1) unstable; urgency=low * Non-maintainer upload. * Fix "Check for libsasl in the multiarch path": add patch (sasl-0.1.0/config.m4, debian/rules) from Ubuntu / Steve Langasek. Explicitly build-depend on dpkg-dev (>= 1.16.0). Closes: #638053 LP: #826601 -- gregor herrmann Wed, 14 Sep 2011 17:41:51 +0200 php-sasl (0.1.0-1) unstable; urgency=low * Initial release - Closes: #434132 -- Jack Bates Thu, 29 Dec 2005 16:17:36 -0800 debian/sasl.ini0000664000000000000000000000002212261256010010620 0ustar extension=sasl.so debian/README.Debian0000664000000000000000000000546712261256010011240 0ustar php-sasl for Debian -------------------------- This extension is particularly useful in conjunction with Apache mod_auth_kerb. mod_auth_kerb can proxy Kerberos credentials to the server with SPNEGO HTTP authentication. This SASL PHP extension can then use these credentials to authenticate to servers with GSSAPI, without requiring the user to re-enter their password. A patch is available for SquirrelMail to use this SASL PHP extension to authenticate to IMAP and SMTP servers with GSSAPI, instead of with the user's plaintext username and password: http://cgi.sfu.ca/~jdbates/tmp/squirrelmail/200601050/patch This single sign on authentication has advantages for users, since they need only enter their password once: when they login to a workstation. It also has security advantages, since SquirrelMail authenticates to IMAP and SMTP servers with the identity of the user sending or receiving mail, without ever knowing the user's password. The following is a simple example of using this extension as a client to authenticate to a server. See /usr/share/doc/cyrus-sasl2-doc/programming.html for more information: /* Check for the SASL extension */ if (!extension_loaded('sasl')) { exit; } /* Initialize the client (done once) */ if (!sasl_client_init()) { exit; } /* * Get server's FQDN by resolving the hostname to address, then resolving the * address to FQDN. gethostname still returns an address when called on an * address, so it still works if the server address is not a hostname. */ $fqdn = gethostbyaddr(gethostbyname($hostname)); /* Make new SASL connection (done for each network connection) */ if (!$conn = sasl_client_new($service, $fqdn)) { exit; } /* * Get the list of SASL mechanisms supported by the server. This is usually * done with a capability command. Format the list as a string separated by * spaces. Feed this string into SASL to begin the authentication process. */ $mechlist = implode(' ', $capability['AUTH']); /* Get the mechanism the client will use and the initial SASL request */ if (!sasl_client_start($conn, $mechlist, &$out, &$mechusing)) { exit; } /* Send SASL request */ if (!fwrite($handle, $mechusing . base64_encode($out), 4096)) { exit; } /* Get SASL response */ if (!fread($handle, $in, 4096)) { exit; } /* * Convert the continuation data to binary format (for example, this may * include base64 decoding it). Perform another step in the authentication. */ do { $result = sasl_client_step($conn, base64_decode($in), &$out); /* Send SASL request */ if (!fwrite($handle, $mechusing . base64_encode($out), 4096)) { exit; } /* Get SASL response */ if (!fread($handle, $in, 4096)) { exit; } } while ($result == SASL_CONTINUE); /* Check that authentication succeeded */ if ($result != SASL_OK) { exit; } -- Jack Bates , Thu, 29 Dec 2005 16:17:36 -0800 debian/rules0000775000000000000000000000031512261256010010242 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=phppear --with phppear --with php5 override_dh_auto_configure: dh_auto_configure -O--buildsystem=phppear sed -i '/ role="doc"/d;/ role="test"/d' */package.xml