aboutsummaryrefslogtreecommitdiffstats
path: root/main/openipmi/APKBUILD
blob: f48909274496d250b91a0918133b2aaa391abd4b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openipmi
pkgver=2.0.25
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"
makedepends="$depends_dev popt-dev glib-dev net-snmp-dev ncurses-dev
	libressl-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lanserv $pkgname-libs"
source="http://downloads.sourceforge.net/openipmi/OpenIPMI-$pkgver.tar.gz
	"
builddir="$srcdir"/OpenIPMI-$pkgver
build() {
	cd "$builddir"
	update_config_sub
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--with-ucdsnmp
	make
}

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

lanserv() {
	pkgdesc="Emulates an IPMI network listener"
	mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib
	mv "$pkgdir"/etc "$subpkgdir"/ || return 1
	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="5d89deb5d0d0ff44d6f62a9759577dba92aa58c208477e317aecbd01e71ccf7ba0dab138a1d8feff22d523c85d6ceaee9e478e26834ffcd91949b81d2d9c1f86  OpenIPMI-2.0.25.tar.gz"