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.

56 lines
1.6 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.39.1
  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:=dcd87517ebb88b899b1f89314cfe2c32d6cb202f9b3f7a6f3173cf951f1c3734
  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. USERID:=dnsproxy=411:dnsproxy=411
  30. endef
  31. define Package/dnsproxy/description
  32. A simple DNS proxy server that supports all existing DNS protocols including
  33. DNS-over-TLS, DNS-over-HTTPS, DNSCrypt, and DNS-over-QUIC.Moreover, it can
  34. work as a DNS-over-HTTPS, DNS-over-TLS or DNS-over-QUIC server.
  35. endef
  36. define Package/dnsproxy/install
  37. $(call GoPackage/Package/Install/Bin,$(1))
  38. $(INSTALL_DIR) $(1)/etc/config/
  39. $(INSTALL_CONF) $(CURDIR)/files/dnsproxy.config $(1)/etc/config/dnsproxy
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) $(CURDIR)/files/dnsproxy.init $(1)/etc/init.d/dnsproxy
  42. endef
  43. $(eval $(call GoBinPackage,dnsproxy))
  44. $(eval $(call BuildPackage,dnsproxy))