Guest User

IMPIView 2.9.27 Pkgbuild

a guest
Dec 16th, 2013
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer : Leo von Klenze <devel@leo.von-klenze.de>
  2. # Contributor: Martin Wimpress <code@flexion.org>
  3.  
  4. pkgname=ipmiview
  5. pkgver=2.9.27
  6. _buildnr=20131122
  7. pkgrel=1
  8. pkgdesc="IPMIView is a management software program based on the IPMI specification Reversion 1.5 - 2.0"
  9. arch=('i686' 'x86_64')
  10. url="ftp://ftp.supermicro.com/utility/IPMIView/Jar/"
  11. license=('unknown')
  12. depends=('java-runtime')
  13. source=("ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView_${pkgver}_jar_${_buildnr}.zip")
  14. md5sums=('80e1dcb18cbc675fc08a3a50e9c21068')
  15.  
  16. package() {
  17. mkdir -p ${pkgdir}/opt/IPMIView
  18. mkdir -p ${pkgdir}/usr/bin
  19.  
  20. cp "${srcdir}/IPMIView_${pkgver}_jar_${_buildnr}/"* "${pkgdir}/opt/IPMIView"
  21. chmod 644 "${pkgdir}/opt/IPMIView/"*
  22. echo -e "#!/bin/sh\n\n"'mkdir -p ${HOME}/.IPMIView'"\n"'cd ${HOME}/.IPMIView'"\n\nexport PATH=/opt/IPMIView/java_wrap:\$PATH\n/usr/bin/java -Djava.library.path=/opt/IPMIView -jar /opt/IPMIView/IPMIView20.jar\n" > "${pkgdir}/opt/IPMIView/IPMIView20.sh"
  23. mkdir -p ${pkgdir}/opt/IPMIView/java_wrap/
  24. echo -e "#!/bin/sh\n\n"'java_args=$(echo $@ | sed "s|-jar iKVM.jar|-jar /opt/IPMIView/iKVM.jar|;s|-Djava.library.path=.|-Djava.library.path=/opt/IPMIView|")'"\n/usr/bin/java \$java_args" > "${pkgdir}/opt/IPMIView/java_wrap/java"
  25. chmod 755 "${pkgdir}/opt/IPMIView/IPMIView20.sh"
  26. chmod 755 "${pkgdir}/opt/IPMIView/java_wrap/java"
  27.  
  28. ln -s /opt/IPMIView/IPMIView20.sh "${pkgdir}/usr/bin/IPMIView"
RAW Paste Data