trunk/0000755000000000000000000000000012273154707007117 5ustar trunk/Makefile0000644000000000000000000000534210647754456010575 0ustar PACKAGE=dh-make-php VERSION=`cat VERSION` DESTDIR=`grep "^PREFIX=" dh-make-pecl | awk -F= '{print $$2}'` DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl XP=xsltproc -''-nonet manpages: dh-make-pecl.1.gz dh-make-pear.1.gz dh-make-pecl.1.gz: man/dh-make-pecl.xml $(XP) $(DB2MAN) $< rm -f dh-make-pecl.1.gz gzip -9 dh-make-pecl.1 dh-make-pear.1.gz: man/dh-make-pear.xml $(XP) $(DB2MAN) $< rm -f dh-make-pear.1.gz gzip -9 dh-make-pear.1 install: install-bin install-share install-man install-bin: install -d ${DESTDIR}/bin install dh-make-pecl ${DESTDIR}/bin install dh-make-pear ${DESTDIR}/bin # install dh_pecl ${DESTDIR}/bin install-share: install -d ${DESTDIR}/share/${PACKAGE} cp -r pear.template ${DESTDIR}/share/${PACKAGE} cp -r pecl.template ${DESTDIR}/share/${PACKAGE} cp -r licenses ${DESTDIR}/share/${PACKAGE} cp -r xslt ${DESTDIR}/share/${PACKAGE} cp dh-make-php.lib ${DESTDIR}/share/${PACKAGE} cp phppkginfo ${DESTDIR}/share/${PACKAGE} cp pear.mk ${DESTDIR}/share/cdbs/1/class rm -rf ${DESTDIR}/share/${PACKAGE}/pecl.template/CVS rm -rf ${DESTDIR}/share/${PACKAGE}/pecl.template/.svn rm -rf ${DESTDIR}/share/${PACKAGE}/pecl.template/po/CVS rm -rf ${DESTDIR}/share/${PACKAGE}/pecl.template/po/.svn rm -rf ${DESTDIR}/share/${PACKAGE}/pear.template/CVS rm -rf ${DESTDIR}/share/${PACKAGE}/pear.template/.svn rm -rf ${DESTDIR}/share/${PACKAGE}/licenses/CVS rm -rf ${DESTDIR}/share/${PACKAGE}/licenses/.svn rm -rf ${DESTDIR}/share/${PACKAGE}/xslt/CVS rm -rf ${DESTDIR}/share/${PACKAGE}/xslt/.svn # install -d ${DESTDIR}/share/debhelper/autoscripts # cp debhelper/*-pecl ${DESTDIR}/share/debhelper/autoscripts install-man: manpages install -d ${DESTDIR}/share/man/man1 install -m 644 dh-make-pecl.1.gz ${DESTDIR}/share/man/man1 install -m 644 dh-make-pear.1.gz ${DESTDIR}/share/man/man1 dist: clean mkdir ${PACKAGE}-${VERSION} cp Makefile ${PACKAGE}-${VERSION} cp configure ${PACKAGE}-${VERSION} cp VERSION README TODO INSTALL ChangeLog.old ${PACKAGE}-${VERSION} cp dh_pecl ${PACKAGE}-${VERSION} cp dh-make-pecl ${PACKAGE}-${VERSION} cp dh-make-pear ${PACKAGE}-${VERSION} cp dh-make-php.lib ${PACKAGE}-${VERSION} cp phppkginfo ${PACKAGE}-${VERSION} cp pear.mk ${PACKAGE}-${VERSION} cp -a man ${PACKAGE}-${VERSION} cp -a pear.template ${PACKAGE}-${VERSION} cp -a pecl.template ${PACKAGE}-${VERSION} cp -a licenses ${PACKAGE}-${VERSION} (cd ${PACKAGE}-${VERSION}/licenses; ln -s php-license php) cp -a xslt ${PACKAGE}-${VERSION} cp -a debhelper ${PACKAGE}-${VERSION} cp -a debian ${PACKAGE}-${VERSION} tar --exclude=CVS --exclude=.svn -czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) rm -rf ${PACKAGE}-${VERSION} clean: rm -f dh-make-pecl.1.gz dh-make-pear.1.gz rm -rf debian/dh-make-php trunk/configure0000755000000000000000000000177410434600620011022 0ustar #!/bin/bash # usage() {{{ # print summary of options usage() { cat <&2 exit ;; esac do test $# -gt 0 && shift; done VERSION=`cat VERSION` sed -e "s:^PREFIX=.*$:PREFIX=$PREFIX:" -e "s:^PROGVERSION=.*$:PROGVERSION=$VERSION:" dh-make-pecl > dh-make-pecl.new mv dh-make-pecl.new dh-make-pecl chmod 755 dh-make-pecl sed -e "s:^PREFIX=.*$:PREFIX=$PREFIX:" -e "s:^PROGVERSION=.*$:PROGVERSION=$VERSION:" dh-make-pear > dh-make-pear.new mv dh-make-pear.new dh-make-pear chmod 755 dh-make-pear echo "Prefix set to '${PREFIX}'" echo "" echo "Run 'make install' to install the programm." trunk/debian/0000755000000000000000000000000012273154707010341 5ustar trunk/debian/control0000644000000000000000000000076611335220301011733 0ustar Source: dh-make-php Section: web Priority: optional Maintainer: Uwe Steinmann Build-Depends: debhelper (>= 7) Build-Depends-Indep: po-debconf, docbook-xsl, xsltproc Standards-Version: 3.8.1 Package: dh-make-php Architecture: all Depends: ${misc:Depends}, php5-cli, php-pear, cdbs Description: Creates Debian source packages for PHP PEAR and PECL extensions Contains dh-make-pear and dh-make-pecl, which create Debian source packages from PHP PEAR and PECL packages respectively. trunk/debian/changelog0000644000000000000000000002557512273154705012227 0ustar dh-make-php (0.4.0) unstable; urgency=low * add support for new /etc/php5/mods-available structure (Thanks to Casper Langemeijer) (Closes: #736945) * fix bashism (Closes: #690643) * use pear config for getting directories in pear.mk (Closes: #626064) * issued warnings when downloading a package has no negative effect on building the package anymore (Closes: #624473) -- Uwe Steinmann Sat, 01 Feb 2014 12:25:50 +0100 dh-make-php (0.3.0) unstable; urgency=low * option --only is deprecated, use --phpversion * dh-make-pecl builds extenÑ•ion for php5 only by default * updated template files to standards version 3.9.1 (Closes: #572334) * remove md5sums from package.xml before building to allow proper patching (Closes: #525656) * check for php scripts in the package that require php-cli and if so, add a dependency on it (Closes: #464934) -- Uwe Steinmann Tue, 31 Aug 2010 10:32:35 +0200 dh-make-php (0.2.16) unstable; urgency=low * --arch option is working again (Closes: #569044) * added 'php-pear, ${misc:Depends}' to Depends in created pear pkg (Closes: #553454, #553448) * added --rename option (Closes: #553447) * output error message if downloading pear package fails (Closes: #569054) * add option --state (Closes: #553446) * fixed lots of warnings when creating manual pages * removed Charles Fry from Uploaders (Closes: #569473) -- Uwe Steinmann Thu, 11 Feb 2010 18:56:32 +0100 dh-make-php (0.2.15) unstable; urgency=low * pass --offline option to 'pear install' in pear.mk because the buildd may not fetch online resources (Closes: #544411) -- Uwe Steinmann Fri, 4 Sep 2009 07:22:58 +0200 dh-make-php (0.2.14) unstable; urgency=low * use fmt instead of fold in dh-make-pecl and dh-make-pear (Closes: #516185) * updated generated control and compat files to standards version 3.8.1 and compat level 7 (Closes: #520030) * added missing colon after 'Closes' in generated changelog file * nicer formating of generated copyright file, added copyright for Debian packaging -- Uwe Steinmann Thu, 19 Mar 2009 21:55:04 +0100 dh-make-php (0.2.13) unstable; urgency=low * dh-make-pecl can extract the package from downloaded packages, even if the download causes a warning (Closes: #512741) -- Uwe Steinmann Fri, 23 Jan 2009 21:55:04 +0100 dh-make-php (0.2.12) unstable; urgency=low * phppkginfo can now handle multiple developers in package.xml (version 2) -- Uwe Steinmann Fri, 30 May 2008 21:33:00 +0200 dh-make-php (0.2.11) unstable; urgency=low * phppkginfo checks for package.xml or package2.xml in the given directory instead of expecting PEAR_Package::fromAnyFile() to do so (Closes: #471279). -- Uwe Steinmann Mon, 20 May 2008 13:33:00 +0200 dh-make-php (0.2.10) unstable; urgency=low * package name prefix can be the empty string (Closes: #464486) * added closing of ITP bug changelog template * fixed copyright line in copyright template file * updated licenses (Closes: #467467) -- Uwe Steinmann Tue, 04 Mar 2008 08:27:10 +0100 dh-make-php (0.2.9) unstable; urgency=low * Read single and multiple leads from package.xml (version 2) * Did various test to reproduce bug #433456, which was imposible. So let's just close it (Closes: #433456) * fixed lintian warnings -- Uwe Steinmann Tue, 04 Mar 2008 00:22:30 +0100 dh-make-php (0.2.8) unstable; urgency=low * Do not install pear packages by postinst, prerm scripts anymore, but keep the .reg file instead and install it into /usr/share/php/.registry/. (Closes: #443523) -- Uwe Steinmann Wed, 26 Sep 2007 11:42:25 +0200 dh-make-php (0.2.7) unstable; urgency=low * Replaced PHP license 3.0 with 3.01 (Closes: #442309) * Add postinst, prerm scripts. Keep package.xml in docs for use. Update watch template (patch provided by Mark A. Hershberger ) (Closes: #442035) * updated url in watch file (another fix by Mark A. Hershberger) -- Uwe Steinmann Mon, 17 Sep 2007 11:12:42 +0200 dh-make-php (0.2.6) unstable; urgency=low * Use -P instead of -R in pear.mk when calling 'pear install' (Closes: #439613) * Make clean target in pear.mk fail safe (Closes: #440073) -- Uwe Steinmann Wed, 29 Aug 2007 16:06:42 +0200 dh-make-php (0.2.5) unstable; urgency=low * Removed tmp directory which was left over by pear install and became part of the binary package * fixed link to orig src which uses a '-' instead of a '_' to separate the version number * Call /usr/bin/pecl instead of pecl in dh-make-pecl * No need to set ZENDAPI by getzendapi(). This also removes a dependency on php4. (Closes: #434133) -- Uwe Steinmann Sat, 18 Aug 2007 23:06:42 +0200 dh-make-php (0.2.4) unstable; urgency=low * Do not call command for creation of changelog from package.xml in a sub shell (Closes: #437395) -- Uwe Steinmann Fri, 17 Aug 2007 22:16:23 +0200 dh-make-php (0.2.3) unstable; urgency=low * Do not depend on php4-pear anymore, because it is a transitional package anyway and php4 will disappear soon. (Closes: #424787) * extract information from package.xml with an included php script instead of using xsltproc and xmlstarlet. This is much more reliable because support for new versions of the package file is much easier to add. (Closes: #432880) * Drop dependency on xsltproc and xmlstarlet * Full support for version 2.0 of package.xml (Closes: #364873) -- Uwe Steinmann Thu, 19 Jul 2007 23:37:28 +0200 dh-make-php (0.2.2) unstable; urgency=low * fixed debian/rules for pecl extensions php4apiver wasn't set propperly -- Uwe Steinmann Wed, 28 Mar 2007 12:36:26 +0200 dh-make-php (0.2.1) unstable; urgency=low * dh-make-pecl now creates extensions with its ini file in conf.d. It also fixes a very nasty bug which leads to an installation of the php4 module into php5. The pecl module now depends on the php api version. -- Uwe Steinmann Wed, 28 Mar 2007 11:29:34 +0200 dh-make-php (0.2.0) unstable; urgency=low * lowered dependency on xmlstarlet from 1.0.1 to 1.0.0 and check for /usr/bin/xmlstarlet or /usr/bin/xml. This should ease backporting it to sarge. * no more dependencies on php[4|5] if --only option was used (Closes: #365846) * support for new package.xml version 2.0 * debian/rules for pecl packages now follows the release requirements (added build target) * move to compat level 5 -- Uwe Steinmann Fri, 02 Nov 2006 11:55:59 +0100 dh-make-php (0.1.3) unstable; urgency=low * pear.template/control should use Build-Depend instead of Build-Depend-Indep -- Charles Fry Wed, 14 Jun 2006 10:01:02 -0400 dh-make-php (0.1.2) unstable; urgency=low * use versioned dependency in pear.template/control to ensure presence of pear.mk -- Charles Fry Tue, 6 Jun 2006 08:14:40 -0400 dh-make-php (0.1.1) unstable; urgency=low * call debhelper.mk from debian/rules not pear.mk -- Charles Fry Mon, 5 Jun 2006 08:24:14 -0400 dh-make-php (0.1.0) unstable; urgency=low * made it native debian package * Use CDBS pear.mk (Closes: #332632) * Automatically generate changelogs in dh-make-pear * Minor cleanup of packaging files * install templates file into php5 binary package (Closes: #356257) * use pecl in dh-make-pecl to download pecl packages (Closes: #364874) * document --only option of dh-make-pecl in man page (Closes: #365665) * do not use option --phpapi of php-config4 anymore. Use --extension-dir and some post processing instead, because the version of php-config4 in sarge does not have that option. (Closes: #365667) -- Uwe Steinmann Tue, 30 May 2006 10:51:52 +0100 dh-make-php (0.0.13-1) unstable; urgency=low * New upstream release * Recommends php-pear (Closes: #345265) -- Uwe Steinmann Mon, 13 Feb 2006 11:35:33 +0100 dh-make-php (0.0.12-1) unstable; urgency=low * New upstream release * replaced backticks by $(shell ) in template rules files (Closes: #330718) -- Uwe Steinmann Fri, 25 Nov 2005 11:04:57 +0100 dh-make-php (0.0.11-1) unstable; urgency=low * New upstream release * move documentation from /usr/share/php/docs to /usr/share/doc in pear packages (Closes: #329386) * fold description of generated debian package to 70 chars (Closes: #329807) * use more consitent variable names (Closes: #329809) -- Uwe Steinmann Tue, 04 Oct 2005 14:48:57 +0200 dh-make-php (0.0.10-1) unstable; urgency=low * New upstream release * Consider most recent entry of changelog in package.xml (Closes: #327679) * Create binary packages for php4/5 from one source (Closes: #325051) -- Uwe Steinmann Tue, 13 Sep 2005 08:31:32 +0200 dh-make-php (0.0.9-1) unstable; urgency=low * New upstream release - if the name of the package is passed to dh-make-pecl|pear it will download it from pecl/pear (Closes: #321317) -- Uwe Steinmann Fri, 05 Aug 2005 13:14:00 +0200 dh-make-php (0.0.8-1) unstable; urgency=low * New upstream release - do not move but symlink original archive (Closes: #319493) - added more elaborated license text to template/copyright (Closes: #319498) - removed empty line at end of pear.template/control (Closes: #319494) * Suppress some warnings of linitan * Added xsltproc to Build-Depends-Indep (Closes: #319566) -- Uwe Steinmann Fri, 22 Jul 2005 22:28:30 +0200 dh-make-php (0.0.7-1) unstable; urgency=low * orig.tar.gz can be used unmodified, uupdate now works -- Uwe Steinmann Fri, 15 Jul 2005 11:11:07 +0200 dh-make-php (0.0.6-1) unstable; urgency=low * New upstream release. -- Uwe Steinmann Thu, 24 Jun 2005 22:33:25 +0200 dh-make-php (0.0.5-1) unstable; urgency=low * New upstream release. -- Uwe Steinmann Thu, 16 Jun 2005 09:15:05 +0200 dh-make-php (0.0.4-1) unstable; urgency=low * New upstream release. * No need for dependency from php4-pear -- Uwe Steinmann Thu, 18 Mar 2004 08:23:45 +0200 dh-make-php (0.0.3-1) unstable; urgency=low * New upstream release. * No more depend on sgrep but xsltproc -- Uwe Steinmann Fri, 12 Mar 2004 10:51:32 +0200 dh-make-php (0.0.2-1) unstable; urgency=low * New upstream release. -- Uwe Steinmann Mon, 01 Mar 2004 10:51:32 +0200 dh-make-php (0.0.1-1) unstable; urgency=low * Initial Release. -- Uwe Steinmann Fri, 27 Feb 2004 13:41:12 +0200 trunk/debian/docs0000644000000000000000000000002510434600617011202 0ustar README ChangeLog.old trunk/debian/rules0000755000000000000000000000342311160245543011414 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PACKAGE_NAME=dh-make-php configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. ./configure --prefix /usr touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/$PACKAGE_NAME. $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/usr install -d -o root -g root debian/$(PACKAGE_NAME)/usr/share/lintian/overrides install -o root -g root -m 0644 debian/dh-make-php.lintian \ debian/$(PACKAGE_NAME)/usr/share/lintian/overrides/dh-make-php # Build architecture-dependent files here. binary-arch: build install # We have nothing to do. # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs # dh_installexamples # dh_install --sourcedir=debian/$(PACKAGE_NAME) # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo # dh_installman $(CURDIR)/dh-make-pecl.1 # 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 clean binary-indep binary-arch binary install configure trunk/debian/copyright0000644000000000000000000000032710763106701012267 0ustar dh-make-php is Copyright 2006-2008 Uwe Steinmann and others. dh-make-php is licenced under the terms of the GNU General Public License (GPL), which can be found in /usr/share/common-licenses/GPL on Debian systems. trunk/debian/compat0000644000000000000000000000000211160243367011532 0ustar 7 trunk/debian/README.Debian0000644000000000000000000000041210434600617012370 0ustar dh-make-php for Debian ---------------------- dh-make-php contains two programs dh-make-pecl and dh-make-pear to faciliate the creation of source packages from PECL or PEAR extension for PHP> -- Uwe Steinmann , Fri, 27 Feb 2004 21:41:12 +0200 trunk/debian/dh-make-php.lintian0000644000000000000000000000067211335045652014015 0ustar dh-make-php: extra-license-file usr/share/dh-make-php/licenses/php-license dh-make-php: script-not-executable ./usr/share/dh-make-php/pecl.template/rules dh-make-php: script-not-executable ./usr/share/dh-make-php/pecl.template/rules.CDBS dh-make-php: script-not-executable ./usr/share/dh-make-php/dh-make-php.lib dh-make-php: missing-dep-for-interpreter make => make | build-essential | dpkg-dev (./usr/share/dh-make-php/pear.template/rules) trunk/debian/dirs0000644000000000000000000000005210434600617011213 0ustar usr/share/ usr/share/cdbs/1/class usr/bin trunk/changelog.xsl0000644000000000000000000001052010437314527011572 0ustar 0 Version - ( ) ---------------------------------------- Notes: trunk/build.py0000755000000000000000000000076010437334222010566 0ustar #!/usr/bin/python # Filename : helloworld.py import os maintainer = 'Uwe Steinmann ' packages = { 'fileinfo' : { 'name' : 'Fileinfo', 'args' : '' }, 'ps' : { 'name' : 'ps', 'args' : '' } } for (pkgname, pkginfo) in packages.items(): if 'args' in pkginfo: args = pkginfo['args'] else: args = '' cmd = 'dh-make-pecl --maintainer "%s" %s %s && (cd php-%s-* && dpkg-buildpackage -us -uc -rfakeroot)' % (maintainer, args, pkgname, pkgname) print cmd # os.system(cmd) trunk/phppkginfo0000755000000000000000000001317512273154164011216 0ustar #!/usr/bin/php -f \n"; echo " dir - Directory containing package.xml file\n"; echo "\ncommands:\n"; echo " version - Version of package\n"; echo " maintainers - Comma separated list of maintainers\n"; echo " summary - Short summary of package\n"; echo " description ¯ Long description of package\n"; echo " packagerversion - Version of packager\n"; echo " package - Name of package\n"; echo " release_license - License of released version\n"; echo " license - License of package\n"; echo " date - Date of release\n"; echo " changelog - Full changelog of package\n"; echo " hasphpscript - Check if package contains files of type 'script'\n"; echo " all - print_r() of complete package file\n"; } function checkForPhpScript($content) { foreach($content as $name=>$item) { if($name == 'dir') { return checkForPhpScript($item); } elseif($name == 'file') { foreach($item as $file) { if($file['attribs']['role'] == 'script') { // echo "Found file of type ".$file['attribs']['role'].": ".$file['attribs']['name']."\n"; return 1; } } } } return 0; } if($_SERVER["argc"] < 3) { usage(); exit; } $config = new PEAR_Config(); $pkg = new PEAR_PackageFile($config); /* newer versions of PEAR_PackageFile can take a directory as the * first parameter of fromAnyFile(), but older version cannot. */ if (is_dir($_SERVER["argv"][1])) { $dir_name = realpath($_SERVER["argv"][1]); if (file_exists($dir_name . '/package.xml')) { $packagefilename = $dir_name . '/package.xml'; } elseif (file_exists($dir_name . '/package2.xml')) { $packagefilename = $dir_name . '/package2.xml'; } else { $info = PEAR::raiseError("No package definition found in '$info' directory"); } } else { $packagefilename = $_SERVER["argv"][1]; } $pf = $pkg->fromAnyFile($packagefilename, PEAR_VALIDATE_NORMAL); //echo get_class($pf); //print_r($pf); //exit; //print_r($pf->_packageInfo); if(get_class($pf) == "PEAR_PackageFile_v1") { switch($_SERVER["argv"][2]) { case "version": case "summary": case "description": case "packagerversion": case "package": case "release_license": case "release_date": echo $pf->_packageInfo[$_SERVER["argv"][2]]; break; case "date": echo $pf->_packageInfo["release_date"]; break; case "license": echo $pf->_packageInfo["release_license"]; break; case "maintainers": $tmp = array(); foreach($pf->_packageInfo["maintainers"] as $maintainer) $tmp[] = $maintainer["name"]; echo implode(", ", $tmp); break; case "changelog": $changelog = &$pf->_packageInfo; echo "Version ".$changelog["version"]." - ".$changelog["release_date"]." (".$changelog["release_state"].")\n"; echo "----------------------------------------\n"; echo "Notes:\n"; echo " ".str_replace("\n", "\n ", wordwrap(ereg_replace("[[:space:]]+", " ", $changelog["release_notes"])))."\n\n"; foreach($pf->_packageInfo["changelog"] as $changelog) { echo "Version ".$changelog["version"]." - ".$changelog["release_date"]." (".$changelog["release_state"].")\n"; echo "----------------------------------------\n"; echo "Notes:\n"; echo " ".str_replace("\n", "\n ", wordwrap(ereg_replace("[[:space:]]+", " ", $changelog["release_notes"])))."\n\n"; } break; case "hasphpscript": /* not yet implemented for verion 1.0 package files */ echo "0"; break; case "all": print_r($pf->_packageInfo); break; default: } } elseif(get_class($pf) == "PEAR_PackageFile_v2") { switch($_SERVER["argv"][2]) { case "version": echo $pf->_packageInfo[$_SERVER["argv"][2]]["release"]; break; case "packagerversion": echo $pf->_packageInfo["attribs"][$_SERVER["argv"][2]]; break; case "summary": case "description": case "release_license": case "date": echo $pf->_packageInfo[$_SERVER["argv"][2]]; break; case "package": echo $pf->_packageInfo["name"]; break; case "license": echo $pf->_packageInfo["license"]; break; case "maintainers": $tmp = array(); if(isset($pf->_packageInfo["lead"])) { if(isset($pf->_packageInfo["lead"]["name"])) $tmp[] = $pf->_packageInfo["lead"]["name"]; else foreach($pf->_packageInfo["lead"] as $maintainer) $tmp[] = $maintainer["name"]; } if(isset($pf->_packageInfo["developer"])) { if(isset($pf->_packageInfo["developer"]["name"])) $tmp[] = $pf->_packageInfo["developer"]["name"]; else foreach($pf->_packageInfo["developer"] as $maintainer) $tmp[] = $maintainer["name"]; } echo implode(", ", $tmp); break; case "changelog": $changelog = &$pf->_packageInfo; echo "Version ".$changelog["version"]["release"]." - ".$changelog["date"]." (".$changelog["stability"]["release"].")\n"; echo "----------------------------------------\n"; echo "Notes:\n"; echo " ".str_replace("\n", "\n ", wordwrap(ereg_replace("[[:space:]]+", " ", $changelog["notes"])))."\n\n"; $tmparr = array_reverse($pf->_packageInfo["changelog"]["release"]); foreach($tmparr as $changelog) { echo "Version ".$changelog["version"]["release"]." - ".$changelog["date"]." (".$changelog["stability"]["release"].")\n"; echo "----------------------------------------\n"; echo "Notes:\n"; echo " ".str_replace("\n", "\n ", wordwrap(ereg_replace("[[:space:]]+", " ", $changelog["notes"])))."\n\n"; } break; case "hasphpscript": $content = $pf->_packageInfo['contents']; $hasscript = checkForPhpScript($content); echo $hasscript; break; case "all": print_r($pf->_packageInfo); break; default: } } ?> trunk/man/0000755000000000000000000000000012273152163007664 5ustar trunk/man/dh-make-pear.xml0000644000000000000000000002010711335047451012642 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ manpages/docbook.xsl XP=xsltproc -''-nonet manpage.1: manpage.dbk $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. --> Debian"> GNU"> GPL"> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2004-2010 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; Create debian source packages from pear modules &dhpackage; PACKAGE DESCRIPTION This manual page documents briefly the &dhpackage; command. &dhpackage; creates the files required to build a debian source package from a PHP extension as it is distributed through PEAR. The last parameter passed to &dhpackage; can be either the .tgz archive containing the php extension or the name of the extension. In the second case &dhpackage; will first download the archive from http://pear.php.net. If &dhpackage; downloads the archive itself, it will always take the most recent version. &dhpackage; will by default create a directory named php-<pear-package-name> which will contain the debian files and the unpacked files from the extension. It will also create a symlink php-<pear-package-name>_<version>.orig.tar.gz pointing towards the original source. After creating the files you can go into then new directory and build the debian package with dpkg-buildpackage -rfakeroot. &dhpackage; tries to extract as much information about the package from the file package.xml which is part of the pear extension. Debian source packages created by &dhpackage; can later easily be updated with uscan. OPTIONS These programs follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. Show summary of options. Show version of program. Do not link orig.tar.gz but move the source into .orig.tar.gz. Set architecture of created debian source package to 'any' or 'all'. Defaults to 'all'. Set preferred state for downloaded package. Defaults to 'stable'. Adds more packages to Depends: beside php-pear. Sets prefix of debian source package name. Each name ends in '<pear-package-name>'. Defaults to 'php-'. Explicitly sets the maintainer. In most cases it will be propperly guessed by reading some of the environment variables. Use a different directory with templates for the debian files. Defaults to /usr/share/dh-make-php/pear.template. ENVIRONMENT DEBFULLNAME - get the real name of the maintainer LOGNAME or USER - get the username DEBEMAIL or EMAIL - get the email address of the user SEE ALSO dh-make-pecl (1).
trunk/man/dh-make-pecl.xml0000644000000000000000000002667412273147224012656 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\ manpages/docbook.xsl XP=xsltproc -''-nonet manpage.1: manpage.dbk $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. --> Debian"> GNU"> GPL"> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2004-2010 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; Create debian source packages from pecl extensions &dhpackage; PACKAGE DESCRIPTION This manual page documents briefly the &dhpackage; command. &dhpackage; creates the files required to build a debian source package from a PHP extension as it is distributed through PECL. The last parameter passed to &dhpackage; can be either the .tgz archive containing the php extension or the name of the extension. In the second case &dhpackage; will first download the archive from http://pecl.php.net. If &dhpackage; downloads the archive itself, it will always take the most recent version. &dhpackage; will by default create a directory named php-<pecl-package-name>-<pecl-package-version> which will contain the debian files and the unpacked files from the extension. It will also create a symlink php-<pecl-package-name>_<version>.orig.tar.gz pointing towards the original source. After creating the files you can go into then new directory and build the debian package with dpkg-buildpackage -rfakeroot. This will (for version 0.2.x) create php4-<pecl-package-name> and php5-<pecl-package-name> binary packages. Since version 0.3.x only the binary package for php5 will be build anymore. &dhpackage; tries to extract as much information about the package from the file package.xml which is part of the pecl extension. Though, there is some information like depends on other debian packages, which must be given by options, e.g. or . Debian source packages created by &dhpackage; can later easily be updated with uscan. OPTIONS These programs follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. Show summary of options. Show version of program. Set architecture of created debian source package to 'any' or 'all'. Defaults to 'any'. Adds more packages to Depends: beside php4|php5. Adds more packages to Build-Depends: beside php4-dev, php5-dev, debhelper and dh-make-php. Sets prefix of debian source package name. Each name ends in '<pecl-package-name>'. Defaults to 'php'. Explicitly sets the maintainer. In most cases it will be propperly guessed by reading some of the environment variables. Overwrite package name in package.xml. This name will be prefixed with `php-'. Do not use this function unless you know what you are doing. Use a different directory with templates for the debian files. Defaults to /usr/share/dh-make-php/pecl.template. This option is deprecated. Use --phpversion. Set this to 4 or 5 in order to produce a debian package which creates a binary package for php4 or php5 only, but not for both. This is mostly useful if a pecl package does not compile for all php version. Set this to 4, 5 or both separated by a space in order to produce a debian package which creates a binary package for the given php major versions. This is mostly useful if you want to create a pecl package for php4, which is not created by default anymore since &dhpackage; 0.3.0. Some time between Sarge and Etch, the debian php packages has moved its configuration into its own ini file in /etc/php[45]/conf.d and no longer modify the global configuration in /etc/php[45]/<sapi>/php.ini. Since Version 0.2.1 of dh-make-php this is the default behaviour when creating packages. If you prefer the old way of creating php pecl packages use this option. PHP 5.5 has introduced a new configuration schema for pecl extensions. This is used by default, if /etc/php5/mods-available is found on the system wher dh-make-pecl runs. This option is provided to explicity turn on PHP 5.5 configuration even if the default is off. This option is provided to explicity turn off PHP 5.5 configuration even if the default is on. ENVIRONMENT &dhpackage; evaluates the following environment variables: DEBFULLNAME - the real name of the maintainer LOGNAME or USER - the username DEBEMAIL or EMAIL - the email address of the user SEE ALSO dh-make-pear (1).
trunk/peclbuildall.php0000644000000000000000000000043710665532030012260 0ustar "; $extraoptions = "--only 5"; $packages = array(array("pkgname"=>"memcache")); foreach($packages as $package) { $cmd = "dh-make-pecl ".$extraoptions. " --maintainer \"".$maintainer."\" ".$package["pkgname"]; echo $cmd."\n"; } ?> trunk/pecl.template/0000755000000000000000000000000012273152046011646 5ustar trunk/pecl.template/control0000644000000000000000000000030611437147024013251 0ustar Source: ##packagename## Section: web Priority: optional Maintainer: ##maintainer## Build-Depends: debhelper (>= 7), po-debconf, xsltproc ##phpdevdepends## ##builddepends## Standards-Version: 3.9.1 trunk/pecl.template/changelog0000644000000000000000000000020711160241424013510 0ustar ##packagename## (##version##-1) unstable; urgency=low * Initial Release (Closes: #). -- ##maintainer## ##date## trunk/pecl.template/watch0000644000000000000000000000016610434600620012673 0ustar version=3 http://pecl.php.net/package/##peclpackagename## \ /get/##peclpackagename##-([\d\.]*).tgz debian uupdate trunk/pecl.template/docs0000644000000000000000000000000010434600620012500 0ustar trunk/pecl.template/control-bin0000644000000000000000000000027110602427161014014 0ustar Package: ##binpackagename## Architecture: ##architecture## Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}##depends## Description: ##package## module for PHP ##phpversion## trunk/pecl.template/rules0000644000000000000000000001055112262603265012727 0ustar #!/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=##peclpackagename## PECL_PKG_REALNAME=##peclpackagerealname## PECL_PKG_VERSION=##version## PACKAGE_NAME=##packagename## BIN_PACKAGE_NAME=##packageprefix##$*-##peclpackagename## PHPIZE=/usr/bin/phpize PHPCONFIG=/usr/bin/php-config EXT_DIR=$(shell $(PHPCONFIG)$* --extension-dir) SOURCE_DIR=$(shell ls -d $(PECL_PKG_REALNAME)-*) BINARYTARGETS=##binarytargets## BUILDTARGETS=##buildtargets## CLEANTARGETS=##cleantargets## PHP55CONFD=##php55confd## # Sarge doesn't support --phpapi option (Bug #365667) phpapiver4=$(shell /usr/bin/php-config4 --phpapi) #phpapiver4=$(/usr/bin/php-config4 --extension-dir | xargs basename) phpapiver5=$(shell /usr/bin/php-config5 --phpapi) configure-v4 configure-v5: configure-v%: configure-stamp-v% configure-stamp-v4 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: $(BUILDTARGETS) build-v4 build-v5: build-v%: build-stamp-v% build-stamp: # xsltproc --nonet --novalid debian/changelog.xsl package.xml > debian/Changelog $(shell /usr/share/dh-make-php/phppkginfo . changelog > debian/Changelog) touch build-stamp build-stamp-v4 build-stamp-v5: build-stamp-v%: build-stamp configure-stamp-v% dh_testdir # Add here commands to compile the package. (cd $(SOURCE_DIR); $(MAKE); mkdir -p ../tmp/modules$*; cp modules/* ../tmp/modules$*; $(MAKE) clean) # rm -f build-stamp-v* touch $@ clean: $(CLEANTARGETS) dh_clean clean-v4 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-v4 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 if [ -f "debian/$(PECL_PKG_NAME).ini" ]; then \ if [ "$(PHP55CONFD)" = "true" ]; then \ mkdir -p debian/$(BIN_PACKAGE_NAME)/etc/php$*/mods-available; \ cp debian/$(PECL_PKG_NAME).ini debian/$(BIN_PACKAGE_NAME)/etc/php$*/mods-available; \ else \ mkdir -p debian/$(BIN_PACKAGE_NAME)/etc/php$*/conf.d; \ cp debian/$(PECL_PKG_NAME).ini debian/$(BIN_PACKAGE_NAME)/etc/php$*/conf.d; \ fi \ fi # Build architecture-independent files here. binary-indep: # We have nothing to do by default. # Build architecture-dependent files here. binary-arch-v4 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 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) dh_strip endif 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 build-v4 build-v5 clean clean-v4 clean-v5 binary-indep binary-arch binary-arch-v4 binary-arch-v5 binary install-v4 install-v5 configure-v4 configure-v5 trunk/pecl.template/copyright0000644000000000000000000000061611160242065013577 0ustar This package was debianized by ##maintainer## using dh-make-pecl on ##date##. It was downloaded from http://pecl.php.net/package/##peclpkgname## Upstream Author(s): ##upstream## Copyright: Copyright (C) ##releaseyear## ##upstream## License: ##license## The Debian packaging is copyright 2009, ##maintainer## and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. trunk/pecl.template/php.ini0000644000000000000000000000014212273145415013135 0ustar ; configuration for php ##peclpackagename## module ; priority=20 extension=##peclpackagename##.so trunk/pecl.template/compat0000644000000000000000000000000211160240707013040 0ustar 7 trunk/pecl.template/postinst0000755000000000000000000000234510434600620013454 0ustar #!/bin/sh -e PECL_NAME=##peclpackagename## PHP_VERSION=##phpversion## # Source debconf library. . /usr/share/debconf/confmodule if [ "$DPKG_DEBUG" = "developer" ]; then set -x fi if [ "$1" != "configure" ]; then exit 0 fi ##DEBHELPER## for SAPI in apache2 apache cgi cli; do if [ -f /etc/php${PHP_VERSION}/$SAPI/php.ini ]; then db_get php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI if [ "$RET" = "true" ] \ && ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*${PECL_NAME}\.so" /etc/php${PHP_VERSION}/$SAPI/php.ini then echo "extension=${PECL_NAME}.so" >> /etc/php${PHP_VERSION}/$SAPI/php.ini fi fi done exit 0 # Restart apache(s) so settings get refreshed if [ -d /etc/php${PHP_VERSION}/apache2 ]; then for srv in apache2 ; do if [ -x "/etc/init.d/$srv" ]; then if [ -x /usr/sbin/invoke-rc.d ]; then /usr/sbin/invoke-rc.d $srv force-reload else /etc/init.d/$srv force-reload fi fi done fi if [ -d /etc/php${PHP_VERSION}/apache ]; then for srv in apache apache-ssl apache-perl ; do if [ -x "/etc/init.d/$srv" ]; then if [ -x /usr/sbin/invoke-rc.d ]; then /usr/sbin/invoke-rc.d $srv force-reload else /etc/init.d/$srv force-reload fi fi done fi exit 0 trunk/pecl.template/README.Debian0000644000000000000000000000024510434600620013701 0ustar ##packagename## for Debian -------------------------- This extension has been created with dh-make-pecl which is part of dh-make-php. -- ##maintainer##, ##date## trunk/pecl.template/templates0000644000000000000000000000126510434600620013564 0ustar Template: php/add_extension Type: boolean Default: true _Description: Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini? You are installing ${extname} support for php${phpversion}, and it is not yet enabled in the configuration for the ${sapiconfig} SAPI. Do you want this extension to be enabled now? Template: php/remove_extension Type: boolean Default: true _Description: Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini? You are removing ${extname} support for php${phpversion}, but it is still enabled in the configuration for the ${sapiconfig} SAPI. Leaving this in place will probably cause problems when trying to use PHP. trunk/pecl.template/po/0000755000000000000000000000000012262603014012256 5ustar trunk/pecl.template/po/da.po0000644000000000000000000000461110434600620013203 0ustar # translation of php4_4:4.3.3-5_templates.po to Danish # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # Claus Hindsgaul , 2004. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-02-20 17:04+0100\n" "Last-Translator: Claus Hindsgaul \n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.3\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Skal ${extname} tilføjes i /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Du er ved at installere understøttelse for ${extname} i php${phpversion}, og den er " "endnu ikke aktiveret i opsætningen for ${sapiconfig}-SAPI'en. Ønsker du at " "aktivere denne udvidelse nu?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Skal ${extname} fjernes fra /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Du er ved at fjerne understøttelse for ${extname} i php${phpversion}, og den er stadig " "aktiveret i opsætningen for ${sapiconfig}-SAPI'en. Hvis du lader det være, " "vi du sikkert få problemer med at bruge PHP." trunk/pecl.template/po/it.po0000644000000000000000000000341610434600620013235 0ustar msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-11-09 11:00+0100\n" "Last-Translator: Stefano Melchior \n" "Language-Team: Italian Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Si deve aggiungere ${extname} a /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Si sta installando il supporto ${extname} per php${phpversion} e non si è abilitato " "ancora la configurazione ${sapiconfig} della SAPI. Abilitare questa " "estensione ora?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Si deve rimuovere ${extname} da /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Si sta rimuovendo il supporto di ${extname} da php${phpversion}, benchè sia ancora " "abilitato nella configurazione ${sapiconfig} della SAPI. Lasciando così si " "potranno creare dei problemi quando si cercherà di usare PHP." trunk/pecl.template/po/cs.po0000644000000000000000000000420110434600620013217 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-09-29 15:30+0200\n" "Last-Translator: Miroslav Kure \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Má se ${extname} pøidat do /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Instalujete podporu ${extname} pro php${phpversion}, která je¹tì není povolena v " "konfiguraci pro ${sapiconfig} SAPI. Chcete povolit tento modul?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Má se ${extname} odstranit z /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Odstraòujete podporu ${extname} pro php${phpversion}, která je stále povolena v " "konfiguraci pro ${sapiconfig} SAPI. To mù¾e zpùsobit problémy pøi pou¾ívání " "PHP." trunk/pecl.template/po/tr.po0000644000000000000000000000372210434600620013246 0ustar # Turkish translation of php4-ps. # This file is distributed under the same license as the php4-ps package. # Mehmet Türker , 2004. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-05-10 04:34+0300\n" "Last-Translator: Mehmet Türker \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "${extname} /etc/php${phpversion}/${sapiconfig}/php.ini dosyasına eklenmeli mi?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Php4 için ${sapiconfig} desteÄŸini kuruyorsunuz ve bu henüz ${sapiconfig} " "SAPI tanımında etkinleÅŸtirilmemiÅŸ. Bu uzantının ÅŸimdi etkinleÅŸtirilmesini " "ister misiniz?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "${extname} /etc/php${phpversion}/${sapiconfig}/php.ini dosyasından çıkartılsın mı?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Php4 için ${extname} desteÄŸini kaldırıyorsunuz, fakat bu destek, " "${sapiconfig} SAPI yapılandırmasında hâlâ etkin. Bu ÅŸekilde bırakmak büyük " "ihtimalle PHP'yi kullanmayı denerken sorunlara yol açacak." trunk/pecl.template/po/pt_BR.po0000644000000000000000000000447710434600620013637 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2003-08-24 21:55-0300\n" "Last-Translator: André Luís Lopes \n" "Language-Team: Debian-BR Project \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "${extname} deve ser adicionado a /etc/php${phpversion}/${sapiconfig}/php.ini ?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Você está instalando o suporte a ${extname} para o php${phpversion} e o mesmo ainda não " "está habilitado para a configuração SAPI ${sapiconfig}. Você deseja que essa " "extensão seja habilitada agora ?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "${extname} deve ser removido de /etc/php${phpversion}/${sapiconfig}/php.ini ?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Você está removendo o suporte a ${extname} para o php${phpversion} e o mesmo ainda " "continua habilitado para a configuração SAPI ${sapiconfig}. Mantê-lo onde " "está atualmente provavelmente irá causar problemas quando você tentar usar o " "PHP." trunk/pecl.template/po/sv.po0000644000000000000000000000417310434600620013252 0ustar # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # Developers do not need to manually edit POT or PO files. # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: php4-ps 1.3.1-6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-02-15 10:13+0100\n" "PO-Revision-Date: 2005-09-29 19:00-0700\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit" #. Type: boolean #. Description #: ../templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Ska ${extname} läggas till i /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: ../templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Du installerar ${extname} stöd för php${phpversion} och den är ännu inte aktiverad i konfigurationen för ${sapiconfig} SAPI. Vill du aktivera den nu?" #. Type: boolean #. Description #: ../templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Ska ${extname} raderas från /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: ../templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Du tar bort ${extname} stödet för php${phpversion} och den är fortfarande aktiverad i konfigurationen för ${sapiconfig} SAPI. Lämna den aktiverad kan skapa problem när du använder PHP." trunk/pecl.template/po/vi.po0000644000000000000000000000414010434600620013232 0ustar # Vietnamese translation for php4-ps. # Copyright © 2005 Free Software Foundation, Inc. # Clytie Siddall , 2005. # msgid "" msgstr "" "Project-Id-Version: php4-ps 1.3.1-5.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-02-15 10:13+0100\n" "PO-Revision-Date: 2005-07-04 14:43+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" "X-Generator: LocFactoryEditor 1.2.2\n" #.Type: boolean #.Description #:../templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Có nên thêm «${extname}» vào «/etc/php${phpversion}/${sapiconfig}/php.ini» không?" #.Type: boolean #.Description #:../templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "Lúc này bạn Ä‘ang cài đặt cách há»— trợ «${extname}» cho PHP${phpversion}, nhưng mà nó chưa bật trong cấu hình cho SAPI «${sapiconfig}». Bạn có muốn hiệu lá»±c phần mở rá»™ng này ngay bây giá» không?" #.Type: boolean #.Description #:../templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Có nên loại bỠ«${extname}» ra «/etc/php${phpversion}/${sapiconfig}/php.ini» không?" #.Type: boolean #.Description #:../templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "Lúc này bạn Ä‘ang loại bá» cách há»— trợ «${extname}» ra PHP${phpversion}, nhưng mà nó vẫn còn bật trong cấu hình cho SAPI «${sapiconfig}». Nếu bạn không vô hiệu hóa nó, rất có thể gây ra lá»—i trong khi cố sá»­ dụng PHP." trunk/pecl.template/po/fr.po0000644000000000000000000000450310434600620013226 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2003-08-22 10:23+0200\n" "Last-Translator: Michel Grentzinger \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Faut-il ajouter ${extname} à /etc/php${phpversion}/${sapiconfig}/php.ini ?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Vous installez la gestion de ${extname} par php${phpversion} et celle-ci n'est pas " "encore activée dans la configuration ${sapiconfig} SAPI. Souhaitez-vous que " "cette extension soit activée maintenant ?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Faut-il supprimer ${extname} de /etc/php${phpversion}/${sapiconfig}/php.ini ?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Vous êtes en train de supprimer la gestion de ${extname} par php${phpversion} mais elle " "est toujours activée dans la configuration ${sapiconfig} SAPI. Si vous " "laissez cela en l'état, vous aurez sans doute des problèmes lorsque vous " "essayerez d'utiliser PHP." trunk/pecl.template/po/POTFILES.in0000644000000000000000000000004410434600620014030 0ustar [type: gettext/rfc822deb] templates trunk/pecl.template/po/templates.pot0000644000000000000000000000327210434600620015003 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2005-02-15 10:13+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "" #. Type: boolean #. Description #: ../templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" #. Type: boolean #. Description #: ../templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "" #. Type: boolean #. Description #: ../templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" trunk/pecl.template/po/ja.po0000644000000000000000000000431210434600620013207 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2003-11-29 08:35+0900\n" "Last-Translator: Hideki Yamane \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "${extname} ¤ò /etc/php${phpversion}/${sapiconfig}/php.ini ¤ËÄɲä·¤Þ¤¹¤«?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "php${phpversion} ¤Ø¤Î ${extname} µ¡Ç½¤Î¥µ¥Ý¡¼¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¤Þ¤À " "${sapiconfig} SAPI ¤ÎÀßÄ꤬ͭ¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤»¤ó¡£¤³¤Î³ÈÄ¥µ¡Ç½¤ò¤¹¤°¤ËÍ­¸ú¤Ë¤·" "¤Þ¤¹¤«?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "${extname} ¤ò /etc/php${phpversion}/${sapiconfig}/php.ini ¤«¤éºï½ü¤·¤Þ¤¹¤«?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "php${phpversion} ¤Ø¤Î ${extname} µ¡Ç½¤Î¥µ¥Ý¡¼¥È¤òºï½ü¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¤Þ¤À ${sapiconfig} " "SAPI ¤ÎÀßÄê¤ÏÍ­¸ú¤Ë¤Ê¤Ã¤¿¤Þ¤Þ¤Ç¤¹¡£¤³¤Î¤Þ¤Þ¤Î¾ì¹ç¡¢PHP ¤òÍøÍѤ·¤è¤¦¤È¤¹¤ëºÝ¤Ë" "¤ª¤½¤é¤¯ÌäÂ꤬À¸¤¸¤Þ¤¹¡£" trunk/pecl.template/po/de.po0000644000000000000000000000460710434600620013214 0ustar # translation of php4 debconf messages to German # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans# # Developers do not need to manually edit POT or PO files. # Alwin Meschede , 2004. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-02-11 17:42+0100\n" "Last-Translator: Alwin Meschede \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Soll ${extname} zu /etc/php${phpversion}/${sapiconfig}/php.ini hinzugefügt werden?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Sie installieren ${extname}-Unterstützung für php${phpversion}, und sie ist noch nicht " "in der Konfiguration für die ${sapiconfig} SAPI aktiviert. Soll diese " "Erweiterung jetzt aktiviert werden?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Soll ${extname} aus /etc/php${phpversion}/${sapiconfig}/php.ini entfernt werden?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Sie entfernen ${extname}-Unterstützung für php${phpversion}, aber sie ist immer noch in " "der Konfiguration für die ${sapiconfig} SAPI aktiviert. Dies so zu belassen " "kann möglicherweise Probleme bei der Verwendung von PHP verursachen." trunk/pecl.template/po/nl.po0000644000000000000000000000444310434600620013233 0ustar # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2003-11-10 14:15+0100\n" "Last-Translator: Tim Dijkstra \n" "Language-Team: Debian l10n Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "" "Dient ${extname} te worden toegevoegd aan /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "U bent ${extname}-ondersteuning voor php${phpversion} aan het installeren, maar het is " "nog niet geactiveerd in de configuratie van de ${sapiconfig}-SAPI. Wilt u " "deze uitbreiding nu activeren?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Moet ${extname} worden verwijderd uit /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "U bent ${extname}-ondersteuning voor php${phpversion} aan het verwijderen, maar het is " "nog wel geactiveerd in de configuratie van de ${sapiconfig}-SAPI. Dit kan " "problemen veroorzaken tijdens het gebruik van PHP." trunk/pecl.template/po/es.po0000644000000000000000000000500610434600620013225 0ustar # php4 debconf translation to spanish # Copyright (C) 2004 Software in the Public Interest # This file is distributed under the same license as the php4 package. # # Changes: # - Initial translation # Carlos Valdivia Yagüe , 2004 # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf are available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-02-14 12:35+0100\n" "Last-Translator: Carlos Valdivia Yagüe \n" "Language-Team: Debian L10n Spanish Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "¿Desea añadir ${extname} a /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Está añadiendo soporte de ${extname} para php${phpversion} pero aún no está activado en " "la configuración para la ${sapiconfig} SAPI. ¿Quiere activar la extensión " "ahora?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "¿Quiere borrar ${extname} de /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Está quitando soporte de ${extname} para php${phpversion} pero aún está activado en la " "configuración de la ${sapiconfig} SAPI. Si lo deja así es muy posible que le " "cause problemas al intentar usar PHP." trunk/pecl.template/po/ca.po0000644000000000000000000000365710434600620013213 0ustar # php4-ps (debconf) translation to Catalan. # Copyright (C) 2004 Free Software Foundation, Inc. # Aleix Badia i Bosch , 2004 # msgid "" msgstr "" "Project-Id-Version: php4-ps:1.3.1-3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-11-10 10:49-0700\n" "PO-Revision-Date: 2004-01-31 19:46GMT\n" "Last-Translator: Aleix Badia i Bosch \n" "Language-Team: Debian L10n Catalan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: templates:4 msgid "Should ${extname} be added to /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "Voleu afegir l'extensió ${extname} a /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:4 msgid "" "You are installing ${extname} support for php${phpversion}, and it is not yet enabled in " "the configuration for the ${sapiconfig} SAPI. Do you want this extension to " "be enabled now?" msgstr "" "Esteu instal·lant el suport de l'extensió ${extname} per a php${phpversion} i encara no " "està habilitat a la configuració del SAPI ${sapiconfig}. Voleu habilitar " "aquesta extensió?" #. Type: boolean #. Description #: templates:12 msgid "Should ${extname} be removed from /etc/php${phpversion}/${sapiconfig}/php.ini?" msgstr "" "Voleu suprimir l'extensió ${extname} de /etc/php${phpversion}/${sapiconfig}/php.ini?" #. Type: boolean #. Description #: templates:12 msgid "" "You are removing ${extname} support for php${phpversion}, but it is still enabled in the " "configuration for the ${sapiconfig} SAPI. Leaving this in place will " "probably cause problems when trying to use PHP." msgstr "" "Esteu suprimint el suport de l'extensió ${extname} per a php${phpversion} però continua " "habilitat a la configuració del SAPI ${sapiconfig}. Si ho deixeu activat pot " "provocar problemes a l'intentar utilitzar el php." trunk/pecl.template/postrm0000755000000000000000000000051510434600620013112 0ustar #!/bin/sh set -e # Automatically added by dh_installdebconf if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 trunk/pecl.template/php55postinst0000644000000000000000000000014012262602727014335 0ustar #!/bin/sh set -e [ "$1" = "configure" ] && php5enmod ##peclpackagename## #DEBHELPER# exit 0 trunk/pecl.template/dirs0000644000000000000000000000003210434600620012516 0ustar usr/lib/php##phpversion## trunk/pecl.template/rules.CDBS0000644000000000000000000000023210521211002013410 0ustar #!/usr/bin/make -f # template debian/rules provided by dh-make-php. include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/pecl.mk trunk/pecl.template/config0000755000000000000000000000170410434600620013034 0ustar #!/bin/sh -e PECL_NAME=##peclpackagename## PHP_VERSION=##phpversion## # Source debconf library. . /usr/share/debconf/confmodule db_title "PHP" for SAPI in apache apache2 cgi cli do # Skip this loop if the config file isn't there (yet). if [ -f "/etc/php${PHP_VERSION}/$SAPI/php.ini" ]; then db_register php/add_extension php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI if grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*${PECL_NAME}\.so" "/etc/php${PHP_VERSION}/$SAPI/php.ini" then db_set php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI true else db_set php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI false fi db_subst php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI extname ${PECL_NAME} db_subst php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI sapiconfig $SAPI db_subst php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI phpversion ${PHP_VERSION} db_input low php${PHP_VERSION}/extension_${PECL_NAME}_$SAPI || true fi done db_go trunk/pecl.template/prerm0000755000000000000000000000342010434600620012711 0ustar #!/bin/sh -e PECL_NAME=##peclpackagename## PHP_VERSION=##phpversion## # Source debconf library. . /usr/share/debconf/confmodule if [ "$DPKG_DEBUG" = "developer" ]; then set -x fi if [ "$1" != "remove" ] && [ "$1" != "purge" ]; then exit 0 fi ##DEBHELPER## EXTENSIONRE="^[[:space:]]*extension[[:space:]]*=[[:space:]]*${PECL_NAME}\.so" for SAPI in apache apache2 cgi cli do # Use the same question for all extensions, because it's only # used once per package: right here. if [ -f "/etc/php${PHP_VERSION}/$SAPI/php.ini" ] \ && grep -q "$EXTENSIONRE" /etc/php${PHP_VERSION}/$SAPI/php.ini then db_set php${PHP_VERSION}/remove_extension true db_title "PHP" db_subst php${PHP_VERSION}/remove_extension extname ${PECL_NAME} db_subst php${PHP_VERSION}/remove_extension sapiconfig $SAPI db_input low php${PHP_VERSION}/remove_extension || true db_go db_get php${PHP_VERSION}/remove_extension if [ "$RET" = "true" ]; then grep -v "$EXTENSIONRE" < /etc/php${PHP_VERSION}/$SAPI/php.ini \ > /etc/php${PHP_VERSION}/$SAPI/php.ini.${PECL_NAME}remove chmod --reference=/etc/php${PHP_VERSION}/$SAPI/php.ini \ /etc/php${PHP_VERSION}/$SAPI/php.ini.${PECL_NAME}remove mv /etc/php${PHP_VERSION}/$SAPI/php.ini.${PECL_NAME}remove \ /etc/php${PHP_VERSION}/$SAPI/php.ini fi db_fset php${PHP_VERSION}/remove_extension seen false fi done exit 0 # Restart apache(s) so settings get refreshed if [ -d /etc/php${PHP_VERSION}/apache/ ] || [ -d /etc/php${PHP_VERSION}/apache2/ ]; then for srv in apache2 apache apache-ssl apache-perl; do if [ -x "/etc/init.d/$srv" ]; then if [ -x /usr/sbin/invoke-rc.d ]; then /usr/sbin/invoke-rc.d $srv force-reload else /etc/init.d/$srv force-reload fi fi done fi exit 0 trunk/xslt/0000755000000000000000000000000012262603014010075 5ustar trunk/xslt/changelog.xsl0000644000000000000000000001052010434600617012557 0ustar 0 Version - ( ) ---------------------------------------- Notes: trunk/xslt/common.xsl0000644000000000000000000000063010434600617012121 0ustar - trunk/xslt/maintainers-2.0.xsl0000644000000000000000000000075610437032150013443 0ustar - trunk/xslt/maintainers.xsl0000644000000000000000000000100010434600617013133 0ustar - trunk/xslt/version.xsl0000644000000000000000000000071310437034736012326 0ustar - trunk/xslt/filelist.xsl0000644000000000000000000000101710434600617012444 0ustar - trunk/INSTALL0000644000000000000000000000075110434600620010136 0ustar How to install dh-make-php -------------------------- 1. Run configure and pass the directory for which the package shall be configure with the option -prefix ./configure --prefix /usr 2. Run make to create the man pages make 3. Run 'make install' to install the package. You can set DESTDIR to the destination directory, if you do not want to install the package into the directory specified with the prefix option of ./configure. make DESTDIR=/foo/bar install trunk/TODO0000644000000000000000000000003710434600620007572 0ustar - rethink handling of examples trunk/debhelper/0000755000000000000000000000000012262603014011035 5ustar trunk/debhelper/prerm-pecl0000644000000000000000000000073510434600617013040 0ustar if [ "$1" = "remove" ]; then for SAPI in apache2 apache cgi cli; do if [ -f /etc/php4/$SAPI/php.ini ]; then grep -v "^[[:space:]]*extension[[:space:]]*=[[:space:]]*#PECLMOD#" \ < /etc/php4/$SAPI/php.ini \ > /etc/php4/$SAPI/php.ini.#PECLMOD#remove chmod --reference=/etc/php4/$SAPI/php.ini /etc/php4/$SAPI/php.ini.#PECLMOD#remove mv /etc/php4/$SAPI/php.ini.#PECLMOD#remove /etc/php4/$SAPI/php.ini rm /etc/php4/$SAPI/php.ini.#PECLMOD#remove fi done fi trunk/debhelper/postinst-pecl0000644000000000000000000000045110434600617013571 0ustar if [ "$1" = "configure" ]; then for SAPI in apache2 apache cgi cli; do if [ -f /etc/php4/$SAPI/php.ini ]; then if ! grep -q "^[[:space:]]*extension[[:space:]]*=[[:space:]]*#PECLMOD#" /etc/php4/$SAPI/php.ini; then echo "extension=#PECLMOD#" >> /etc/php4/$SAPI/php.ini fi fi done fi trunk/ChangeLog.old0000644000000000000000000000327310434600717011445 0ustar For changes after 0.0.13 see the debian changelog file dh-make-php (0.0.13) * fixed program options --templatedir and --prefix * use just one templates file for php4-xx and php5-xx * added many translations for debconf settings -- Uwe Steinmann Mon, 13 Feb 2006 11:37:35 +0100 dh-make-php (0.0.11) * fixed debian bug #329809 and 329807 * fold description of generated debian package at a width of 70 * use more consistient variable names in rules file of generated debian pkg * fixed debian bug #329386 * determine PEAR_PHP_DIR and PEAR_PHP_DOC in pear.template/rules should now work with all versions of pear -- Uwe Steinmann Thu, 22 Sep 2005 11:00:01 +0200 dh-make-php (0.0.10) * create binary packages for php4/5 from on source * various error fixes -- Uwe Steinmann Tue, 13 Sep 2005 08:33:59 +0200 dh-make-php (0.0.9) * if the name of the package is passed to dh-make-pecl|pear it will download it from pecl/pear * updated man page dh-make-php (0.0.8) * do no move but symling original archive * add more elaborated license text to debian/copyright dh-make-php (0.0.7) * uupdate can be used for create debian source package dh-make-php (0.0.6) * examples are no longer listed as doc files * removed preset for DEBMAINTAINER -- Uwe Steinmann Thu, 24 Jun 2005 22:37:14 +0200 dh-make-php (0.0.2) * added dh-make-pear * many code cleanups * much better debian package * added README, INSTALL, ChangeLog -- Uwe Steinmann Mon, 01 Mar 2004 10:51:32 +0200 dh-make-php (0.0.1) * Initial Release. -- Uwe Steinmann Fri, 27 Feb 2004 13:41:12 +0200 trunk/VERSION0000644000000000000000000000000611437136427010163 0ustar 0.3.0 trunk/dh-make-php.lib0000644000000000000000000000541511014310576011675 0ustar #!/bin/sh get_maintainer() { if [ -z "${DEBMAINTAINER}" ] ; then echo -n "Guessing Maintainer: " if [ -n "${DEBFULLNAME}" ] ; then REALNAME=${DEBFULLNAME} else if [ -n "${USER}" ] ; then MYUSER=${USER} else if [ -n "${LOGNAME}" ] ; then MYUSER=${LOGNAME} else MYUSER=$(whoami) fi fi if [ -n "${MYUSER}" ] ; then REALNAME=$(awk -F: "/^${MYUSER}:/ { print \$5 }" /etc/passwd | sed -e "s/,.*//g") else echo "Failed determine real name! Consider using Option --maintainer." fi fi if [ -n "${DEBEMAIL}" ] ; then DEBMAINTAINER="${REALNAME} <${DEBEMAIL}>" else if [ -n "${EMAIL}" ]; then DEBMAINTAINER="${REALNAME} <${EMAIL}>" else if [ -f /etc/mailname ] ; then DEBMAINTAINER="${REALNAME} <${MYUSER}@`cat /etc/mailname`>" else echo "Failed determine mail address! Consider using Option --maintainer." fi fi fi if [ -z "${DEBMAINTAINER}" ] ; then echo "Failed! Consider using Option --maintainer." else echo $DEBMAINTAINER fi else echo "Using maintainer: $DEBMAINTAINER" fi } install_docfiles() { for i in ${PACKAGEDOCFILES}; do if [ -f ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/${PHP_PKG_NAME}-${VERSION}/$i ] ; then # chmod 644 ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/$i echo ${PHP_PKG_NAME}-${VERSION}/$i >> ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/debian/docs fi done } install_expfiles() { for i in ${PACKAGEEXPFILES}; do if [ -d ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/${PHP_PKG_NAME}-${VERSION}/$i ] ; then echo "${PHP_PKG_NAME}-${VERSION}/$i/*" >> ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/debian/examples fi done } eval_package() { VERSION=$(${PHPPKGINFO} . version) LICENSE=$(${PHPPKGINFO} . license) UPSTREAM=$(${PHPPKGINFO} . maintainers) RELEASEDATE=$(${PHPPKGINFO} . date) RELEASEYEAR=$(${PHPPKGINFO} . date|cut -b1-4) # PACKAGEDOCFILES=$(${XMLSTARLET} sel ${XMLNSREPLACEOPTION} ${XMLNSREPLACEMENT} -t -m "/${XMLNSPREFIX}package/${XMLNSPREFIX}contents/*/${XMLNSPREFIX}file[@role='doc']" -v "@name" -o " " package.xml | sed -e 's# examples/[^ ]*##g' -e 's#^examples/[^ ]*##g') # PACKAGETESTFILES=$(${XMLSTARLET} sel ${XMLNSREPLACEOPTION} ${XMLNSREPLACEMENT} -t -m "/${XMLNSPREFIX}package/${XMLNSPREFIX}contents/*/${XMLNSPREFIX}file[@role='test']" -v "@name" -o " " package.xml | sed -e 's# examples/[^ ]*##g' -e 's#^examples/[^ ]*##g') LOWLICENSE=$(echo $LICENSE | awk '{print tolower($0)}' | sed 's/ /-/g') if [ -f "${PREFIX}/share/dh-make-php/licenses/${LOWLICENSE}" ]; then LICENSEFILE=${PREFIX}/share/dh-make-php/licenses/${LOWLICENSE} fi PHP_PKG_NAME=$(${PHPPKGINFO} . package) PHP_PKG_LOWNAME=$(echo $PHP_PKG_NAME | awk '{print tolower($0)}' | sed 's/_/-/g') SUMMARY=$(${PHPPKGINFO} . summary) } # vim: syntax=sh trunk/dh_pecl0000755000000000000000000000567010434600620010436 0ustar #!/usr/bin/perl -w =head1 NAME dh_pecl - calculate zendapi dependencies and adds postinst and prerm scripts =cut use strict; use File::Find; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] [B<-n>] [I] =head1 DESCRIPTION dh_pecl is a debhelper program that is responsible for generating ${misc:Depends} substitutions and adding them to substvars files. It will also add a postinst and a prerm script if required. The program will look at any PECL modules in your package, and will use this information to generate a dependency on a specific version of the Zend API, and install the module into the right place. The dependency will be substituted into your package's control file wherever you place the token "${misc:Depends}". If you use this program, your package should build-depend on php4-dev and php5-dev, as well as dh-make-php (the package containing this script). =head1 OPTIONS =over 4 =item I A list of modules, relative to the build root directory, that you want to install into the PHP modules directory. =item B<-n>, B<--noscripts> Do not modify postinst/postrm scripts. =back =head1 CONFORMS TO Debian policy, version 3.6.1 =cut # Dh_Lib initialiser init(); # The current Zend API version my $zendapiver = `grep \'#define ZEND_MODULE_API_NO \' /usr/include/php4/Zend/zend_modules.h | sed 's/#define ZEND_MODULE_API_NO //'`; chomp($zendapiver); my $phpapiver = `grep \'#define PHP_API_VERSION \' /usr/include/php4/main/php.h | sed 's/#define PHP_API_VERSION //'`; chomp($phpapiver); if ($zendapiver eq "") { die "Could not determine Zend API version. Is php4-dev installed?\n"; } if ($phpapiver eq "") { die "Could not determine PHP API version. Is php4-dev installed?\n"; } # Therefore... chomp(my $moduledir = `/usr/bin/php-config --extension-dir`); my $apivirtpkgs = "phpapi-$phpapiver | zendapi-$zendapiver"; foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp = tmpdir($package); my $mfile = pkgfile($package, "pecl"); my @modules = []; if ($mfile) { @modules = filearray($mfile, "."); } else { @modules = @ARGV; } if (@modules) { # Create me a module directory doit("install", "-g", 0, "-o", 0, "-d", "$tmp/$moduledir"); foreach my $mod (@modules) { doit("install", "-g", 0, "-o", 0, $mod, "$tmp/$moduledir"); chmod 0644, "$tmp/$moduledir/$mod"; my $modbase = `basename $mod`; chomp($modbase); # debhelper script snippets, once per module because we have # to add and/or remove each module separately my $subst = "s/#PECLMOD#/$modbase/"; autoscript($package, "postinst", "postinst-pecl", $subst); autoscript($package, "prerm", "prerm-pecl", $subst); } } # Add the Zend API dependency addsubstvar($package, "misc:Depends", $apivirtpkgs); } =head1 SEE ALSO L This program is a part of debhelper. =head1 AUTHOR Matthew Palmer Based on dh_python by Josselin Mouette =cut trunk/README0000644000000000000000000000377110434600620007772 0ustar What is dh-make-[pear|pecl]? ---------------------------- If you know dh-make-perl you already know what dh-make-[pear|pecl] does. Both programs create debian source packages from either an extension from PECL or PEAR. PECL and PEAR are repositories of extensions of the PHP Hypertext Processor. dh-make-pecl currently requires a C extension downloaded from PECL. There is currently no way to let dh-make-pecl download the extension by itself. The program creates a directory php-- containing all files for the debian source package and the extensions files itself. Usually it should be enough to create the debian binary package by running dpkg-buildpackage in the created directory. Building the pecl extension requires a debhelper called dh_pecl which is also part of this distribution. dh-make-pear does the same as dh-make-pecl for modules from PEAR. This version of dh-make-php has several features disabled because they are either not mature enough or need more discussion before making it into a new version. As there are: - the source packages ships a debhelper script dh_pecl. It should rather be part of the debhelper package. dh_pecl inserts appropriate code into postinst and prerm of the pecl package to register the new extension in the various php.ini files. The job of dh_pecl is currently done by supplying templates already containing the code. - apache isn't restarted after modifying /etc/php4/apache2/php.ini. The regular php4 extension don't do that either. - creating a changelog from the extension's package.xml file (this is currently supported by pear.mk, but not yet by pecl) Author: Uwe Steinmann Contributions: Matthew Palmer (dh_pecl and helpers) Charles Fry (allow to use unmodified .orig.tar.gz, many valueable hints on how to improve dh-make-php) Matt Barry «muramas@cyberdiscordia.org> (patch to create php4 and php5 binary package from the same source.) trunk/pecl.mk0000644000000000000000000000515610647347430010402 0ustar # -*- mode: makefile; coding: utf-8 -*- # Copyright (C) 2005-2006 by Uwe Steinmann # Description: Installs and cleans PECL packages # This program 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, or (at # your option) any later version. # # This program 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 program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # 02111-1307 USA. ifndef _cdbs_bootstrap _cdbs_scripts_path ?= /usr/lib/cdbs _cdbs_rules_path ?= /usr/share/cdbs/1/rules _cdbs_class_path ?= /usr/share/cdbs/1/class endif ifndef _cdbs_class_pecl _cdbs_class_pecl := 1 include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) # 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=##peclpackagename## PECL_PKG_REALNAME=##peclpackagerealname## PECL_PKG_VERSION=##version## PACKAGE_NAME=##packagename## BIN_PACKAGE_NAME=##packageprefix##$*-##peclpackagename## PHPIZE=/usr/bin/phpize PHPCONFIG=/usr/bin/php-config EXT_DIR=$(shell $(PHPCONFIG)$* --extension-dir) SOURCE_DIR=$(shell ls -d $(PECL_PKG_REALNAME)-*) BINARYTARGETS=##binarytargets## # Sarge doesn't support --phpapi option (Bug #365667) #phpapiver4=$(shell /usr/bin/php-config4 --phpapi) phpapiver4=$(/usr/bin/php-config4 --extension-dir | xargs basename) phpapiver5=$(shell /usr/bin/php-config5 --phpapi) common-configure-indep:: (cd $(SOURCE_DIR); \ $(PHPIZE)$*; \ ./configure --with-php-config=$(PHPCONFIG)$* --prefix=/usr) common-build-indep:: # xsltproc --nonet --novalid debian/changelog.xsl package.xml > debian/Changelog $(shell /usr/share/dh-make-php/phppkginfo . changelog) > debian/Changelog clean:: (cd $(SOURCE_DIR); \ $(MAKE) clean; \ $(PHPIZE)$* --clean) common-install-indep:: mkdir -p debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR) install -m 644 -o root -g root $(SOURCE_DIR)/modules/$(PECL_PKG_NAME).so debian/$(BIN_PACKAGE_NAME)/$(EXT_DIR)/$(PECL_PKG_NAME).so common-build-arch:: echo "php:Depends=phpapi-$(phpapiver$*)" >> debian/$(BIN_PACKAGE_NAME).substvars trunk/licenses/0000755000000000000000000000000012262603014010710 5ustar trunk/licenses/lgpl0000644000000000000000000000154710763205341011605 0ustar This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser 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 Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. trunk/licenses/bsd0000644000000000000000000000201010763205102011374 0ustar Redistribution and use in source and binary forms, with or without modification, are permitted under the terms of the BSD License. THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. On Debian systems, the complete text of the BSD License can be found in `/usr/share/common-licenses/BSD'. trunk/licenses/artistic0000644000000000000000000000072710763205262012472 0ustar This program is free software; you can redistribute it and/or modify it under the terms of the "Artistic License" which comes with Debian. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. trunk/licenses/gpl0000644000000000000000000000151410763205310011417 0ustar 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'. trunk/licenses/php-license0000644000000000000000000000622210673425070013054 0ustar -------------------------------------------------------------------- The PHP License, version 3.01 Copyright (c) 1999 - 2006 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 software, freely available from ". 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 . PHP includes the Zend Engine, freely available at . trunk/pear.template/0000755000000000000000000000000012262603014011644 5ustar trunk/pear.template/control0000644000000000000000000000045311437147035013262 0ustar Source: ##packagename## Section: web Priority: optional Maintainer: ##maintainer## Build-Depends: debhelper (>= 7), dh-make-php (>= 0.2.3), cdbs Standards-Version: 3.9.1 Package: ##packagename## Architecture: ##architecture## Depends: php-pear, ${misc:Depends} ##depends## Description: ##summary## trunk/pear.template/changelog0000644000000000000000000000020711160241435013516 0ustar ##packagename## (##version##-1) unstable; urgency=low * Initial Release (Closes: #). -- ##maintainer## ##date## trunk/pear.template/watch0000644000000000000000000000020210763210710012670 0ustar version=3 http://pear.php.net/package/##pearpkgname##/download http://download.pear.php.net/package/##pearpkgname##-([\d.]+)\.tgz trunk/pear.template/docs0000644000000000000000000000000010434600620012504 0ustar trunk/pear.template/rules0000755000000000000000000000027410673471124012740 0ustar #!/usr/bin/make -f # template debian/rules provided by dh-make-php. DEB_COMPRESS_EXCLUDE=package.xml include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/pear.mk trunk/pear.template/copyright0000644000000000000000000000061511160242137013602 0ustar This package was debianized by ##maintainer## using dh-make-pear on ##date##. It was downloaded from http://pear.php.net/package/##pearpkgname## Upstream Author(s): ##upstream## Copyright: Copyright (C) ##releaseyear## ##upstream## License: ##license## The Debian packaging is copyright 2009, ##maintainer## and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. trunk/pear.template/compat0000644000000000000000000000000211160240771013045 0ustar 7 trunk/pear.template/postinst0000755000000000000000000000067010673471013013466 0ustar #!/bin/sh set -e case "$1" in configure) if [ -f /usr/share/doc/##packagename##/package.xml -a -x /usr/bin/pear ]; then cd /usr/share/doc/##packagename## /usr/bin/pear install -r -n package.xml fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 trunk/pear.template/README.Debian0000644000000000000000000000024510434600620013705 0ustar ##packagename## for Debian -------------------------- This extension has been created with dh-make-pear which is part of dh-make-php. -- ##maintainer##, ##date## trunk/pear.template/dirs0000644000000000000000000000001610434600620012524 0ustar usr/share/php trunk/pear.template/prerm0000755000000000000000000000051610673471013012727 0ustar #!/bin/sh set -e case "$1" in remove|upgrade|deconfigure) if [ -x /usr/bin/pear ]; then /usr/bin/pear uninstall -r -n ##pearpkgname## fi ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 trunk/dh-make-pecl0000755000000000000000000002431512273154506011276 0ustar #!/bin/sh # # dh-make-pecl creates a debian package from a pecl package # # Copyright (C) 2005-2010 by Uwe Steinmann # under the GNU GPL license version 2.0 or 2.1. # You should have received a copy of the GPL license # along with this program if you did not you can find it # at http://www.gnu.org/. PROGNAME=dh-make-pecl PROGVERSION=0.3.0 PREFIX=/usr DEBPACKAGEPREFIX=php- DEBTEMPDIR=${PREFIX}/share/dh-make-php/pecl.template PACKAGEDOCFILES="README readme CREDITS TODO AUTHORS" # if you change the examples directory make sure to adjust the # regular expression to set the PACKAGEDOCFILES PACKAGEEXPFILES="examples" PHPPKGINFO=${PREFIX}/share/dh-make-php/phppkginfo DEBMAINTAINER= DEPENDS= BUILDDEPENDS= DEPARCH=any DONTUSECONFD=false PHPVERSIONS="5" if [ -d /etc/php5/mods-available ]; then PHP55CONFD=true else PHP55CONFD=false fi . ${PREFIX}/share/dh-make-php/dh-make-php.lib # usage() {{{ # print summary of options usage() { cat < Usage: ${PROGNAME} [options] pecl-package pecl-package is a tgz file as it is downloaded by 'pecl download'. Options: --help | -h show this usage information --version | -v show version of program --maintainer maintainer of the debian package --arch set architecture (defaults to 'any') --depends set more depends aside php --build-depends set more build-depends aside php --prefix set prefix for source package name (default is '${DEBPACKAGEPREFIX}') --templatedir set alternative directory for templates (default is ${DEBTEMPDIR}) --only set PHP major version (4 or 5) to build modules for (default is both) THIS OPTION IS DEPRECATED!!!! --phpversion set the PHP major versions to build modules for (default is 5) --dont-use-confd do not create package with ps.ini in conf.d, but modify global php.ini by debconf --php55-conf force php5.5-style conf.d directory layout (is default if directory /etc/php5/mods-available exists) --no-php55-conf disable php5.5-style conf.d directory layout, even if dir exists eof } # }}} # command line options {{{ if [ $# = 0 ]; then usage exit 0 fi while case $1 in --help|-h) # print usage usage exit 0 ;; --version|-v) # show version echo ${PROGVERSION} exit 0 ;; --maintainer) # set maintainer of debian package DEBMAINTAINER="$2"; shift ;; --arch) # set architecture of debian package DEBARCH="$2"; shift ;; --depends) # set extra depends for debian package DEPENDS=", $2"; shift ;; --build-depends) # set extra build-depends for debian package BUILDDEPENDS=", $2"; shift ;; --prefix) # set prefix for name of debian package DEBPACKAGEPREFIX="$2"; shift ;; --package-name) # overwrite module name from package.xml OVERPACKAGENAME=$2; shift ;; --templatedir) # set alternative template dir DEBTEMPDIR="$2"; shift ;; --only) # only create modules for one of php4|php5 echo "The option --only is deprecated. Please check the manual page." exit 0 PHPVERSIONS=$2; shift if [ "$PHPVERSIONS" != "4" ] && [ "$PHPVERSIONS" != "5" ] then echo "Invalid argument to --only." exit 0 fi ;; --phpversion) # create modules for the given php versions PHPVERSIONS=$2; shift echo $PHPVERSIONS | grep "[4-5] [4-5]" if [ $? -eq 0 ] ; then echo "Invalid argument to --phpversion." exit 0 fi ;; --dont-use-confd) # place ini file in conf.d DONTUSECONFD=true; ;; --php55-conf) PHP55CONFD=true; ;; --no-php55-conf) PHP55CONFD=false; ;; "") break ;; *) PECLPACKAGENAME="$1" break ;; esac do test $# -gt 0 && shift; done # }}} if [ -n "${PECLPACKAGENAME}" ]; then if [ -f ${PECLPACKAGENAME} ]; then tar xzf ${PECLPACKAGENAME} else if TEMPMSG=$(/usr/bin/pecl download ${PECLPACKAGENAME} 2> /dev/null | grep -v ^WARNING); then echo ${TEMPMSG} PECLPACKAGENAME=$(echo ${TEMPMSG} | sed 's/.*downloading \([^ ]*\).*/\1/g' ) tar xzf ${PECLPACKAGENAME} else echo "Downloading pecl package '${PECLPACKAGENAME}' failed!"; echo "Check http://pecl.php.net/ for available packages."; exit 0 fi fi else usage exit 0 fi # get information about package from package.xml eval_package if [ -n "${OVERPACKAGENAME}" ]; then mv ${PHP_PKG_NAME}-${VERSION} ${OVERPACKAGENAME}-${VERSION} PHP_PKG_NAME=${OVERPACKAGENAME} PHP_PKG_LOWNAME=$(echo $PHP_PKG_NAME | awk '{print tolower($0)}' | sed 's/_/-/g') fi SRCPACKAGEDIR=${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION} echo "Creating debian source package: ${SRCPACKAGEDIR}" echo "Upstream is: ${UPSTREAM}" # sets $DEBMAINTAINER get_maintainer if [ -d ${SRCPACKAGEDIR} ] ; then echo "Directory '${SRCPACKAGEDIR}' already exists." exit fi ln -s ${PECLPACKAGENAME} ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}_${VERSION}.orig.tar.gz mkdir ${SRCPACKAGEDIR} mv ${PHP_PKG_NAME}-${VERSION} ${SRCPACKAGEDIR} mv package.xml ${SRCPACKAGEDIR} mkdir -p ${SRCPACKAGEDIR}/debian cp ${DEBTEMPDIR}/compat ${SRCPACKAGEDIR}/debian install_docfiles install_expfiles sed -e "s/##date##/`(LC_ALL=C; date -R)`/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ -e "s/##upstream##/${UPSTREAM}/g" \ -e "s/##license##/${LICENSE}/g" \ -e "s/##releaseyear##/${RELEASEYEAR}/g" \ -e "s/##peclpkgname##/${PHP_PKG_NAME}/g" \ ${DEBTEMPDIR}/copyright > ${SRCPACKAGEDIR}/debian/copyright if [ -n "${LICENSEFILE}" ]; then cat "${LICENSEFILE}" >> ${SRCPACKAGEDIR}/debian/copyright fi # changelog.xsl is copied into the source package in order to prevent # a dependency on dh-make-php cp ${PREFIX}/share/dh-make-php/xslt/changelog.xsl ${SRCPACKAGEDIR}/debian/ BINARYTARGETS="" BUILDTARGETS="" CLEANTARGETS="" for PHPVER in $PHPVERSIONS do BINARYTARGETS="${BINARYTARGETS}binary-arch-v${PHPVER} " BUILDTARGETS="${BUILDTARGETS}build-v${PHPVER} " CLEANTARGETS="${CLEANTARGETS}clean-v${PHPVER} " PHPDEVDEPENDS="${PHPDEVDEPENDS}, php${PHPVER}-dev " done sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##peclpackagerealname##/${PHP_PKG_NAME}/g" \ -e "s/##peclpackagename##/${PHP_PKG_LOWNAME}/g" \ -e "s/##version##/${VERSION}/g" \ -e "s/##binarytargets##/${BINARYTARGETS}/g" \ -e "s/##buildtargets##/${BUILDTARGETS}/g" \ -e "s/##cleantargets##/${CLEANTARGETS}/g" \ -e "s/##php55confd##/${PHP55CONFD}/g" \ -e "s/##packageprefix##/php/g" \ ${DEBTEMPDIR}/rules > ${SRCPACKAGEDIR}/debian/rules chmod 755 ${SRCPACKAGEDIR}/debian/rules sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##date##/`(LC_ALL=C; date -R)`/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ -e "s/##version##/${VERSION}/g" \ ${DEBTEMPDIR}/changelog > ${SRCPACKAGEDIR}/debian/changelog sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##date##/`(LC_ALL=C; date -R)`/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ ${DEBTEMPDIR}/README.Debian > ${SRCPACKAGEDIR}/debian/README.Debian sed -e "s/##peclpackagename##/${PHP_PKG_NAME}/g" \ ${DEBTEMPDIR}/watch > ${SRCPACKAGEDIR}/debian/watch sed -e "s/##phpdevdepends##/${PHPDEVDEPENDS}/g" \ ${DEBTEMPDIR}/control > ${SRCPACKAGEDIR}/debian/control if [ "$DONTUSECONFD" = "false" ]; then sed -e "s/##peclpackagename##/${PHP_PKG_LOWNAME}/g" \ ${DEBTEMPDIR}/php.ini > ${SRCPACKAGEDIR}/debian/${PHP_PKG_LOWNAME}.ini fi #cp ${DEBTEMPDIR}/control ${SRCPACKAGEDIR}/debian/control #cp ${DEBTEMPDIR}/templates ${SRCPACKAGEDIR}/debian/templates if [ "$DONTUSECONFD" = "true" ]; then cp -r ${DEBTEMPDIR}/po ${SRCPACKAGEDIR}/debian/po fi # Generate templates specific to php[4|5]-(module) binary packages for PHPVERSION in $PHPVERSIONS do BINPREFIX=php${PHPVERSION} #${DEBPACKAGEPREFIX}${PHPVERSION} BINPACKAGE=${BINPREFIX}-${PHP_PKG_LOWNAME} if [ "$DONTUSECONFD" = "true" ]; then sed -e "s/##peclpackagename##/${PHP_PKG_LOWNAME}/g" \ -e "s/##phpversion##/${PHPVERSION}/g" \ ${DEBTEMPDIR}/postinst > ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.postinst chmod 755 ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.postinst sed -e "s/##peclpackagename##/${PHP_PKG_LOWNAME}/g" \ -e "s/##phpversion##/${PHPVERSION}/g" \ ${DEBTEMPDIR}/prerm > ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.prerm chmod 755 ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.prerm else if [ "$PHP55CONFD" = "true" ]; then sed -e "s/##peclpackagename##/${PHP_PKG_LOWNAME}/g" \ -e "s/##phpversion##/${PHPVERSION}/g" \ ${DEBTEMPDIR}/php55postinst > ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.postinst chmod 755 ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.postinst fi fi sed -e "s/##phpversion##/${PHPVERSION}/g" \ ${DEBTEMPDIR}/dirs > ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.dirs if [ "$DONTUSECONFD" = "true" ]; then sed -e "s/##peclpackagename##/${PHP_PKG_LOWNAME}/g" \ -e "s/##phpversion##/${PHPVERSION}/g" \ ${DEBTEMPDIR}/config > ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.config chmod 755 ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.config fi sed -e "s/##phpversion##/${PHPVERSION}/g" \ -e "s/##lowpackage##/${PHP_PKG_LOWNAME}/g" \ -e "s/##package##/${PHP_PKG_NAME}/g" \ -e "s/##binpackagename##/${BINPACKAGE}/g" \ ${DEBTEMPDIR}/control-bin >> ${SRCPACKAGEDIR}/debian/control ${PHPPKGINFO} ${SRCPACKAGEDIR} summary|sed -e 's/^/ /g' >> ${SRCPACKAGEDIR}/debian/control echo "" >> ${SRCPACKAGEDIR}/debian/control echo " ." >> ${SRCPACKAGEDIR}/debian/control ${PHPPKGINFO} ${SRCPACKAGEDIR} description|fmt -w70|sed -e 's/^[[:space:]]*$/./g'|sed -e 's/^/ /g' >> ${SRCPACKAGEDIR}/debian/control echo "" >> ${SRCPACKAGEDIR}/debian/control echo "" >> ${SRCPACKAGEDIR}/debian/control if [ "$DONTUSECONFD" = "true" ]; then cp ${DEBTEMPDIR}/templates ${SRCPACKAGEDIR}/debian/${BINPACKAGE}.templates fi done HASPHPSCRIPT=$(${PHPPKGINFO} ${SRCPACKAGEDIR} hasphpscript) if [ "$HASPHPSCRIPT" = "1" ]; then DEPENDS="${DEPENDS}, php${PHPVERSION}-cli" fi sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ -e "s/##depends##/${DEPENDS}/g" \ -e "s/##builddepends##/${BUILDDEPENDS}/g" \ -e "s/##architecture##/${DEPARCH}/g" \ -i ${SRCPACKAGEDIR}/debian/control echo "modules/${PHP_PKG_LOWNAME}.so" > ${SRCPACKAGEDIR}/debian/pecl trunk/dh-make-pear0000755000000000000000000001410412273154506011275 0ustar #!/bin/sh # # dh-make-pear creates a debian package from a pear package # # Copyright (C) 2005-2006 by Uwe Steinmann # under the GNU GPL license version 2.0 or 2.1. # You should have received a copy of the GPL license # along with this program if you did not you can find it # at http://www.gnu.org/. PROGNAME=dh-make-pear PROGVERSION=0.3.0 PREFIX=/usr DEBPACKAGEPREFIX=php- DEBTEMPDIR=${PREFIX}/share/dh-make-php/pear.template PACKAGEDOCFILES="README readme CREDITS TODO AUTHORS" # if you change the examples directory make sure to adjust the # regular expression to set the PACKAGEDOCFILES PACKAGEEXPFILES="examples" PHPPKGINFO=${PREFIX}/share/dh-make-php/phppkginfo DEBMAINTAINER= DEPENDS= DEBARCH=all PREFSTATE=stable RENAMESOURCE= . ${PREFIX}/share/dh-make-php/dh-make-php.lib # usage() {{{ # print summary of options usage() { cat < Usage: ${PROGNAME} [options] pear-package pear-package is a tgz file as it is downloaded by 'pear download'. Options: --help | -h show this usage information --version | -v show version of program --maintainer maintainer of the debian package --rename rename the source tarball instead of symlinking it --arch set architecture (defaults to 'all') --state set preferred_state for pear download (defaults to 'stable') --depends set more depends aside php --prefix set prefix for package name (default is '${DEBPACKAGEPREFIX}') --templatedir set alternative directory for templates (default is ${DEBTEMPDIR}) eof } # }}} # command line options {{{ if [ $# = 0 ]; then usage exit 0 fi while case $1 in --help|-h) # print usage usage exit 0 ;; --version|-v) # show version echo ${PROGVERSION} exit 0 ;; --maintainer) # set maintainer of debian package DEBMAINTAINER="$2"; shift ;; --arch) # set architecture of debian package DEBARCH="$2"; shift ;; --state) # set architecture of debian package PREFSTATE="$2"; shift ;; --depends) # set extra depends for debian package DEPENDS=", $2"; shift ;; --prefix) # set prefix for name of debian package DEBPACKAGEPREFIX="$2"; shift ;; --rename) # rename the source tarball instead of symlinking RENAMESOURCE=yes ;; --templatedir) # set alternative template dir DEBTEMPDIR="$2"; shift ;; "") break ;; *) PEARPACKAGENAME="$1" break ;; esac do test $# -gt 0 && shift; done # }}} if [ -n "${PEARPACKAGENAME}" ]; then if [ -f ${PEARPACKAGENAME} ]; then tar xzf ${PEARPACKAGENAME} else if TEMPMSG=$(/usr/bin/pear -D preferred_state=${PREFSTATE} download ${PEARPACKAGENAME}); then echo ${TEMPMSG} PEARPACKAGENAME=$(echo ${TEMPMSG} | awk -F ' ' '{print $2'}) tar xzf ${PEARPACKAGENAME} else echo "Downloading pear package '${PEARPACKAGENAME}' failed!"; echo "${TEMPMSG}" echo "Check http://pear.php.net/ for available packages."; exit 0 fi fi else usage exit 0 fi # get information about package from package.xml eval_package SRCPACKAGEDIR=${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION} echo "Creating debian source package: ${SRCPACKAGEDIR}" echo "Upstream is: ${UPSTREAM}" # sets $DEBMAINTAINER get_maintainer if [ -d ${SRCPACKAGEDIR} ] ; then echo "Directory '${SRCPACKAGEDIR}' already exits." exit fi if [ "${RENAMESOURCE}" = "yes" ]; then if [ -e ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}_${VERSION}.orig.tar.gz ]; then rm ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}_${VERSION}.orig.tar.gz fi mv ${PEARPACKAGENAME} ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}_${VERSION}.orig.tar.gz else ln -s ${PEARPACKAGENAME} ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}_${VERSION}.orig.tar.gz fi mkdir ${SRCPACKAGEDIR} mv ${PHP_PKG_NAME}-${VERSION} ${SRCPACKAGEDIR} mv package.xml ${SRCPACKAGEDIR} mkdir -p ${SRCPACKAGEDIR}/debian cp ${DEBTEMPDIR}/compat ${SRCPACKAGEDIR}/debian cp ${DEBTEMPDIR}/dirs ${SRCPACKAGEDIR}/debian install_docfiles install_expfiles HASPHPSCRIPT=$(${PHPPKGINFO} ${SRCPACKAGEDIR} hasphpscript) if [ "$HASPHPSCRIPT" = "1" ]; then DEPENDS="${DEPENDS}, php5-cli" fi sed -e "s/##date##/`(LC_ALL=C; date -R)`/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ -e "s/##upstream##/${UPSTREAM}/g" \ -e "s/##license##/${LICENSE}/g" \ -e "s/##releaseyear##/${RELEASEYEAR}/g" \ -e "s/##pearpkgname##/${PHP_PKG_NAME}/g" \ ${DEBTEMPDIR}/copyright > ${SRCPACKAGEDIR}/debian/copyright if [ -n "${LICENSEFILE}" ]; then cat "${LICENSEFILE}" >> ${SRCPACKAGEDIR}/debian/copyright fi sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ -e "s§##summary##§${SUMMARY}§g" \ -e "s/##depends##/${DEPENDS}/g" \ -e "s/##architecture##/${DEBARCH}/g" \ ${DEBTEMPDIR}/control > ${SRCPACKAGEDIR}/debian/control ${PHPPKGINFO} ${SRCPACKAGEDIR} description | fmt -w 70|sed -e "s§^[ \t]*$§.§g" -e "s§^§ §g" >> ${SRCPACKAGEDIR}/debian/control sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##version##/${VERSION}/g" \ -e "s/##pearpkgname##/${PHP_PKG_NAME}/g" \ ${DEBTEMPDIR}/rules > ${SRCPACKAGEDIR}/debian/rules chmod 755 ${SRCPACKAGEDIR}/debian/rules sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##date##/`(LC_ALL=C; date -R)`/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ -e "s/##version##/${VERSION}/g" \ ${DEBTEMPDIR}/changelog > ${SRCPACKAGEDIR}/debian/changelog sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ -e "s/##date##/`(LC_ALL=C; date -R)`/g" \ -e "s/##maintainer##/${DEBMAINTAINER}/g" \ ${DEBTEMPDIR}/README.Debian > ${SRCPACKAGEDIR}/debian/README.Debian sed -e "s/##pearpkgname##/${PHP_PKG_NAME}/g" \ ${DEBTEMPDIR}/watch > ${SRCPACKAGEDIR}/debian/watch #sed -e "s/##packagename##/${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}/g" \ # ${DEBTEMPDIR}/postinst > ${SRCPACKAGEDIR}/debian/postinst #chmod 755 ${SRCPACKAGEDIR}/debian/postinst #sed -e "s/##pearpkgname##/${PHP_PKG_NAME}/g" \ # ${DEBTEMPDIR}/prerm > ${SRCPACKAGEDIR}/debian/prerm #chmod 755 ${SRCPACKAGEDIR}/debian/prerm trunk/pear.mk0000644000000000000000000001034212273150456010374 0ustar # -*- mode: makefile; coding: utf-8 -*- # Copyright (C) 2006 Charles Fry # Description: Installs and cleans PEAR packages # This program 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, or (at # your option) any later version. # # This program 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 program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # 02111-1307 USA. ifndef _cdbs_bootstrap _cdbs_scripts_path ?= /usr/lib/cdbs _cdbs_rules_path ?= /usr/share/cdbs/1/rules _cdbs_class_path ?= /usr/share/cdbs/1/class endif ifndef _cdbs_class_pear _cdbs_class_pear := 1 include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) # modify these variables as necessary #PEAR_PKG := $(shell /usr/bin/xmlstarlet sel -t -v '/package/name/text()' package.xml) PEAR_PKG := $(shell /usr/share/dh-make-php/phppkginfo . package) #PEAR_PKG_VERSION := $(shell /usr/bin/xmlstarlet sel -t -v '/package/release/version/text()' package.xml) PEAR_PKG_VERSION := $(shell /usr/share/dh-make-php/phppkginfo . version) # some packages use test instead of tests PEAR_TEST_DIR := tests # these shouldn't need to be changed PEAR_SOURCE_DIR = $(PEAR_PKG)-$(PEAR_PKG_VERSION) PEAR_OLD_DOC_DIR = $(shell pear config-get doc_dir)/$(PEAR_PKG) PEAR_NEW_DOC_DIR = usr/share/doc/$(DEB_PACKAGES) PEAR_OLD_TEST_DIR = $(shell pear config-get test_dir)/$(PEAR_PKG)/$(PEAR_TEST_DIR) PEAR_NEW_TEST_DIR = $(PEAR_NEW_DOC_DIR)/tests common-configure-indep:: # ln -f -s ../package.xml $(PEAR_SOURCE_DIR) #remove md5sums to allow patching cat package.xml | sed -e 's/md5sum="[^"]*"//' > $(PEAR_SOURCE_DIR)/package.xml clean:: -rm -f $(PEAR_PKG)-*/package.xml common-install-indep:: # install everything in default locations /usr/bin/pear \ -c debian/pearrc \ -d include_path=/usr/share/php \ -d php_bin=$(shell pear config-get php_bin) \ -d bin_dir=$(shell pear config-get bin_dir) \ -d php_dir=$(shell pear config-get php_dir) \ -d data_dir=$(shell pear config-get data_dir) \ -d doc_dir=$(shell pear config-get doc_dir) \ -d test_dir=$(shell pear config-get test_dir) \ install --offline --nodeps -P $(DEB_DESTDIR) $(PEAR_SOURCE_DIR)/package.xml # move documentation to correct location mkdir -p $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR) cp $(PEAR_SOURCE_DIR)/package.xml $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR) if [ -d $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR) ] ; then \ mv -i $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR)/* $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR); \ rmdir $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR); \ ln -s ../../doc/$(DEB_PACKAGES) $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR); \ fi ; # create upstream changelog # /usr/bin/xsltproc --nonet --novalid /usr/share/dh-make-php/xslt/changelog.xsl package.xml | gzip -9 > $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)/changelog.gz /usr/share/dh-make-php/phppkginfo . changelog | gzip -9 > $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)/changelog.gz # move test to correct location # must move files instead of directory in case tests was part of docs above if [ -d $(DEB_DESTDIR)$(PEAR_OLD_TEST_DIR) ] ; then \ mkdir -p $(DEB_DESTDIR)$(PEAR_NEW_TEST_DIR) ; \ mv -i $(DEB_DESTDIR)$(PEAR_OLD_TEST_DIR)/* $(DEB_DESTDIR)$(PEAR_NEW_TEST_DIR) ; \ rmdir $(DEB_DESTDIR)$(PEAR_OLD_TEST_DIR) ; \ ln -s ../../../doc/$(DEB_PACKAGES)/tests $(DEB_DESTDIR)$(PEAR_OLD_TEST_DIR) ; \ fi ; \ # remove unwanted files # rm -rf $(DEB_DESTDIR)usr/share/php/.[a-z]* \ # $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)/LICENSE \ # $(DEB_DESTDIR)/tmp rm -f $(DEB_DESTDIR)usr/share/php/.filemap; rm -f $(DEB_DESTDIR)usr/share/php/.lock; rm -rf $(DEB_DESTDIR)usr/share/php/.channels; rm -rf $(DEB_DESTDIR)usr/share/php/.depdblock; rm -rf $(DEB_DESTDIR)usr/share/php/.depdb; rm -rf $(DEB_DESTDIR)usr/share/php/.registry/.channel.pecl.php.net; rm -rf $(DEB_DESTDIR)usr/share/php/.registry/.channel.__uri; rm -rf $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)/LICENSE \ $(DEB_DESTDIR)/tmp endif