SPECS: nagios-plugin-check_sipsak.spec - really noarch, fix perl path too
glen
glen at pld-linux.org
Sun Aug 24 21:37:30 CEST 2008
Author: glen Date: Sun Aug 24 19:37:30 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- really noarch, fix perl path too
---- Files affected:
SPECS:
nagios-plugin-check_sipsak.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/nagios-plugin-check_sipsak.spec
diff -u SPECS/nagios-plugin-check_sipsak.spec:1.2 SPECS/nagios-plugin-check_sipsak.spec:1.3
--- SPECS/nagios-plugin-check_sipsak.spec:1.2 Sun Aug 24 16:19:12 2008
+++ SPECS/nagios-plugin-check_sipsak.spec Sun Aug 24 21:37:25 2008
@@ -5,7 +5,7 @@
Name: nagios-plugin-check_sipsak
# revision from cvs id
Version: 1.5
-Release: 2
+Release: 3
License: GPL
Group: Networking
# Source0: http://www.nagiosexchange.org/cgi-bin/jump.cgi?ID=2249&view=File1;d=1
@@ -17,7 +17,7 @@
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _plugindir %{_libdir}/nagios/plugins
+%define _plugindir %{_prefix}/lib/nagios/plugins
%define _sysconfdir /etc/nagios/plugins
%description
@@ -29,17 +29,15 @@
serwerów SIP za pomocą narzędzia sipsak.
%prep
-%setup -q -c -T
-
-%build
-install %{SOURCE0} nagios-plugin-check_sipsak
-
-sed -i -e 's#/usr/local/libexec/nagios#%{_libdir}/nagios#g' nagios-plugin-check_sipsak
+%setup -qcT
+sed -e '
+1s,#.*bin/perl,#!%{__perl},
+s#/usr/local/libexec/nagios#%{_plugindir}#g
+' %{SOURCE0} > nagios-plugin-check_sipsak
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_plugindir}
-
install nagios-plugin-check_sipsak $RPM_BUILD_ROOT%{_plugindir}/check_sipsak
%clean
@@ -55,6 +53,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2008/08/24 19:37:25 glen
+- really noarch, fix perl path too
+
Revision 1.2 2008/08/24 14:19:12 arekm
- rel 2; make it noarch
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nagios-plugin-check_sipsak.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list