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.

44 lines
1.2 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=dnslookup
  6. PKG_VERSION:=1.7.1
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/ameshkov/dnslookup/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=21a6905cb6a5acea09d110f35b3c0720fc8019fff17bc47e00cff7e7ac03d560
  11. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_BUILD_DEPENDS:=golang/host
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_USE_MIPS16:=0
  17. GO_PKG:=github.com/ameshkov/dnslookup
  18. GO_PKG_LDFLAGS_X:=main.VersionString=v$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../lang/golang/golang-package.mk
  21. define Package/dnslookup
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=IP Addresses and Names
  25. TITLE:=Simple command line utility to make DNS lookups to the specified server
  26. URL:=https://github.com/ameshkov/dnslookup
  27. DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
  28. endef
  29. define Package/dnslookup/description
  30. Simple command line utility to make DNS lookups.
  31. Supports all known DNS protocols: plain DNS, DoH, DoT, DoQ, DNSCrypt.
  32. endef
  33. $(eval $(call GoBinPackage,dnslookup))
  34. $(eval $(call BuildPackage,dnslookup))