averi pushed to check-mk (el5). "Move the shebang from /usr/bin/bash to /bin/bash, which is the right path for the (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Apr 13 10:34:38 UTC 2015


>From 4107db2625a278b94cb8ed480a38c0e3b6cb689f Mon Sep 17 00:00:00 2001
From: Andrea Veri <av at gnome.org>
Date: Mon, 13 Apr 2015 12:33:51 +0200
Subject: Move the shebang from /usr/bin/bash to /bin/bash, which is the right
 path for the bash binary on RHEL 5. This to avoid an automatic dependency on
 /usr/bin/bash and the lack of requires filtering capabilities on the rpm
 release available on EPEL 5.


diff --git a/check-mk.spec b/check-mk.spec
index 46f6602..35e7aa0 100644
--- a/check-mk.spec
+++ b/check-mk.spec
@@ -182,6 +182,12 @@ rm %{buildroot}%{_sysconfdir}/nagios/objects/check_mk_templates.cfg
 cp -r %{buildroot}%{_datadir}/check_mk/plugins/* %{buildroot}%{_datadir}/check-mk-agent/plugins/
 rm -rf %{buildroot}%{_datadir}/check_mk/plugins/
 
+# Move the shebang from /usr/bin/bash to /bin/bash, which is the right path for the
+# bash binary on RHEL 5. This to avoid an automatic dependency on /usr/bin/bash and
+# the lack of requires filtering capabilities on the rpm release available on EPEL 5.
+sed -i 's|#!/usr/bin/bash|#!/bin/bash|1' \
+  %{buildroot}%{_datadir}/check-mk-agent/plugins/nfsexports.solaris
+
 # Fix the path for the Nagios plugins
 sed -i 's|/usr/lib/nagios/plugins|%{_libdir}/nagios/plugins|' \
   %{buildroot}%{_sysconfdir}/nagios/conf.d/check_mk_templates.cfg
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/check-mk.git/commit/?h=el5&id=4107db2625a278b94cb8ed480a38c0e3b6cb689f


More information about the scm-commits mailing list