diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-19 10:01:38 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-19 10:01:38 +0000 |
commit | 485e456cf379029df05bf1472cfa66704e11d696 (patch) | |
tree | b5a839d1719865079123babb1aa3bbdc602c9066 /testing/ipmitool/APKBUILD | |
parent | e0e63ecebfb33d1e192cbc0432b7771498cc71b3 (diff) | |
download | aports-485e456cf379029df05bf1472cfa66704e11d696.tar.bz2 aports-485e456cf379029df05bf1472cfa66704e11d696.tar.xz |
testing/ipmitool: new aport
Diffstat (limited to 'testing/ipmitool/APKBUILD')
-rw-r--r-- | testing/ipmitool/APKBUILD | 71 |
1 files changed, 71 insertions, 0 deletions
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 <clandmeter@gmail.com> +# 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" |