mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 18:41:15 +08:00
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=redsocks2
|
|
PKG_VERSION:=0.71
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
|
|
PKG_SOURCE_DATE:=2025-12-12
|
|
PKG_SOURCE_VERSION:=43ba8a3cb1b5f8c44b2a827b924375f1de733370
|
|
PKG_MIRROR_HASH:=skip
|
|
|
|
PKG_MAINTAINER:=semigodking <semigodking@gmail.com>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/redsocks2
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Web Servers/Proxies
|
|
TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server
|
|
URL:=https://github.com/semigodking/redsocks
|
|
DEPENDS:=+libevent2 +libopenssl
|
|
endef
|
|
|
|
define Package/redsocks2/description
|
|
This is a modified version of original redsocks. \
|
|
The name is changed to be REDSOCKS2 since this release to distinguish with original redsocks. \
|
|
This variant is useful for anti-GFW (Great Fire Wall).
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(call Build/Compile/Default,DISABLE_SHADOWSOCKS=true)
|
|
endef
|
|
|
|
define Package/redsocks2/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks2 $(1)/usr/sbin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,redsocks2))
|