On Thursday 05 March 2015 11.54:25 Frank Bergkemper wrote:
> Am 04.03.2015 um 22:13 schrieb Hilario Fochi:
> > I checked inside the rpm and it looks like the scriptlet tries to use 
> > a2enmod
> > The problem is that RHEL, Centos and Fedora (at least) does not implement 
> > (and never will) a2enmod and thus the scriptlet is plain wrong for these 
> > distros and will work only on debian based distros.
> > 
> > The lines that I could see on the scriptlets are those:
> > postinstall scriptlet (using /bin/sh):
> > a2enmod setenv &> /dev/null
> > a2enmod rewrite &> /dev/null
> > a2enmod php5 &> /dev/null
> > 
> > At the moment of this writing I still do not have a solution for that.
> > 
> 
> Hi Hilario,
> 
> to eliminate that warning, we need to do something like this in
> the postinstall part of the *.spec file, see:
> https://github.com/bareos/bareos-webui/blob/master/packaging/obs/bareos-webui.spec
> (Line:79).
> 
> %post
> %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
>       # enable httpd mod_php5,
>       # mod_rewrite,
>       # mod_env || mod_setenv
>       # if not already enabled
> %if 0%{?suse_version}
> a2enmod setenv &> /dev/null
> a2enmod rewrite &> /dev/null
> a2enmod php5 &> /dev/null
> %endif
> 
> 
> Debian/Ubuntu postinstall is handled in
> https://github.com/bareos/bareos-webui/blob/master/debian/postinst
> 
> Further reading:
> https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
> 
> I have opened a ticket in the bugtracker
> http://bugs.bareos.org/view.php?id=431, if you would like to contribute,
> you are welcome.
> 
> Regards,
> Frank

Anyway it's wrong due to some assumption which are false.
for example you force setenv which doesn't exist as module on suse
this create warning message when apache2 start afterward.

Also you force the loading of php5 as module, when the server could be 
configured to use 
other method cgi or php-fpm (better) 

Same apply for dependencies at install time, forcing mod_php5 force system to 
fallback apache2 to the prefork mode
when newer engine like event are better.

It a things to make life easier to Joe user, but it should also let skilled 
admin to choose themselve how their system has to be setup and configured.

-- 

Bruno Friedmann 
Ioda-Net Sàrl www.ioda-net.ch
 
 openSUSE Member & Board, fsfe fellowship
 GPG KEY : D5C9B751C4653227
 irc: tigerfoot

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to