49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=redsocks2
|
|
PKG_VERSION:=release-test4
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
|
|
PKG_SOURCE_DATE:=2024-01-27
|
|
PKG_SOURCE_VERSION:=92dbff008a54540159bbb4c0ff19ccf224155d76
|
|
PKG_MIRROR_HASH:=6c45324e824fd261eb919592207b368c8a2668c01ef882bd348868362ea80f44
|
|
|
|
PKG_MAINTAINER:=semigodking <semigodking@gmail.com>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILE:=LICENSE
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/redsocks2
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Web Servers/Proxies
|
|
TITLE:=Redirect TCP connection to proxy server
|
|
URL:=https://github.com/semigodking/redsocks
|
|
DEPENDS:=+libevent2 +libopenssl
|
|
endef
|
|
|
|
define Package/redsocks2/description
|
|
This is a modified version of original redsocks.
|
|
Transparent redirector of any TCP/UDP connection to proxy.
|
|
endef
|
|
|
|
MAKE_VARS += DISABLE_SHADOWSOCKS=true
|
|
|
|
define Package/redsocks2/install
|
|
$(INSTALL_DIR) $(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
|
|
|
|
$(eval $(call BuildPackage,redsocks2))
|