From f448e4c6d598e375d0327c75723de332de5b1328 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Thu, 28 Jan 2021 21:12:54 +0800 Subject: [PATCH] ipt2socks: cleanup Makefile Signed-off-by: CN_SZTL --- package/lienol/ipt2socks/Makefile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/package/lienol/ipt2socks/Makefile b/package/lienol/ipt2socks/Makefile index b7259c28a3..0f0b5cac9e 100644 --- a/package/lienol/ipt2socks/Makefile +++ b/package/lienol/ipt2socks/Makefile @@ -1,7 +1,8 @@ # -# Copyright (C) 2014 OpenWrt-dist +# Copyright (C) 2021 CTCGFW Project-OpenWrt +# # -# 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. # @@ -9,15 +10,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ipt2socks PKG_VERSION:=1.1.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/zfl9/ipt2socks.git -PKG_MIRROR_HASH:=914465049c065c9fd21a6eabb96418acf134f2b6f0a1b861d5987ae0d10da83a -PKG_SOURCE_VERSION:=384dab4bae5ed9402e07ec1950e502c05812bc26 -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION) -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/zfl9/ipt2socks/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=73a2498dc95934c225d358707e7f7d060b5ce81aa45260ada09cbd15207d27d1 + +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + +PKG_LICENSE:=AGPL-3.0 +PKG_LICENSE_FILE:=LICENSE include $(INCLUDE_DIR)/package.mk @@ -26,15 +29,15 @@ define Package/ipt2socks CATEGORY:=Network TITLE:=Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5 URL:=https://github.com/zfl9/ipt2socks + DEPENDS:=+libpthread endef -define Package/ipt2socks/description -Utility for converting iptables (REDIRECT/TPROXY) to SOCKS5. -endef +TARGET_CFLAGS += $(FPIC) -flto +TARGET_LDFLAGS += -flto define Package/ipt2socks/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt2socks $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/ipt2socks $(1)/usr/bin endef $(eval $(call BuildPackage,ipt2socks)) \ No newline at end of file