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

Hello,

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

Regards,
-- 
Gregory Colpart <[EMAIL PROTECTED]>  GnuPG:1024D/C1027A0E
Evolix - Informatique et Logiciels Libres http://www.evolix.fr/
--- /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]* \
-               $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)/LICENSE \
+       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

Reply via email to