Guest User

IPMICFG

a guest
Apr 9th, 2014
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Dmitry Nosachev <quartz64@gmail.com>
  2. # Contributor: Dmitry Nosachev <quartz64@gmail.com>
  3.  
  4. pkgname=ipmicfg
  5. pkgver=1.14.3_20130725
  6. pkgrel=1
  7. pkgdesc="Supermicro IPMI configuration tool"
  8. makedepends=('unzip')
  9. depends=("glibc")
  10. arch=('x86_64' 'i686')
  11. license=('custom:"Copyright 2010 Super Micro Computer, Inc."')
  12. url="http://www.supermicro.com/products/nfo/ipmi.cfm"
  13. source=("ftp://ftp.supermicro.com/utility/IPMICFG/${pkgname}_${pkgver}.zip")
  14. sha256sums=('4ffee3890aecc87d8d7118ae5be1ec3ca3d92d03b5f1b7de57cc3ca1d20664a3')
  15.  
  16. package() {
  17.         cd ${srcdir}/${pkgname}_${pkgver}/linux
  18.  
  19.         mkdir -p ${pkgdir}/opt
  20.         mkdir -p ${pkgdir}/usr/bin
  21.  
  22.         if [ "${CARCH}" = "x86_64" ]; then
  23.                 cp -rf 64bit ${pkgdir}/opt/${pkgname}
  24.                 chmod a+rx ${pkgdir}/opt/${pkgname}/ipmicfg-linux.x86_64
  25.                 ln -s /opt/${pkgname}/ipmicfg-linux.x86_64 ${pkgdir}/usr/bin/ipmicfg
  26.         elif [ "${CARCH}" = "i686" ]; then
  27.                 cp -rf 32bit ${pkgdir}/opt/${pkgname}
  28.                 chmod a+rx ${pkgdir}/opt/${pkgname}/ipmicfg-linux.x86
  29.                 ln -s /opt/${pkgname}/ipmicfg-linux.x86 ${pkgdir}/usr/bin/ipmicfg
  30.         fi
  31. }
RAW Paste Data