mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-22 01:21:44 +00:00
Add them for support ipmitool on AIX
Former-commit-id: 9ee6830ddece449715c7762821a0611e35aae618
This commit is contained in:
parent
15cce50a03
commit
bff2394187
26
ipmitool/Build-notes
Normal file
26
ipmitool/Build-notes
Normal file
@ -0,0 +1,26 @@
|
||||
Build Notes
|
||||
|
||||
1) Download ipmitool-1.8.11.tar.gz from ://xcat.svn.sourceforge.net/svnroot/xcat/xcat-dep/trunk/ipmitool/pmitool-1.8.11.tar.gz to /tmp/ipmitool directory.
|
||||
2) cd /tmp/ipmitool
|
||||
3) gunzip ipmitool-1.8.11.tar.gz
|
||||
4) tar xvf ipmitool-1.8.11.tar
|
||||
5) Copy ipmitool.spec to /opt/freeware/src/packages/SPECS/
|
||||
6) tar cvf ipmitool-1.8.11.tar ipmitool-1.8.11
|
||||
7) gzip ipmitool-1.8.11.tar
|
||||
8) Copy ipmitool-1.8.11.tar.gz to /opt/freeware/src/packages/SOURCES
|
||||
9) Copy ipmitool-config.h.in.patch, ipmitool-imbapi.patch , and ipmitool-ipmievd.patch to /usr/src/packages/SOURCES
|
||||
10) cd /usr/src/packages/SPECS
|
||||
11) Run "rpm -bb ipmitool.spec", which creates:
|
||||
/opt/freeware/src/packages/RPMS/ppc/ipmitool-1.8.11-1.aix5.3.ppc.rpm
|
||||
|
||||
NOTE #1
|
||||
HOW TO CREATE THESE PATCHES
|
||||
1) cd /tmp/ipmitool-1.8.11
|
||||
2) mkdir a (this directory contains the original file)
|
||||
3) Copy original file to "a" subdirectory
|
||||
4) Repeat above for directory "b" (this directory contains the changed file)
|
||||
5) Copy changed file to "b" subdirectory
|
||||
6) cd /tmp/ipmitool-1.8.11
|
||||
7) diff -uNr a b > ipmitool.patch
|
||||
|
||||
|
8
ipmitool/ipmitool-config.h.in.patch
Normal file
8
ipmitool/ipmitool-config.h.in.patch
Normal file
@ -0,0 +1,8 @@
|
||||
--- ipmitool-1.8.11/config.h.in 2009-02-26 05:21:35.000000000 +0800
|
||||
+++ ipmitool-1.8.11_modify/config.h.in 2009-11-18 12:26:40.000000000 +0800
|
||||
@@ -211,4 +211,4 @@
|
||||
#endif
|
||||
|
||||
/* Define to rpl_malloc if the replacement function should be used. */
|
||||
-#undef malloc
|
||||
+/*#undef malloc*/
|
12
ipmitool/ipmitool-imbapi.patch
Normal file
12
ipmitool/ipmitool-imbapi.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- ipmitool-1.8.11/src/plugins/imb/imbapi.c 2009-02-26 04:38:53.000000000 +0800
|
||||
+++ ipmitool-1.8.11_modify/src/plugins/imb/imbapi.c 2009-11-18 12:15:42.000000000 +0800
|
||||
@@ -89,6 +89,9 @@
|
||||
#define IMB_DEVICE "/dev/instru/mismic"
|
||||
#else
|
||||
#define IMB_DEVICE "/dev/imb"
|
||||
+#ifndef EXEC_PAGESIZE
|
||||
+#define EXEC_PAGESIZE 4096
|
||||
+#endif
|
||||
#define PAGESIZE EXEC_PAGESIZE
|
||||
#endif
|
||||
|
12
ipmitool/ipmitool-ipmievd.patch
Normal file
12
ipmitool/ipmitool-ipmievd.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- ipmitool-1.8.11/src/ipmievd.c 2009-02-26 04:38:52.000000000 +0800
|
||||
+++ ipmitool-1.8.11_modify/src/ipmievd.c 2009-11-18 12:38:52.000000000 +0800
|
||||
@@ -48,6 +48,9 @@
|
||||
|
||||
#ifdef HAVE_PATHS_H
|
||||
# include <paths.h>
|
||||
+#ifndef _PATH_VARRUN
|
||||
+# define _PATH_VARRUN "/var/run/"
|
||||
+#endif
|
||||
#else
|
||||
# define _PATH_VARRUN "/var/run/"
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user