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.

47 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=whois
  3. PKG_VERSION:=5.5.10
  4. PKG_RELEASE:=$(AUTORELEASE)
  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:=2391037b079695d0e9fd3c85ab021809a539cf093d25b6c51ca65019a54158dd
  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. define Package/whois
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=Intelligent WHOIS client
  20. URL:=https://github.com/rfc1036/whois
  21. endef
  22. define Package/whois/description
  23. This client is intelligent and can automatically select the appropriate whois
  24. server for most queries.
  25. The internal database is often more accurate than IANA's published one, but
  26. please send me any information you have regarding domains and network resources
  27. which are not correctly handled by the program.
  28. endef
  29. EXTRA_CFLAGS+=-DHAVE_GETOPT_LONG
  30. MAKE_FLAGS += PERL=$(STAGING_DIR_HOSTPKG)/usr/bin/perl
  31. define Package/whois/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whois $(1)/usr/bin/whois
  34. endef
  35. $(eval $(call BuildPackage,whois))