OpenWrt – Blame information for rev 2

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #
2 # Copyright (C) 2011-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7  
8 include $(TOPDIR)/rules.mk
9  
10 PKG_NAME:=resolveip
11 PKG_RELEASE:=2
12 PKG_LICENSE:=GPL-2.0
13  
14 include $(INCLUDE_DIR)/package.mk
15  
16 define Package/resolveip
17 SECTION:=utils
18 CATEGORY:=Base system
19 TITLE:=Simple DNS resolver with configurable timeout
20 MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
21 endef
22  
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.
29 endef
30  
31 define Build/Compile
32 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
33 -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
34 endef
35  
36 define Package/resolveip/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
39 endef
40  
41 $(eval $(call BuildPackage,resolveip))