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.

59 lines
1.7 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.41.4
  7. PKG_RELEASE:=$(AUTORELEASE)
  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:=06d5ebc8b140fa8aabac8f818e3ccbeddd44a7ab4372326648aa8b65a01bd839
  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_X:=main.VersionString=v$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../lang/golang/golang-package.mk
  21. define Package/dnsproxy
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=IP Addresses and Names
  25. TITLE:=Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
  26. URL:=https://github.com/AdguardTeam/dnsproxy
  27. DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle
  28. USERID:=dnsproxy=411:dnsproxy=411
  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. define Package/dnsproxy/install
  36. $(call GoPackage/Package/Install/Bin,$(1))
  37. $(INSTALL_DIR) $(1)/etc/config/
  38. $(INSTALL_CONF) $(CURDIR)/files/dnsproxy.config $(1)/etc/config/dnsproxy
  39. $(INSTALL_DIR) $(1)/etc/init.d/
  40. $(INSTALL_BIN) $(CURDIR)/files/dnsproxy.init $(1)/etc/init.d/dnsproxy
  41. endef
  42. define Package/dnsproxy/conffiles
  43. /etc/config/dnsproxy
  44. endef
  45. $(eval $(call GoBinPackage,dnsproxy))
  46. $(eval $(call BuildPackage,dnsproxy))