[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debconf: how write sections and comments at php.ini?

On Wed, 20 Sep 2006 10:55:24 -0300, André Felipe Machado wrote:

> Hello,
> I am trying to create a rudimentary package for php-java-bridge.
> After reading debconf tutorials and man pages, I am still needing info
> about how create a section "[something]" and how write comments in
> php.ini (which do not belong to this package) the right debian way.
> Please, where do I find additional debconf docs and examples?
> Regards.
> Andre Felipe Machado

It seems rather tricky. Although the php.ini file is not a conffile and
so you are free to modify it, remember that you will actually need to
modify up to eight different files (a php.ini file exists for each of
php{4,5}-{cgi,cli} and libapache{,2}-mod-php{4,5}); and you should also
cope with situations such as where libapache2-mod-php5 is installed when
your package is installed, but the user later installs php5-cgi as well. I
suggest you look at other php{,4,5}-* packages to see how they handle
these kinds of situations (I suspect they don't bother).

It would really help if the various PHP SAPI packages could be patched to
process files inside a /etc/php-common/php.ini.d directory in addition to
their own config files; your package could then place a config snippet in
that directory and have it picked up by all PHP SAPIs, present and future.

While I'm at it it would be nice if the SAPI packages used ucf to manage
their php.ini files... :)

Sam Morris

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078

Reply to: