Guest User

Untitled

a guest
Aug 15th, 2020
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=ipmiview
  2. pkgver=2.17.0
  3. _pkghash=200505
  4. pkgrel=1
  5. pkgdesc="Supermicro IPMI tool"
  6. makedepends=('tar')
  7. depends=("glibc" "java-runtime=8")
  8. arch=('x86_64')
  9. license=('custom:"Super Micro Computer"')
  10. url="http://www.supermicro.com/products/nfo/ipmi.cfm"
  11.  
  12. backup=('account.properties'
  13. 'email.properties'
  14. 'IPMIView.properties'
  15. 'timeout.properties'
  16. 'iKVM.properties'
  17. 'stunnel.properties'
  18. )
  19.  
  20. source=("https://www.supermicro.com/wftp/utility/IPMIView/Linux/IPMIView_${pkgver}_build.${_pkghash}_bundleJRE_Linux_x64.tar.gz"
  21. 'ipmiview.desktop')
  22.  
  23. sha512sums=('17ed72e802fb0a55c140f98262575385ede2d490484fe926bb7ff19f34e5a376f2d21025e99318d2001b042487729dc8b07b38cca4bf62df6e04d7df0d1d3091'
  24. '683922d5ce90116ca04fbf1a244da87296beaf079ecde94d799b2d303e21dfda4e771f5a4b724e7dd64143feaef49d2f11fd2eaf380ebdcf02e9db82c9975497')
  25.  
  26. package() {
  27. cd ${srcdir}/IPMIView_${pkgver}_build.${_pkghash}_bundleJRE_Linux_x64
  28.  
  29. # Remove bundled jre
  30. rm -rf jre/
  31.  
  32. mkdir -p ${pkgdir}/opt/${pkgname}
  33. mkdir -p ${pkgdir}/usr/bin
  34. mkdir -p ${pkgdir}/usr/share/applications
  35.  
  36. cp -rf . ${pkgdir}/opt/${pkgname}
  37.  
  38. touch ${pkgdir}/opt/${pkgname}/timeout.properties
  39. touch ${pkgdir}/opt/${pkgname}/account.properties
  40. touch ${pkgdir}/opt/${pkgname}/email.properties
  41. touch ${pkgdir}/opt/${pkgname}/IPMIView.properties
  42. touch ${pkgdir}/opt/${pkgname}/iKVM.properties
  43. touch ${pkgdir}/opt/${pkgname}/stunnel.properties
  44. chmod a+rw ${pkgdir}/opt/${pkgname}/timeout.properties
  45. chmod a+rw ${pkgdir}/opt/${pkgname}/account.properties
  46. chmod a+rw ${pkgdir}/opt/${pkgname}/email.properties
  47. chmod a+rw ${pkgdir}/opt/${pkgname}/IPMIView.properties
  48. chmod a+rw ${pkgdir}/opt/${pkgname}/iKVM.properties
  49. chmod a+rw ${pkgdir}/opt/${pkgname}/stunnel.properties
  50.  
  51. ln -s /opt/${pkgname}/IPMIView20 ${pkgdir}/usr/bin/${pkgname}
  52. install -m 0644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
  53. }
  54.  
RAW Paste Data