You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

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