aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ipmitool/APKBUILD
blob: 113d672a2fcd3993709224380b976b2f9f9fafb9 (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
62
63
64
65
66
67
68
69
70
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ipmitool
pkgver=1.8.13
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="http://heanet.dl.sourceforge.net/project/ipmitool/ipmitool/$pkgver/ipmitool-$pkgver.tar.bz2
	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
}

md5sums="64f36baea740f701c5f287805da968a2  ipmitool-1.8.13.tar.bz2
ae9d53a2a262e43a3dd9b579b264888b  ipmievd.initd
2fe2ef5cbc48b0e2e1c03f891f6a278e  ipmievd.confd"
sha256sums="530bea8685a647a2ca58f40a1b317d529056f00129ad770e376a5b8a7faa8575  ipmitool-1.8.13.tar.bz2
b6c53306685e892386e74b839d302fc0df6a89a44ff1e05b399aeaf817676ca1  ipmievd.initd
3a56f0fa94f358f5fb9ee782a2f2a4755dbf5b19706553a673232d49c751fe04  ipmievd.confd"
sha512sums="2dfcd993e3965876058cd89dc961aa1ec6a9f5aacebb92f6438318dde0bf2c76f493bc678de5a10de00cc16a35a0ab6df0a4b4452542663b84b40f61be03446d  ipmitool-1.8.13.tar.bz2
1c9caea2c4ba2b846e08caca4b2c81bc159ddbc10699579b0c33c9c69894f7ae71eee0a86a6e45ef089f7593e16dc4c668df189c9840880cd65203b54ee2fde4  ipmievd.initd
4cace868f1776a96736b7460c84f525d63d6f53531f1f3e62f0337741dc36fb5b2ee9706fdae6a7b853e98d3894376949797ddc254248bd42dc79d85742c1744  ipmievd.confd"