d0f850a472362dc2672e4bf446ad4330f7cb1d57
[feed/packages.git] / utils / whois / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=whois
4 PKG_VERSION:=5.5.21
5 PKG_RELEASE:=1
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:=760ab584beae76acdcc89c6aec2e91cff571185bccc2bee8e4412a3f8e70be77
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
23 define Package/whois
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Intelligent WHOIS client
27 URL:=https://github.com/rfc1036/whois
28 endef
29
30 define Package/whois/description
31 This client is intelligent and can automatically select the appropriate whois
32 server for most queries.
33
34 The internal database is often more accurate than IANA's published one, but
35 please send me any information you have regarding domains and network resources
36 which are not correctly handled by the program.
37 endef
38
39 EXTRA_CFLAGS+=-DHAVE_GETOPT_LONG
40 MAKE_FLAGS += PERL=$(STAGING_DIR_HOSTPKG)/usr/bin/perl
41
42 define Package/whois/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whois $(1)/usr/bin/whois
45 endef
46
47 $(eval $(call BuildPackage,whois))