AP_GENPLIST vs pkg upgrade

Andriy Gapon avg at FreeBSD.org
Tue Oct 29 09:14:15 UTC 2013


AP_GENPLIST by default results in the following pkg-plist entries (an example):
@unexec /usr/bin/sed -i '' -E '/LoadModule[[:blank:]]+rpaf_module/d'
%D/etc/apache22/httpd.conf
@exec %D/sbin/apxs -e -A -n rpaf %D/%F

This means that after pkg upgrade a module becomes commented out in httpd.conf.

I am aware of AP_MODENABLE.  But the official FreeBSD pkg packages are built
without this customization.

I believe that the current default behavior is quite a nasty one.

Not sure if at present there is any way to make it more user-friendly in the
case of pkgng packages.

P.S.
Perhaps it would be easier to just leave httpd.conf alone and put all
responsibility for its management on an administrator.  It seems that that some
module ports that do not use AP_GENPLIST do just that.

-- 
Andriy Gapon


More information about the freebsd-apache mailing list