HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //usr/share/doc/pkg-php-tools/README.PEAR
= Getting started

A PEAR 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 (example with package
php-foo). That's it!

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

debian/control:
---------------
<<<---
Source: php-foo
Section: php
Priority: optional
Maintainer: Debian PHP PEAR Maintainers <[email protected]>
Uploaders: Your Name <[email protected]>
Build-Depends: debhelper (>= 9), pkg-php-tools
Standards-Version: 3.9.6
Homepage: http://pear.php.net/package/Foo/
Vcs-Git: git://anonscm.debian.org/pkg-php/php-foo.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-foo.git

Package: php-foo
Architecture: all
Depends: ${misc:Depends}, ${phppear:Debian-Depends}
Recommends: ${phppear:Debian-Recommends}
Suggests: ${phppear:Debian-Suggests}
Breaks: ${phppear:Debian-Breaks}
Description: ${phppear:summary}
 ${phppear:description}
--->>>

Note: You add a build-dependency on pear-channels if the PEAR package
is hosted in an alternative channel.

= Advanced usage

Advanced usage (PECL, patching, overriding package name...) is
described in dh_phppear(1).