Summary: 3rd-party Munin plugins
Summary(pl.UTF-8): Nieoficjalne wtyczki munina
Name: munin-plugins-contrib
-Version: 20151014
-Release: 2
+Version: 20151106
+Release: 1
License: GPL
Group: Daemons
-Source0: https://github.com/munin-monitoring/contrib/tarball/master/%{name}.tar.gz
-# Source0-md5: 6b38950e7b41c8c75fe4b0803ffe1261
+Source0: https://github.com/munin-monitoring/contrib/tarball/master/%{name}-%{version}.tar.gz
+# Source0-md5: 83224891edadc51b526751ecdc7258e7
Patch0: %{name}-postfix.patch
Patch1: %{name}-other.patch
Patch2: %{name}-php.patch
Patch3: %{name}-apache.patch
Patch4: %{name}-passenger.patch
Patch5: xen.patch
-URL: http://exchange.munin-monitoring.org/
+URL: https://github.com/munin-monitoring/contrib/
BuildRequires: dos2unix
BuildRequires: perl-devel
BuildRequires: rpm-perlprov
%{nil}
%prep
-%setup -q -n munin-monitoring-contrib-b02fe4e
+%setup -q -n munin-monitoring-contrib-9b0c3d6
find -type f -print0 | xargs -0 dos2unix
j=$(basename $i | sed -e 's/_$//')
>$j.list
find $i/* -type f | while read f ; do
- if file $f | grep -qs script ; then
- ff=$(basename $f)
- echo "%{_datadir}/munin/plugins/$ff" >>$j.list
- install -p $f $RPM_BUILD_ROOT%{_datadir}/munin/plugins/
- fi
+ echo $f | grep -q -E "(example|png|.gitignore)" && continue
+ n=$(echo $f | sed -e 's!'$i'/!!')
+ echo "%{_datadir}/munin/plugins/$n" >>$j.list
+ install -d $RPM_BUILD_ROOT%{_datadir}/munin/plugins/$(dirname $n)
+ install -p $f $RPM_BUILD_ROOT%{_datadir}/munin/plugins/$n
done
done