This is an automated email from the git hooks/post-receive script. grinorcole-guest pushed a commit to branch master in repository libmemcached-libmemcached-perl.
commit bad19fe700adf8f0a1c0af4a89450c92aa5d09a3 Author: Christopher Hoskin <christopher.hos...@gmail.com> Date: Wed Oct 7 20:42:38 2015 +0100 Initial buildable package --- Makefile.PL | 32 ++--- debian/control | 15 ++- debian/copyright | 184 ++++++++++++++++++++++++++- debian/patches/series | 1 + debian/patches/use-system-libmemcached.patch | 57 +++++++++ 5 files changed, 265 insertions(+), 24 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 5aa00fd..77d161d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -31,15 +31,17 @@ $Data::Dumper::Sortkeys = 1; my $lmcd_api_ver = "1.0"; # eg $lmcd_src/libmemcached-$lmcd_api_ver/ my $lmcd_inst = getcwd()."/src_inst"; -my $lmcd_built_lib = "$lmcd_inst/lib/libmemcached$Config{lib_ext}"; +my $lmcd_built_lib = "/usr/lib/x86_64-linux-gnu/libmemcached.so"; my $is_developer = (-d ".svn" || -d ".git"); -my ($lmcd_h) = eval { build_libmemcached() }; -if ($@) { - warn "Unable to build libmemcached: $@\n"; - warn "Aborted.\n"; - exit 0; # tell cpan testers that this is not a failure -} +#my ($lmcd_h) = eval { build_libmemcached() }; +#if ($@) { +# warn "Unable to build libmemcached: $@\n"; +# warn "Aborted.\n"; +# exit 0; # tell cpan testers that this is not a failure +#} +extract_libmemcached_constants(); +extract_libmemcached_functions(); my %opts; if (my $gccversion = $Config{gccversion}) { # ask gcc to be more pedantic @@ -76,13 +78,13 @@ WriteMakefile( AUTHOR => 'Tim Bunce <tim.bu...@pobox.com>', VERSION_FROM => 'libmemcached.pm', ABSTRACT_FROM => 'libmemcached.pm', - INC => "-I$lmcd_inst/include", - # We want to link to *our* private libmemcached and not one that - # might already be installed on the system. The LIBS config gets - # appended to the link command line, so if we used "-L$dir -lmemcached" - # then the installed lib would get preference over ours. - # So we explicitly refer to our static library. That also avoids the - # need to worry about what library might get used at runtime. +# INC => "-I$lmcd_inst/include", +# # We want to link to *our* private libmemcached and not one that +# # might already be installed on the system. The LIBS config gets +# # appended to the link command line, so if we used "-L$dir -lmemcached" +# # then the installed lib would get preference over ours. +# # So we explicitly refer to our static library. That also avoids the +# # need to worry about what library might get used at runtime. LDFROM => '$(OBJECT)'." $lmcd_built_lib", PREREQ_PM => { 'Test::More' => 0, @@ -146,7 +148,7 @@ realclean :: -cd $(LMCD_SRC) && $(MAKE) distclean -libmemcached.c : $(XSUBPPDIR)/ParseXS.pm typemap +#libmemcached.c : $(XSUBPPDIR)/ParseXS.pm typemap $(OBJECT) : $(LMCD_BUILT_LIB) diff --git a/debian/control b/debian/control index 77d1d30..3ccd6fe 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,8 @@ Priority: optional Maintainer: Debian Perl Group <pkg-perl-maintain...@lists.alioth.debian.org> Uploaders: Christopher Hoskin <christopher.hos...@gmail.com> Build-Depends: debhelper (>= 9.20120312~), - perl + perl, + libmemcached-dev (= 1.0.18-4) Standards-Version: 3.9.6 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libmemcached-libmemcached-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmemcached-libmemcached-perl.git @@ -22,16 +23,16 @@ Description: Thin fast full interface to the libmemcached client API libmemcached is fast, light on memory usage, thread safe, and provide full access to server side methods. . - - Synchronous and Asynchronous support. + - Synchronous and Asynchronous support. . - - TCP and Unix Socket protocols. + - TCP and Unix Socket protocols. . - - A half dozen or so different hash algorithms. + - A half dozen or so different hash algorithms. . - - Implementations of the new cas, replace, and append operators. + - Implementations of the new cas, replace, and append operators. . - - Man pages written up on entire API. + - Man pages written up on entire API. . - - Implements both modulo and consistent hashing solutions. + - Implements both modulo and consistent hashing solutions. . This description was automagically extracted from the module by dh-make-perl. diff --git a/debian/copyright b/debian/copyright index d079902..1432476 100644 --- a/debian/copyright +++ b/debian/copyright @@ -12,13 +12,73 @@ DISCLAIMER: This copyright info was automatically extracted with this file. Files: * -Copyright: Tim Bunce <tim.bu...@pobox.com> -License: +Copyright: 2008, Daisuke Maki <dais...@endeworks.jp> + 2008-2010, Patrick Galbraith <p...@patg.net> + 2008-2013, Tim Bunce <tim.bu...@pobox.com> +License: Artistic or GPL-1+ Files: debian/* Copyright: 2015, Christopher Hoskin <christopher.hos...@gmail.com> License: Artistic or GPL-1+ +Files: lib/Memcached/libmemcached/* +Copyright: 2010, Brian Aker <br...@tangent.org> + +Files: lib/Memcached/libmemcached/memcached_user_data.pm lib/Memcached/libmemcached/memcached_memory_allocators.pm lib/Memcached/libmemcached/memcached_pool.pm lib/Memcached/libmemcached/memcached_sasl.pm lib/Memcached/libmemcached/memcached_flush_buffers.pm +Copyright: Trond Norbye <trond.nor...@gmail.com> + +Files: ppport.h +Copyright: 2004-2007, Marcus Holland-Moritz <mhx-c...@gmx.net> + 2001, Paul Marquess <p...@cpan.org> (Version 2.x) + 1999, Kenneth Albanowski <kja...@kjahds.com> (Version 1.x) +License: Artistic or GPL-1+ + +Files: src/libmemcached/* +Copyright: 2006-2014, Data Differential, http://datadifferential.com/ + 2006-2014, Brian Aker +License: BSD-3-clause-TangentOrg + +Files: src/libmemcached/libhashkit/hsieh.cc +Copyright: Copyright (c) 2004, 2005, Paul Hsieh +License: Paul-Hsieh + + +Files: src/libmemcached/libhashkit/md5.cc +Copyright: Copyright (C) 1991-2, RSA Data Security, Inc. +License: RSA-Data-Security + +Files: src/libmemcached/libhashkit/jenkins.cc +Copyright: Public Domain +License: Bob-Jenkins + +Files: src/libmemcached/clients/memaslap.c src/libmemcached/clients/ms_conn.* src/libmemcached/clients/ms_memslap.h src/libmemcached/clients/ms_setting.* src/libmemcached/clients/ms_sigsegv.h src/libmemcached/clients/ms_stats.* src/libmemcached/clients/ms_task.* src/libmemcached/clients/ms_thread.* +Copyright: 2009, Schooner Information Technology Inc. +License: BSD-3-clause-TangentOrg + +Files: src/libmemcached/libmemcached-1.0/memcached.hpp +Copyright: Padraig O'Sullivan <osullivan.padr...@gmail.com> + Patrick Galbraith <p...@patg.net> +License: BSD-3-clause-TangentOrg + +Files: src/libmemcached/clients/ms_sigsegv.c +Copyright: 2009, Schooner Information Technology Inc. + 2009, Sun Microsystems +License: BSD-3-clause-Sun + +Files: src/libmemcached/libmemcached/memcached/protocol_binary.h src/libmemcached/libmemcachedprotocol-0.0/binary.h src/libmemcached/libmemcachedprotocol-0.0/callback.h +Copyright: 2008, Sun Microsystems: +License: BSD-3-clause-Sun + +Files: src/libmemcached/util/daemon.hpp +Copyright: 1990, 1993, The Regents of the University of California + 2010, Stewart Smith +License: BSD-3-clause + +Files: lib/ExtUtils/* +Copyright: 2002-2003, Ken Williams <k...@mathforum.org> + Larry Wall and the Perl 5 Porters +License: Artistic or GPL-1+ + License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. @@ -34,3 +94,123 @@ License: GPL-1+ . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. + +License: BSD-3-clause + 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. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR 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. + +License: BSD-3-clause-TangentOrg + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * 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. + . + * Neither the name of TangentOrg nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "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 COPYRIGHT + OWNER OR 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. + +License: BSD-3-clause-Sun + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * 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. + * Neither the name of the nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY SUN MICROSYSTEMS, INC. ``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 SUN MICROSYSTEMS, INC. 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. + +License: Paul-Hsieh + http://www.azillionmonkeys.com/qed/weblicense.html + The derivative content includes raw computer source code, ideas, opinions, + and excerpts whose original source is covered under another license and + transformations of such derivatives. Note that mere excerpts by themselves + (with the exception of raw source code) are not considered derivative works + under this license. Use and redistribution is limited to the following + conditions: + * One may not create a derivative work which, in any way, violates the + Paul Hsieh exposition license described above on the original content. + * One may not apply a license to a derivative work that precludes anyone + else from using and redistributing derivative content. + * One may not attribute any derivative content to authors not involved in + the creation of the content, though an attribution to the author is not + necessary. + +License: RSA-Data-Security + License to copy and use this software is granted provided that it + is identified as the "RSA Data Security, Inc. MD5 Message-Digest + Algorithm" in all material mentioning or referencing this software + or this function. + . + License is also granted to make and use derivative works provided + that such works are identified as "derived from the RSA Data + Security, Inc. MD5 Message-Digest Algorithm" in all material + mentioning or referencing the derived work. + . + RSA Data Security, Inc. makes no representations concerning either + the merchantability of this software or the suitability of this + software for any particular purpose. It is provided "as is" + without express or implied warranty of any kind. + . + These notices must be retained in any copies of any part of this + documentation and/or software. + +License: Bob-Jenkins + By Bob Jenkins, 2006. bob_jenk...@burtleburtle.net. You may use this + code any way you wish, private, educational, or commercial. It's free. + Use for hash table lookup, or anything where one collision in 2^^32 is + acceptable. Do NOT use for cryptographic purposes. + http://burtleburtle.net/bob/hash/index.html + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d0ce0a8 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +use-system-libmemcached.patch diff --git a/debian/patches/use-system-libmemcached.patch b/debian/patches/use-system-libmemcached.patch new file mode 100644 index 0000000..e40fa7c --- /dev/null +++ b/debian/patches/use-system-libmemcached.patch @@ -0,0 +1,57 @@ +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -31,15 +31,17 @@ + + my $lmcd_api_ver = "1.0"; # eg $lmcd_src/libmemcached-$lmcd_api_ver/ + my $lmcd_inst = getcwd()."/src_inst"; +-my $lmcd_built_lib = "$lmcd_inst/lib/libmemcached$Config{lib_ext}"; ++my $lmcd_built_lib = "/usr/lib/x86_64-linux-gnu/libmemcached.so"; + my $is_developer = (-d ".svn" || -d ".git"); + +-my ($lmcd_h) = eval { build_libmemcached() }; +-if ($@) { +- warn "Unable to build libmemcached: $@\n"; +- warn "Aborted.\n"; +- exit 0; # tell cpan testers that this is not a failure +-} ++#my ($lmcd_h) = eval { build_libmemcached() }; ++#if ($@) { ++# warn "Unable to build libmemcached: $@\n"; ++# warn "Aborted.\n"; ++# exit 0; # tell cpan testers that this is not a failure ++#} ++extract_libmemcached_constants(); ++extract_libmemcached_functions(); + + my %opts; + if (my $gccversion = $Config{gccversion}) { # ask gcc to be more pedantic +@@ -76,13 +78,13 @@ + AUTHOR => 'Tim Bunce <tim.bu...@pobox.com>', + VERSION_FROM => 'libmemcached.pm', + ABSTRACT_FROM => 'libmemcached.pm', +- INC => "-I$lmcd_inst/include", +- # We want to link to *our* private libmemcached and not one that +- # might already be installed on the system. The LIBS config gets +- # appended to the link command line, so if we used "-L$dir -lmemcached" +- # then the installed lib would get preference over ours. +- # So we explicitly refer to our static library. That also avoids the +- # need to worry about what library might get used at runtime. ++# INC => "-I$lmcd_inst/include", ++# # We want to link to *our* private libmemcached and not one that ++# # might already be installed on the system. The LIBS config gets ++# # appended to the link command line, so if we used "-L$dir -lmemcached" ++# # then the installed lib would get preference over ours. ++# # So we explicitly refer to our static library. That also avoids the ++# # need to worry about what library might get used at runtime. + LDFROM => '$(OBJECT)'." $lmcd_built_lib", + PREREQ_PM => { + 'Test::More' => 0, +@@ -146,7 +148,7 @@ + -cd $(LMCD_SRC) && $(MAKE) distclean + + +-libmemcached.c : $(XSUBPPDIR)/ParseXS.pm typemap ++#libmemcached.c : $(XSUBPPDIR)/ParseXS.pm typemap + + $(OBJECT) : $(LMCD_BUILT_LIB) + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmemcached-libmemcached-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits