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.

46 lines
1.3 KiB

  1. # SPDX-License-Identifier: GPL-3.0-only
  2. #
  3. # Copyright (C) 2021 ImmortalWrt.org
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=dnsproxy
  6. PKG_VERSION:=0.38.2
  7. PKG_RELEASE:=$(AUTORELESE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/dnsproxy/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=cc240be1e6975cc782155427f45a3753beb647d0de44f2e9f734486fc19db379
  11. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  12. PKG_LICENSE:=Apache-2.0
  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/AdguardTeam/dnsproxy
  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/dnsproxy
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=IP Addresses and Names
  26. TITLE:=Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
  27. URL:=https://github.com/AdguardTeam/dnsproxy
  28. DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
  29. endef
  30. define Package/dnsproxy/description
  31. A simple DNS proxy server that supports all existing DNS protocols including
  32. DNS-over-TLS, DNS-over-HTTPS, DNSCrypt, and DNS-over-QUIC.Moreover, it can
  33. work as a DNS-over-HTTPS, DNS-over-TLS or DNS-over-QUIC server.
  34. endef
  35. $(eval $(call GoBinPackage,dnsproxy))
  36. $(eval $(call BuildPackage,dnsproxy))