From: Dragan Dosen Date: Sat, 22 Dec 2007 00:42:08 +0000 (+0000) Subject: r4: Load php5-apc-3.0.15 into trunk. X-Git-Tag: 3.0.18~4 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=5ee5738a895adae39c3e6ad85f158331cc89d522;p=php5-apc.git r4: Load php5-apc-3.0.15 into trunk. --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a77c7b2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +php5-apc (3.0.15-1) stable; urgency=low + + * Initial release for Debian etch distribution. + + -- Dragan Dosen Fri, 21 Dec 2007 19:50:02 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..12dbc85 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: php5-apc +Priority: optional +Section: libs +Origin: carnet +Maintainer: Dragan Dosen +Build-Depends: debhelper (>= 4.2.32), php5-dev, gawk | awk, autoconf +Standards-Version: 3.7.2 + +Package: php5-apc +Section: web +Architecture: i386 +Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends}, php5-common (= 5.2.0-8+etch7) +Conflicts: php4-apc +Description: APC module for PHP5 + This package provides a module for APC functions. + . + The Alternative PHP Cache (APC) is a free, open, and robust framework + for caching and optimizing PHP intermediate code. This extension is + being released under the PHP License for complete compliance with PHP + and to encourage wide-spread use. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e948610 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,128 @@ +This package was debianized by Dragan Dosen on +Fri, 21 Dec 2007 19:50:02 +0100 + +It was downloaded from http://pecl.php.net/package/APC + +The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. +This extension is being released under the PHP License for complete compliance +with PHP and to encourage wide-spread use. It is our intention that this +project be kept open source and that all commercial spin-offs contribute their +modifications back into the public source-tree. + +Creators: + Daniel Cowgill + George Schlossnagle + +PHP5 support and major features by: + Arun C. Murthy + Gopal Vijayaraghavan + Rasmus Lerdorf + +This software was contributed to PHP by Community Connect Inc. in 2002 +and revised in 2005 by Yahoo! Inc. to add support for PHP 5.1. +Future revisions and derivatives of this source code must acknowledge +Community Connect Inc. as the original contributor of this module by +leaving this note intact in the source code. + +All other licensing and usage conditions are those of the PHP Group. + +We would like to thank Community Connect Inc. and Yahoo! Inc. for supporting +this project and providing a challenging and stimulating environment in +which exciting projects can happen. + +Contributors: + Mike Bretz bug fixes, GUI, and lots of work + Ricardo Galli changed read-write locks to prefer readers + Yann Grossel bug fixes + Thies Arntzen bug fixes + Sara Golemon optimizer work + +Special Thanks: + Florian Baumert help debugging phplib problems + Thomas Duffey help debugging inheritance issues + Vibol Hou help debugging phplib problems + Angel Li diffs for ANSI comment compliance + Christian Rishøj help debugging phplib problems + Sascha Schumann memory error bug fix + +You should have received a copy of the GNU General Public License +along with this package; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +-------------------------------------------------------------------- + The PHP License, version 3.01 +Copyright (c) 1999 - 2006 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) 2006, root and +is licensed under the GPL, see above. +This is the NOTICE file that holds acknowledgements and stuff. diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..7360645 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +php5-apc/apc.ini /etc/php5/conf.d diff --git a/debian/php5-apc.postinst b/debian/php5-apc.postinst new file mode 100644 index 0000000..1050e89 --- /dev/null +++ b/debian/php5-apc.postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +if [ "$1" != "configure" ]; then + exit 0 +fi + +extension_re='^[[:space:]]*extension[[:space:]]*=[[:space:]]*apc\.so$' +for SAPI in apache apache2 cgi cli; do + ini_file="/etc/php5/$SAPI/php.ini" + if [ -f "$ini_file" ]; then + if grep -q "$extension_re" $ini_file; then + sed -i -e "/$extension_re/d" $ini_file + fi + fi +done + +exit 0 + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d4db67e --- /dev/null +++ b/debian/rules @@ -0,0 +1,109 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export PHP_PREFIX="/usr" + +package=php5-apc +phpapiver=$(shell php-config5 --phpapi) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + + phpize5 + ./configure \ + --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --enable-apc-mmap \ + --with-apxs \ + --with-php-config=$(PHP_PREFIX)/bin/php-config5 + + touch configure-stamp + + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + -$(MAKE) clean + + phpize5 --clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install INSTALL_ROOT=$(CURDIR)/debian/$(package) + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_install -X.svn + dh_installchangelogs CHANGELOG + dh_installdocs TECHNOTES.txt TODO + dh_installexamples + dh_installdebconf + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + +# php api version we have been building against: + grep -v '^php:Depends' debian/${package}.substvars \ + > debian/${package}.substvars.$$ && \ + mv debian/${package}.substvars.$$ debian/${package}.substvars + echo "php:Depends=phpapi-$(phpapiver)" >> debian/${package}.substvars + + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/php5-apc/apc.ini b/php5-apc/apc.ini new file mode 100644 index 0000000..5f7bdde --- /dev/null +++ b/php5-apc/apc.ini @@ -0,0 +1,2 @@ +# configuration for php APC module +extension=apc.so