r56202 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56201‎ | r56202 | r56203 >
Date:18:35, 11 September 2009
Author:midom
Status:ok
Tags:
Comment:
meh
Modified paths:
  • /debs/php5-xcache (deleted) (history)
  • /trunk/debs/php5-xcache (added) (history)

Diff [purge]

Index: trunk/debs/php5-xcache/debian/control
@@ -0,0 +1,23 @@
 2+Source: xcache
 3+Section: web
 4+Priority: optional
 5+Maintainer: Michal Čihař <nijel@debian.org>
 6+Build-Depends: debhelper (>= 4.2), php5-dev
 7+Standards-Version: 3.8.0
 8+Vcs-Svn: svn://svn.cihar.com/debian-xcache/trunk
 9+Vcs-Browser: http://viewsvn.cihar.com/debian-xcache/trunk
 10+Homepage: http://xcache.lighttpd.net/
 11+
 12+Package: php5-xcache
 13+Architecture: any
 14+Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
 15+Description: Fast, stable PHP opcode cacher
 16+ XCache is a fast, stable PHP opcode cacher that has been tested and
 17+ is now running on production servers under high load. It overcomes a
 18+ lot of problems that has been with other competing opcachers such as
 19+ being able to be used with new PHP versions.
 20+ .
 21+ PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed
 22+ from C, Java and Perl with a couple of unique PHP-specific features thrown
 23+ in. The goal of the language is to allow web developers to write
 24+ dynamically generated pages quickly.
Index: trunk/debs/php5-xcache/debian/compat
@@ -0,0 +1 @@
 2+4
Index: trunk/debs/php5-xcache/debian/watch
@@ -0,0 +1,2 @@
 2+version=3
 3+http://xcache.lighttpd.net/pub/Releases/([0-9][0-9.]*)/xcache-([0-9][0-9.]*)\.tar\.gz
Index: trunk/debs/php5-xcache/debian/changelog
@@ -0,0 +1,123 @@
 2+xcache (1.3.0-1wm1) unstable; urgency=low
 3+
 4+ * Upstream 1.3.0
 5+ * Changed defaults in config template to match
 6+ 8-core boxes with lots of memory
 7+ * -O3 build
 8+ * Removed stripping
 9+
 10+ -- Domas Mituzas <domas@wikimedia.org> Fri, 11 Sep 2009 20:40:00 +0300
 11+
 12+xcache (1.2.2-3) unstable; urgency=low
 13+
 14+ * Implement clean target in debian/rules (Closes: #489739).
 15+ - Some files have to be deleted manually.
 16+ * Update policy to 3.8.0 (no changes needed).
 17+
 18+ -- Michal Čihař <nijel@debian.org> Mon, 07 Jul 2008 15:46:42 +0200
 19+
 20+xcache (1.2.2-2) unstable; urgency=low
 21+
 22+ * Adjusted Vcs-* headers to point to trunk.
 23+ * Fix name of enable_auth variable in default config (Closes: #475082).
 24+ * Load xcache as zend_extension as this is recommended way.
 25+ * Use dh_install to install some files instead of install commands.
 26+ * Cleanup debian/rules to use make install and drop support for more PHP
 27+ versions.
 28+
 29+ -- Michal Čihař <nijel@debian.org> Wed, 09 Apr 2008 09:50:55 +0200
 30+
 31+xcache (1.2.2-1) unstable; urgency=low
 32+
 33+ * New upstream version.
 34+ * Update policy to 3.7.3 (no changes needed).
 35+ * Improve README.Debian (Closes: #458531).
 36+ * Enable all features in XCache, specially coverager. However you
 37+ still need to enable it in configuration.
 38+
 39+ -- Michal Čihař <nijel@debian.org> Mon, 07 Jan 2008 01:58:52 +0900
 40+
 41+xcache (1.2.1-3) unstable; urgency=low
 42+
 43+ * Convert XS-Vcs fields to Vcs.
 44+ * Set cache size to 16M by default, so that after installation user has
 45+ working package.
 46+ * Document in README.Debian where admin scripts are located
 47+ (Closes: #454288).
 48+ * Package changelog.
 49+
 50+ -- Michal Čihař <nijel@debian.org> Tue, 04 Dec 2007 23:07:06 +0900
 51+
 52+xcache (1.2.1-2) unstable; urgency=low
 53+
 54+ * Update home page to http://xcache.lighttpd.net/.
 55+ * Fix watch file to new URL.
 56+ * Use new Homepage field.
 57+
 58+ -- Michal Čihař <nijel@debian.org> Thu, 13 Sep 2007 13:55:03 +0900
 59+
 60+xcache (1.2.1-1) unstable; urgency=low
 61+
 62+ * New upstream release.
 63+
 64+ -- Michal Čihař <nijel@debian.org> Tue, 17 Jul 2007 07:14:08 +0200
 65+
 66+xcache (1.2.0-2) unstable; urgency=low
 67+
 68+ * You should check opened bugs before upload.
 69+ * Acknowledge NMU, thanks Steve (Closes: #389318).
 70+ * Current version seems to build fine (Closes: #398244).
 71+ * We depend on current PHP API (Closes: #398091).
 72+ * Default xcache.ini for PHP is also installed since previous upload
 73+ (Closes: #397432).
 74+ * No reference PHP4 as there is no PHP4 package anymore (Closes: #389586).
 75+
 76+ -- Michal Čihař <nijel@debian.org> Wed, 23 May 2007 09:15:24 +0200
 77+
 78+xcache (1.2.0-1) unstable; urgency=low
 79+
 80+ * New upstream release (Closes: #389329).
 81+ * New maintainer with approval from previous one.
 82+ * Dropped php4 support (Closes: #407407, #424807).
 83+ * Maintain package in SVN, add XS-Vcs headers.
 84+ * Install admin pages into /usr/share/xcache.
 85+ * Provide /etc/php5/conf.d/xcache.ini to ease configuration.
 86+
 87+ -- Michal Čihař <nijel@debian.org> Tue, 22 May 2007 15:28:04 +0200
 88+
 89+xcache (1.0-4.1) unstable; urgency=low
 90+
 91+ * NMU from the Zurich BSP
 92+ * Apply a temporary fix for the broken code in mkstructinfo.awk -
 93+ cope with single-line structure typedefs. Closes: #389318 . The
 94+ real fix is to *not* to use an awk script to parse header files to
 95+ generate an m4 script to generate C source. Parsing C structures
 96+ reliably would be better done by using the C compiler itself!
 97+
 98+ -- Steve McIntyre <93sam@debian.org> Sat, 7 Oct 2006 13:45:28 +0200
 99+
 100+xcache (1.0-4) unstable; urgency=low
 101+
 102+ * removing po-debconf dependency, debian/po/, debian/config (closes:
 103+ Bug#386539)
 104+
 105+ -- RISKO Gergely <risko@debian.org> Fri, 8 Sep 2006 13:33:18 +0200
 106+
 107+xcache (1.0-3) unstable; urgency=low
 108+
 109+ * moving debconf note to README.Debian (closes: Bug#385962)
 110+
 111+ -- RISKO Gergely <risko@debian.org> Mon, 4 Sep 2006 14:32:31 +0200
 112+
 113+xcache (1.0-2) unstable; urgency=low
 114+
 115+ * using po-debconf, should be done at first, but I missed
 116+
 117+ -- RISKO Gergely <risko@debian.org> Fri, 1 Sep 2006 20:01:32 +0200
 118+
 119+xcache (1.0-1) unstable; urgency=low
 120+
 121+ * initial upload (closes: Bug#384884)
 122+
 123+ -- RISKO Gergely <risko@debian.org> Fri, 1 Sep 2006 04:49:26 +0200
 124+
Index: trunk/debs/php5-xcache/debian/copyright
@@ -0,0 +1,36 @@
 2+This package was debianized by RISKO Gergely <risko@debian.org> on
 3+Fri, 01 Sep 2006 03:30:52 +0200
 4+
 5+It was downloaded from http://xcache.lighttpd.net/
 6+
 7+Upstream Authors: mOo <phpxcache@gmail.com>
 8+
 9+COPYING file in the source distribution contains:
 10+Copyright (c) 2005-2006, mOo, phpxcache@gmail.com, XCache
 11+ All rights reserved.
 12+
 13+Redistribution and use in source and binary forms, with or without
 14+modification, are permitted provided that the following conditions are met:
 15+
 16+- Redistributions of source code must retain the above copyright notice, this
 17+ list of conditions and the following disclaimer.
 18+
 19+- Redistributions in binary form must reproduce the above copyright notice,
 20+ this list of conditions and the following disclaimer in the documentation
 21+ and/or other materials provided with the distribution.
 22+
 23+- Neither the name of the 'XCache' nor the names of its contributors may
 24+ be used to endorse or promote products derived from this software without
 25+ specific prior written permission.
 26+
 27+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 28+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 29+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 30+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 31+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 32+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 33+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 34+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 35+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 36+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 37+THE POSSIBILITY OF SUCH DAMAGE.
Index: trunk/debs/php5-xcache/debian/php5-xcache.install
@@ -0,0 +1 @@
 2+debian/xcache.ini /etc/php5/conf.d/
Index: trunk/debs/php5-xcache/debian/rules
@@ -0,0 +1,104 @@
 2+#!/usr/bin/make -f
 3+#export DH_VERBOSE=1
 4+
 5+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 6+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 7+
 8+CFLAGS = -O3 -Wall -fno-strict-aliasing
 9+
 10+# Enable IEEE-conformant floating point math on alphas (not the default)
 11+ifeq (alpha-linux-gnu,$(DEB_HOST_GNU_TYPE))
 12+ CFLAGS += -mieee
 13+endif
 14+
 15+ifeq ($(DEB_HOST_GNU_TYPE), $(findstring $(DEB_HOST_GNU_TYPE), ia64-linux-gnu powerpc64-linux-gnu))
 16+ CFLAGS += -g
 17+else
 18+ CFLAGS += -gstabs
 19+endif
 20+
 21+build: build-stamp
 22+
 23+build-stamp: configure-stamp
 24+ dh_testdir
 25+ $(MAKE)
 26+
 27+ sed "s#@EXTDIR@#`php-config5 --extension-dir`#" debian/xcache.ini.in > debian/xcache.ini
 28+
 29+ touch $@
 30+
 31+configure: configure-stamp
 32+
 33+configure-stamp:
 34+ dh_testdir
 35+ phpize5 --clean
 36+ phpize5
 37+ CFLAGS="$(CFLAGS)" \
 38+ ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
 39+ --prefix=/usr \
 40+ --with-php-config=/usr/bin/php-config5 \
 41+ --enable-xcache=shared \
 42+ --enable-xcache-constant \
 43+ --enable-xcache-optimizer \
 44+ --enable-xcache-coverager \
 45+ --enable-xcache-assembler \
 46+ --enable-xcache-encoder \
 47+ --enable-xcache-decoder
 48+
 49+ touch $@
 50+
 51+clean:
 52+ dh_testdir
 53+ dh_testroot
 54+ rm -f configure-php5-stamp
 55+ rm -f build-php5-stamp
 56+ rm -f install-stamp
 57+ rm -rf build-php5
 58+
 59+ if [ -f Makefile ] ; then $(MAKE) clean ; fi
 60+ phpize5 --clean
 61+
 62+ # These files seems not to be deleted by above commands
 63+ rm -f includes.i processor.h processor.out processor_real.c structinfo.m4
 64+
 65+ dh_clean
 66+
 67+install: build
 68+ dh_testdir
 69+ dh_testroot
 70+ dh_clean -k
 71+ dh_installdirs
 72+
 73+ $(MAKE) install INSTALL_ROOT=debian/php5-xcache
 74+
 75+ # Admin interface
 76+ install -m755 -d debian/php5-xcache/usr/share/xcache
 77+ cp -a admin coverager debian/php5-xcache/usr/share/xcache
 78+
 79+ touch install-stamp
 80+
 81+# Build architecture-independent files here.
 82+binary-indep:
 83+
 84+# Build architecture-dependent files here.
 85+binary-arch: build install
 86+ dh_testdir
 87+ dh_testroot
 88+ dh_install
 89+ dh_installdocs README AUTHORS THANKS
 90+ dh_installexamples xcache.ini Decompiler.class.php
 91+ dh_installchangelogs ChangeLog
 92+ #dh_strip
 93+ dh_link
 94+ dh_compress
 95+ dh_fixperms
 96+ dh_installdeb
 97+ dh_shlibdeps
 98+ echo "php:Depends=phpapi-`php-config5 --phpapi`" >> debian/php5-xcache.substvars
 99+
 100+ dh_gencontrol
 101+ dh_md5sums
 102+ dh_builddeb
 103+
 104+binary: binary-arch binary-indep
 105+.PHONY: build clean binary-indep binary-arch binary install configure
Property changes on: trunk/debs/php5-xcache/debian/rules
___________________________________________________________________
Added: svn:executable
1106 +
Index: trunk/debs/php5-xcache/debian/README.Debian
@@ -0,0 +1,19 @@
 2+XCache for Debian
 3+-----------------
 4+
 5+XCache is enabled automatically on standard Debian installation. You
 6+simply have to get your web server to reload it's configuration file
 7+(with something like 'invoke-rc.d apache2 reload').
 8+
 9+Default config file in /etc/php5/conf.d/xcache.ini loads module and sets
 10+cache size to 16 MB. You will probably want to change this size and
 11+configure user name and password to access administrative interface.
 12+
 13+Administrative interface scripts are located in /usr/share/xcache/admin/
 14+and coverager in /usr/share/xcache/coverager/. Just symlink or alias
 15+them to some location accessible by web server if you want to use them.
 16+Please note that coverager is disabled by default and you need to define
 17+username and password in xcache.ini to be able to access administrative
 18+interface.
 19+
 20+ -- Michal Čihař <nijel@debian.org> Tue, 22 May 2007 15:22:10 +0200
Index: trunk/debs/php5-xcache/debian/xcache.ini.in
@@ -0,0 +1,67 @@
 2+# configuration for php Xcache module
 3+
 4+[xcache-common]
 5+;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
 6+zend_extension = @EXTDIR@/xcache.so
 7+
 8+[xcache.admin]
 9+xcache.admin.enable_auth = Off
 10+# Configure this to use admin pages
 11+; xcache.admin.user = "mOo"
 12+; xcache.admin.pass = md5($your_password)
 13+; xcache.admin.pass = ""
 14+
 15+[xcache]
 16+; ini only settings, all the values here is default unless explained
 17+
 18+; select low level shm/allocator scheme implemenation
 19+xcache.shm_scheme = "mmap"
 20+; to disable: xcache.size=0
 21+; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
 22+xcache.size = 128M
 23+; set to cpu count (cat /proc/cpuinfo |grep -c processor)
 24+xcache.count = 8
 25+; just a hash hints, you can always store count(items) > slots
 26+xcache.slots = 2K
 27+; ttl of the cache item, 0=forever
 28+xcache.ttl = 600
 29+; interval of gc scanning expired items, 0=no scan, other values is in seconds
 30+xcache.gc_interval = 300
 31+
 32+; same as aboves but for variable cache
 33+xcache.var_size = 16M
 34+xcache.var_count = 4
 35+xcache.var_slots = 2K
 36+; default ttl
 37+xcache.var_ttl = 0
 38+xcache.var_maxttl = 0
 39+xcache.var_gc_interval = 300
 40+
 41+xcache.test = Off
 42+; N/A for /dev/zero
 43+xcache.readonly_protection = Off
 44+; for *nix, xcache.mmap_path is a file path, not directory.
 45+; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
 46+; 2 group of php won't share the same /tmp/xcache
 47+; for win32, xcache.mmap_path=anonymous map name, not file path
 48+xcache.mmap_path = "/dev/zero"
 49+
 50+
 51+; leave it blank(disabled) or "/tmp/phpcore/"
 52+; make sure it's writable by php (without checking open_basedir)
 53+xcache.coredump_directory = ""
 54+
 55+; per request settings
 56+xcache.cacher = On
 57+xcache.stat = On
 58+xcache.optimizer = Off
 59+
 60+[xcache.coverager]
 61+; per request settings
 62+; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
 63+xcache.coverager = Off
 64+
 65+; ini only settings
 66+; make sure it's readable (care open_basedir) by coverage viewer script
 67+; requires xcache.coverager=On
 68+xcache.coveragedump_directory = ""

Status & tagging log