aboutsummaryrefslogtreecommitdiffstats
path: root/community/openipmi/APKBUILD
blob: 9c7a2864a6f3d3e16bb963a888f2bb577ab73e68 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openipmi
pkgver=2.0.27
pkgrel=0
pkgdesc="IPMI (Intelligent Platform Management Interface) library and tools"
url="https://sourceforge.net/projects/openipmi/"
arch="all"
license="LGPL-2.0-or-later and GPL-2.0-or-later or BSD-3-Clause"
makedepends="libedit-dev readline-dev popt-dev glib-dev net-snmp-dev ncurses-dev
	openssl-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lanserv $pkgname-libs"
source="https://downloads.sourceforge.net/openipmi/OpenIPMI-$pkgver.tar.gz"
builddir="$srcdir"/OpenIPMI-$pkgver

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--with-ucdsnmp \
		--without-python
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

lanserv() {
	pkgdesc="Emulates an IPMI network listener"
	mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib
	mv "$pkgdir"/etc "$subpkgdir"/
	mv "$pkgdir"/usr/lib/libIPMIlanserv.so.* "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/bin/ipmilan \
		"$pkgdir"/usr/bin/ipmi_sim \
		"$pkgdir"/usr/bin/sdrcomp \
		"$subpkgdir"/usr/bin/
}



sha512sums="44aa2eb97559514d61654434f24bf8e87c3f89ea7095fd3d46c1a889e16c128f29ca19cfb9747afc7fd432ada84406ee884bc8b9c65e28b8bd033d368b744fe3  OpenIPMI-2.0.27.tar.gz"