--- eaccelerator-0.9.4.orig/debian/changelog
+++ eaccelerator-0.9.4/debian/changelog
@@ -0,0 +1,6 @@
+eaccelerator (0.9.4-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Sebastien Gross <sjg@easynet.fr>  Tue,  6 Jun 2006 13:23:53 +0200
+
--- eaccelerator-0.9.4.orig/debian/compat
+++ eaccelerator-0.9.4/debian/compat
@@ -0,0 +1 @@
+4
--- eaccelerator-0.9.4.orig/debian/eaccelerator.ini
+++ eaccelerator-0.9.4/debian/eaccelerator.ini
@@ -0,0 +1,19 @@
+; eaccelerator configuration
+extension="eaccelerator.so"
+; uncomment this line to run with zend
+; zend_extension="/usr/lib/php4/eaccelerator.so"
+; or this one to use with  thread safe build of PHP 
+; zend_extension_ts="/usr/lib/php4/eaccelerator.so"
+eaccelerator.shm_size="16"
+eaccelerator.cache_dir="/var/cache/eaccelerator"
+eaccelerator.enable="1"
+eaccelerator.optimizer="1"
+eaccelerator.check_mtime="1"
+eaccelerator.debug="0"
+eaccelerator.filter=""
+eaccelerator.shm_max="0"
+eaccelerator.shm_ttl="0"
+eaccelerator.shm_prune_period="0"
+eaccelerator.shm_only="0"
+eaccelerator.compress="1"
+eaccelerator.compress_level="9"
--- eaccelerator-0.9.4.orig/debian/rules
+++ eaccelerator-0.9.4/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses cdbs.  Originaly written by Robert Millan.
+# This file is public domain.
+
+PACKAGE_NAME			:= eaccelerator
+PACKAGE_VERSION			:= 0.9.4
+DEB_TAR_SRCDIR                  := $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+DEB_AUTO_CLEANUP_RCS            := yes
+
+# Add here any variable or target overrides you need
+
+#DEB_MAKE_INSTALL_TARGET :=
+
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/tarball.mk
+#include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+
+include /usr/share/cdbs/1/class/autotools.mk
+DEB_CONFIGURE_EXTRA_FLAGS := \
+		 --enable-eloader \
+		 --enable-eaccelerator=shared \
+		 --with-php-config=/usr/bin/php-config
+
+pre-build::
+	cd build-tree/$(DEB_TAR_SRCDIR); \
+			phpize ; \
+			patch -p1 -i ../../debian/patches/01_configure.diff
+
--- eaccelerator-0.9.4.orig/debian/eaccelerator.prerm
+++ eaccelerator-0.9.4/debian/eaccelerator.prerm
@@ -0,0 +1,30 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+	remove|deconfigure)
+		# Get rid of it from php4-apache
+		for f in \
+			/etc/php4/apache/php.ini\
+			/etc/php4/apache2/php.ini\
+			/etc/php4/cgi/php.ini\
+			;do
+			if [ -f $f ]; then
+				grep -vF "eaccelerator" $f > $f.tmp;
+				mv $f.tmp $f
+			fi
+		done
+	;;
+
+	*)
+		exit 0;
+	;;
+esac
+
+# Get rid of any cached files left behind
+find /var/cache/eaccelerator -type f -name "eaccelerator*.*" -print0 |\
+	xargs -0 --no-run-if-empty rm
+
+exit 0
--- eaccelerator-0.9.4.orig/debian/patches/01_configure.diff
+++ eaccelerator-0.9.4/debian/patches/01_configure.diff
@@ -0,0 +1,22 @@
+--- eaccelerator-0.9.4/configure.in.old	2006-06-06 14:17:54.000000000 +0200
++++ eaccelerator-0.9.4/configure.in	2006-06-06 14:18:14.000000000 +0200
+@@ -14,7 +14,7 @@
+ 
+   prefix=`$PHP_CONFIG --prefix 2>/dev/null`
+   INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+-  EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
++  EXTENSION_DIR=\$(DESTDIR)/`$PHP_CONFIG --extension-dir`
+  
+   if test -z "$prefix"; then
+     AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
+--- eaccelerator-0.9.4/configure.orig	2006-06-07 11:16:43.000000000 +0200
++++ eaccelerator-0.9.4/configure	2006-06-07 11:17:54.000000000 +0200
+@@ -2802,7 +2802,7 @@
+ 
+   prefix=`$PHP_CONFIG --prefix 2>/dev/null`
+   INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+-  EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
++  EXTENSION_DIR="\$(DESTDIR)/`$PHP_CONFIG --extension-dir`"
+ 
+   if test -z "$prefix"; then
+     { { echo "$as_me:$LINENO: error: Cannot find php-config. Please use --with-php-config=PATH" >&5
--- eaccelerator-0.9.4.orig/debian/eaccelerator.postinst
+++ eaccelerator-0.9.4/debian/eaccelerator.postinst
@@ -0,0 +1,36 @@
+#!/bin/sh
+# postinst script for turck-mmcache
+
+set -e
+
+#DEBHELPER#
+
+#if [ "$1" != "configure" ]; then
+#	exit 0
+#fi
+
+#if [ -n "$2" ]; then
+## we're upgrading. don't ask again
+#        exit 0
+#fi
+
+for f in \
+	/etc/php4/apache/php.ini\
+	/etc/php4/apache2/php.ini\
+	/etc/php4/cgi/php.ini\
+	; do
+	if [ -f $f ]; then
+		grep -vF "eaccelerator" $f > $f.tmp
+		cat /usr/share/doc/eaccelerator/examples/eaccelerator.ini >> $f.tmp
+		mv $f.tmp $f
+	fi
+done
+
+cache=/var/cache/eaccelerator
+chown www-data:www-data $cache
+
+# Now nuke anything in it to make sure we're not caching compiled stuff that doesn't match our PHP version
+find $cache -type f -name "eaccelerator-*.*" -print0 | \
+	xargs -0 --no-run-if-empty rm
+
+exit
--- eaccelerator-0.9.4.orig/debian/eaccelerator.examples
+++ eaccelerator-0.9.4/debian/eaccelerator.examples
@@ -0,0 +1 @@
+debian/eaccelerator.ini
--- eaccelerator-0.9.4.orig/debian/README.Debian
+++ eaccelerator-0.9.4/debian/README.Debian
@@ -0,0 +1,6 @@
+eaccelerator for Debian
+-----------------------
+
+you may need to restart apache :-)
+
+ -- Sebastien Gross <sjg@easynet.fr>, Tue,  6 Jun 2006 13:23:53 +0200
--- eaccelerator-0.9.4.orig/debian/control
+++ eaccelerator-0.9.4/debian/control
@@ -0,0 +1,17 @@
+Source: eaccelerator
+Section: web
+Priority: optional
+Maintainer: Sebastien Gross <sjg@easynet.fr>
+Build-Depends: cdbs, debhelper (>= 4.1.0), php4-dev
+Standards-Version: 3.6.2
+
+Package: eaccelerator
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libapache-mod-php4
+Description: accelerator, optimizer, encoder and dynamic content cache 
+ eAccelerator is a free open-source PHP accelerator, optimizer, encoder
+ and dynamic content cache. It increases the performance of PHP scripts
+ by caching them in their compiled state, so that the overhead of
+ compiling is almost completely eliminated. It also optimizes scripts
+ to speed up their execution. eAccelerator typically reduces server load
+ and increases the speed of your PHP code by 1-10 times.
--- eaccelerator-0.9.4.orig/debian/copyright
+++ eaccelerator-0.9.4/debian/copyright
@@ -0,0 +1,29 @@
+This package was debianized by Sebastien Gross <sjg@easynet.fr> on
+Tue,  6 Jun 2006 13:23:53 +0200.
+
+It was downloaded from http://www.eaccelerator.net/
+
+Copyright Holder:
+- Franck Tabary <franck34 at users.sourceforge.net>
+- Bart Vanbrabant <zoeloelip at users.sourceforge.net>
+
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   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'.
+
--- eaccelerator-0.9.4.orig/debian/eaccelerator.dirs
+++ eaccelerator-0.9.4/debian/eaccelerator.dirs
@@ -0,0 +1 @@
+var/cache/eaccelerator
--- eaccelerator-0.9.4.orig/eaccelerator-0.9.4.tar.bz2.cdbs-config_list
+++ eaccelerator-0.9.4/eaccelerator-0.9.4.tar.bz2.cdbs-config_list
@@ -0,0 +1,2 @@
+eaccelerator-0.9.4/config.m4
+eaccelerator-0.9.4/eLoader/config.m4
