[ipmiutil] Fix path in checksel script with checksel_path.patch

arcress arcress at fedoraproject.org
Tue Jul 17 14:35:32 UTC 2012


commit 07b41e879f07de9fba888f1961335f7c7cddd88a
Author: Andy Cress <arcress at users.sourceforge.net>
Date:   Tue Jul 17 10:34:22 2012 -0400

    Fix path in checksel script with checksel_path.patch

 checksel_path.patch |   11 +++++++++++
 ipmiutil.spec       |    4 +++-
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/checksel_path.patch b/checksel_path.patch
new file mode 100644
index 0000000..97692ab
--- /dev/null
+++ b/checksel_path.patch
@@ -0,0 +1,11 @@
+--- a/scripts/checksel    2012-06-28 11:13:28.000000000 -0400
++++ b/scripts/checksel    2012-06-28 18:00:08.000000000 -0400
+@@ -12,7 +12,7 @@
+ #
+ # app=`basename $0`
+ # pdir=`echo $0 |sed -e "s/$app//"`
+-pdir=/usr/sbin
++pdir=/usr/bin
+ ddir=/var/lib/ipmiutil
+ # First check to see if the IPMI SEL is enabled on this system.
+ # If not, do nothing else.
diff --git a/ipmiutil.spec b/ipmiutil.spec
index 86abe49..6462843 100644
--- a/ipmiutil.spec
+++ b/ipmiutil.spec
@@ -4,13 +4,14 @@
 #
 Name:      ipmiutil
 Version: 2.8.4
-Release:   1%{?dist}
+Release:   2%{?dist}
 Summary:   Easy-to-use IPMI server management utilities
 License:   BSD
 Group:     System Environment/Base
 Source:    http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 URL:       http://ipmiutil.sourceforge.net
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Patch0:  checksel_path.patch
 # Suggests: cron or vixie-cron or cronie or similar
 %if 0%{?fedora} >= 15
 Requires: systemd-units
@@ -42,6 +43,7 @@ useful for building custom IPMI applications.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure


More information about the scm-commits mailing list