license info - revert r43155
[openwrt/openwrt.git] / package / network / utils / resolveip / Makefile
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 <jow@openwrt.org>
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/Prepare
32 $(INSTALL_DIR) $(PKG_BUILD_DIR)
33 $(INSTALL_DATA) ./src/resolveip.c $(PKG_BUILD_DIR)/
34 endef
35
36 define Build/Compile
37 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
38 -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
39 endef
40
41 define Package/resolveip/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,resolveip))