From c5c72686ba151ff40257c78ad230c34ccfc1c3af Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 28 Dec 2009 17:06:27 +0000 Subject: [PATCH] add c-ares, a library for asynchronous dns requests (based on a patch by Jakob Pfeiffer) git-svn-id: svn://svn.openwrt.org/openwrt/packages@18958 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/c-ares/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 libs/c-ares/Makefile diff --git a/libs/c-ares/Makefile b/libs/c-ares/Makefile new file mode 100644 index 000000000..3b2a77401 --- /dev/null +++ b/libs/c-ares/Makefile @@ -0,0 +1,41 @@ +# $Id: Makefile xxxx 2009-11-18 07:14:33Z nbd $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=c-ares +PKG_VERSION:=1.6.0 +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=http://c-ares.haxx.se/ +PKG_SOURCE:=c-ares-$(PKG_VERSION).tar.gz +PKG_MD5SUM:=4503b0db3dd79d3c1f58d87722dbab46 +PKG_CAT:=zcat + +PKG_FIXUP:=libtool +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libcares + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Library for asyncronous name resolves + URL:=$(PKG_SOURCE_URL) +endef + +define Package/libcares/description + c-ares is a C library that performs DNS requests and name resolves asynchronously. +endef + +define Package/libcares/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1) + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +$(eval $(call BuildPackage,libcares)) + -- 2.11.0