blob: ec5ba4bc563d57135c5c987eca7b979ff5ab64a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipmitool
_pkgname=IPMITOOL
pkgver=1.8.18
_pkgver=${pkgver//./_}
pkgrel=6
pkgdesc="Command-line interface to IPMI-enabled devices"
url="https://github.com/ipmitool/ipmitool"
arch="all"
license="BSD"
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
}
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
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
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="2f2b9c4ce76eb2afdac168edbd41241352c2d4d18286494ffb57dcf750f18448d144543faa8a5494f077c78a4f5ae730624d3798ba6e621249c42fd868d86406 ipmitool-1.8.18.tar.gz
665adc32529df8d5f6598d33ba92175c46e8a5b74094d22553b0265fe817b023c909688af2b02041a37b7cfd3805e6ae74b943fad48970d45564ea8d08309fa6 ipmievd.initd
4cace868f1776a96736b7460c84f525d63d6f53531f1f3e62f0337741dc36fb5b2ee9706fdae6a7b853e98d3894376949797ddc254248bd42dc79d85742c1744 ipmievd.confd"
|