1 include $(TOPDIR
)/rules.mk
3 PKG_NAME
:=https-dns-proxy
4 PKG_VERSION
:=2023.11.19
8 PKG_SOURCE_URL
:=https
://github.com
/aarond10
/https_dns_proxy
/
9 PKG_SOURCE_DATE
:=$(subst(.
,-,$(PKG_VERSION
)))
10 PKG_SOURCE_RELEASE
:=$(subst(r
,,$(PKG_RELEASE
)))
11 PKG_SOURCE_VERSION
:=489c57efd46983e688579974a2ab7aeaa7df8d83
12 PKG_MIRROR_HASH
:=804d857efe79437c7f859fb450aca0d6962b4e80b7354060eb399574083438e4
14 PKG_MAINTAINER
:=Stan Grishin
<stangri@melmac.ca
>
16 PKG_LICENSE_FILES
:=LICENSE
18 include $(INCLUDE_DIR
)/package.mk
19 include $(INCLUDE_DIR
)/cmake.mk
21 CMAKE_OPTIONS
+= -DCLANG_TIDY_EXE
= -DGIT_VERSION
=$(PKG_SOURCE_DATE
)-$(PKG_SOURCE_RELEASE
)
23 define Package
/https-dns-proxy
26 TITLE
:=DNS Over HTTPS Proxy
27 URL
:=https
://docs.openwrt.melmac.net
/https-dns-proxy
/
28 DEPENDS
:=+libcares
+libcurl
+libev
+ca-bundle
+jsonfilter
+resolveip
29 DEPENDS
+=+!BUSYBOX_DEFAULT_GREP
:grep
30 DEPENDS
+=+!BUSYBOX_DEFAULT_SED
:sed
31 CONFLICTS
:=https_dns_proxy
34 define Package
/https-dns-proxy
/description
35 Light-weight DNS-over-HTTPS
, non-caching translation proxy for the RFC
8484 DoH standard.
36 It receives regular
(UDP
) DNS requests and resolves them via DoH resolver.
37 Please see https
://docs.openwrt.melmac.net
/https-dns-proxy
/ for more information.
40 define Package
/https-dns-proxy
/conffiles
41 /etc
/config
/https-dns-proxy
44 define Package
/https-dns-proxy
/install
45 $(INSTALL_DIR
) $(1)/usr
/sbin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/https_dns_proxy
$(1)/usr
/sbin
/https-dns-proxy
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/etc
/init.d
/https-dns-proxy
$(1)/etc
/init.d
/https-dns-proxy
49 $(SED
) "s|^\(readonly PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" $(1)/etc
/init.d
/https-dns-proxy
50 $(INSTALL_DIR
) $(1)/etc
/config
51 $(INSTALL_CONF
) .
/files
/etc
/config
/https-dns-proxy
$(1)/etc
/config
/https-dns-proxy
52 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
/
53 $(INSTALL_BIN
) .
/files
/etc
/uci-defaults
/50-https-dns-proxy-migrate-options.sh
$(1)/etc
/uci-defaults
/50-https-dns-proxy-migrate-options.sh
56 $(eval
$(call BuildPackage
,https-dns-proxy
))