Package: apache2
Version: 2.4.6-2

Sometimes a package needs to enable a third party module.

For example, jwchat enables module proxy_http on postinst.

According to policy, a package should clean after itself. But right now, there
is no way to do that: For example, it would be wrong for jwchat to disable
proxy_http on purge, since another package might need it too.

Therefore, I believe apache2-maintscript-helper should keep a list of
dependencies, I mean a list of packages that resulted on a specific module to
be enabled. Then, it could disable the module when all reasons to keep it are
gone. This might be achieved by storing origin package names in
/var/lib/apache2/ files, for example.

Alternatively, configurations/sites snippets might be allowed to describe
dependencies on modules by extending the #Depends mechanism to other categories
of snippets. These dependencies could be (re)evaluated on installation and
removal.
That solution is a bit more complex on the apache side, but it would make third
party scripts more simple, and could prevent multiple reloading of apache (If
a site needs 2 other modules, apache2 is reloaded 3 times right now).


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to