From d73ccf405874e356c334736e5c11be6d4941a4b8099f4f8dffbc216173d6ddad Mon Sep 17 00:00:00 2001 From: Corot Sebastien Date: Mon, 6 May 2013 19:10:35 +0000 Subject: [PATCH] Accepting request 174656 from home:scorot:branches:network:cluster Ganglia web frontend OBS-URL: https://build.opensuse.org/request/show/174656 OBS-URL: https://build.opensuse.org/package/show/network:cluster/ganglia-web?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + ganglia-web-3.5.7.tar.gz | 3 ++ ganglia-web.changes | 5 +++ ganglia-web.spec | 73 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ganglia-web-3.5.7.tar.gz create mode 100644 ganglia-web.changes create mode 100644 ganglia-web.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ganglia-web-3.5.7.tar.gz b/ganglia-web-3.5.7.tar.gz new file mode 100644 index 0000000..fb89415 --- /dev/null +++ b/ganglia-web-3.5.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:531e20a09233a615d5bf2c2c028c12c5942714265fe78094a8f1fb08c1e217d5 +size 1398921 diff --git a/ganglia-web.changes b/ganglia-web.changes new file mode 100644 index 0000000..805736d --- /dev/null +++ b/ganglia-web.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed May 1 12:03:10 UTC 2013 - scorot@free.fr + +- first package + diff --git a/ganglia-web.spec b/ganglia-web.spec new file mode 100644 index 0000000..c0625e0 --- /dev/null +++ b/ganglia-web.spec @@ -0,0 +1,73 @@ +# +# spec file for package ganglia-web +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: ganglia-web +Version: 3.5.7 +Release: 0 +Summary: Ganglia web frontend +License: GPL-2.0 +Group: System/Monitoring +Url: http://ganglia.info/ +Source0: %{name}-%{version}.tar.gz +BuildRequires: fdupes +Requires: php >= 5 +Requires: php-gd +Requires: php-xml +Requires: rrdtool +BuildArch: noarch +%define web_prefixdir /srv/www/htdocs/ganglia +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package provides a web frontend to display the XML tree published by +ganglia, and to provide historical graphs of collected metrics. This website is +written in the PHP5 language and uses the Dwoo templating engine. + +%prep +%setup -q + +%build + +%install +mkdir -p %{buildroot}%{web_prefixdir} +cp -rf * %{buildroot}%{web_prefixdir} +rm -rf %{buildroot}%{web_prefixdir}/conf +install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/filters +install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/conf +cp -rf conf/* %{buildroot}%{_localstatedir}/lib/ganglia-web/conf +install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo +install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo/compiled +install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo/cache +rm -rf {buildroot}%{_localstatedir}/lib/ganglia-web/debian + +%fdupes %{buildroot}%{web_prefixdir} + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING TODO +%dir %{web_prefixdir}/ +%dir %{web_prefixdir}/dwoo +%{web_prefixdir}/* +%config(noreplace) %{web_prefixdir}/conf_default.php +%dir %{_localstatedir}/lib/ganglia-web +%{_localstatedir}/lib/ganglia-web/conf +%attr(0755,wwwrun,wwwrun)%{_localstatedir}/lib/ganglia-web/dwoo +%attr(0755,wwwrun,wwwrun)%{_localstatedir}/lib/ganglia-web/dwoo/compiled +%attr(0755,wwwrun,wwwrun)%{_localstatedir}/lib/ganglia-web/dwoo/cache + +%changelog