mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-05 14:26:24 +08:00
update-03.11
This commit is contained in:
53
redsocks2/Makefile
Normal file
53
redsocks2/Makefile
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2014 OpenWrt-dist
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
|
||||||
|
PKG_NAME:=redsocks2
|
||||||
|
PKG_VERSION:=0.67
|
||||||
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=https://github.com/semigodking/redsocks.git
|
||||||
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_SOURCE_VERSION:=d94c245ea47859cda5b4b7373308589206b97bdc
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
PKG_MAINTAINER:=semigodking <semigodking@gmail.com>
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
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 Package/redsocks2/conffiles
|
||||||
|
/etc/config/redsocks2
|
||||||
|
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))
|
||||||
45
tcpping/Makefile
Normal file
45
tcpping/Makefile
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
#
|
||||||
|
# Copyright (C) 2021 ImmortalWrt.org
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=tcpping
|
||||||
|
PKG_VERSION:=0.2
|
||||||
|
PKG_RELEASE=2
|
||||||
|
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=https://github.com/coolsnowwolf/tcping
|
||||||
|
PKG_SOURCE_DATE:=2020-09-19
|
||||||
|
PKG_SOURCE_VERSION:=d890cc1bd8e3951390ceeff1ccb092a5d802850c
|
||||||
|
PKG_MIRROR_HASH:=skip
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/tcpping
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
DEPENDS:=+libnet-1.2.x +libpcap
|
||||||
|
TITLE:=TCP Ping Tool
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/tcpping/description
|
||||||
|
Ping look-alike that uses TCP SYN packets to
|
||||||
|
get around firewalls and ICMP blackholes.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
||||||
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/lib/libnet-1.2.x/include -L$(STAGING_DIR)/usr/lib/libnet-1.2.x/lib" \
|
||||||
|
INSTALL_PROG=":"
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/tcpping/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tcpping $(1)/usr/bin/tcpping
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,tcpping))
|
||||||
Reference in New Issue
Block a user