2012-04-07 22:44:49 +00:00
|
|
|
#!/bin/bash
|
2017-05-30 14:52:35 -04:00
|
|
|
VERSION=1.8.18
|
2012-04-07 22:44:49 +00:00
|
|
|
|
2015-11-05 05:28:40 -05:00
|
|
|
tar xvfz ipmitool-$VERSION.tar.gz
|
|
|
|
cd ipmitool-$VERSION
|
2012-04-07 22:44:49 +00:00
|
|
|
cp -rL ../debian .
|
2014-07-08 21:50:58 -07: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 05:28:40 -05:00
|
|
|
rm -rf ipmitool-$VERSION
|
|
|
|
|