[pkg-kolab] On PEAR packaging

Mathieu Parent math.parent at gmail.com
Sat May 21 10:02:36 UTC 2011


Hello,

Context:
- Horde 4 has been released and the recommended way to install it now
is via PEAR packages.
- There are currently 92 PEAR packages on pear.horde.org and 568 on
pear.php.net.
- I am lazy (you too?)
- I am busy (you too?)

Proposal:
- Adding debhelper substitution variables, and
- Adding dh7 auto buildsystem for PEAR packages

Those helpers will be in a new package named pkg-php-tools.

I have done a prototype in a git repo (I will push it to alioth once
alioth is up and running). For now, look at the attached tarball.

A package using pkg-php-tools is initialized using dh_make (with dh7
rule format, now default). Usual cleaning is done (replacing all
boilerplate). Then debian/control and debian/rules are edited as
below. That's it.

Remaining issues/questions:
- How to handle patches? : this is a problem with PEAR packages whose
subdir varies across versions
- what pear config file should be used (currently debian/pearrc which
can be missing)?

Comments, suggestions, feedback ... ?

-- 
Mathieu

====================
debian/rules:
<<<---
#!/usr/bin/make -f
%:
	dh --buildsystem=phppear --with phppear $@
--->>>

====================
debian/control:
<<<---
Source: php-horde-kolab-format
Section: php
Priority: extra
Maintainer: Horde Maintainers <pkg-horde-hackers at lists.alioth.debian.org>
Uploaders: Mathieu Parent <sathieu at debian.org>
Build-Depends: debhelper (>= 7.0.50~), pkg-php-tools
Standards-Version: 3.9.2
Homepage: http://${phppear:channel}/
Vcs-Git: git://git.debian.org/pkg-horde/php-horde-kolab-format.git
Vcs-Browser: http://git.debian.org/?p=pkg-horde/php-horde-kolab-format.git

Package: php-horde-kolab-format
Architecture: all
Depends: ${misc:Depends}, ${phppear:Debian-Depends}
Recommends: ${phppear:Debian-Recommends}
Breaks: ${phppear:Debian-Breaks}
Description: ${phppear:summary}
 ${phppear:description}
--->>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pkg-php-tools_0.1.tar.gz
Type: application/x-gzip
Size: 5883 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-kolab-devel/attachments/20110521/276bb386/attachment.bin>


More information about the pkg-kolab-devel mailing list