2 # Copyright (C) 2009-2014 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
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://download.dnscrypt.org
/dnscrypt-proxy
17 PKG_MD5SUM
:=54d172236a8f321fb5689ff81767f1ba
23 PKG_MAINTAINER
:=Damiano Renfer
<damiano.renfer@gmail.com
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/dnscrypt-proxy
/Default
31 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 TITLE
:=A tool for securing communications between a client and a DNS resolver
42 define Package
/dnscrypt-proxy
/description
43 dnscrypt-proxy provides local service which can be used directly
as your
44 local resolver or
as a DNS forwarder
, encrypting and authenticating requests
45 using the DNSCrypt protocol and passing them to an upstream server.
46 The DNSCrypt protocol uses high-speed high-security elliptic-curve cryptography
47 and is very similar to DNSCurve
, but focuses on securing communications between
48 a client and its first-level resolver.
52 $(call Package
/dnscrypt-proxy
/Default
)
53 TITLE
:=Resolver to IPv4 or IPv6 addresses
56 define Package
/hostip
/description
57 The DNSCrypt proxy ships with a simple tool named hostip that resolves a name
58 to IPv4 or IPv6 addresses.
61 define Build
/Configure
62 $(call Build
/Configure
/Default
, \
69 -fomit-frame-pointer \
77 CFLAGS
="$(TARGET_CFLAGS)" \
78 LDFLAGS
="$(TARGET_LDFLAGS)"
80 define Package
/dnscrypt-proxy
/install
81 $(INSTALL_DIR
) $(1)/usr
/sbin
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnscrypt-proxy
$(1)/usr
/sbin
/
83 $(INSTALL_DIR
) $(1)/usr
/share
/dnscrypt-proxy
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/dnscrypt-proxy
/dnscrypt-resolvers.csv
$(1)/usr
/share
/dnscrypt-proxy
/
85 $(INSTALL_DIR
) $(1)/etc
/init.d
86 $(INSTALL_BIN
) .
/files
/dnscrypt-proxy.init
$(1)/etc
/init.d
/dnscrypt-proxy
87 $(INSTALL_DIR
) $(1)/etc
/config
88 $(INSTALL_CONF
) .
/files
/dnscrypt-proxy.config
$(1)/etc
/config
/dnscrypt-proxy
91 define Package
/dnscrypt-proxy
/postinst
93 # check if we are on real system
94 if
[ -z
"$${IPKG_INSTROOT}" ]; then
95 echo
"Enabling rc.d symlink for dnscrypt-proxy"
96 /etc
/init.d
/dnscrypt-proxy enable
101 define Package
/dnscrypt-proxy
/prerm
103 # check if we are on real system
104 if
[ -z
"$${IPKG_INSTROOT}" ]; then
105 echo
"Removing rc.d symlink for dnscrypt-proxy"
106 /etc
/init.d
/dnscrypt-proxy disable
111 define Package
/dnscrypt-proxy
/conffiles
112 /etc
/config
/dnscrypt-proxy
115 define Package
/hostip
/install
116 $(INSTALL_DIR
) $(1)/usr
/bin
117 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/hostip
$(1)/usr
/bin
/
120 $(eval
$(call BuildPackage
,dnscrypt-proxy
))
121 $(eval
$(call BuildPackage
,hostip
))