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
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/resolveip
22 TITLE
:=Simple DNS resolver with configurable timeout
23 MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
26 define Package
/resolveip
/description
27 This package contains the small resolveip utility which
28 can be used by scripts to turn host names into numeric
29 IP addresses. It supports IPv4 and IPv6 resolving and
30 has a configurable timeout to guarantee a certain maximum
31 runtime in case of slow or defunct DNS servers.
35 $(INSTALL_DIR
) $(PKG_BUILD_DIR
)
36 $(INSTALL_DATA
) .
/src
/resolveip.c
$(PKG_BUILD_DIR
)/
40 $(TARGET_CC
) $(TARGET_CFLAGS
) -Wall \
41 -o
$(PKG_BUILD_DIR
)/resolveip
$(PKG_BUILD_DIR
)/resolveip.c
44 define Package
/resolveip
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/resolveip
$(1)/usr
/bin
/
49 $(eval
$(call BuildPackage
,resolveip
))