Package: debhelper Severity: wishlist Tags: patch The attached dh_phpext script handles: * the .ini files used by the PHP extensions, by adding the entries in the postinst and postrm scripts so they are handled by the new PHP extensions manager (not yet accepted in the official php5 Debian packages, see[1]). * the dependencies caused by the new extensions manager, and the phpapi used when the extension was built.
I believe this debhelper script would ease the transition to any new structure/organisation model which could be used in the future. I've designed it to work with any new version of PHP (e.g. php6, which should be released soon), so it doesn't require anything but a change in one line. So I would like to see this new debhelper script in the next version of the debhelper package. I would really like to stress my point on the fact that the part which installs the postinst and postrm scripts for the new extensions manager is _only_ reached either if the installed php5-common package provides such functionality, or it is forced by passing the -r argument together with the environment variable to specify the version of php5-common it must depend on. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447826 Thanks in advance, -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
if [ "$1" != "remove" ] && [ -x /usr/sbin/php5disext ]; then /usr/sbin/php5disext all "#INI#" quiet nonfatal fi
if [ "$1" = "configure" ] && [ -x /usr/sbin/php5enext ]; then /usr/sbin/php5enext all "#INI#" quiet nonfatal fi
dh_phpext
Description: Perl program
signature.asc
Description: This is a digitally signed message part.