diff --git a/ipmitool/Build-notes b/ipmitool/Build-notes new file mode 100644 index 0000000..c611916 --- /dev/null +++ b/ipmitool/Build-notes @@ -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 + + diff --git a/ipmitool/ipmitool-config.h.in.patch b/ipmitool/ipmitool-config.h.in.patch new file mode 100644 index 0000000..cfa910f --- /dev/null +++ b/ipmitool/ipmitool-config.h.in.patch @@ -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*/ diff --git a/ipmitool/ipmitool-imbapi.patch b/ipmitool/ipmitool-imbapi.patch new file mode 100644 index 0000000..3816c9f --- /dev/null +++ b/ipmitool/ipmitool-imbapi.patch @@ -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 + diff --git a/ipmitool/ipmitool-ipmievd.patch b/ipmitool/ipmitool-ipmievd.patch new file mode 100644 index 0000000..0cbe4e3 --- /dev/null +++ b/ipmitool/ipmitool-ipmievd.patch @@ -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 ++#ifndef _PATH_VARRUN ++# define _PATH_VARRUN "/var/run/" ++#endif + #else + # define _PATH_VARRUN "/var/run/" + #endif