Merge pull request #15011 from mhei/php7-update
[feed/packages.git] / utils / whois / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=whois
4 PKG_VERSION:=5.5.8
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/w/whois
9 PKG_HASH:=cd9e7bad3b6968182bfcc311e22be3aec9a974397377d748845147884ce07547
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12 PKG_BUILD_DEPENDS:=perl/host
13
14 PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
15 PKG_LICENSE:=GPL-2.0-only
16 PKG_LICENSE_FILES:=COPYING
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/whois
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=Intelligent WHOIS client
28 URL:=https://github.com/rfc1036/whois
29 endef
30
31 define Package/whois/description
32 This client is intelligent and can automatically select the appropriate whois
33 server for most queries.
34
35 The internal database is often more accurate than IANA's published one, but
36 please send me any information you have regarding domains and network resources
37 which are not correctly handled by the program.
38 endef
39
40 EXTRA_CFLAGS+=-DHAVE_GETOPT_LONG
41 MAKE_FLAGS += PERL=$(STAGING_DIR_HOSTPKG)/usr/bin/perl
42
43 define Package/whois/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whois $(1)/usr/bin/whois
46 endef
47
48 $(eval $(call BuildPackage,whois))