immortalwrt/package/ntlf9t/dnscrypt-proxy-full/Makefile

74 lines
1.9 KiB
Makefile
Raw Normal View History

2019-07-02 18:48:34 +08:00
#
# Copyright (C) 2015-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=dnscrypt-proxy-full
2020-01-22 12:04:24 +08:00
PKG_VERSION:=2.0.36
2019-07-02 18:48:34 +08:00
PKG_RELEASE:=1
ifeq ($(ARCH),i386)
PKG_ARCH_DNSCRYPT:=linux_i386
PKG_BUILD_DNSCRYPT:=linux-i386
endif
2020-01-22 12:04:24 +08:00
ifeq ($(ARCH),x86_64)
PKG_ARCH_DNSCRYPT:=linux_x86_64
PKG_BUILD_DNSCRYPT:=linux-x86_64
2019-07-02 18:48:34 +08:00
endif
ifeq ($(ARCH),mips)
PKG_ARCH_DNSCRYPT:=linux_mips
PKG_BUILD_DNSCRYPT:=linux-mips
endif
2020-01-22 12:04:24 +08:00
ifeq ($(ARCH),mipsel)
PKG_ARCH_DNSCRYPT:=linux_mipsle
PKG_BUILD_DNSCRYPT:=linux-mipsle
endif
2019-07-02 18:48:34 +08:00
ifeq ($(ARCH),arm)
2019-07-29 18:13:13 +08:00
PKG_ARCH_DNSCRYPT:=linux_arm
PKG_BUILD_DNSCRYPT:=linux-arm
2019-07-02 18:48:34 +08:00
endif
ifeq ($(ARCH),aarch64)
2020-01-22 12:04:24 +08:00
PKG_ARCH_DNSCRYPT:=linux_arm64
PKG_BUILD_DNSCRYPT:=linux-arm64
2019-07-02 18:48:34 +08:00
endif
2020-01-22 12:04:24 +08:00
PKG_SOURCE:=dnscrypt-proxy-$(PKG_ARCH_DNSCRYPT)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/$(PKG_VERSION)/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_HASH:=skip
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=A flexible DNS proxy, with support for modern encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTPS.
DEPENDS:=@(aarch64||arm||i386||mips||mipsel||x86_64) +ca-bundle
2020-01-22 12:04:24 +08:00
URL:=https://github.com/jedisct1/dnscrypt-proxy/releases
endef
define Package/$(PKG_NAME)/description
A flexible DNS proxy, with support for modern encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTPS.
endef
2019-07-02 18:48:34 +08:00
define Build/Prepare
2020-01-22 12:04:24 +08:00
tar -xzf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR)
2019-07-02 18:48:34 +08:00
endef
define Build/Configure
endef
define Build/Compile
2020-01-22 12:08:15 +08:00
chmod 0755 $(PKG_BUILD_DIR)/$(PKG_BUILD_DNSCRYPT)/dnscrypt-proxy
2019-07-02 18:48:34 +08:00
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
2020-01-22 12:08:15 +08:00
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_BUILD_DNSCRYPT)/dnscrypt-proxy $(1)/usr/bin/dnscrypt-proxy
2019-07-02 18:48:34 +08:00
endef
$(eval $(call BuildPackage,$(PKG_NAME)))