Skip to contentSkip to conversation

rabbitmq-c:new package

PATCH New Joris Lijssens 2 participants 2 messages Nov 13, 2015 – Nov 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rabbitmq-c:new package

---
 package/Config.in                  |  1 +
 package/rabbitmq-c/Config.in       |  9 +++++++++
 package/rabbitmq-c/rabbitmq-c.hash |  2 ++
 package/rabbitmq-c/rabbitmq-c.mk   | 14 ++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/rabbitmq-c/Config.in
 create mode 100644 package/rabbitmq-c/rabbitmq-c.hash
 create mode 100644 package/rabbitmq-c/rabbitmq-c.mk
package/Config.in +1 -0
index 0a80afb..7092be4 100644
@@ -1058,6 +1058,7 @@ menu "Networking"
 	source "package/ortp/Config.in"
 	source "package/qdecoder/Config.in"
 	source "package/qpid-proton/Config.in"
+	source "package/rabbitmq-c/Config.in"
 	source "package/rtmpdump/Config.in"
 	source "package/slirp/Config.in"
 	source "package/snmppp/Config.in"
package/rabbitmq-c/Config.in new file +9 -0
new file mode 100644
index 0000000..55ce93d
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_RABBITMQ_C
+	bool "rabbitmq-c"
+	select BR2_PACKAGE_OPENSSL
+	help
+	  This is a C-language AMQP client library for use with v2.0+ of 
+	  the RabbitMQ broker.
+
+
+	  https://github.com/alanxz/rabbitmq-c
package/rabbitmq-c/rabbitmq-c.hash new file +2 -0
new file mode 100644
index 0000000..9f7d071
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 0b9b81d05b3e629c3449521690de400fe4539a8ba1feacadcbd6e9a50c8a4625 rabbitmq-c-v0.7.1.tar.gz
package/rabbitmq-c/rabbitmq-c.mk new file +14 -0
new file mode 100644
index 0000000..cd81ddf
@@ -0,0 +1,14 @@
+################################################################################
+#
+# rabbitmq-c
+#
+################################################################################
+
+RABBITMQ_C_VERSION = v0.7.1
+RABBITMQ_C_SITE = $(call github,alanxz,rabbitmq-c,$(RABBITMQ_C_VERSION))
+RABBITMQ_C_LICENSE = MIT
+RABBITMQ_C_LICENSE_FILES = LICENSE-MIT
+RABBITMQ_C_INSTALL_STAGING = YES
+RABBITMQ_C_DEPENDENCIES = openssl
+
+$(eval $(cmake-package))
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 rabbitmq-c:new package

Hi Joris,

Quoted 29 lines · Joris Lijssens
---
 package/Config.in                  |  1 +
 package/rabbitmq-c/Config.in       |  9 +++++++++
 package/rabbitmq-c/rabbitmq-c.hash |  2 ++
 package/rabbitmq-c/rabbitmq-c.mk   | 14 ++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/rabbitmq-c/Config.in
 create mode 100644 package/rabbitmq-c/rabbitmq-c.hash
 create mode 100644 package/rabbitmq-c/rabbitmq-c.mk
package/Config.in +1 -0
index 0a80afb..7092be4 100644
@@ -1058,6 +1058,7 @@ menu "Networking"
 	source "package/ortp/Config.in"
 	source "package/qdecoder/Config.in"
 	source "package/qpid-proton/Config.in"
+	source "package/rabbitmq-c/Config.in"
 	source "package/rtmpdump/Config.in"
 	source "package/slirp/Config.in"
 	source "package/snmppp/Config.in"
package/rabbitmq-c/Config.in new file +0 -0
new file mode 100644
index 0000000..55ce93d

package/rabbitmq-c/Config.in line 8

Quoted 8 lines
package/rabbitmq-c/Config.in new file +8 -0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_RABBITMQ_C
+	bool "rabbitmq-c"
+	select BR2_PACKAGE_OPENSSL
+	help
+	  This is a C-language AMQP client library for use with v2.0+ of 
+	  the RabbitMQ broker.
+
+

Redundant empty line.

Quoted 15 lines
package/rabbitmq-c/Config.in new file +1 -0
+	  https://github.com/alanxz/rabbitmq-c
package/rabbitmq-c/rabbitmq-c.hash new file +2 -0
new file mode 100644
index 0000000..9f7d071
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 0b9b81d05b3e629c3449521690de400fe4539a8ba1feacadcbd6e9a50c8a4625 rabbitmq-c-v0.7.1.tar.gz
package/rabbitmq-c/rabbitmq-c.mk new file +0 -0
new file mode 100644
index 0000000..cd81ddf

package/rabbitmq-c/rabbitmq-c.mk line 8

Quoted 8 lines
package/rabbitmq-c/rabbitmq-c.mk new file +8 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# rabbitmq-c
+#
+################################################################################
+
+RABBITMQ_C_VERSION = v0.7.1
+RABBITMQ_C_SITE = $(call github,alanxz,rabbitmq-c,$(RABBITMQ_C_VERSION))

I believe that there is a maintainer upload:

https://github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gz

We prefer to use that one.

package/rabbitmq-c/rabbitmq-c.mk line 12

Quoted 4 lines
package/rabbitmq-c/rabbitmq-c.mk new file +4 -0
+RABBITMQ_C_LICENSE = MIT
+RABBITMQ_C_LICENSE_FILES = LICENSE-MIT
+RABBITMQ_C_INSTALL_STAGING = YES
+RABBITMQ_C_DEPENDENCIES = openssl

I would add -DDO_DOCS=OFF -DBUILD_API_DOCS to _CONF_OPTS otherwise doxygen will
be called when it exists on the host (needlessly increasing build time).

The tools are only built when the popt library is found. I don't know how large
and how useful the tools are, but we probably want a config option to enable them and then add popt to dependencies and -DBUILD_TOOLS=ON to _CONF_OPTS.

It looks like openssl is optional (at least there is a cmake option
-DENABLE_SSL_SUPPORT=OFF to disable it).

Regards,
Arnout

Quoted 3 lines
package/rabbitmq-c/rabbitmq-c.mk new file +2 -0
+
+$(eval $(cmake-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF