2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-22 01:21:44 +00:00
xcat-dep/ipmitool/make_deb.sh
chenglch 8ee0e0c7a4 upgrade to ipmitool-xcat-1.8.15
saneretry.patch is useful for ipmitool-1.8.15,
eventfix and spdfix have already been patched.
add rflash patch to delete upgrade prompt question.
2015-11-16 04:08:29 -05:00

19 lines
356 B
Bash
Executable File

#!/bin/bash
VERSION=1.8.15
tar xvfz ipmitool-$VERSION.tar.gz
cd ipmitool-$VERSION
cp -rL ../debian .
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
cd -
rm -rf ipmitool-$VERSION