summaryrefslogtreecommitdiff
path: root/user/ipmiutil/ipmiutil-3.0.7-fix-sha256.patch
blob: 1cc1b55320394009244098ad67424d0d03e0408b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- ipmiutil-3.0.7/lib/Makefile.am.old	2017-09-20 10:08:20.000000000 -0500
+++ ipmiutil-3.0.7/lib/Makefile.am	2018-01-01 18:03:45.080832425 -0600
@@ -33,10 +33,11 @@
 	    else cp -f libipmiapi64.a.redhat  libipmiapi.a; fi \
           else cp -f libipmiapi32.a libipmiapi.a; fi \
 	fi
-	if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \
-	  cd lanplus; make clean; make  ; \
-	  pwd; cp -f libipmi_lanplus.a .. ; \
-	fi
+	case "$(PLUSFLAGS)" in \
+	  "-DHAVE_LANPLUS"*) \
+	    cd lanplus; make clean; make  ; \
+	    pwd; cp -f libipmi_lanplus.a .. ;; \
+	esac
 
 clean:
 	rm -f libipmiapi.a lib*_lanplus.a lib*_lanplus.so
@@ -51,10 +52,11 @@
 	cd lanplus; make distclean
 	
 install:
-	if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \
-	   $(MKDIR) ${datato} ; \
-	   cd lanplus; make install ; \
-	fi
+	case "$(PLUSFLAGS)" in \
+	  "-DHAVE_LANPLUS"*) \
+	     $(MKDIR) ${datato} ; \
+	     cd lanplus; make install ;; \
+	esac
 
 check:
 
--- ipmiutil-3.0.7/lib/Makefile.in.old	2017-09-20 10:08:28.000000000 -0500
+++ ipmiutil-3.0.7/lib/Makefile.in	2018-01-01 18:02:55.187678005 -0600
@@ -392,10 +392,11 @@
 	    else cp -f libipmiapi64.a.redhat  libipmiapi.a; fi \
           else cp -f libipmiapi32.a libipmiapi.a; fi \
 	fi
-	if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \
-	  cd lanplus; make clean; make  ; \
-	  pwd; cp -f libipmi_lanplus.a .. ; \
-	fi
+	case "$(PLUSFLAGS)" in \
+	   "-DHAVE_LANPLUS"*) \
+	    cd lanplus; make clean; make  ; \
+	    pwd; cp -f libipmi_lanplus.a .. ;; \
+	esac
 
 clean:
 	rm -f libipmiapi.a lib*_lanplus.a lib*_lanplus.so
@@ -410,10 +411,11 @@
 	cd lanplus; make distclean
 
 install:
-	if [ "$(PLUSFLAGS)" = "-DHAVE_LANPLUS" ]; then \
-	   $(MKDIR) ${datato} ; \
-	   cd lanplus; make install ; \
-	fi
+	case "$(PLUSFLAGS)" in \
+	    "-DHAVE_LANPLUS"*) \
+	       $(MKDIR) ${datato} ; \
+	       cd lanplus; make install ;; \
+	esac
 
 check: