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.

45 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.4.8
  7. PKG_RELEASE:=$(AUTORELESE)
  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:=0086616a57e43b6d4f513b79ec99f997649d449729b366b40a83b09c23432c20
  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:=-s -w
  19. GO_PKG_LDFLAGS_X:=main.VersionString=v$(PKG_VERSION)
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../../lang/golang/golang-package.mk
  22. define Package/dnslookup
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=IP Addresses and Names
  26. TITLE:=Simple command line utility to make DNS lookups to the specified server
  27. URL:=https://github.com/ameshkov/dnslookup
  28. DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
  29. endef
  30. define Package/dnslookup/description
  31. Simple command line utility to make DNS lookups.
  32. Supports all known DNS protocols: plain DNS, DoH, DoT, DoQ, DNSCrypt.
  33. endef
  34. $(eval $(call GoBinPackage,dnslookup))
  35. $(eval $(call BuildPackage,dnslookup))