2 # Copyright (C) 2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=dnscrypt-proxy
11 PKG_SOURCE_DATE
:=2019-08-20
12 PKG_SOURCE_VERSION
:=07ac3825b5069adc28e2547c16b1d983a8ed8d80
16 PKG_SOURCE_URL
:=https
://github.com
/dyne
/dnscrypt-proxy
17 PKG_MIRROR_HASH
:=c5c074f52732f14f026002bc48bdffcf0b212092de5798120209b2e6b65fc3e6
19 PKG_MAINTAINER
:=Damiano Renfer
<x9w2n7xnu@relay.firefox.com
>
21 PKG_LICENSE_FILES
:=COPYING
26 PKG_CONFIG_DEPENDS
:= \
27 CONFIG_DNSCRYPT_ENABLE_PLUGINS
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/dnscrypt-proxy
/Default
34 SUBMENU
:=IP Addresses and Names
35 URL
:=https
://github.com
/dyne
/dnscrypt-proxy
38 define Package
/dnscrypt-proxy
39 $(call Package
/dnscrypt-proxy
/Default
)
40 DEPENDS
:=+libsodium
+dnscrypt-proxy-resolvers
+DNSCRYPT_ENABLE_PLUGINS
:libltdl \
41 +DNSCRYPT_ENABLE_PLUGINS
:libldns
42 TITLE
:=A tool for securing communications between a client and a DNS resolver
45 define Package
/dnscrypt-proxy
/description
46 dnscrypt-proxy provides local service which can be used directly
as your
47 local resolver or
as a DNS forwarder
, encrypting and authenticating requests
48 using the DNSCrypt protocol and passing them to an upstream server.
49 The DNSCrypt protocol uses high-speed high-security elliptic-curve cryptography
50 and is very similar to DNSCurve
, but focuses on securing communications between
51 a client and its first-level resolver.
54 define Package
/dnscrypt-proxy-resolvers
55 $(call Package
/dnscrypt-proxy
/Default
)
56 TITLE
:=Package with current list of dnscrypt-proxy resolvers
59 define Package
/dnscrypt-proxy-resolvers
/description
60 Package with current list of dnscrypt-proxy resolvers.
64 $(call Package
/dnscrypt-proxy
/Default
)
66 TITLE
:=Resolver to IPv4 or IPv6 addresses
69 define Package
/hostip
/description
70 The DNSCrypt proxy ships with a simple tool named hostip that resolves a name
71 to IPv4 or IPv6 addresses.
74 define Package
/dnscrypt-proxy
/config
75 source
"$(SOURCE)/Config.in"
78 define Build
/Configure
79 $(call Build
/Configure
/Default
, \
82 $(if
$(CONFIG_DNSCRYPT_ENABLE_PLUGINS
),,--disable-plugins
) \
87 -fomit-frame-pointer \
95 CFLAGS
="$(TARGET_CFLAGS)" \
96 LDFLAGS
="$(TARGET_LDFLAGS)"
98 define Package
/dnscrypt-proxy
/install
99 $(INSTALL_DIR
) $(1)/usr
/sbin
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnscrypt-proxy
$(1)/usr
/sbin
/
101 $(INSTALL_DIR
) $(1)/etc
/init.d
102 $(INSTALL_BIN
) .
/files
/dnscrypt-proxy.init
$(1)/etc
/init.d
/dnscrypt-proxy
103 $(INSTALL_DIR
) $(1)/etc
/config
104 $(INSTALL_CONF
) .
/files
/dnscrypt-proxy.config
$(1)/etc
/config
/dnscrypt-proxy
105 $(if
$(CONFIG_DNSCRYPT_ENABLE_PLUGINS
), \
106 $(INSTALL_DIR
) $(1)/usr
/lib
/dnscrypt-proxy
; \
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dnscrypt-proxy
/libdcplugin_example_cache.so
$(1)/usr
/lib
/dnscrypt-proxy
/; \
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dnscrypt-proxy
/libdcplugin_example_ldns_aaaa_blocking.so
$(1)/usr
/lib
/dnscrypt-proxy
/; \
109 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dnscrypt-proxy
/libdcplugin_example_ldns_blocking.so
$(1)/usr
/lib
/dnscrypt-proxy
/; \
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dnscrypt-proxy
/libdcplugin_example_logging.so
$(1)/usr
/lib
/dnscrypt-proxy
/)
113 define Package
/dnscrypt-proxy-resolvers
/install
114 $(INSTALL_DIR
) $(1)/usr
/share
/dnscrypt-proxy
115 $(CP
) .
/files
/dnscrypt-resolvers.csv
$(1)/usr
/share
/dnscrypt-proxy
/
118 define Package
/dnscrypt-proxy
/conffiles
119 /etc
/config
/dnscrypt-proxy
122 define Package
/hostip
/install
123 $(INSTALL_DIR
) $(1)/usr
/bin
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/hostip
$(1)/usr
/bin
/
127 $(eval
$(call BuildPackage
,dnscrypt-proxy
))
128 $(eval
$(call BuildPackage
,dnscrypt-proxy-resolvers
))
129 $(eval
$(call BuildPackage
,hostip
))