Root/package/network/utils/resolveip/Makefile

1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=resolveip
11PKG_RELEASE:=1
12
13include $(INCLUDE_DIR)/package.mk
14
15define Package/resolveip
16  SECTION:=utils
17  CATEGORY:=Base system
18  TITLE:=Simple DNS resolver with configurable timeout
19  MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
20endef
21
22define Package/resolveip/description
23 This package contains the small resolveip utility which
24 can be used by scripts to turn host names into numeric
25 IP addresses. It supports IPv4 and IPv6 resolving and
26 has a configurable timeout to guarantee a certain maximum
27 runtime in case of slow or defunct DNS servers.
28endef
29
30define Build/Prepare
31    $(INSTALL_DIR) $(PKG_BUILD_DIR)
32    $(INSTALL_DATA) ./src/resolveip.c $(PKG_BUILD_DIR)/
33endef
34
35define Build/Compile
36    $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
37        -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
38endef
39
40define Package/resolveip/install
41    $(INSTALL_DIR) $(1)/usr/bin
42    $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
43endef
44
45$(eval $(call BuildPackage,resolveip))
46

Archive Download this file



interactive