Compare commits
6 Commits
37c398c1e3
...
ac92543985
Author | SHA1 | Date |
---|---|---|
monitorbuilder_pel7ppc64lebuilder0 | ac92543985 | 3 months ago |
monitorbuilder_pel7ppc64lebuilder0 | 45c545193a | 3 months ago |
monitorbuilder_pel7ppc64lebuilder0 | 25091f3e86 | 3 months ago |
monitorbuilder_pel7ppc64lebuilder0 | fa5e9a86ae | 3 months ago |
monitorbuilder_pel7ppc64lebuilder0 | cc3fddb810 | 3 months ago |
monitorbuilder_pel7ppc64lebuilder0 | 4baa67fab6 | 3 months ago |
5 changed files with 70 additions and 6 deletions
@ -0,0 +1,64 @@
@@ -0,0 +1,64 @@
|
||||
%global module_name kubernetes |
||||
%global basedir %{_datadir}/icingaweb2/modules/kubernetes |
||||
%global docdir %{_datadir}/doc/icingakubernetes |
||||
|
||||
Name: icinga-kubernetes-web |
||||
Version: 0.1.0 |
||||
Release: 1%{?dist} |
||||
Summary: Icinga Kubernetes Web |
||||
Group: Applications/System |
||||
License: AGPLv3 |
||||
URL: https://icinga.com |
||||
#Source0: https://github.com/Icinga/icinga-notifications-web/archive/v%{version}.tar.gz |
||||
BuildArch: noarch |
||||
Requires: icingaweb2 >= 2.9 |
||||
Requires: icinga-kubernetes |
||||
Requires: icinga-php-library >= 0.13.0 |
||||
Requires: icinga-php-thirdparty >= 0.120 |
||||
|
||||
|
||||
%description |
||||
Icinga for Kubernetes is a set of components for monitoring and visualizing Kubernetes resources. |
||||
This package installs Icinga for Kubernetes Web, which visualizes Kubernetes resources and their status |
||||
that are synchronized to a database by the Icinga for Kubernetes daemon. |
||||
|
||||
|
||||
%prep |
||||
%setup -q -T -c %{name}-%{version} |
||||
git clone https://github.com/Icinga/icinga-kubernetes-web . |
||||
git checkout v%{version} |
||||
|
||||
|
||||
%install |
||||
mkdir -vp %{buildroot}%{basedir} |
||||
mkdir -vp %{buildroot}%{docdir} |
||||
cp -vr application %{buildroot}%{basedir} |
||||
cp -vr library %{buildroot}%{basedir} |
||||
cp -vr public %{buildroot}%{basedir} |
||||
cp -vr configuration.php %{buildroot}%{basedir} |
||||
cp -vr module.info %{buildroot}%{basedir} |
||||
|
||||
|
||||
%clean |
||||
rm -rf %{buildroot} |
||||
|
||||
|
||||
%preun |
||||
set -e |
||||
# Only for removal |
||||
if [ $1 == 0 ]; then |
||||
echo "Disabling icingaweb2 module '%{module_name}'" |
||||
rm -f /etc/icingaweb2/enabledModules/%{module_name} |
||||
fi |
||||
exit 0 |
||||
|
||||
|
||||
%files |
||||
%doc README.md |
||||
%license LICENSE |
||||
%defattr(-,root,root) |
||||
%{basedir} |
||||
%{docdir} |
||||
|
||||
|
||||
%changelog |
Loading…
Reference in new issue