mirror of https://github.com/kenzok8/small.git
update 2024-03-01 17:12:17
This commit is contained in:
parent
def9ca817a
commit
eca8dfcbda
|
@ -1,49 +1,48 @@
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 OpenWrt-dist
|
# Copyright (C) 2021 ImmortalWrt.org
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=redsocks2
|
PKG_NAME:=redsocks2
|
||||||
PKG_VERSION:=release-test4
|
PKG_VERSION:=0.67
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/semigodking/redsocks/tar.gz/$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
|
||||||
PKG_HASH:=1afcb2683b35913dd36877f34ab97f803920d82dff482c0ba79f36ae9049e965
|
PKG_SOURCE_DATE:=2020-05-10
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_VERSION:=d94c245ea47859cda5b4b7373308589206b97bdc
|
||||||
|
PKG_MIRROR_HASH:=5ca32b2f849af7ebda2cab90bbe286bfd97a69de1a85dac09c8df2fbdd8c947c
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=semigodking <semigodking@gmail.com>
|
||||||
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
PKG_LICENSE_FILE:=LICENSE
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/redsocks2
|
define Package/redsocks2
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=Web Servers/Proxies
|
SUBMENU:=Web Servers/Proxies
|
||||||
TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server
|
TITLE:=Redirect TCP connection to proxy server
|
||||||
URL:=https://github.com/semigodking/redsocks
|
URL:=https://github.com/semigodking/redsocks
|
||||||
DEPENDS:=+libevent2 +libopenssl
|
DEPENDS:=+libevent2 +libopenssl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/redsocks2/description
|
define Package/redsocks2/description
|
||||||
This is a modified version of original redsocks. \
|
This is a modified version of original redsocks.
|
||||||
The name is changed to be REDSOCKS2 since this release to distinguish with original redsocks. \
|
Transparent redirector of any TCP/UDP connection to proxy.
|
||||||
This variant is useful for anti-GFW (Great Fire Wall).
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/redsocks2/conffiles
|
MAKE_VARS += DISABLE_SHADOWSOCKS=true
|
||||||
/etc/config/redsocks2
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
$(call Build/Compile/Default,DISABLE_SHADOWSOCKS=true)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/redsocks2/install
|
define Package/redsocks2/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin
|
||||||
|
$(INSTALL_DIR) $(1)/etc/redsocks2
|
||||||
|
$(INSTALL_DATA) ./files/redsocks2.template $(1)/etc/redsocks2/config.template
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,redsocks2))
|
$(eval $(call BuildPackage,redsocks2))
|
||||||
|
|
Loading…
Reference in New Issue