mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
ipt2socks: cleanup Makefile
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
parent
ef6e2f2ae3
commit
f448e4c6d5
@ -1,7 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2014 OpenWrt-dist
|
# Copyright (C) 2021 CTCGFW Project-OpenWrt
|
||||||
|
# <https://project-openwrt.eu.org>
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v3.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -9,15 +10,17 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ipt2socks
|
PKG_NAME:=ipt2socks
|
||||||
PKG_VERSION:=1.1.3
|
PKG_VERSION:=1.1.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/zfl9/ipt2socks.git
|
PKG_SOURCE_URL:=https://codeload.github.com/zfl9/ipt2socks/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_MIRROR_HASH:=914465049c065c9fd21a6eabb96418acf134f2b6f0a1b861d5987ae0d10da83a
|
PKG_HASH:=73a2498dc95934c225d358707e7f7d060b5ce81aa45260ada09cbd15207d27d1
|
||||||
PKG_SOURCE_VERSION:=384dab4bae5ed9402e07ec1950e502c05812bc26
|
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
|
|
||||||
|
PKG_LICENSE:=AGPL-3.0
|
||||||
|
PKG_LICENSE_FILE:=LICENSE
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
@ -26,15 +29,15 @@ define Package/ipt2socks
|
|||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
TITLE:=Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5
|
TITLE:=Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5
|
||||||
URL:=https://github.com/zfl9/ipt2socks
|
URL:=https://github.com/zfl9/ipt2socks
|
||||||
|
DEPENDS:=+libpthread
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ipt2socks/description
|
TARGET_CFLAGS += $(FPIC) -flto
|
||||||
Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5.
|
TARGET_LDFLAGS += -flto
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/ipt2socks/install
|
define Package/ipt2socks/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt2socks $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/ipt2socks $(1)/usr/bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ipt2socks))
|
$(eval $(call BuildPackage,ipt2socks))
|
Loading…
x
Reference in New Issue
Block a user