Patchwork zyre: new package

login
register
mail settings
Submitter Simon Dawson
Date April 14, 2013, 8:33 p.m.
Message ID <1365971582-19802-1-git-send-email-spdawson@gmail.com>
Download mbox | patch
Permalink /patch/236471/
State Accepted
Headers show

Comments

Simon Dawson - April 14, 2013, 8:33 p.m.
From: Simon Dawson <spdawson@gmail.com>

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 package/Config.in      |    1 +
 package/zyre/Config.in |   13 +++++++++++++
 package/zyre/zyre.mk   |   22 ++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 package/zyre/Config.in
 create mode 100644 package/zyre/zyre.mk
Peter Korsgaard - April 23, 2013, 8:19 p.m.
>>>>> "spdawson" == spdawson  <spdawson@gmail.com> writes:

 spdawson> From: Simon Dawson <spdawson@gmail.com>
 spdawson> Signed-off-by: Simon Dawson <spdawson@gmail.com>
 spdawson> ---
 spdawson>  package/Config.in      |    1 +
 spdawson>  package/zyre/Config.in |   13 +++++++++++++
 spdawson>  package/zyre/zyre.mk   |   22 ++++++++++++++++++++++
 spdawson>  3 files changed, 36 insertions(+)
 spdawson>  create mode 100644 package/zyre/Config.in
 spdawson>  create mode 100644 package/zyre/zyre.mk

 spdawson> diff --git a/package/Config.in b/package/Config.in
 spdawson> index 322e005..342e92e 100644
 spdawson> --- a/package/Config.in
 spdawson> +++ b/package/Config.in
 spdawson> @@ -543,6 +543,7 @@ source "package/slirp/Config.in"
 spdawson>  source "package/usbredir/Config.in"
 spdawson>  source "package/zeromq/Config.in"
 spdawson>  source "package/zmqpp/Config.in"
 spdawson> +source "package/zyre/Config.in"
 spdawson>  endmenu
 
 spdawson>  menu "Other"
 spdawson> diff --git a/package/zyre/Config.in b/package/zyre/Config.in
 spdawson> new file mode 100644
 spdawson> index 0000000..f839a5d
 spdawson> --- /dev/null
 spdawson> +++ b/package/zyre/Config.in
 spdawson> @@ -0,0 +1,13 @@
 spdawson> +config BR2_PACKAGE_ZYRE
 spdawson> +	bool "zyre"
 spdawson> +	depends on BR2_INSTALL_LIBSTDCPP # filemq
 spdawson> +	depends on BR2_INET_IPV6 # filemq
 spdawson> +	depends on BR2_LARGEFILE # filemq
 spdawson> +	depends on BR2_USE_WCHAR # filemq
 spdawson> +	depends on BR2_TOOLCHAIN_HAS_THREADS # filemq
 spdawson> +	select BR2_PACKAGE_FILEMQ
 spdawson> +	help
 spdawson> +	  An open-source framework for proximity-based peer-to-peer
 spdawson> +	  applications.
 spdawson> +
 spdawson> +	  http://zyre.org

It should also show a comment if those toolchain options aren't
enabled. I've fixed that and committed, thanks.


 spdawson> diff --git a/package/zyre/zyre.mk b/package/zyre/zyre.mk
 spdawson> new file mode 100644
 spdawson> index 0000000..6e295df
 spdawson> --- /dev/null
 spdawson> +++ b/package/zyre/zyre.mk
 spdawson> @@ -0,0 +1,22 @@
 spdawson> +#############################################################
 spdawson> +#
 spdawson> +# zyre
 spdawson> +#
 spdawson> +#############################################################
 spdawson> +
 spdawson> +ZYRE_VERSION = 44a57a449a
 spdawson> +ZYRE_SITE = git://github.com/zeromq/zyre.git
 spdawson> +ZYRE_LICENSE = LGPLv3

License is 'any later version', so LGPL3+

Patch

diff --git a/package/Config.in b/package/Config.in
index 322e005..342e92e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -543,6 +543,7 @@  source "package/slirp/Config.in"
 source "package/usbredir/Config.in"
 source "package/zeromq/Config.in"
 source "package/zmqpp/Config.in"
+source "package/zyre/Config.in"
 endmenu
 
 menu "Other"
diff --git a/package/zyre/Config.in b/package/zyre/Config.in
new file mode 100644
index 0000000..f839a5d
--- /dev/null
+++ b/package/zyre/Config.in
@@ -0,0 +1,13 @@ 
+config BR2_PACKAGE_ZYRE
+	bool "zyre"
+	depends on BR2_INSTALL_LIBSTDCPP # filemq
+	depends on BR2_INET_IPV6 # filemq
+	depends on BR2_LARGEFILE # filemq
+	depends on BR2_USE_WCHAR # filemq
+	depends on BR2_TOOLCHAIN_HAS_THREADS # filemq
+	select BR2_PACKAGE_FILEMQ
+	help
+	  An open-source framework for proximity-based peer-to-peer
+	  applications.
+
+	  http://zyre.org
diff --git a/package/zyre/zyre.mk b/package/zyre/zyre.mk
new file mode 100644
index 0000000..6e295df
--- /dev/null
+++ b/package/zyre/zyre.mk
@@ -0,0 +1,22 @@ 
+#############################################################
+#
+# zyre
+#
+#############################################################
+
+ZYRE_VERSION = 44a57a449a
+ZYRE_SITE = git://github.com/zeromq/zyre.git
+ZYRE_LICENSE = LGPLv3
+ZYRE_LICENSE_FILES = COPYING COPYING.LESSER
+ZYRE_INSTALL_STAGING = YES
+ZYRE_DEPENDENCIES = filemq
+ZYRE_AUTORECONF = YES
+ZYRE_AUTORECONF_OPT = --install --force --verbose
+
+define ZYRE_CREATE_CONFIG_DIR
+	mkdir -p $(@D)/config
+endef
+
+ZYRE_POST_PATCH_HOOKS += ZYRE_CREATE_CONFIG_DIR
+
+$(eval $(autotools-package))