From: Jan Rękorajski Date: Tue, 1 May 2018 14:50:00 +0000 (+0200) Subject: - fixed prep and install X-Git-Tag: auto/th/nagios-plugin-check_iface-1.0-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e6cc7faf575d8ba009a1af20bf0bf3feefb675ea;p=packages%2Fnagios-plugin-check_iface.git - fixed prep and install --- diff --git a/nagios-plugin-check_iface.spec b/nagios-plugin-check_iface.spec index b71bf7a..a451418 100644 --- a/nagios-plugin-check_iface.spec +++ b/nagios-plugin-check_iface.spec @@ -1,8 +1,9 @@ +# TODO: add config %define plugin check_iface Summary: Nagios/Icinga plugin for checking network interface speed Name: nagios-plugin-%{plugin} Version: 1.0 -Release: 1 +Release: 1.1 License: GPL Group: Networking Source0: https://raw.githubusercontent.com/wifibox/linux-admin-tools/master/nagios/plugins/check_net_iface @@ -20,18 +21,19 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Nagios/Icinga plugin for checking network interface speed. %prep -%setup -q -n monitoring-plugin-%{plugin}-%{version} +%setup -qTc +install %{SOURCE0} %{plugin} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}} -install -p %{plugin}.sh $RPM_BUILD_ROOT%{plugindir}/%{plugin} -sed -e 's,@plugindir@,%{plugindir},' %{plugin}.cfg > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg + +install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg +#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg %attr(755,root,root) %{plugindir}/%{plugin}