http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56199
Revision: 56199
Author: midom
Date: 2009-09-11 18:20:41 +0000 (Fri, 11 Sep 2009)
Log Message:
-----------
xcache package
Added Paths:
-----------
debs/
debs/php5-xcache/
debs/php5-xcache/debian/
debs/php5-xcache/debian/README.Debian
debs/php5-xcache/debian/changelog
debs/php5-xcache/debian/compat
debs/php5-xcache/debian/control
debs/php5-xcache/debian/copyright
debs/php5-xcache/debian/php5-xcache.install
debs/php5-xcache/debian/rules
debs/php5-xcache/debian/watch
debs/php5-xcache/debian/xcache.ini.in
Added: debs/php5-xcache/debian/README.Debian
===================================================================
--- debs/php5-xcache/debian/README.Debian (rev 0)
+++ debs/php5-xcache/debian/README.Debian 2009-09-11 18:20:41 UTC (rev
56199)
@@ -0,0 +1,19 @@
+XCache for Debian
+-----------------
+
+XCache is enabled automatically on standard Debian installation. You
+simply have to get your web server to reload it's configuration file
+(with something like 'invoke-rc.d apache2 reload').
+
+Default config file in /etc/php5/conf.d/xcache.ini loads module and sets
+cache size to 16 MB. You will probably want to change this size and
+configure user name and password to access administrative interface.
+
+Administrative interface scripts are located in /usr/share/xcache/admin/
+and coverager in /usr/share/xcache/coverager/. Just symlink or alias
+them to some location accessible by web server if you want to use them.
+Please note that coverager is disabled by default and you need to define
+username and password in xcache.ini to be able to access administrative
+interface.
+
+ -- Michal Čihař <[email protected]> Tue, 22 May 2007 15:22:10 +0200
Added: debs/php5-xcache/debian/changelog
===================================================================
--- debs/php5-xcache/debian/changelog (rev 0)
+++ debs/php5-xcache/debian/changelog 2009-09-11 18:20:41 UTC (rev 56199)
@@ -0,0 +1,113 @@
+xcache (1.2.2-3) unstable; urgency=low
+
+ * Implement clean target in debian/rules (Closes: #489739).
+ - Some files have to be deleted manually.
+ * Update policy to 3.8.0 (no changes needed).
+
+ -- Michal Čihař <[email protected]> Mon, 07 Jul 2008 15:46:42 +0200
+
+xcache (1.2.2-2) unstable; urgency=low
+
+ * Adjusted Vcs-* headers to point to trunk.
+ * Fix name of enable_auth variable in default config (Closes: #475082).
+ * Load xcache as zend_extension as this is recommended way.
+ * Use dh_install to install some files instead of install commands.
+ * Cleanup debian/rules to use make install and drop support for more PHP
+ versions.
+
+ -- Michal Čihař <[email protected]> Wed, 09 Apr 2008 09:50:55 +0200
+
+xcache (1.2.2-1) unstable; urgency=low
+
+ * New upstream version.
+ * Update policy to 3.7.3 (no changes needed).
+ * Improve README.Debian (Closes: #458531).
+ * Enable all features in XCache, specially coverager. However you
+ still need to enable it in configuration.
+
+ -- Michal Čihař <[email protected]> Mon, 07 Jan 2008 01:58:52 +0900
+
+xcache (1.2.1-3) unstable; urgency=low
+
+ * Convert XS-Vcs fields to Vcs.
+ * Set cache size to 16M by default, so that after installation user has
+ working package.
+ * Document in README.Debian where admin scripts are located
+ (Closes: #454288).
+ * Package changelog.
+
+ -- Michal Čihař <[email protected]> Tue, 04 Dec 2007 23:07:06 +0900
+
+xcache (1.2.1-2) unstable; urgency=low
+
+ * Update home page to http://xcache.lighttpd.net/.
+ * Fix watch file to new URL.
+ * Use new Homepage field.
+
+ -- Michal Čihař <[email protected]> Thu, 13 Sep 2007 13:55:03 +0900
+
+xcache (1.2.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Michal Čihař <[email protected]> Tue, 17 Jul 2007 07:14:08 +0200
+
+xcache (1.2.0-2) unstable; urgency=low
+
+ * You should check opened bugs before upload.
+ * Acknowledge NMU, thanks Steve (Closes: #389318).
+ * Current version seems to build fine (Closes: #398244).
+ * We depend on current PHP API (Closes: #398091).
+ * Default xcache.ini for PHP is also installed since previous upload
+ (Closes: #397432).
+ * No reference PHP4 as there is no PHP4 package anymore (Closes: #389586).
+
+ -- Michal Čihař <[email protected]> Wed, 23 May 2007 09:15:24 +0200
+
+xcache (1.2.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #389329).
+ * New maintainer with approval from previous one.
+ * Dropped php4 support (Closes: #407407, #424807).
+ * Maintain package in SVN, add XS-Vcs headers.
+ * Install admin pages into /usr/share/xcache.
+ * Provide /etc/php5/conf.d/xcache.ini to ease configuration.
+
+ -- Michal Čihař <[email protected]> Tue, 22 May 2007 15:28:04 +0200
+
+xcache (1.0-4.1) unstable; urgency=low
+
+ * NMU from the Zurich BSP
+ * Apply a temporary fix for the broken code in mkstructinfo.awk -
+ cope with single-line structure typedefs. Closes: #389318 . The
+ real fix is to *not* to use an awk script to parse header files to
+ generate an m4 script to generate C source. Parsing C structures
+ reliably would be better done by using the C compiler itself!
+
+ -- Steve McIntyre <[email protected]> Sat, 7 Oct 2006 13:45:28 +0200
+
+xcache (1.0-4) unstable; urgency=low
+
+ * removing po-debconf dependency, debian/po/, debian/config (closes:
+ Bug#386539)
+
+ -- RISKO Gergely <[email protected]> Fri, 8 Sep 2006 13:33:18 +0200
+
+xcache (1.0-3) unstable; urgency=low
+
+ * moving debconf note to README.Debian (closes: Bug#385962)
+
+ -- RISKO Gergely <[email protected]> Mon, 4 Sep 2006 14:32:31 +0200
+
+xcache (1.0-2) unstable; urgency=low
+
+ * using po-debconf, should be done at first, but I missed
+
+ -- RISKO Gergely <[email protected]> Fri, 1 Sep 2006 20:01:32 +0200
+
+xcache (1.0-1) unstable; urgency=low
+
+ * initial upload (closes: Bug#384884)
+
+ -- RISKO Gergely <[email protected]> Fri, 1 Sep 2006 04:49:26 +0200
+
Added: debs/php5-xcache/debian/compat
===================================================================
--- debs/php5-xcache/debian/compat (rev 0)
+++ debs/php5-xcache/debian/compat 2009-09-11 18:20:41 UTC (rev 56199)
@@ -0,0 +1 @@
+4
Added: debs/php5-xcache/debian/control
===================================================================
--- debs/php5-xcache/debian/control (rev 0)
+++ debs/php5-xcache/debian/control 2009-09-11 18:20:41 UTC (rev 56199)
@@ -0,0 +1,23 @@
+Source: xcache
+Section: web
+Priority: optional
+Maintainer: Michal Čihař <[email protected]>
+Build-Depends: debhelper (>= 4.2), php5-dev
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.cihar.com/debian-xcache/trunk
+Vcs-Browser: http://viewsvn.cihar.com/debian-xcache/trunk
+Homepage: http://xcache.lighttpd.net/
+
+Package: php5-xcache
+Architecture: any
+Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
+Description: Fast, stable PHP opcode cacher
+ XCache is a fast, stable PHP opcode cacher that has been tested and
+ is now running on production servers under high load. It overcomes a
+ lot of problems that has been with other competing opcachers such as
+ being able to be used with new PHP versions.
+ .
+ PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed
+ from C, Java and Perl with a couple of unique PHP-specific features thrown
+ in. The goal of the language is to allow web developers to write
+ dynamically generated pages quickly.
Added: debs/php5-xcache/debian/copyright
===================================================================
--- debs/php5-xcache/debian/copyright (rev 0)
+++ debs/php5-xcache/debian/copyright 2009-09-11 18:20:41 UTC (rev 56199)
@@ -0,0 +1,36 @@
+This package was debianized by RISKO Gergely <[email protected]> on
+Fri, 01 Sep 2006 03:30:52 +0200
+
+It was downloaded from http://xcache.lighttpd.net/
+
+Upstream Authors: mOo <[email protected]>
+
+COPYING file in the source distribution contains:
+Copyright (c) 2005-2006, mOo, [email protected], XCache
+ All rights reserved.
+
+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 'XCache' 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.
Added: debs/php5-xcache/debian/php5-xcache.install
===================================================================
--- debs/php5-xcache/debian/php5-xcache.install (rev 0)
+++ debs/php5-xcache/debian/php5-xcache.install 2009-09-11 18:20:41 UTC (rev
56199)
@@ -0,0 +1 @@
+debian/xcache.ini /etc/php5/conf.d/
Added: debs/php5-xcache/debian/rules
===================================================================
--- debs/php5-xcache/debian/rules (rev 0)
+++ debs/php5-xcache/debian/rules 2009-09-11 18:20:41 UTC (rev 56199)
@@ -0,0 +1,104 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -O2 -Wall -fno-strict-aliasing
+
+# Enable IEEE-conformant floating point math on alphas (not the default)
+ifeq (alpha-linux-gnu,$(DEB_HOST_GNU_TYPE))
+ CFLAGS += -mieee
+endif
+
+ifeq ($(DEB_HOST_GNU_TYPE), $(findstring $(DEB_HOST_GNU_TYPE), ia64-linux-gnu
powerpc64-linux-gnu))
+ CFLAGS += -g
+else
+ CFLAGS += -gstabs
+endif
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE)
+
+ sed "s...@extdir@#`php-config5 --extension-dir`#" debian/xcache.ini.in
> debian/xcache.ini
+
+ touch $@
+
+configure: configure-stamp
+
+configure-stamp:
+ dh_testdir
+ phpize5 --clean
+ phpize5
+ CFLAGS="$(CFLAGS)" \
+ ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
+ --prefix=/usr \
+ --with-php-config=/usr/bin/php-config5 \
+ --enable-xcache=shared \
+ --enable-xcache-constant \
+ --enable-xcache-optimizer \
+ --enable-xcache-coverager \
+ --enable-xcache-assembler \
+ --enable-xcache-encoder \
+ --enable-xcache-decoder
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f configure-php5-stamp
+ rm -f build-php5-stamp
+ rm -f install-stamp
+ rm -rf build-php5
+
+ if [ -f Makefile ] ; then $(MAKE) clean ; fi
+ phpize5 --clean
+
+ # These files seems not to be deleted by above commands
+ rm -f includes.i processor.h processor.out processor_real.c
structinfo.m4
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install INSTALL_ROOT=debian/php5-xcache
+
+ # Admin interface
+ install -m755 -d debian/php5-xcache/usr/share/xcache
+ cp -a admin coverager debian/php5-xcache/usr/share/xcache
+
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep:
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_install
+ dh_installdocs README AUTHORS THANKS
+ dh_installexamples xcache.ini Decompiler.class.php
+ dh_installchangelogs ChangeLog
+ dh_strip
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ echo "php:Depends=phpapi-`php-config5 --phpapi`" >>
debian/php5-xcache.substvars
+
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install configure
Property changes on: debs/php5-xcache/debian/rules
___________________________________________________________________
Added: svn:executable
+
Added: debs/php5-xcache/debian/watch
===================================================================
--- debs/php5-xcache/debian/watch (rev 0)
+++ debs/php5-xcache/debian/watch 2009-09-11 18:20:41 UTC (rev 56199)
@@ -0,0 +1,2 @@
+version=3
+http://xcache.lighttpd.net/pub/Releases/([0-9][0-9.]*)/xcache-([0-9][0-9.]*)\.tar\.gz
Added: debs/php5-xcache/debian/xcache.ini.in
===================================================================
--- debs/php5-xcache/debian/xcache.ini.in (rev 0)
+++ debs/php5-xcache/debian/xcache.ini.in 2009-09-11 18:20:41 UTC (rev
56199)
@@ -0,0 +1,67 @@
+# configuration for php Xcache module
+
+[xcache-common]
+;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
+zend_extension = @EXTDIR@/xcache.so
+
+[xcache.admin]
+xcache.admin.enable_auth = On
+# Configure this to use admin pages
+; xcache.admin.user = "mOo"
+; xcache.admin.pass = md5($your_password)
+; xcache.admin.pass = ""
+
+[xcache]
+; ini only settings, all the values here is default unless explained
+
+; select low level shm/allocator scheme implemenation
+xcache.shm_scheme = "mmap"
+; to disable: xcache.size=0
+; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
+xcache.size = 16M
+; set to cpu count (cat /proc/cpuinfo |grep -c processor)
+xcache.count = 1
+; just a hash hints, you can always store count(items) > slots
+xcache.slots = 8K
+; ttl of the cache item, 0=forever
+xcache.ttl = 0
+; interval of gc scanning expired items, 0=no scan, other values is in seconds
+xcache.gc_interval = 0
+
+; same as aboves but for variable cache
+xcache.var_size = 0M
+xcache.var_count = 1
+xcache.var_slots = 8K
+; default ttl
+xcache.var_ttl = 0
+xcache.var_maxttl = 0
+xcache.var_gc_interval = 300
+
+xcache.test = Off
+; N/A for /dev/zero
+xcache.readonly_protection = Off
+; for *nix, xcache.mmap_path is a file path, not directory.
+; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
+; 2 group of php won't share the same /tmp/xcache
+; for win32, xcache.mmap_path=anonymous map name, not file path
+xcache.mmap_path = "/dev/zero"
+
+
+; leave it blank(disabled) or "/tmp/phpcore/"
+; make sure it's writable by php (without checking open_basedir)
+xcache.coredump_directory = ""
+
+; per request settings
+xcache.cacher = On
+xcache.stat = On
+xcache.optimizer = Off
+
+[xcache.coverager]
+; per request settings
+; enable coverage data collecting for xcache.coveragedump_directory and
xcache_coverager_start/stop/get/clean() functions (will hurt executing
performance)
+xcache.coverager = Off
+
+; ini only settings
+; make sure it's readable (care open_basedir) by coverage viewer script
+; requires xcache.coverager=On
+xcache.coveragedump_directory = ""
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs