SPECS: template-nagios-plugin.spec - calm down underscore madness
glen
glen at pld-linux.org
Wed Nov 26 22:17:52 CET 2008
Author: glen Date: Wed Nov 26 21:17:51 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- calm down underscore madness
---- Files affected:
SPECS:
template-nagios-plugin.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/template-nagios-plugin.spec
diff -u SPECS/template-nagios-plugin.spec:1.3 SPECS/template-nagios-plugin.spec:1.4
--- SPECS/template-nagios-plugin.spec:1.3 Sun Jun 29 20:27:43 2008
+++ SPECS/template-nagios-plugin.spec Wed Nov 26 22:17:43 2008
@@ -1,8 +1,8 @@
# $Revision$, $Date$
-%define _plugin check_template
+%define plugin check_template
Summary: Nagios plugin to check ...
Summary(pl.UTF_8): Wtyczka Nagiosa sprawdzająca ...
-Name: nagios-plugin-%{_plugin}
+Name: nagios-plugin-%{plugin}
Version: 0.1
Release: 0.1
License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
@@ -15,8 +15,8 @@
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _plugindir %{_prefix}/lib/nagios/plugins
%define _sysconfdir /etc/nagios/plugins
+%define plugindir %{_prefix}/lib/nagios/plugins
%description
Nagios plugin to check ...
@@ -26,31 +26,31 @@
%prep
%setup -qcT
-install %{SOURCE0} %{_plugin}
+install %{SOURCE0} %{plugin}
#%patch0 -p1
cat > nagios.cfg <<'EOF'
# Usage:
-# %{_plugin}
+# %{plugin}
define command {
- command_name %{_plugin}
- command_line %{_plugindir}/%{_plugin}
+ command_name %{plugin}
+ command_line %{plugindir}/%{plugin}
}
EOF
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir}}
-install %{_plugin} $RPM_BUILD_ROOT%{_plugindir}/%{_plugin}
-cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{_plugin}.cfg
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{_plugin}.cfg
-%attr(755,root,root) %{_plugindir}/%{_plugin}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -58,6 +58,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2008/11/26 21:17:43 glen
+- calm down underscore madness
+
Revision 1.3 2008/06/29 18:27:43 qboosh
- no Source0-md5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/template-nagios-plugin.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list