debian/0000775000000000000000000000000012301064745007172 5ustar debian/php5-memcached.prerm0000664000000000000000000000037212263211343013016 0ustar #!/bin/sh set -e dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/memcached.ini \ /etc/php5/mods-available/memcached.ini 2.0.1-3 -- "$@" rm -f /etc/php5/conf.d/memcached.ini [ "$1" = "remove" ] && php5dismod memcached #DEBHELPER# exit 0 debian/php5-memcached.preinst0000664000000000000000000000117012263211343013352 0ustar #! /bin/sh set -e case "$1" in install|upgrade) if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.0.2-3 then ucf --purge /etc/php5/conf.d/memcached.ini fi if test -e /etc/php5/conf.d/memcached.ini then sed s/^\;extension/extension/ -i /etc/php5/conf.d/memcached.ini dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/memcached.ini \ /etc/php5/mods-available/memcached.ini 2.0.1-3 -- "$@" rm -f /etc/php5/conf.d/memcached.ini fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/php5-memcached.docs0000664000000000000000000000003412263211343012614 0ustar memcached-*/README.markdown debian/copyright0000664000000000000000000000677112263211343011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: memcached Upstream-Contact: Andrei Zmievski Source: http://pecl.php.net/package/memcached/ Files: * Copyright: 1997-2009, The PHP Group License: PHP-3.0.1 This software is subject to version 3.01 of the PHP license, as shown below. . -------------------------------------------------------------------- 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. . -------------------------------------------------------------------- Files: debian/* Copyright: 2009-2010, Ivan Borzenkov 2011-2012, Sergey B Kirpichev License: GPL-2+ On Debian GNU/Linux systems, the complete text of the GNU General Public License (GPL) version 2 can be found at /usr/share/common-licenses/GPL-2. debian/php5-memcached.lintian-overrides0000664000000000000000000000030512263211343015323 0ustar # This false alarm is due to GCC 4.7 -O2 optimisation (unprotected: # memset, memcpy), see: http://bugs.debian.org/673112 php5-memcached: hardening-no-fortify-functions usr/lib/php*/*/memcached.so debian/php5-memcached.postinst0000664000000000000000000000037412263211343013556 0ustar #!/bin/sh set -e dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/memcached.ini \ /etc/php5/mods-available/memcached.ini 2.0.1-3 -- "$@" rm -f /etc/php5/conf.d/memcached.ini [ "$1" = "configure" ] && php5enmod memcached #DEBHELPER# exit 0 debian/rules0000775000000000000000000000011712263211343010244 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=phppear --with phppear --with php5 debian/memcached.ini0000664000000000000000000000010612263211343011571 0ustar ; uncomment the next line to enable the module extension=memcached.so debian/source/0000775000000000000000000000000012263211343010465 5ustar debian/source/format0000664000000000000000000000001412263211343011673 0ustar 3.0 (quilt) debian/php5-memcached.install0000664000000000000000000000005512263211343013335 0ustar debian/memcached.ini etc/php5/mods-available debian/watch0000664000000000000000000000011512263211343010213 0ustar version=3 http://pecl.php.net/package/memcached /get/memcached-([\d.]+)\.tgz debian/changelog0000664000000000000000000001204612301064745011047 0ustar php-memcached (2.1.0-6build1) trusty; urgency=medium * No change rebuild for phpapi-20121212+lfs (LFS ABI break on 32-bit arches). -- Robie Basak Wed, 19 Feb 2014 08:23:01 +0000 php-memcached (2.1.0-6) unstable; urgency=low * Move the package under the PHP PECL team umbrella * Bump up Standards-Version (to 3.9.5) -- Sergey B Kirpichev Wed, 08 Jan 2014 12:56:51 +0400 php-memcached (2.1.0-5) unstable; urgency=low * Correct changelog * Fix lintian error: vcs-field-not-canonical * Add --with php5 to fix lintian W: missing-pkg-php-tools-addon * Add dh-php5 deps * Add Breaks: header to debian/control -- Sergey B Kirpichev Thu, 07 Nov 2013 17:03:00 +0400 php-memcached (2.1.0-4) unstable; urgency=low * Use pkg-php-tools to build package -- Sergey B Kirpichev Sun, 06 Oct 2013 16:56:20 +0400 php-memcached (2.1.0-3) unstable; urgency=low * Update 00_fix_symbols.patch from upstream commit * Drop DMUA, fix lintian warning * Bump up Standards-Version (to 3.9.4) -- Sergey B Kirpichev Wed, 19 Dec 2012 12:43:04 +0400 php-memcached (2.1.0-2) unstable; urgency=low * Update libmemcached build-deps for 2.1.0 * Fix unresolvable symbols for libmemcached < 1.0.10 (Closes: #684949, thanks to Gleb Golubitsky) -- Sergey B Kirpichev Wed, 15 Aug 2012 12:39:54 +0400 php-memcached (2.1.0-1) unstable; urgency=low * Imported Upstream version 2.1.0 -- Sergey B Kirpichev Fri, 10 Aug 2012 15:40:04 +0400 php-memcached (2.0.1-6) unstable; urgency=low * Add override for hardening-no-fortify-functions * Add VCS-* fields -- Sergey B Kirpichev Fri, 15 Jun 2012 17:33:29 +0400 php-memcached (2.0.1-5) unstable; urgency=low * Fix lintian warning (build-depends-on-1-revision) * Change dh compat to 9, enable hardening support -- Sergey B Kirpichev Fri, 01 Jun 2012 16:50:14 +0400 php-memcached (2.0.1-4) unstable; urgency=low * Use php5{en,dis}mod for conffile handling (Closes: #667777) * Install README.markdown -- Sergey B Kirpichev Sat, 07 Apr 2012 23:24:04 +0400 php-memcached (2.0.1-3) unstable; urgency=low * Revert change of defaults for memcached.ini, introduced in 2.0.1-2 for bug #665906. Uncomment extension in preinst file (Closes: #665906) -- Sergey B Kirpichev Fri, 30 Mar 2012 15:16:53 +0400 php-memcached (2.0.1-2) unstable; urgency=low * Restore dependence on ucf (be gone after wheezy) * Cleanup ucf's stuff in preinst for install|upgrade targets. * Revert memcached.ini defaults from squeeze version (Closes: #665906). -- Sergey B Kirpichev Wed, 28 Mar 2012 19:47:05 +0400 php-memcached (2.0.1-1) unstable; urgency=low * Reformat debian/copyright according to accepted DEP5 spec * Bump up Standards-Version to 3.9.3 (no changes) * Imported Upstream version 2.0.1 -- Sergey B Kirpichev Mon, 05 Mar 2012 14:36:14 +0400 php-memcached (2.0.0b2-1) unstable; urgency=low [ Sergey B Kirpichev ] * New upstream release * Exclude beta-releases from debian/watch * Added "DM-Upload-Allowed: yes" control field * Use debhelper, not cdbs and drop ucf dependence. This also fix lintian warning debian-rules-uses-deprecated-makefile (tarball.mk). * Fix typo in debian/control * Add comment for the default memcached.ini (as before 1.0.2-3) * Purge ucf's stuff about /etc/php5/conf.d/memcached.ini on upgrade in preinst. [ Lior Kaplan ] * cherry-picked 473c63e7e from upstream for PHP 5.4 support (Closes: #656480) -- Sergey B Kirpichev Fri, 20 Jan 2012 12:12:17 +0200 php-memcached (1.0.2-2) unstable; urgency=low * New maintainer (Closes: #620030) * Fix short description to be different with php5-memcache (Closes: #611684, #611683) * Use DEP5 debian/copyright format * Bump up Standards-Version to 3.9.2 -- Sergey B Kirpichev Thu, 29 Sep 2011 19:05:09 +0400 php-memcached (1.0.2-1) unstable; urgency=low * New upstream release - Fix build for libmemcached-0.39. * Update to debsrc3.0 -- Ivan Borzenkov Tue, 04 May 2010 21:06:47 +0400 php-memcached (1.0.1-1) unstable; urgency=low * New Upstream Release - Fix build for libmemcached-0.38. (Closes: #571343) -- Ivan Borzenkov Wed, 17 Mar 2010 22:47:09 +0300 php-memcached (1.0.0-3) unstable; urgency=low * rebuild for php 5.3.1 * Bump Standards-Version to 3.8.4, no change needed -- Ivan Borzenkov Wed, 10 Feb 2010 19:45:06 +0300 php-memcached (1.0.0-2) unstable; urgency=low * rebuild whis libmemcached4 * Bump Standards-Version to 3.8.3, no change needed -- Ivan Borzenkov Sun, 24 Jan 2010 12:11:52 +0300 php-memcached (1.0.0-1) unstable; urgency=low * Initial release (closes: #537475). -- Ivan Borzenkov Sat, 18 Jul 2009 21:38:17 +0400 debian/control0000664000000000000000000000204512263211343010571 0ustar Source: php-memcached Section: php Priority: optional Maintainer: Debian PHP PECL Maintainers Uploaders: Sergey B Kirpichev Build-Depends: debhelper (>= 9), php5-dev (>= 5.4.1), dh-php5, pkg-php-tools (>= 1.6), libmemcached-dev (>= 1.0.0) Standards-Version: 3.9.5 Homepage: http://pecl.php.net/package/memcached VCS-Git: git://anonscm.debian.org/collab-maint/php-memcached.git VCS-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/php-memcached.git;a=summary Package: php5-memcached Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${phppear:Debian-Depends}, # drop after wheezy: ucf Recommends: ${phppear:Debian-Recommends} Breaks: ${phppear:Debian-Breaks} Description: memcached extension module for PHP5, uses libmemcached Memcached is a caching daemon designed especially for dynamic web applications to decrease database load by storing objects in memory. . This extension uses libmemcached library to provide API for communicating with memcached servers. debian/patches/0000775000000000000000000000000012263211343010614 5ustar debian/patches/series0000664000000000000000000000002512263211343012026 0ustar 00_fix_symbols.patch debian/patches/00_fix_symbols.patch0000664000000000000000000000327112263211343014475 0ustar Description: Fix unresolvable symbols for memcached_server_*_version functions. Origin: https://github.com/remicollet/php-memcached/commit/a66b1286b06ec0c8b11790d772725a2a7bb33d57 Debian-Bug: http://bugs.debian.org/684949 --- memcached-2.1.0/config.m4 | 2 ++ memcached-2.1.0/php_memcached.c | 6 ++++++ 2 files changed, 8 insertions(+) Index: b/memcached-2.1.0/php_memcached.c =================================================================== --- a/memcached-2.1.0/php_memcached.c +++ b/memcached-2.1.0/php_memcached.c @@ -2643,9 +2643,15 @@ hostport_len = spprintf(&hostport, 0, "%s:%d", memcached_server_name(instance), memcached_server_port(instance)); version_len = snprintf(version, sizeof(version), "%d.%d.%d", +#ifdef HAVE_MEMCACHED_SERVER_VERSION memcached_server_major_version(instance), memcached_server_minor_version(instance), memcached_server_micro_version(instance)); +#else + instance->major_version, + instance->minor_version, + instance->micro_version); +#endif add_assoc_stringl_ex(context->return_value, hostport, hostport_len+1, version, version_len, 1); efree(hostport); Index: b/memcached-2.1.0/config.m4 =================================================================== --- a/memcached-2.1.0/config.m4 +++ b/memcached-2.1.0/config.m4 @@ -250,6 +250,8 @@ PHP_MEMCACHED_FILES="php_memcached.c fastlz/fastlz.c g_fmt.c" + AC_CHECK_LIB(memcached, memcached_server_major_version, AC_DEFINE(HAVE_MEMCACHED_SERVER_VERSION, 1, [Whether libmemcached have memcached_server_xxx_version functions])) + if test "$PHP_MEMCACHED_SESSION" != "no"; then PHP_MEMCACHED_FILES="${PHP_MEMCACHED_FILES} php_memcached_session.c" fi debian/compat0000664000000000000000000000000212263211343010363 0ustar 9