From 485e456cf379029df05bf1472cfa66704e11d696 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 19 Jun 2013 10:01:38 +0000 Subject: testing/ipmitool: new aport --- testing/ipmitool/APKBUILD | 71 ++++++++++++++++++++++++++++++++++++++++++ testing/ipmitool/ipmievd.confd | 23 ++++++++++++++ testing/ipmitool/ipmievd.initd | 25 +++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 testing/ipmitool/APKBUILD create mode 100644 testing/ipmitool/ipmievd.confd create mode 100644 testing/ipmitool/ipmievd.initd diff --git a/testing/ipmitool/APKBUILD b/testing/ipmitool/APKBUILD new file mode 100644 index 0000000000..14d764945d --- /dev/null +++ b/testing/ipmitool/APKBUILD @@ -0,0 +1,71 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=ipmitool +pkgver=1.8.12 +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" +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 + rm -f "$pkgdir"/usr/lib/*.la + 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="cfdfd15b6ee471c19a7a7e6b47233963 ipmitool-1.8.12.tar.bz2 +ae9d53a2a262e43a3dd9b579b264888b ipmievd.initd +2fe2ef5cbc48b0e2e1c03f891f6a278e ipmievd.confd" +sha256sums="549b2da65c30905248aee07367a9cae3dd94bceaddd9c122d55075766c868733 ipmitool-1.8.12.tar.bz2 +b6c53306685e892386e74b839d302fc0df6a89a44ff1e05b399aeaf817676ca1 ipmievd.initd +3a56f0fa94f358f5fb9ee782a2f2a4755dbf5b19706553a673232d49c751fe04 ipmievd.confd" +sha512sums="354c2081f47af2a6193ec3813ec8afff342232f15a4433d0a2b8745088487604115f3c0ad190282021982add775c5d0bc1b6da6f7faa31137b9fc8542bdd3825 ipmitool-1.8.12.tar.bz2 +1c9caea2c4ba2b846e08caca4b2c81bc159ddbc10699579b0c33c9c69894f7ae71eee0a86a6e45ef089f7593e16dc4c668df189c9840880cd65203b54ee2fde4 ipmievd.initd +4cace868f1776a96736b7460c84f525d63d6f53531f1f3e62f0337741dc36fb5b2ee9706fdae6a7b853e98d3894376949797ddc254248bd42dc79d85742c1744 ipmievd.confd" diff --git a/testing/ipmitool/ipmievd.confd b/testing/ipmitool/ipmievd.confd new file mode 100644 index 0000000000..ee4dd6745e --- /dev/null +++ b/testing/ipmitool/ipmievd.confd @@ -0,0 +1,23 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd,v 1.1 2007/09/23 06:03:42 robbat2 Exp $ +# /etc/conf.d/ipmievd + +# Interfaces: +# open Linux OpenIPMI Interface +# imb Intel IMB Interface +# bmc IPMI v2.0 BMC interface +# lan IPMI v1.5 LAN Interface +# lanplus IPMI v2.0 RMCP+ LAN Interface + +INTERFACE="open" + +# Commands: +# open Use OpenIPMI for asyncronous notification of events +# sel Poll SEL for notification of events + +COMMAND="open" + +# Options. + +OPTIONS="" diff --git a/testing/ipmitool/ipmievd.initd b/testing/ipmitool/ipmievd.initd new file mode 100644 index 0000000000..5dd4ef12ba --- /dev/null +++ b/testing/ipmitool/ipmievd.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd,v 1.1 2007/09/23 06:03:42 robbat2 Exp $ +# /etc/init.d/ipmievd + +depend() { + use logger +} +PN="ipmievd" + +start() { + /sbin/modprobe -sq ipmi_msghandler + /sbin/modprobe -sq ipmi_devintf + /sbin/modprobe -sq ipmi_si + ebegin "Starting ${PN}" + start-stop-daemon --start --pidfile /var/run/${PN}.pid0 --exec /usr/sbin/${PN} -- -I ${INTERFACE} ${OPTIONS} ${COMMAND} + eend $? +} + +stop() { + ebegin "Stopping ${PN}" + start-stop-daemon --stop --pidfile /var/run/${PN}.pid0 + eend $? +} -- cgit v1.2.3