[Pkg-php-pecl] Packaging standard PECL extensions? dh-php 0.15 comes to rescue for your one-liner d/rules

Ondřej Surý ondrej at sury.org
Fri Apr 29 13:06:45 UTC 2016


Hey folks,

I had a burst this week, so I rewrote all d/rules in PECL extensions
into standardized format, then played with make syntax even more and now
your d/rules can look like this:

#!/usr/bin/make -f
include /usr/share/dh-php/pkg-pecl.mk

then add:

dh-php (>= 0.15~) to Build-Depends

and

Provides: ${php:Provides}

and in the most cases you're done :)

There are some a tad bit more complicated examples when source:Name name
!= binary:Name in xdebug (binary name is php-xdebug), tidyways (non
standard source) or php-pecl-http (binary name is php-http).

To see the full makefile snippet:

http://anonscm.debian.org/cgit/pkg-php/dh-php.git/tree/pkg-pecl.mk

Comments and improvements most welcome. And other important stuff I am
not good as writing a README.PECL-Packaging for dh-php package, or
Debian wiki page with "How to use dh_php", or updating lintian warnings
and errors, etc, would be awesome as well.

Cheers,
-- 
Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



More information about the Pkg-php-pecl mailing list