Add more license tags with SPDX identifiers
[openwrt/staging/wigyori.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 PKG_LICENSE:=GPL-2.0
15 PKG_LICENSE_FILES:=
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/resolveip
20 SECTION:=utils
21 CATEGORY:=Base system
22 TITLE:=Simple DNS resolver with configurable timeout
23 MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
24 endef
25
26 define Package/resolveip/description
27 This package contains the small resolveip utility which
28 can be used by scripts to turn host names into numeric
29 IP addresses. It supports IPv4 and IPv6 resolving and
30 has a configurable timeout to guarantee a certain maximum
31 runtime in case of slow or defunct DNS servers.
32 endef
33
34 define Build/Prepare
35 $(INSTALL_DIR) $(PKG_BUILD_DIR)
36 $(INSTALL_DATA) ./src/resolveip.c $(PKG_BUILD_DIR)/
37 endef
38
39 define Build/Compile
40 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
41 -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c
42 endef
43
44 define Package/resolveip/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,resolveip))