[php-maint] Please make use of new php5enmod and php5dismod commands in your package
Debian PHP maintainers
pkg-php-maint at lists.alioth.debian.org
Fri Apr 6 15:36:03 UTC 2012
Package: php5-svn
Version: 1.0.1-1.1+b1
Severity: normal
User: pkg-php-maint at lists.alioth.debian.org
Usertags: php54
Dear maintainer,
package php5-svn currently installs it's configuration file directly
to /etc/php5. php5 (>= 5.4.0~rc6-1) has introduced two new commands:
php5enmod and php5dismod
Your config file must be installed in /etc/php5/mods-available/<name>.ini
php5enmod should be called from your postinst script (when configuring
the package) with each installed ini file as an parameter (f.e. if you
provide more dynamic extensions and want to ensure correct loading order).
The syntax of php5enmod is:
php5enmod [name](/[priority])
[name] is filename without .ini extension from /etc/php5/mods-available/<name>.ini
The optional [priority] argument can be used if your extension require
other extensions to be loaded before. Default priority is 20.
Example:
if [ "$1" = "configure" ]; then
php5enmod mysqlnd
fi
or (with priority):
if [ "$1" = "configure" ]; then
php5enmod pdo/10
fi
**
php5dismod should be called from prerm script in remove target.
The syntax of php5dismod is:
php5dismod [name]
Example:
if [ "$1" = "remove" ]; then
php5dismod mysqlnd
fi
**
Using these maintainer scripts will help get rid of the condition
when the package is removed, but not purged, hence triggering error
messages from php from the fact that it cannot load deleted dynamic
extension.
Feel free to contact me, if you have any questions.
Thanks,
--
Ondřej Surý <ondrej at debian.org>
-- System Information:
Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the pkg-php-maint
mailing list