2012-04-07 22:44:49 +00:00
|
|
|
#!/bin/bash
|
2016-09-26 19:26:39 +00:00
|
|
|
VERSION=1.8.17
|
2012-04-07 22:44:49 +00:00
|
|
|
|
2015-11-05 10:28:40 +00:00
|
|
|
tar xvfz ipmitool-$VERSION.tar.gz
|
|
|
|
cd ipmitool-$VERSION
|
2012-04-07 22:44:49 +00:00
|
|
|
cp -rL ../debian .
|
2014-07-09 04:50:58 +00:00
|
|
|
HOST_ARCH=`uname -m`
|
|
|
|
if [ "$HOST_ARCH" = "ppc64le" ]; then
|
|
|
|
HOST_ARCH="ppc64el"
|
|
|
|
elif [ "$HOST_ARCH" = "x86_64" ]; then
|
|
|
|
HOST_ARCH="amd64"
|
|
|
|
else
|
|
|
|
HOST_ARCH="amd64"
|
|
|
|
fi
|
|
|
|
TARGET_ARCH=$HOST_ARCH dpkg-buildpackage -uc -us
|
2012-04-07 22:44:49 +00:00
|
|
|
cd -
|
2015-11-05 10:28:40 +00:00
|
|
|
rm -rf ipmitool-$VERSION
|
|
|
|
|