mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCHv3] c-ares: add c-ares to ptxdist
@ 2015-02-20 12:42 Oliver Graute
  2015-02-20 12:45 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Graute @ 2015-02-20 12:42 UTC (permalink / raw)
  To: ptxdist; +Cc: Oliver Graute

This patch add c-ares to ptxdist, its a C library for async DNS requests

Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
---
 rules/c-ares.in   |    7 ++++++
 rules/c-ares.make |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/c-ares.in
 create mode 100644 rules/c-ares.make

diff --git a/rules/c-ares.in b/rules/c-ares.in
new file mode 100644
index 0000000..2443499
--- /dev/null
+++ b/rules/c-ares.in
@@ -0,0 +1,7 @@
+## SECTION=networking
+
+config C_ARES
+	tristate
+	prompt "c-ares"
+	help
+	  c-ares is a C library for asynchronous DNS requests (including name resolves)
diff --git a/rules/c-ares.make b/rules/c-ares.make
new file mode 100644
index 0000000..845f5ad
--- /dev/null
+++ b/rules/c-ares.make
@@ -0,0 +1,61 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute <oliver.graute@neuhaus.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_C_ARES) += c-ares
+
+#
+# Paths and names
+#
+C_ARES_VERSION	:= 1.10.0
+C_ARES_MD5	:= 1196067641411a75d3cbebe074fd36d8
+C_ARES		:= c-ares-$(C_ARES_VERSION)
+C_ARES_SUFFIX	:= tar.gz
+C_ARES_URL	:= http://c-ares.haxx.se/download//$(C_ARES).$(C_ARES_SUFFIX)
+C_ARES_SOURCE	:= $(SRCDIR)/$(C_ARES).$(C_ARES_SUFFIX)
+C_ARES_DIR	:= $(BUILDDIR)/$(C_ARES)
+C_ARES_LICENSE	:= MIT license
+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+C_ARES_CONF_TOOL      := autoconf
+C_ARES_CONF_OPT              := \
+ 	$(CROSS_AUTOCONF_USR) \
+ 	--enable-nonblocking
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/c-ares.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, c-ares)
+	@$(call install_fixup, c-ares,PRIORITY,optional)
+	@$(call install_fixup, c-ares,SECTION,base)
+	@$(call install_fixup, c-ares,AUTHOR,"<oliver.graute@neuhaus.de>")
+	@$(call install_fixup, c-ares,DESCRIPTION,missing)
+
+	@$(call install_lib, c-ares, 0, 0, 0644, libcares)
+
+	@$(call install_finish, c-ares)
+
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.7.9.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCHv3] c-ares: add c-ares to ptxdist
  2015-02-20 12:42 [ptxdist] [PATCHv3] c-ares: add c-ares to ptxdist Oliver Graute
@ 2015-02-20 12:45 ` Marc Kleine-Budde
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2015-02-20 12:45 UTC (permalink / raw)
  To: ptxdist; +Cc: Oliver Graute


[-- Attachment #1.1: Type: text/plain, Size: 2161 bytes --]

On 02/20/2015 01:42 PM, Oliver Graute wrote:
> This patch add c-ares to ptxdist, its a C library for async DNS requests
> 
> Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
> ---
>  rules/c-ares.in   |    7 ++++++
>  rules/c-ares.make |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 68 insertions(+)
>  create mode 100644 rules/c-ares.in
>  create mode 100644 rules/c-ares.make
> 
> diff --git a/rules/c-ares.in b/rules/c-ares.in
> new file mode 100644
> index 0000000..2443499
> --- /dev/null
> +++ b/rules/c-ares.in
> @@ -0,0 +1,7 @@
> +## SECTION=networking
> +
> +config C_ARES
> +	tristate
> +	prompt "c-ares"
> +	help
> +	  c-ares is a C library for asynchronous DNS requests (including name resolves)
> diff --git a/rules/c-ares.make b/rules/c-ares.make
> new file mode 100644
> index 0000000..845f5ad
> --- /dev/null
> +++ b/rules/c-ares.make
> @@ -0,0 +1,61 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute <oliver.graute@neuhaus.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_C_ARES) += c-ares
> +
> +#
> +# Paths and names
> +#
> +C_ARES_VERSION	:= 1.10.0
> +C_ARES_MD5	:= 1196067641411a75d3cbebe074fd36d8
> +C_ARES		:= c-ares-$(C_ARES_VERSION)
> +C_ARES_SUFFIX	:= tar.gz
> +C_ARES_URL	:= http://c-ares.haxx.se/download//$(C_ARES).$(C_ARES_SUFFIX)
                                                 ^^
one / should be enough

> +C_ARES_SOURCE	:= $(SRCDIR)/$(C_ARES).$(C_ARES_SUFFIX)
> +C_ARES_DIR	:= $(BUILDDIR)/$(C_ARES)
> +C_ARES_LICENSE	:= MIT license

Please make this just MIT

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2015-02-20 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20 12:42 [ptxdist] [PATCHv3] c-ares: add c-ares to ptxdist Oliver Graute
2015-02-20 12:45 ` Marc Kleine-Budde

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