# Maintainer: Natanael Copa pkgname=openipmi pkgver=2.0.25 pkgrel=1 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 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 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"