[collectd] 3.11.0 spec file (collection.cgi)

Staněk Luboš kolektor<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>atlas.cz
Wed Jan 24 19:33:14 CET 2007


Hi,

Florian Forster napsal(a):
> Hi again,
> 
> I have a question regarding your RPM-specfile.
> 
>> %install
>> make install DESTDIR=$RPM_BUILD_ROOT
>> mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
>> mkdir -p $RPM_BUILD_ROOT/var/www/cgi-bin
>> cp src/collectd.conf $RPM_BUILD_ROOT/etc/collectd.conf
>> cp contrib/init.d-fc $RPM_BUILD_ROOT/etc/rc.d/init.d/collectd

Iain, where is the updated init script. You are installing the old one.

>> cp contrib/collection.cgi $RPM_BUILD_ROOT/var/www/cgi-bin

Iain, look into your /etc/httpd/conf.d and look where are these packages
installed. If you want it to be simple, just place the collection.cgi
script into collectd's DATADIR and make appropriate configuration for
web server here.

>> #mv contrib/Collectd.pm contrib/Collectd.pm.DISABLED
>> mkdir -p $RPM_BUILD_ROOT/var/lib/collectd
>> rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
>> rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
> 
> You copy `contrib/collection.cgi' to `/var/www/cgi-bin/'. Don't you need
> a dependency on `webserver' or `httpd' or something like that? That, on
> the other hand, is IMHO a little oversized for collectd.

Of course the CGI package depends on several components:
-------------------
Requires: %{name} = %{version}-%{release}, perl, rrdtool-perl, webserver
-------------------

> Those who have
> a webserver and want to use some CGI-script should be able to set that
> up themselves. Or is there another policy on such things for Fedora?
> 

Setting up CGI in a SELinux enforced system is a real pain for the end
user. :)


> Regards,
> -octo
> 

Best regards,
Lubos



More information about the collectd mailing list