summaryrefslogtreecommitdiffstats
path: root/testing/ipmiutil/APKBUILD
blob: 31e6e1dec4f847d9c66159fc9b4adb15598dca21 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ipmiutil
pkgver=2.9.2
pkgrel=1
pkgdesc="IPMI Management Utilities"
url="http://ipmiutil.sourceforge.net/"
arch="all"
license="BSD"
depends=""
depends_dev="openssl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://switch.dl.sourceforge.net/project/ipmiutil/ipmiutil-$pkgver.tar.gz
fixups.patch"

_builddir="$srcdir"/ipmiutil-$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 \
		--disable-systemd \
		--enable-sha256 \
		--enable-gpl \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="17637b9b5569e5646806d86f595ba596  ipmiutil-2.9.2.tar.gz
2759e748ae36b0dfa4a283e7c0f948e4  fixups.patch"
sha256sums="c32687d233390364a91d16920dcd7df80c06365ade9e51d74b2af5c5d1acead8  ipmiutil-2.9.2.tar.gz
87b9165ca06254256a35bf7666d60479ded78747a44b91adbbec5257b57254de  fixups.patch"
sha512sums="8c7643042232792ba51cf0546e756f409e055433940fc54907de07eb39de504128fa4613f8253997ea145c17d6e38a8888cf6b98b8e45c7130f383ad18798264  ipmiutil-2.9.2.tar.gz
3b7dd14ab2db875419b7110f56d40c1032e1c105ef3b2dd5ceec1efe206dbff66a967ac4b781dc4f1e36e24bdf832408a173e3de3082ae7b8649680f57f85f2f  fixups.patch"