- added httpd conf file, fixed directories
OBS-URL: https://build.opensuse.org/package/show/network:cluster/ganglia-web?expand=0&rev=4
This commit is contained in:
parent
b806e01f27
commit
91bf566439
10
ganglia-httpd24.conf.d
Normal file
10
ganglia-httpd24.conf.d
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# Ganglia monitoring system php web frontend
|
||||||
|
#
|
||||||
|
|
||||||
|
Alias /ganglia WEBPATH
|
||||||
|
|
||||||
|
<Location /ganglia>
|
||||||
|
Require all granted
|
||||||
|
# Require host example.org
|
||||||
|
</Location>
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
%define webpath /srv/www/htdocs/ganglia-web
|
||||||
|
|
||||||
Name: ganglia-web
|
Name: ganglia-web
|
||||||
Version: 3.7.2
|
Version: 3.7.2
|
||||||
@ -23,14 +23,18 @@ Summary: Ganglia web frontend
|
|||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Url: http://ganglia.info/
|
Url: http://ganglia.info/
|
||||||
Source: https://downloads.sourceforge.net/project/ganglia/ganglia-web/3.7.2/ganglia-web-3.7.2.tar.gz
|
Source0: https://downloads.sourceforge.net/project/ganglia/ganglia-web/3.7.2/ganglia-web-3.7.2.tar.gz
|
||||||
|
Source1: ganglia-httpd24.conf.d
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: apache2
|
||||||
|
BuildRequires: rsync
|
||||||
Requires: php >= 7
|
Requires: php >= 7
|
||||||
Requires: php-gd
|
Requires: php-gd
|
||||||
Requires: php-xml
|
Requires: php-xml
|
||||||
Requires: rrdtool
|
Requires: rrdtool
|
||||||
|
Requires: apache2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%define web_prefixdir /srv/www/htdocs/ganglia
|
%define web_prefixdir /srv/www/htdocs/ganglia-web
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,20 +44,18 @@ written in the PHP5 language and uses the Dwoo templating engine.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{web_prefixdir}
|
%{__sed} -i 's,www-data,abuild,' Makefile
|
||||||
cp -rf * %{buildroot}%{web_prefixdir}
|
%{__sed} -i 's,/usr/share/ganglia-webfrontend,%{buildroot}%{webpath},' Makefile
|
||||||
rm -rf %{buildroot}%{web_prefixdir}/conf
|
%{__sed} -i 's,WEBPATH,%{webpath},' %SOURCE1
|
||||||
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/filters
|
%{__sed} -i 's,/etc/ganglia-web,%{buildroot}/etc/apache2/conf.d,' Makefile
|
||||||
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/conf
|
%{__sed} -i 's,/var/lib/ganglia,%{buildroot}/var/lib/ganglia,' Makefile
|
||||||
cp -rf conf/* %{buildroot}%{_localstatedir}/lib/ganglia-web/conf
|
|
||||||
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo
|
make install
|
||||||
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo/compiled
|
install -d %{buildroot}/etc/apache2/conf.d
|
||||||
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo/cache
|
install %SOURCE1 %{buildroot}/etc/apache2/conf.d/%{name}.conf
|
||||||
rm -rf {buildroot}%{_localstatedir}/lib/ganglia-web/debian
|
|
||||||
|
|
||||||
%fdupes %{buildroot}%{web_prefixdir}
|
%fdupes %{buildroot}%{web_prefixdir}
|
||||||
%fdupes %{buildroot}%{_localstatedir}/lib/ganglia-web
|
%fdupes %{buildroot}%{_localstatedir}/lib/ganglia-web
|
||||||
@ -65,6 +67,7 @@ rm -rf {buildroot}%{_localstatedir}/lib/ganglia-web/debian
|
|||||||
%dir %{web_prefixdir}/dwoo
|
%dir %{web_prefixdir}/dwoo
|
||||||
%{web_prefixdir}/*
|
%{web_prefixdir}/*
|
||||||
%config(noreplace) %{web_prefixdir}/conf_default.php
|
%config(noreplace) %{web_prefixdir}/conf_default.php
|
||||||
|
%config(noreplace) /etc/apache2/conf.d/%{name}.conf
|
||||||
%dir %{_localstatedir}/lib/ganglia-web
|
%dir %{_localstatedir}/lib/ganglia-web
|
||||||
%{_localstatedir}/lib/ganglia-web/conf
|
%{_localstatedir}/lib/ganglia-web/conf
|
||||||
%attr(0755,wwwrun,www)%{_localstatedir}/lib/%{name}/dwoo
|
%attr(0755,wwwrun,www)%{_localstatedir}/lib/%{name}/dwoo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user