From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YOn78-0006AC-Im for ptxdist@pengutronix.de; Fri, 20 Feb 2015 13:55:27 +0100 Received: by mail-wg0-f44.google.com with SMTP id k14so13042095wgh.3 for ; Fri, 20 Feb 2015 04:55:20 -0800 (PST) From: Oliver Graute Date: Fri, 20 Feb 2015 13:55:16 +0100 Message-Id: <1424436916-6363-1-git-send-email-oliver.graute@neuhaus.de> Subject: [ptxdist] [PATCHv4] c-ares add c-ares to ptxdist Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Oliver Graute This patch add c-ares to ptxdist, its a C library for async DNS requests Signed-off-by: Oliver Graute --- 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..2720dee --- /dev/null +++ b/rules/c-ares.make @@ -0,0 +1,61 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute +# +# 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 + + +# ---------------------------------------------------------------------------- +# 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,"") + @$(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