-
-
Save swdunlop/af68fbc49675ec4f7b9b to your computer and use it in GitHub Desktop.
ipmivew PKGBUILD, 2.9.28 rel 20131220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer : Leo von Klenze <devel@leo.von-klenze.de> | |
# Contributor: Martin Wimpress <code@flexion.org> | |
pkgname=ipmiview | |
pkgver=2.9.28 | |
_buildnr=20131220 | |
pkgrel=1 | |
pkgdesc="IPMIView is a management software program based on the IPMI specification Reversion 1.5 - 2.0" | |
arch=('i686' 'x86_64') | |
url="ftp://ftp.supermicro.com/utility/IPMIView/Jar/" | |
license=('unknown') | |
depends=('java-runtime') | |
source=("ftp://ftp.supermicro.com/utility/IPMIView/Jar/IPMIView_${pkgver}_jar_${_buildnr}.zip") | |
md5sums=('3ae55ced03c81dec8a85d6231018fc9a') | |
package() { | |
mkdir -p ${pkgdir}/opt/IPMIView | |
mkdir -p ${pkgdir}/usr/bin | |
cp "${srcdir}/IPMIView_${pkgver}_jar_${_buildnr}/"* "${pkgdir}/opt/IPMIView" | |
chmod 644 "${pkgdir}/opt/IPMIView/"* | |
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" | |
mkdir -p ${pkgdir}/opt/IPMIView/java_wrap/ | |
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" | |
chmod 755 "${pkgdir}/opt/IPMIView/IPMIView20.sh" | |
chmod 755 "${pkgdir}/opt/IPMIView/java_wrap/java" | |
ln -s /opt/IPMIView/IPMIView20.sh "${pkgdir}/usr/bin/IPMIView" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment