2 # Copyright (C) 2011 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
13 include $(INCLUDE_DIR
)/package.mk
15 define Package
/resolveip
18 TITLE
:=Simple DNS resolver with configurable timeout
21 define Package
/resolveip
/description
22 This package contains the small resolveip utility which
23 can be used by scripts to turn host names into numeric
24 IP addresses. It supports IPv4 and IPv6 resolving and
25 has a configurable timeout to guarantee a certain maximum
26 runtime in case of slow or defunct DNS servers.
30 $(INSTALL_DIR
) $(PKG_BUILD_DIR
)
31 $(INSTALL_DATA
) .
/src
/resolveip.c
$(PKG_BUILD_DIR
)/
35 $(TARGET_CC
) $(TARGET_CFLAGS
) -Wall \
36 -o
$(PKG_BUILD_DIR
)/resolveip
$(PKG_BUILD_DIR
)/resolveip.c
39 define Package
/resolveip
/install
40 $(INSTALL_DIR
) $(1)/usr
/bin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/resolveip
$(1)/usr
/bin
/
44 $(eval
$(call BuildPackage
,resolveip
))