2 # Copyright (C) 2011-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 include $(INCLUDE_DIR)/package.mk
16 define Package/resolveip
19 TITLE:=Simple DNS resolver with configurable timeout
20 MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
23 define Package/resolveip/description
24 This package contains the small resolveip utility which
25 can be used by scripts to turn host names into numeric
26 IP addresses. It supports IPv4 and IPv6 resolving and
27 has a configurable timeout to guarantee a certain maximum
28 runtime in case of slow or defunct DNS servers.
32 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
33 -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
36 define Package/resolveip/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
41 $(eval $(call BuildPackage,resolveip))