--- php-ps-1.3.6.orig/debian/compat
+++ php-ps-1.3.6/debian/compat
@@ -0,0 +1 @@
+4
--- php-ps-1.3.6.orig/debian/copyright
+++ php-ps-1.3.6/debian/copyright
@@ -0,0 +1,79 @@
+This package was debianized by Uwe Steinmann <steinm@debian.org> using dh-make-pecl
+on Thu, 09 Feb 2006 22:40:09 +0100.
+
+It was downloaded from http://pecl.php.net/package/ps
+
+Upstream Author: Uwe Steinmann <steinm@php.net>
+
+Copyright:
+
+ License: PHP License
+
+--------------------------------------------------------------------
+ The PHP License, Version 3.0
+Copyright (c) 1999 - 2005 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, freely available from
+ <http://www.php.net/>".
+
+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 <http://www.php.net>.
+
+This product includes the Zend Engine, freely available at
+<http://www.zend.com>.
--- php-ps-1.3.6.orig/debian/changelog.xsl
+++ php-ps-1.3.6/debian/changelog.xsl
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:util="urn:xslt:functions:util" xmlns:func="http://exslt.org/functions" xmlns:str="http://exslt.org/strings" extension-element-prefixes="func str">
+<xsl:output method="text"/>
+
+ <func:function name="util:maximize">
+ <xsl:param name="string"/>
+ <xsl:param name="line-length"/>
+
+ <func:result>
+ <xsl:variable name="tmp" select="string-length(substring-before($string,' '))"/>
+ <xsl:choose>
+ <xsl:when test="($tmp > $line-length) or (not(contains($string, ' ')))">0</xsl:when>
+ <xsl:when test="(substring($string,$line-length,1) = ' ')">
+ <xsl:value-of select="$line-length"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="util:maximize(substring-after($string, ' '), $line-length - $tmp - 1) + 1 + $tmp"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </func:result>
+ </func:function>
+
+ <func:function name="util:format">
+ <xsl:param name="string"/>
+ <xsl:param name="indent" select="2"/>
+ <xsl:param name="line-length" select="76"/>
+
+ <func:result>
+ <xsl:choose>
+ <xsl:when test="contains($string,'
') or contains($string,'
')">
+ <xsl:for-each select="str:tokenize($string,'

')">
+ <xsl:value-of select="util:format(., $indent, $line-length)"/>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:when test="string-length($string) > $line-length">
+ <xsl:variable name="tmp" select="util:maximize($string, $line-length)"/>
+ <xsl:value-of select="str:padding($indent,' ')"/>
+ <xsl:value-of select="substring($string, 1, $tmp)"/>
+ <xsl:text>
</xsl:text>
+ <xsl:value-of select="util:format(substring($string, $tmp + 1))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="str:padding($indent,' ')"/>
+ <xsl:value-of select="$string"/>
+ <xsl:text>
</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </func:result>
+ </func:function>
+
+ <func:function name="util:norm">
+ <xsl:param name="num"/>
+ <xsl:param name="length" select="4"/>
+
+ <xsl:choose>
+ <xsl:when test="$length > string-length($num)">
+ <func:result select="concat('0',util:norm($num, $length - 1))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <func:result select="$num"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </func:function>
+
+ <func:function name="util:extractnum">
+ <xsl:param name="string"/>
+
+ <xsl:choose>
+ <xsl:when test="$string = ''">
+ <func:result select="0"/>
+ </xsl:when>
+ <xsl:when test="$string <= '9' and $string >= '0'">
+ <func:result select="$string"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <func:result select="util:extractnum(substring($string,1,string-length($string)-1))"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </func:function>
+
+ <func:function name="util:ver2num">
+ <xsl:param name="version"/>
+
+ <xsl:choose>
+ <xsl:when test="contains($version,'.')">
+ <func:result select="concat(util:norm(substring-before($version,'.')), util:ver2num(substring-after($version,'.')))"/>
+ </xsl:when>
+ <xsl:when test="$version = number($version)">
+ <func:result select="concat(util:norm($version), util:norm(0))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="tmp" select="util:extractnum($version)"/>
+ <func:result select="concat(util:norm($tmp),' ', substring($version, string-length($tmp) + 1))"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </func:function>
+
+ <xsl:template match="package">
+ <xsl:apply-templates select="release">
+ <xsl:sort order="descending" select="util:ver2num(normalize-space(version))" data-type="text"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="changelog/release">
+ <xsl:sort order="descending" select="util:ver2num(normalize-space(version))" data-type="text"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+ <xsl:template match="release">
+ <xsl:text>Version </xsl:text>
+ <xsl:value-of select="version"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="date"/>
+ <xsl:if test="state">
+ <xsl:text> (</xsl:text>
+ <xsl:value-of select="state"/>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
+ <xsl:text>
----------------------------------------
Notes:
</xsl:text>
+ <xsl:value-of select="util:format(notes)"/>
+ <xsl:text>
</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
--- php-ps-1.3.6.orig/debian/rules
+++ php-ps-1.3.6/debian/rules
@@ -0,0 +1,136 @@
+#!/usr/bin/make -f
+# template debian/rules provided by dh-make-php.
+# GNU copyright 2005 by Uwe Steinmann.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+CFLAGS = -O2 -Wall
+CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+ DEBUG := --enable-debug
+else
+ DEBUG := --disable-debug
+endif
+
+TAR=tar
+PECL_PKG_NAME=ps
+PECL_PKG_REALNAME=ps
+PECL_PKG_VERSION=1.3.3
+BIN_PACKAGE_NAME=php$*-ps
+PHPIZE=/usr/bin/phpize
+PHPCONFIG=/usr/bin/php-config
+EXT_DIR=$(shell $(PHPCONFIG)$* --extension-dir)
+SOURCE_DIR=$(shell ls -d $(PECL_PKG_REALNAME)-*)
+BINARYTARGETS=binary-arch-v5
+
+phpapiver4=$(shell /usr/bin/php-config4 --phpapi)
+phpapiver5=$(shell /usr/bin/php-config5 --phpapi)
+
+configure-v5: configure-v%: configure-stamp-v%
+configure-stamp-v5: configure-stamp-v%:
+ dh_testdir
+ # Add here commands to configure the package.
+ (cd $(SOURCE_DIR); \
+ $(PHPIZE)$*; \
+ ./configure --with-php-config=$(PHPCONFIG)$* --prefix=/usr)
+# rm -f configure-stamp-v*
+ touch $@
+
+build: build-v5
+
+build-v5: build-v%: build-stamp-v%
+
+build-stamp:
+ xsltproc --nonet --novalid debian/changelog.xsl package.xml > debian/Changelog
+ touch build-stamp
+
+build-stamp-v5: build-stamp-v%: build-stamp configure-stamp-v%
+ dh_testdir
+
+ # Add here commands to compile the package.
+ # Save the result in ../tmp/modules$* otherwise the previous build
+ # will be overwritten by the next build
+ (cd $(SOURCE_DIR); $(MAKE); mkdir -p ../tmp/modules$*; cp modules/* ../tmp/modules$*; $(MAKE) clean)
+# rm -f build-stamp-v*
+ touch $@
+
+clean: clean-v5
+ dh_clean
+
+clean-v5: clean-v%:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp* configure-stamp*
+
+ # Add here commands to clean up after the build process.
+ (cd $(SOURCE_DIR); \
+ $(MAKE) clean; \
+ $(PHPIZE)$* --clean)
+ rm -rf tmp/modules$*
+
+install-v5: install-v%: build-v%
+ dh_testdir
+ dh_testroot
+ # can't dh_clean here without specifically excluding the possibly existing installed dirs
+ # for other version.
+ #dh_clean -k
+ dh_installdirs
+# dh_pecl
+
+ # Add here commands to install the package into debian/$(PACKAGE_NAME).
+# $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(PACKAGE_NAME) install
+# sh -c 'VERSION=`egrep "#define ZEND_MODULE_API_NO" \
+# /usr/include/php4/Zend/zend_modules.h \
+# | sed "s/#define ZEND_MODULE_API_NO //"`; \
+# chmod 644 debian/$(PACKAGE_NAME)/usr/lib/php4/$$VERSION/*.so'
+ mkdir -p debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)
+ install -m 644 -o root -g root tmp/modules$*/$(PECL_PKG_NAME).so debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)/$(PECL_PKG_NAME).so
+ mkdir -p debian/$(BIN_PACKAGE_NAME)/etc/php$*/conf.d
+ cp debian/$(PECL_PKG_NAME).ini debian/$(BIN_PACKAGE_NAME)/etc/php$*/conf.d
+
+# Build architecture-independent files here.
+binary-indep:
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+
+binary-arch-v5: binary-arch-v%: install-v%
+ echo "php:Depends=phpapi-$(phpapiver$*)" >> debian/$(BIN_PACKAGE_NAME).substvars
+
+binary-arch: $(BINARYTARGETS)
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs debian/Changelog
+ dh_installdocs
+ dh_installexamples
+# dh_install --sourcedir=debian/$(BIN_PACKAGE_NAME)
+# dh_installmenu
+ dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+# dh_installman
+# dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build-v5 clean clean-v5 binary-indep binary-arch binary-arch-v5 binary install-v5 configure-v5
--- php-ps-1.3.6.orig/debian/changelog
+++ php-ps-1.3.6/debian/changelog
@@ -0,0 +1,186 @@
+php-ps (1.3.6-3) unstable; urgency=low
+
+ * Removed Build-Depend on libgd2-xpm-dev (>> 2.0.0) |
+ libgd2-noxpm-dev (>> 2.0.0) (Closes: #465055)
+
+ -- Uwe Steinmann <steinm@debian.org> Mon, 11 Feb 2008 08:34:04 +0000
+
+php-ps (1.3.6-2) unstable; urgency=low
+
+ * More elaborate description
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 05 Feb 2008 12:01:22 +0000
+
+php-ps (1.3.6-1) unstable; urgency=low
+
+ * New upstream release
+ * Changed name of source package to php-ps and droped php4-ps
+ binary package
+ * No more support for php4 (Closes: #432869, #418318)
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 27 Nov 2007 10:14:44 +0000
+
+php4-ps (1.3.5-1) unstable; urgency=low
+
+ * New upstream release
+ * Depend on php[4|5]-gd after reenabling gd support
+
+ -- Uwe Steinmann <steinm@debian.org> Mon, 02 Jul 2007 10:52:02 +0200
+
+php4-ps (1.3.4-4) unstable; urgency=low
+
+ * do not install php4 module in php5 (closes: #416416)
+ * added dependency on phpapi for what it was compiled for (closes: #416454)
+
+ -- Uwe Steinmann <steinm@debian.org> Wed, 28 Mar 2007 09:01:50 +0200
+
+php4-ps (1.3.4-3) unstable; urgency=low
+
+ * remove debconf completely and install ps.ini into
+ /etc/php[45]/conf.d
+ * recompile to place extension in new extension dir
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 20 Feb 2007 19:36:07 +0100
+
+php4-ps (1.3.4-2) unstable; urgency=low
+
+ * Target build-stamp-v% should not depend on clean-v% because
+ debian/rules build is not called as root and the clean target
+ needs to be called as root (Closes: #396330)
+
+ -- Uwe Steinmann <steinm@debian.org> Wed, 1 Nov 2006 10:48:58 +0100
+
+php4-ps (1.3.4-1) unstable; urgency=low
+
+ * New upstream release
+ * Adding build target to debian/rules (Closes: #395788)
+ * Do not call init.d scripts directly anymore
+
+ -- Uwe Steinmann <steinm@debian.org> Sun, 29 Oct 2006 21:17:30 +0100
+
+php4-ps (1.3.3-3) unstable; urgency=low
+
+ * Added vietnamese translation (Closes: #316828)
+ * Added Build-Depend on libjpeg62-dev
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 14 Mar 2006 10:11:45 +0100
+
+php4-ps (1.3.3-2) unstable; urgency=low
+
+ * Complete rewrite of debian files. Creates php5-ps package too.
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 21 Feb 2006 11:21:09 +0100
+
+php4-ps (1.3.3-1) unstable; urgency=low
+
+ * New upstream release
+ * ps_begin_template() returns template id and not true (Closes: #342250)
+ * changed dir layout of source package for easier uupdate.
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 6 Dec 2005 16:26:12 +0100
+
+php4-ps (1.3.1-7) unstable; urgency=low
+
+ * added swedish translation (Closes: #330762)
+ * use phpize4 and php-config4 in debian/rules
+
+ -- Uwe Steinmann <steinm@debian.org> Fri, 30 Sep 2005 21:13:05 +0200
+
+php4-ps (1.3.1-6) unstable; urgency=low
+
+ * Recompile for new Zend-API 20050606 and new PHP-API 20020918
+
+ -- Uwe Steinmann <steinm@debian.org> Wed, 17 Aug 2005 08:20:36 +0200
+
+php4-ps (1.3.1-5.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Build-depend on php4-dev (>= 4:4.3.10-10), as ZTS support is being
+ dropped again for sarge (closes: #301332).
+
+ -- Steve Langasek <vorlon@debian.org> Tue, 29 Mar 2005 18:55:05 -0800
+
+php4-ps (1.3.1-5) unstable; urgency=low
+
+ * made regular expression to match extension in php.ini more robust
+
+ -- Uwe Steinmann <steinm@debian.org> Fri, 25 Mar 2005 21:58:27 +0100
+
+php4-ps (1.3.1-4) unstable; urgency=low
+
+ * full support for po-debconf, took over translations from php4-pgsql
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 15 Feb 2005 11:59:47 +0100
+
+php4-ps (1.3.1-3) unstable; urgency=low
+
+ * fixed stupid copy and paste error, 3nd trial (Closes: #294014)
+
+ -- Uwe Steinmann <steinm@debian.org> Wed, 9 Feb 2005 9:21:03 +0100
+
+php4-ps (1.3.1-2) unstable; urgency=low
+
+ * fixed dependencies, 2nd trial (Closes: #294014)
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 8 Feb 2005 19:02:37 +0100
+
+php4-ps (1.3.1-1) unstable; urgency=low
+
+ * New upstream release
+ * fixed dependencies, adopted installation process
+ from php4-pgsql (Closes: #294014)
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 8 Feb 2005 08:26:54 +0100
+
+php4-ps (1.3.0-3) unstable; urgency=low
+
+ * modify php.ini in postinst and prerm for apacha2 and cli
+
+ -- Uwe Steinmann <steinm@debian.org> Mon, 23 Aug 2004 14:52:45 +0200
+
+php4-ps (1.3.0-2) unstable; urgency=low
+
+ * Added Build-Depend for libjpeg62-dev (Closes: #264046)
+
+ -- Uwe Steinmann <steinm@debian.org> Mon, 12 Aug 2004 12:37:13 +0200
+
+php4-ps (1.3.0-1) unstable; urgency=low
+
+ * New upstream release
+ * Needs at least pslib 0.2.3
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 27 Jul 2004 17:13:24 +0200
+
+php4-ps (1.2.2-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Uwe Steinmann <steinm@debian.org> Mon, 12 Jul 2004 15:34:39 +0200
+
+php4-ps (1.1.1-1) unstable; urgency=low
+
+ * New upstream release
+ * Replaces the package php4-pecl-ps for a name change
+ * Fixed email of maintainer
+
+ -- Uwe Steinmann <steinm@debian.org> Tue, 11 May 2004 07:58:29 +0200
+
+php4-pecl-ps (1.1.0-2) unstable; urgency=low
+
+ * Satisfy BuildDepends (Closes: #237743)
+
+ -- Uwe Steinmann <steinm@debian.org> Fri, 15 Mar 2004 15:00:03 +0100
+
+php4-pecl-ps (1.1.0-1) unstable; urgency=low
+
+ * Changed version scheme
+ * New upstream release
+
+ -- Uwe Steinmann <steinm@debian.org> Thu, 04 Mar 2004 08:15:44 +0100
+
+php4-pecl-ps (1.0-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Uwe Steinmann <steinm@debian.org> Wed, 04 Jan 2004 21:41:12 +0200
+
--- php-ps-1.3.6.orig/debian/README.Debian
+++ php-ps-1.3.6/debian/README.Debian
@@ -0,0 +1,7 @@
+php4-ps for Debian
+--------------------------
+
+This extension has been created with dh-make-pecl which is part
+of dh-make-php.
+
+ -- Uwe Steinmann <steinm@debian.org>, Thu, 09 Feb 2006 22:40:09 +0100
--- php-ps-1.3.6.orig/debian/watch
+++ php-ps-1.3.6/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://pecl.php.net/package/ps \
+ /get/ps-([\d\.]*).tgz debian uupdate
--- php-ps-1.3.6.orig/debian/control
+++ php-ps-1.3.6/debian/control
@@ -0,0 +1,16 @@
+Source: php-ps
+Section: web
+Priority: optional
+Maintainer: Uwe Steinmann <steinm@debian.org>
+Build-Depends: debhelper (>> 4.0.0), xsltproc, php5-dev, pslib-dev (>= 0.2.3), libgd2-xpm-dev (>> 2.0.0)
+Standards-Version: 3.7.2
+
+Package: php5-ps
+Architecture: any
+Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}, php5-gd
+Description: ps module for PHP 5
+ ps is an extension similar to the pdf extension but for creating
+ PostScript files. Its api is modelled after the pdf extension.
+ It has some advanced features like taking kerning into account
+ and support for hyphenation. PostScript files can converted to
+ pdf files with ghostscript retaining hyperlinks and bookmarks.
--- php-ps-1.3.6.orig/debian/php5-ps.postinst
+++ php-ps-1.3.6/debian/php5-ps.postinst
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+
+PECL_NAME=ps
+PHP_VERSION=5
+
+if [ "$DPKG_DEBUG" = "developer" ]; then
+ set -x
+fi
+
+if [ "$1" != "configure" ]; then
+ exit 0
+fi
+
+if [ "$2" ] && dpkg --compare-versions "$2" lt "1.3.4-3"; then
+ extension_re="^[[:space:]]*extension[[:space:]]*=[[:space:]]*${PECL_NAME}\.so"
+ for SAPI in apache2 apache cgi cli; do
+ ini_file="/etc/php${PHP_VERSION}/$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
+fi
+
+##DEBHELPER##
+
+exit 0
+
--- php-ps-1.3.6.orig/debian/php5-ps.dirs
+++ php-ps-1.3.6/debian/php5-ps.dirs
@@ -0,0 +1 @@
+usr/lib/php5
--- php-ps-1.3.6.orig/debian/Changelog
+++ php-ps-1.3.6/debian/Changelog
@@ -0,0 +1,248 @@
+
+ ps
+ pecl.php.net
+ An extension to create PostScript files
+ ps is an extension similar to the pdf extension but for creating PostScript files. Its api is modelled after the pdf extension.
+
+ Uwe Steinmann
+ steinm
+ steinm@php.net
+ yes
+
+ 2007-11-26
+ 19:24:00
+
+ 1.3.6
+ 1.3.6
+
+
+ stable
+ stable
+
+ PHP License
+ fixed various build problems on win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 4.3.10
+
+
+ 1.4.0b1
+
+
+
+ ps
+
+
+
+
+
+
+ 1.3.5
+ 1.3.5
+
+
+ stable
+ stable
+
+ 2007-09-27
+ PHP License
+ Reenablee reading of gd images. Added configuration file for win32. New example to list all glyphs in a font. New examples for creating Type3 fonts and postscript files in memory. Tests for more image types in example/image.php. Added new functions to create Type3 fonts and to modify kerning and ligatures of an existing font. Added new function ps_glyph_name() and ps_glyph_show(). New function ps_include_file().
+
+
+
+ 1.3.4
+ 1.3.4
+
+
+ stable
+ stable
+
+ 2006-04-21
+ PHP License
+ Made ps_arcn() available. ps_set_border_dash() checks now for 3 parameters instead of 4. Fixed segm fault if the optional parameter of ps_show_boxed() is not passed. Added some more examples.
+
+
+
+ 1.3.3
+ 1.3.3
+
+
+ stable
+ stable
+
+ 2005-12-06
+ PHP License
+ fixed stupid compile warning.
+
+
+
+ 1.3.2
+ 1.3.2
+
+
+ stable
+ stable
+
+ 2005-12-06
+ PHP License
+ ps_begin_template() and ps_begin_pattern() now return the id.
+
+
+
+ 1.3.1
+ 1.3.1
+
+
+ stable
+ stable
+
+ 2005-02-08
+ PHP License
+ Fixed varios compile errors related to php 4.3.10
+
+
+
+ 1.3.0
+ 1.3.0
+
+
+ stable
+ stable
+
+ 2004-07-27
+ PHP License
+ Added function ps_shfill(), ps_shading(), ps_shading_pattern(), ps_get_buffer(). New example files shading.php and image.php. Renamed undocumented function ps_setoverprint() to ps_setoverprintmode().
+
+
+
+ 1.2.2
+ 1.2.2
+
+
+ stable
+ stable
+
+ 2004-06-02
+ PHP License
+ Added function ps_makespotcolor().
+
+
+
+ 1.2.1
+ 1.2.1
+
+
+ stable
+ stable
+
+ 2004-06-02
+ PHP License
+ ps_hyphenate() did not return an array but true. Added more tests
+ and examples. Many internal changes.
+
+
+
+ 1.2.0
+ 1.2.0
+
+
+ stable
+ stable
+
+ 2004-04-26
+ PHP License
+ Added new function ps_string_geometry(), ps_set_text_pos(),
+ ps_symbol(), ps_symbol_name(), ps_symbol_width(), ps_begin_pattern(),
+ ps_end_pattern(), ps_begin_template(), ps_end_template().
+
+
+
+ 1.1.1
+ 1.1.1
+
+
+ stable
+ stable
+
+ 2004-04-21
+ PHP License
+ Added new function ps_hyphenate().
+
+
+
+ 1.1.0
+ 1.1.0
+
+
+ stable
+ stable
+
+ 2004-03-34
+ PHP License
+ Complete rework. Many old function has been removed. Font and image
+ handling is now working without memory leaks.
+
+
+
+ 1.0
+ 1.0
+
+
+ stable
+ stable
+
+ 2003-02-15
+ PHP License
+ Initial Release in PECL
+
+
--- php-ps-1.3.6.orig/debian/pecl
+++ php-ps-1.3.6/debian/pecl
@@ -0,0 +1 @@
+modules/ps.so
--- php-ps-1.3.6.orig/debian/ps.ini
+++ php-ps-1.3.6/debian/ps.ini
@@ -0,0 +1,2 @@
+# configuration for php ps module
+extension=ps.so