2023-02-06 13:54:53 +08:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#
|
|
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=naiveproxy
|
2024-03-14 00:19:00 +08:00
|
|
|
PKG_VERSION:=122.0.6261.43-2
|
2023-03-19 10:37:36 +08:00
|
|
|
PKG_RELEASE:=1
|
2023-02-06 13:54:53 +08:00
|
|
|
|
2024-03-14 00:19:00 +08:00
|
|
|
PKG_SOURCE:=naiveproxy-v$(PKG_VERSION)-openwrt-$(ARCH_PACKAGES).tar.xz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/klzgrad/naiveproxy/releases/download/v$(PKG_VERSION)/
|
|
|
|
PKG_HASH:=skip
|
2023-02-06 13:54:53 +08:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD 3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
|
|
|
2024-03-14 00:19:00 +08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/naiveproxy-v$(PKG_VERSION)-openwrt-$(ARCH_PACKAGES)
|
2023-02-06 13:54:53 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/naiveproxy
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Web Servers/Proxies
|
|
|
|
TITLE:=Make a fortune quietly
|
|
|
|
URL:=https://github.com/klzgrad/naiveproxy
|
2023-11-09 23:36:12 +08:00
|
|
|
DEPENDS:=@!(arc||armeb||mips||mips64||powerpc||TARGET_gemini) +libatomic
|
2023-02-06 13:54:53 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/naiveproxy/description
|
|
|
|
NaïveProxy uses Chrome's network stack to camouflage traffic with strong
|
|
|
|
censorship resistance and low detectability. Reusing Chrome's stack also
|
|
|
|
ensures best practices in performance and security.
|
|
|
|
endef
|
|
|
|
|
2024-03-14 00:19:00 +08:00
|
|
|
define Package/naiveproxy/conffiles
|
|
|
|
/etc/config/naiveproxy
|
2023-02-06 13:54:53 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2024-03-01 23:23:23 +08:00
|
|
|
endef
|
|
|
|
|
2023-02-06 13:54:53 +08:00
|
|
|
define Package/naiveproxy/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2024-03-14 00:19:00 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/naive $(1)/usr/bin/naive
|
2024-03-01 23:23:23 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
|
|
|
|
$(INSTALL_CONF) $(CURDIR)/files/naiveproxy.config $(1)/etc/config/naiveproxy
|
|
|
|
$(INSTALL_BIN) $(CURDIR)/files/naiveproxy.init $(1)/etc/init.d/naiveproxy
|
2023-02-06 13:54:53 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,naiveproxy))
|