1 # SPDX-License-Identifier: GPL-3.0-only
3 # Copyright (C) 2021 ImmortalWrt.org
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_SOURCE_URL
:=https
://codeload.github.com
/AdguardTeam
/dnsproxy
/tar.gz
/v
$(PKG_VERSION
)?
13 PKG_HASH
:=604b7e78956ec6d6421807e30ff44d87d85f10203b3d68d397af34ca2013e696
15 PKG_MAINTAINER
:=Tianling Shen
<cnsztl@immortalwrt.org
>
16 PKG_LICENSE
:=Apache-2.0
17 PKG_LICENSE_FILES
:=LICENSE
19 PKG_BUILD_DEPENDS
:=golang
/host
23 GO_PKG
:=github.com
/AdguardTeam
/dnsproxy
24 GO_PKG_LDFLAGS_X
:=main.VersionString
=v
$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
27 include ..
/..
/lang
/golang
/golang-package.mk
29 define Package
/dnsproxy
32 SUBMENU
:=IP Addresses and Names
33 TITLE
:=Simple DNS proxy with DoH
, DoT
, DoQ and DNSCrypt support
34 URL
:=https
://github.com
/AdguardTeam
/dnsproxy
35 DEPENDS
:=$(GO_ARCH_DEPENDS
) +ca-bundle
36 USERID
:=dnsproxy
=411:dnsproxy
=411
39 define Package
/dnsproxy
/description
40 A simple DNS proxy server that supports
all existing DNS protocols including
41 DNS-over-TLS
, DNS-over-HTTPS
, DNSCrypt
, and DNS-over-QUIC.Moreover
, it can
42 work
as a DNS-over-HTTPS
, DNS-over-TLS or DNS-over-QUIC server.
45 define Package
/dnsproxy
/install
46 $(call GoPackage
/Package
/Install
/Bin
,$(1))
48 $(INSTALL_DIR
) $(1)/etc
/config
/
49 $(INSTALL_CONF
) $(CURDIR
)/files
/dnsproxy.config
$(1)/etc
/config
/dnsproxy
50 $(INSTALL_DIR
) $(1)/etc
/init.d
/
51 $(INSTALL_BIN
) $(CURDIR
)/files
/dnsproxy.init
$(1)/etc
/init.d
/dnsproxy
54 define Package
/dnsproxy
/conffiles
58 $(eval
$(call GoBinPackage
,dnsproxy
))
59 $(eval
$(call BuildPackage
,dnsproxy
))