--- php4-xcache-1.2.2.orig/debian/control
+++ php4-xcache-1.2.2/debian/control
@@ -0,0 +1,26 @@
+Source: php4-xcache
+XC-Ymc-Autobuild-Changed-By: Daniel Beyer <debian@ymc.ch>
+XC-Ymc-Autobuild-Repository: fliwi-optional-foreports
+Section: web
+Priority: optional
+Maintainer: Daniel Beyer <debian@ymc.ch>
+Build-Depends: debhelper (>= 4.2), php4-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: php4-xcache
+Architecture: any
+Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
+Conflicts: php5-xcache
+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.
+ .
+ PHP4 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.
--- php4-xcache-1.2.2.orig/debian/compat
+++ php4-xcache-1.2.2/debian/compat
@@ -0,0 +1 @@
+4
--- php4-xcache-1.2.2.orig/debian/changelog
+++ php4-xcache-1.2.2/debian/changelog
@@ -0,0 +1,64 @@
+php4-xcache (1.2.2-ymc3~ymcAutoBuild~1368193480~fliwioptionalforeportswheezy) wheezy; urgency=low
+
+  * Build on 'k11-s9.cluster' for:
+    -Repository:   fliwi-optional-foreports
+    -Distribution: wheezy
+  * Please note that this log entry has been automatically generated
+
+ -- ymcCluster Automatic Signing Key (k11-s9) <debian@ymc.ch>  Fri, 10 May 2013 17:05:20 +0200
+
+php4-xcache (1.2.2-ymc3~ymcAutoBuild~1368193480~fliwioptionalforeportsorigin) origin; urgency=low
+
+  * Build on 'k11-s9.cluster' for:
+    -Repository:   fliwi-optional-foreports
+    -Distribution: origin
+  * Please note that this log entry has been automatically generated
+
+ -- ymcCluster Automatic Signing Key (k11-s9) <debian@ymc.ch>  Fri, 10 May 2013 15:44:41 +0200
+
+php4-xcache (1.2.2-ymc3~ymcAutoBuild~1336148717~fliwioptionalforeportsorigin) origin; urgency=low
+
+  * Build on 'k11-s9.cluster' for:
+    -Repository:   fliwi-optional-foreports
+    -Distribution: origin
+  * Please note that this log entry has been automatically generated
+
+ -- ymcCluster Automatic Signing Key (k11-s9) <debian@ymc.ch>  Fri, 04 May 2012 18:25:19 +0200
+
+php4-xcache (1.2.2-ymc3) fliwi-optional-foreports; urgency=low
+
+  * Brought to fliwi-optional-foreports from YCDS
+
+ -- Daniel Beyer <debian@ymc.ch>  Fri, 20 Apr 2012 19:56:44 +0200
+
+php4-xcache (1.2.2-ymc2) ymccluster+debian-lenny; urgency=low
+
+  * Additionally added to ymccluster/lenny
+
+ -- Daniel Beyer <debian@ymc.ch>  Thu, 02 Aug 2011 17:43:02 +0100
+
+php4-xcache (1.2.2-ymc1) debian-lenny; urgency=low
+
+  * New upstream
+
+ -- Daniel Beyer <debian@ymc.ch>  Thu, 03 Feb 2009 12:37:45 +0100
+
+php4-xcache (1.0.3-ymc3) debian-lenny; urgency=low
+
+  * Migrated to debian.ymc.ch/debian/lenny
+  * Changed source package name to php4-xcache
+
+ -- Daniel Beyer <debian@ymc.ch>  Fri, 12 Dec 2008 20:05:03 +0100
+
+php4-xcache (1.0.3-ymc2) unstable; urgency=high
+
+  * Added conflict to php5-xcache
+
+ -- Daniel Beyer <debian@ymc.ch>  Sun, 9 Nov 2008 15:01:53 +0100
+
+php4-xcache (1.0.3-ymc1) unstable; urgency=low
+
+  * initial release on debian.ymc.ch
+
+ -- Daniel Beyer <debian@ymc.ch>  Sun, 9 Nov 2008 13:07:02 +0100
+
--- php4-xcache-1.2.2.orig/debian/rules
+++ php4-xcache-1.2.2/debian/rules
@@ -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-config4 --extension-dir`#" debian/xcache.ini.in > debian/xcache.ini
+
+	touch $@
+
+configure:  configure-stamp
+
+configure-stamp:
+	dh_testdir
+	phpize4 --clean
+	phpize4
+	CFLAGS="$(CFLAGS)" \
+	./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
+		--prefix=/usr \
+		--with-php-config=/usr/bin/php-config4 \
+		--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-php4-stamp
+	rm -f build-php4-stamp
+	rm -f install-stamp
+	rm -rf build-php4
+
+	if [ -f Makefile ] ; then $(MAKE) clean ; fi
+	phpize4 --clean || true
+
+	# These files seems not to be deleted by above commands
+	rm -f includes.i processor.h processor.out processor_real.c structinfo.m4 configure-stamp build-stamp
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) install INSTALL_ROOT=debian/php4-xcache
+
+	# Admin interface
+	install -m755 -d debian/php4-xcache/usr/share/xcache
+	cp -a admin coverager debian/php4-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-config4 --phpapi`" >> debian/php4-xcache.substvars
+
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install configure
--- php4-xcache-1.2.2.orig/debian/README.Debian
+++ php4-xcache-1.2.2/debian/README.Debian
@@ -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/php4/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ř <nijel@debian.org>  Tue, 22 May 2007 15:22:10 +0200
--- php4-xcache-1.2.2.orig/debian/xcache.ini.in
+++ php4-xcache-1.2.2/debian/xcache.ini.in
@@ -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 = ""
--- php4-xcache-1.2.2.orig/debian/copyright
+++ php4-xcache-1.2.2/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by RISKO Gergely <risko@debian.org> on
+Fri, 01 Sep 2006 03:30:52 +0200
+
+It was downloaded from http://xcache.lighttpd.net/
+
+Upstream Authors: mOo <phpxcache@gmail.com>
+
+COPYING file in the source distribution contains:
+Copyright (c) 2005-2006, mOo, phpxcache@gmail.com, 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.
--- php4-xcache-1.2.2.orig/debian/php4-xcache.install
+++ php4-xcache-1.2.2/debian/php4-xcache.install
@@ -0,0 +1 @@
+debian/xcache.ini /etc/php4/conf.d/
--- php4-xcache-1.2.2.orig/debian/xcache.ini
+++ php4-xcache-1.2.2/debian/xcache.ini
@@ -0,0 +1,67 @@
+# configuration for php Xcache module
+
+[xcache-common]
+;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
+zend_extension = /usr/lib/php4/20050606/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 = ""
--- php4-xcache-1.2.2.orig/debian/watch
+++ php4-xcache-1.2.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://xcache.lighttpd.net/pub/Releases/([0-9][0-9.]*)/xcache-([0-9][0-9.]*)\.tar\.gz
