mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
dnscrypt-proxy: Updated to latest version (1.7.0), added procd support, added separated package for resolvers list
Signed-off-by: Black Roland <black-roland@users.noreply.github.com>
This commit is contained in:
+23
-25
@@ -1,5 +1,7 @@
|
||||
#
|
||||
# Copyright (C) 2009-2016 OpenWrt.org
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
# Copyright (C) 2012-2016 Black Roland and contributors (https://github.com/black-roland/exOpenWrt/graphs/contributors)
|
||||
# Copyright (C) 2011-2012 Entware
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@@ -8,12 +10,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dnscrypt-proxy
|
||||
PKG_VERSION:=1.6.1
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.7.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.dnscrypt.org/dnscrypt-proxy
|
||||
PKG_MD5SUM:=6fc2a8c57007d582dee3313979a4d1b5
|
||||
PKG_MD5SUM:=95df7262964dc22da62f7f6f0466c50e
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
@@ -27,13 +29,13 @@ define Package/dnscrypt-proxy/Default
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=IP Addresses and Names
|
||||
DEPENDS:=+libsodium
|
||||
URL:=http://dnscrypt.org/
|
||||
MAINTAINER:=Damiano Renfer <damiano.renfer@gmail.com>
|
||||
endef
|
||||
|
||||
define Package/dnscrypt-proxy
|
||||
$(call Package/dnscrypt-proxy/Default)
|
||||
DEPENDS:=+libsodium +dnscrypt-proxy-resolvers
|
||||
TITLE:=A tool for securing communications between a client and a DNS resolver
|
||||
endef
|
||||
|
||||
@@ -46,8 +48,19 @@ define Package/dnscrypt-proxy/description
|
||||
a client and its first-level resolver.
|
||||
endef
|
||||
|
||||
define Package/dnscrypt-proxy-resolvers
|
||||
$(call Package/dnscrypt-proxy/Default)
|
||||
TITLE:=Package with current list of dnscrypt-proxy resolvers
|
||||
VERSION:=$(PKG_VERSION)+git-20160829-65a9553-$(PKG_RELEASE)
|
||||
endef
|
||||
|
||||
define Package/dnscrypt-proxy-resolvers/description
|
||||
Package with current list of dnscrypt-proxy resolvers.
|
||||
endef
|
||||
|
||||
define Package/hostip
|
||||
$(call Package/dnscrypt-proxy/Default)
|
||||
DEPENDS:=+libsodium
|
||||
TITLE:=Resolver to IPv4 or IPv6 addresses
|
||||
endef
|
||||
|
||||
@@ -60,6 +73,7 @@ define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--prefix=/usr \
|
||||
--disable-ssp \
|
||||
--disable-plugins \
|
||||
)
|
||||
endef
|
||||
|
||||
@@ -78,32 +92,15 @@ MAKE_FLAGS += \
|
||||
define Package/dnscrypt-proxy/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnscrypt-proxy $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/share/dnscrypt-proxy
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv $(1)/usr/share/dnscrypt-proxy/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/dnscrypt-proxy.init $(1)/etc/init.d/dnscrypt-proxy
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/dnscrypt-proxy.config $(1)/etc/config/dnscrypt-proxy
|
||||
endef
|
||||
|
||||
define Package/dnscrypt-proxy/postinst
|
||||
#!/bin/sh
|
||||
# check if we are on real system
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
echo "Enabling rc.d symlink for dnscrypt-proxy"
|
||||
/etc/init.d/dnscrypt-proxy enable
|
||||
fi
|
||||
exit 0
|
||||
endef
|
||||
|
||||
define Package/dnscrypt-proxy/prerm
|
||||
#!/bin/sh
|
||||
# check if we are on real system
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
echo "Removing rc.d symlink for dnscrypt-proxy"
|
||||
/etc/init.d/dnscrypt-proxy disable
|
||||
fi
|
||||
exit 0
|
||||
define Package/dnscrypt-proxy-resolvers/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/dnscrypt-proxy
|
||||
$(CP) ./files/dnscrypt-resolvers.csv $(1)/usr/share/dnscrypt-proxy/
|
||||
endef
|
||||
|
||||
define Package/dnscrypt-proxy/conffiles
|
||||
@@ -116,4 +113,5 @@ define Package/hostip/install
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,dnscrypt-proxy))
|
||||
$(eval $(call BuildPackage,dnscrypt-proxy-resolvers))
|
||||
$(eval $(call BuildPackage,hostip))
|
||||
|
||||
Reference in New Issue
Block a user