2 # Copyright (C) 2016 OpenWrt.org
3 # Copyright (C) 2012-2016 Black Roland and contributors (https://github.com/black-roland/exOpenWrt/graphs/contributors)
4 # Copyright (C) 2011-2012 Entware
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
10 include $(TOPDIR
)/rules.mk
12 PKG_NAME
:=dnscrypt-proxy
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=http
://download.dnscrypt.org
/dnscrypt-proxy
18 PKG_MD5SUM
:=fdf4a708e7922e13b14555f315ca8d5361aec89b0595b06fdbbcaacfa4e6f11e
22 PKG_MAINTAINER
:=Damiano Renfer
<damiano.renfer@gmail.com
>
24 PKG_CONFIG_DEPENDS
:= \
25 CONFIG_DNSCRYPT_ENABLE_PLUGINS
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/dnscrypt-proxy
/Default
32 SUBMENU
:=IP Addresses and Names
33 URL
:=http
://dnscrypt.org
/
34 MAINTAINER
:=Damiano Renfer
<damiano.renfer@gmail.com
>
37 define Package
/dnscrypt-proxy
38 $(call Package
/dnscrypt-proxy
/Default
)
39 DEPENDS
:=+libsodium
+dnscrypt-proxy-resolvers
+DNSCRYPT_ENABLE_PLUGINS
:libltdl \
40 +DNSCRYPT_ENABLE_PLUGINS
:libldns
41 TITLE
:=A tool for securing communications between a client and a DNS resolver
44 define Package
/dnscrypt-proxy
/description
45 dnscrypt-proxy provides local service which can be used directly
as your
46 local resolver or
as a DNS forwarder
, encrypting and authenticating requests
47 using the DNSCrypt protocol and passing them to an upstream server.
48 The DNSCrypt protocol uses high-speed high-security elliptic-curve cryptography
49 and is very similar to DNSCurve
, but focuses on securing communications between
50 a client and its first-level resolver.
53 define Package
/dnscrypt-proxy-resolvers
54 $(call Package
/dnscrypt-proxy
/Default
)
55 TITLE
:=Package with current list of dnscrypt-proxy resolvers
56 VERSION
:=$(PKG_VERSION
)+git-20161129-f17bace-
$(PKG_RELEASE
)
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
))