[php-maint] Bug#443523: dh-make-php: keep .reg file in binary package?

Gregory Colpart reg at evolix.fr
Sat Sep 22 01:25:13 UTC 2007

Package: dh-make-php
Severity: normal
Tags: patch


I don't know if you see recent discussions about packaging pear
modules. I begin to write a "Developer's Reference"[1] and we have
discussions on pkg-php alioth list[2] and particularly to have two
directories for pear modules :
- /usr/share/php for debian-packaged pear modules
- /usr/local/share/php for locally installed pear modules

Then, it could be interesting to keep .reg file in binary package
instead of using postinst/prerm to register/unregister modules.

Note also a large majority of pear packages (php-log, php-date,
php-soap, php-auth, php-auth-http, php-cache, php-compat,
php-config, php-crypt-cbc, php-event-dispatcher, php-file,
php-html-common, php-http-request, php-http-upload,
php-image-barcode, php-image-canvas, php-image-graph,
php-net-checkip, php-net-dime, php-net-ftp, php-net-ipv4,
php-net-ldap, php-net-ping, php-net-portscan, php-net-sieve,
php-net-smartirc, php-net-url, php-services-weather, php-xml-rss,
php-xml-serializer, php-xml-util) use this way of packaging!

I propose a little patch for your pear.mk cdbs class.

[1] http://wiki.debian.org/GregoryColpart/PearPolicyDraft
[2] http://lists.alioth.debian.org/pipermail/pkg-php-maint/2007-September/003050.html

Gregory Colpart <reg at evolix.fr>  GnuPG:1024D/C1027A0E
Evolix - Informatique et Logiciels Libres http://www.evolix.fr/
-------------- next part --------------
--- /usr/share/cdbs/1/class/pear.mk	2007-08-29 17:12:53.000000000 +0200
+++ pear.mk	2007-09-18 02:48:58.000000000 +0200
@@ -84,8 +84,14 @@
 	fi ; \
 	# remove unwanted files
-	rm -rf $(DEB_DESTDIR)usr/share/php/.[a-z]* \
+	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;

More information about the pkg-php-maint mailing list