diff options
author | Manuel Mendez <mmendez534@gmail.com> | 2017-04-11 18:25:27 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-04-14 19:15:51 +0000 |
commit | e1f28eff9eeb597df26454d967cbb977cf931686 (patch) | |
tree | 4f9505039119bbaafecbee4ed83813c3e624f87f /testing/ipmitool/APKBUILD | |
parent | a5fb09fe028f837c01a293d49cf3372217980c5d (diff) | |
download | aports-e1f28eff9eeb597df26454d967cbb977cf931686.tar.bz2 aports-e1f28eff9eeb597df26454d967cbb977cf931686.tar.xz |
testing/ipmitool: move from unmaintained and update to version 1.8.18
Diffstat (limited to 'testing/ipmitool/APKBUILD')
-rw-r--r-- | testing/ipmitool/APKBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/testing/ipmitool/APKBUILD b/testing/ipmitool/APKBUILD new file mode 100644 index 0000000000..79a3305400 --- /dev/null +++ b/testing/ipmitool/APKBUILD @@ -0,0 +1,64 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=ipmitool +pkgver=1.8.18 +pkgrel=0 +pkgdesc="Command-line interface to IPMI-enabled devices" +url="http://ipmitool.sourceforge.net" +arch="all" +license="BSD" +depends="" +depends_dev="readline-dev openssl-dev ncurses-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.bz2::https://sourceforge.net/projects/ipmitool/files/ipmitool/$pkgver/ipmitool-$pkgver.tar.bz2/download + ipmievd.initd + ipmievd.confd" + +_builddir="$srcdir"/ipmitool-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --bindir=/usr/sbin \ + --enable-ipmievd \ + --enable-ipmishell \ + --enable-intf-lan \ + --enable-intf-lanplus \ + --enable-intf-open \ + --disable-intf-free \ + --disable-intf-imb \ + --disable-intf-lipmi \ + --disable-intf-bmc \ + --disable-internal-md5 \ + --with-kerneldir=/usr \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -D -m755 "$srcdir"/ipmievd.initd \ + "$pkgdir"/etc/init.d/ipmievd || return 1 + install -D -m644 "$srcdir"/ipmievd.confd \ + "$pkgdir"/etc/conf.d/ipmievd || return 1 +} + +sha512sums="b20a2791efff748af62ffca56266fd2d8c8003395a6a21ef7b0ff5f8b7be6d6b1fe52150cdb32d6a91cdd3edd197e0ca5709ead923065474852301246710ce02 ipmitool-1.8.18.tar.bz2 +665adc32529df8d5f6598d33ba92175c46e8a5b74094d22553b0265fe817b023c909688af2b02041a37b7cfd3805e6ae74b943fad48970d45564ea8d08309fa6 ipmievd.initd +4cace868f1776a96736b7460c84f525d63d6f53531f1f3e62f0337741dc36fb5b2ee9706fdae6a7b853e98d3894376949797ddc254248bd42dc79d85742c1744 ipmievd.confd" |