aboutsummaryrefslogtreecommitdiffstats
path: root/community/ipmitool
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-04-15 00:19:34 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-23 19:58:08 +0000
commit3dea5a595bf4cafedbcc940fcfdc20be84ff88a8 (patch)
treea0ea8400af58cbde7a946fb252ec0961c45beee0 /community/ipmitool
parent2316d4ac5a81ba393d968d60c16701ca49c37a85 (diff)
downloadaports-3dea5a595bf4cafedbcc940fcfdc20be84ff88a8.tar.bz2
aports-3dea5a595bf4cafedbcc940fcfdc20be84ff88a8.tar.xz
community/ipmitool: modernize
Diffstat (limited to 'community/ipmitool')
-rw-r--r--community/ipmitool/APKBUILD38
1 files changed, 20 insertions, 18 deletions
diff --git a/community/ipmitool/APKBUILD b/community/ipmitool/APKBUILD
index c0341579bd..ec5ba4bc56 100644
--- a/community/ipmitool/APKBUILD
+++ b/community/ipmitool/APKBUILD
@@ -1,22 +1,27 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipmitool
+_pkgname=IPMITOOL
pkgver=1.8.18
-pkgrel=5
+_pkgver=${pkgver//./_}
+pkgrel=6
pkgdesc="Command-line interface to IPMI-enabled devices"
-url="http://ipmitool.sourceforge.net"
+url="https://github.com/ipmitool/ipmitool"
arch="all"
license="BSD"
-depends=""
-depends_dev="readline-dev libressl-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
+makedepends="automake autoconf libtool readline-dev libressl-dev ncurses-dev"
+subpackages="$pkgname-doc $pkgname-openrc::noarch"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ipmitool/ipmitool/archive/${_pkgname}_$_pkgver.tar.gz
ipmievd.initd
ipmievd.confd"
+builddir="$srcdir/$pkgname-${_pkgname}_$_pkgver"
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ autoreconf -vif
+}
-builddir="$srcdir"/ipmitool-$pkgver
build() {
cd "$builddir"
./configure --prefix=/usr \
@@ -35,9 +40,8 @@ build() {
--disable-intf-lipmi \
--disable-intf-bmc \
--disable-internal-md5 \
- --with-kerneldir=/usr \
- || return 1
- make || return 1
+ --with-kerneldir=/usr
+ make
}
check() {
@@ -47,13 +51,11 @@ check() {
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
+ make DESTDIR="$pkgdir" install
+ install -D -m755 "$srcdir"/ipmievd.initd "$pkgdir"/etc/init.d/ipmievd
+ install -D -m644 "$srcdir"/ipmievd.confd "$pkgdir"/etc/conf.d/ipmievd
}
-sha512sums="b20a2791efff748af62ffca56266fd2d8c8003395a6a21ef7b0ff5f8b7be6d6b1fe52150cdb32d6a91cdd3edd197e0ca5709ead923065474852301246710ce02 ipmitool-1.8.18.tar.bz2
+sha512sums="2f2b9c4ce76eb2afdac168edbd41241352c2d4d18286494ffb57dcf750f18448d144543faa8a5494f077c78a4f5ae730624d3798ba6e621249c42fd868d86406 ipmitool-1.8.18.tar.gz
665adc32529df8d5f6598d33ba92175c46e8a5b74094d22553b0265fe817b023c909688af2b02041a37b7cfd3805e6ae74b943fad48970d45564ea8d08309fa6 ipmievd.initd
4cace868f1776a96736b7460c84f525d63d6f53531f1f3e62f0337741dc36fb5b2ee9706fdae6a7b853e98d3894376949797ddc254248bd42dc79d85742c1744 ipmievd.confd"