Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] openipmi: new package
@ 2015-07-21 10:11 Baruch Siach
  2015-07-21 14:05 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2015-07-21 10:11 UTC (permalink / raw)
  To: buildroot

OpenIPMI provides libraries and command line tools for interacting with IPMI
enabled devices.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/Config.in              |  1 +
 package/openipmi/Config.in     | 16 ++++++++++++++++
 package/openipmi/openipmi.hash |  2 ++
 package/openipmi/openipmi.mk   | 36 ++++++++++++++++++++++++++++++++++++
 4 files changed, 55 insertions(+)
 create mode 100644 package/openipmi/Config.in
 create mode 100644 package/openipmi/openipmi.hash
 create mode 100644 package/openipmi/openipmi.mk

diff --git a/package/Config.in b/package/Config.in
index 20ecd38534b2..9942e3a77285 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -390,6 +390,7 @@ endif
 	source "package/ola/Config.in"
 	source "package/on2-8170-modules/Config.in"
 	source "package/open2300/Config.in"
+	source "package/openipmi/Config.in"
 	source "package/openocd/Config.in"
 	source "package/openpowerlink/Config.in"
 	source "package/owl-linux/Config.in"
diff --git a/package/openipmi/Config.in b/package/openipmi/Config.in
new file mode 100644
index 000000000000..667efa74a863
--- /dev/null
+++ b/package/openipmi/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_OPENIPMI
+	bool "openipmi"
+	depends on BR2_USE_MMU # fork()
+	depends on !BR2_STATIC_LIBS # dlopen()
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_POPT
+	select BR2_PACKAGE_NCURSES
+	help
+	  IPMI allows remote monitoring and remote management of
+	  devices. OpenIPMI provides a library and command line tools
+	  to interact with IPMI enabled devices. OpenIPMI also provides
+	  an IPMI BMC simulator.
+
+comment "openipmi needs a toolchain w/ dynamic library, threads"
+	depends on BR2_USE_MMU
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/openipmi/openipmi.hash b/package/openipmi/openipmi.hash
new file mode 100644
index 000000000000..3a40f6068f60
--- /dev/null
+++ b/package/openipmi/openipmi.hash
@@ -0,0 +1,2 @@
+# From http://sourceforge.net/projects/openipmi/files/OpenIPMI%202.0%20Library/
+sha1 54f63ab7fe09f6a4b0b718601fe9c61014aa220b OpenIPMI-2.0.21.tar.gz
diff --git a/package/openipmi/openipmi.mk b/package/openipmi/openipmi.mk
new file mode 100644
index 000000000000..1d8960ee3107
--- /dev/null
+++ b/package/openipmi/openipmi.mk
@@ -0,0 +1,36 @@
+################################################################################
+#
+# openipmi
+#
+################################################################################
+
+OPENIPMI_VERSION = 2.0.21
+OPENIPMI_SITE = http://sourceforge.net/projects/openipmi/files/OpenIPMI%202.0%20Library/
+OPENIPMI_SOURCE = OpenIPMI-2.0.21.tar.gz
+OPENIPMI_LICENSE = LGPLv2+, GPLv2+, BSD-3c
+OPENIPMI_LICENSE_FILES = COPYING.LIB COPYING COPYING.BSD
+OPENIPMI_DEPENDENCIES = popt ncurses host-pkgconf
+OPENIPMI_CONF_ENV = ac_cv_path_pkgprog="$(PKG_CONFIG_HOST_BINARY)"
+OPENIPMI_CONF_OPTS = \
+		--with-glib=no \
+		--with-glib12=no \
+		--with-tcl=no \
+		--with-perl=no \
+		--with-python=no \
+		--with-swig=no
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+OPENIPMI_DEPENDENCIES += openssl
+OPENIPMI_CONF_OPTS += --with-openssl=yes
+else
+OPENIPMI_CONF_OPTS += --with-openssl=no
+endif
+
+ifeq ($(BR2_PACKAGE_NETSNMP),y)
+OPENIPMI_DEPENDENCIES += netsnmp
+OPENIPMI_CONF_OPTS += --with-ucdsnmp=yes
+else
+OPENIPMI_CONF_OPTS += --with-ucdsnmp=no
+endif
+
+$(eval $(autotools-package))
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] openipmi: new package
  2015-07-21 10:11 [Buildroot] [PATCH] openipmi: new package Baruch Siach
@ 2015-07-21 14:05 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-07-21 14:05 UTC (permalink / raw)
  To: buildroot

Dear Baruch Siach,

On Tue, 21 Jul 2015 13:11:40 +0300, Baruch Siach wrote:

> +OPENIPMI_VERSION = 2.0.21
> +OPENIPMI_SITE = http://sourceforge.net/projects/openipmi/files/OpenIPMI%202.0%20Library/
> +OPENIPMI_SOURCE = OpenIPMI-2.0.21.tar.gz
> +OPENIPMI_LICENSE = LGPLv2+, GPLv2+, BSD-3c
> +OPENIPMI_LICENSE_FILES = COPYING.LIB COPYING COPYING.BSD
> +OPENIPMI_DEPENDENCIES = popt ncurses host-pkgconf
> +OPENIPMI_CONF_ENV = ac_cv_path_pkgprog="$(PKG_CONFIG_HOST_BINARY)"
> +OPENIPMI_CONF_OPTS = \
> +		--with-glib=no \
> +		--with-glib12=no \
> +		--with-tcl=no \
> +		--with-perl=no \
> +		--with-python=no \
> +		--with-swig=no

Indentation was wrong here, it should be only one tab. I've fixed that
up, and applied your patch. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-21 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 10:11 [Buildroot] [PATCH] openipmi: new package Baruch Siach
2015-07-21 14:05 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox