aboutsummaryrefslogtreecommitdiffstats
path: root/main/openipmi
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-04 09:30:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-04 09:30:54 +0000
commit0713083093a250c8709fd8485ef600eacd7b78f0 (patch)
tree1e8df982ee9bf53a71da28deffae3e8aaa3046c7 /main/openipmi
parent841c12e12453ad580392976309ab148f54deef2d (diff)
downloadaports-0713083093a250c8709fd8485ef600eacd7b78f0.tar.bz2
aports-0713083093a250c8709fd8485ef600eacd7b78f0.tar.xz
main/openipmi: moved from testing
Diffstat (limited to 'main/openipmi')
-rw-r--r--main/openipmi/APKBUILD76
-rw-r--r--main/openipmi/pthread-pkgconfig.patch18
-rw-r--r--main/openipmi/stdint.patch13
3 files changed, 107 insertions, 0 deletions
diff --git a/main/openipmi/APKBUILD b/main/openipmi/APKBUILD
new file mode 100644
index 0000000000..61eba7ca50
--- /dev/null
+++ b/main/openipmi/APKBUILD
@@ -0,0 +1,76 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=openipmi
+pkgver=2.0.21
+pkgrel=0
+pkgdesc="IPMI (Intelligent Platform Management Interface) library and tools"
+url="http://sourceforge.net/projects/openipmi/"
+arch="all"
+license="LGPLv2+ and GPLv2+ or BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev popt-dev glib-dev net-snmp-dev ncurses-dev
+ openssl-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lanserv $pkgname-libs"
+source="http://downloads.sourceforge.net/openipmi/OpenIPMI-$pkgver.tar.gz
+ pthread-pkgconfig.patch
+ stdint.patch
+ "
+
+_builddir="$srcdir"/OpenIPMI-$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
+ update_config_sub
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ --with-ucdsnmp \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+lanserv() {
+ pkgdesc="Emulates an IPMI network listener"
+ mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib || return 1
+ mv "$pkgdir"/etc "$subpkgdir"/ || return 1
+ mv "$pkgdir"/usr/lib/libIPMIlanserv.so.* "$subpkgdir"/usr/lib/ \
+ || return 1
+ mv "$pkgdir"/usr/bin/ipmilan \
+ "$pkgdir"/usr/bin/ipmi_sim \
+ "$pkgdir"/usr/bin/sdrcomp \
+ "$subpkgdir"/usr/bin/ || return 1
+}
+
+
+
+md5sums="dc0b42ae40b3f1d0db2a94b75b95fae1 OpenIPMI-2.0.21.tar.gz
+de8aa684f967280b07fcc3eed0a4804b pthread-pkgconfig.patch
+d2a6a23784b0155d666c01dc990d7bb0 stdint.patch"
+sha256sums="37b844d02119b94b31e2bb2bd8062ffdf6cd3eb4bc75fa6c47184e8b14fe95b8 OpenIPMI-2.0.21.tar.gz
+f204b96d3e391786aa7eae569412979ac6c83dbfdb480340abea098b3d6d28d7 pthread-pkgconfig.patch
+2c7165a8b0607fd48fb2f3d89b89e1e38de1bd9f89dedafaed39d094b72866e8 stdint.patch"
+sha512sums="b684259ee5d47c36273fe6b47d60d0481c96b64b2e9421ce3190d9514e4f450b0db28d12c86a8814dcce23ba3ecfcecbbe9251d298244f1e9194a9f7563862a5 OpenIPMI-2.0.21.tar.gz
+8a1f6e784326389eb1aa517283aaca0330ef5b8a6975d4731acbff3cc39e857e38e4510ba851be9347533bef462bb3ce0c20578979b56c8c31d87d901c446bb2 pthread-pkgconfig.patch
+ac0f8506320fa2433244c0a2d7ac46df1ef8f50ab4905e816e6f7953c69327d391182c7807aab8f61547aed24d510ac71ceb8e73c2c65e0e44f072e1ad0f2c9e stdint.patch"
diff --git a/main/openipmi/pthread-pkgconfig.patch b/main/openipmi/pthread-pkgconfig.patch
new file mode 100644
index 0000000000..9a7620857b
--- /dev/null
+++ b/main/openipmi/pthread-pkgconfig.patch
@@ -0,0 +1,18 @@
+468067 - "pkg-config --libs OpenIPMIpthread" fails
+
+Fix the pkgconfig file.
+
+Reported upstream as http://sourceforge.net/tracker/index.php?func=detail&aid=2188750&group_id=36127&atid=416301
+
+diff -up OpenIPMI-2.0.18/OpenIPMIpthread.pc.in.orig OpenIPMI-2.0.18/OpenIPMIpthread.pc.in
+--- OpenIPMI-2.0.18/OpenIPMIpthread.pc.in.orig 2005-08-17 05:56:02.000000000 +0200
++++ OpenIPMI-2.0.18/OpenIPMIpthread.pc.in 2010-05-20 15:48:07.000000000 +0200
+@@ -6,6 +6,6 @@ includedir=@includedir@
+ Name: OpenIPMIpthread
+ Description: Pthread OS handler for OpenIPMI
+ Version: @VERSION@
+-Requires: OpenIPMI pthread
++Requires: OpenIPMI
+ Libs: -L${libdir} -lOpenIPMIutils -lOpenIPMIpthread
+-Cflags: -I${includedir}
++Cflags: -I${includedir} -pthread
diff --git a/main/openipmi/stdint.patch b/main/openipmi/stdint.patch
new file mode 100644
index 0000000000..5def30aad1
--- /dev/null
+++ b/main/openipmi/stdint.patch
@@ -0,0 +1,13 @@
+diff --git a/ui/ui.c b/ui/ui.c
+index 8dcb41d..7dc7284 100644
+--- a/ui/ui.c
++++ b/ui/ui.c
+@@ -337,7 +337,7 @@ get_uint(char **toks, unsigned int *val, char *errstr)
+ static int
+ get_ip_addr(char **toks, struct in_addr *ip_addr, char *errstr)
+ {
+- u_int32_t addr;
++ uint32_t addr;
+ unsigned char val;
+ char *str, *tmpstr, *istr;
+ char *ntok;