source: trunk/package/resolveip/Makefile @ 27666

Last change on this file since 27666 was 27666, checked in by jow, 5 years ago

[package] add "resolveip", a small DNS lookup utility for use in scripts (#4876)

File size: 1.1 KB
Line 
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
19endef
20
21define 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.
27endef
28
29define Build/Prepare
30        $(INSTALL_DIR) $(PKG_BUILD_DIR)
31        $(INSTALL_DATA) ./src/resolveip.c $(PKG_BUILD_DIR)/
32endef
33
34define Build/Compile
35        $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
36                -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
37endef
38
39define Package/resolveip/install
40        $(INSTALL_DIR) $(1)/usr/bin
41        $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
42endef
43
44$(eval $(call BuildPackage,resolveip))
Note: See TracBrowser for help on using the repository browser.