• R/O
  • HTTP
  • SSH
  • HTTPS

packages: Commit

Community maintained packages for ImmortalWrt.


Commit MetaInfo

Révision7523665b174b6c6d4479cd1ac6af73b9e3f685ef (tree)
l'heure2022-05-25 22:56:06
AuteurTianling Shen <cnsztl@immo...>
CommiterTianling Shen

Message de Log

ipt2socks: fix dependencies & cflags

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 0b63d097e39043de471b5cd44c5ca04882f3c531)

Change Summary

Modification

--- a/net/ipt2socks/Makefile
+++ b/net/ipt2socks/Makefile
@@ -6,14 +6,14 @@ include $(TOPDIR)/rules.mk
66
77 PKG_NAME:=ipt2socks
88 PKG_VERSION:=1.1.3
9-PKG_RELEASE:=2
9+PKG_RELEASE:=3
1010
1111 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1212 PKG_SOURCE_URL:=https://codeload.github.com/zfl9/ipt2socks/tar.gz/v$(PKG_VERSION)?
1313 PKG_HASH:=73a2498dc95934c225d358707e7f7d060b5ce81aa45260ada09cbd15207d27d1
1414
1515 PKG_BUILD_PARALLEL:=1
16-PKG_INSTALL:=1
16+PKG_USE_MIPS16:=0
1717
1818 PKG_LICENSE:=AGPL-3.0
1919 PKG_LICENSE_FILE:=LICENSE
@@ -25,19 +25,20 @@ define Package/ipt2socks
2525 CATEGORY:=Network
2626 TITLE:=Convert iptables to socks5
2727 URL:=https://github.com/zfl9/ipt2socks
28- DEPENDS:=+libpthread +libuv
2928 endef
3029
3130 define Package/ipt2socks/description
3231 Utility for converting iptables (redirect/tproxy) to socks5.
3332 endef
3433
35-TARGET_CFLAGS += $(FPIC) -flto
36-TARGET_LDFLAGS += -flto
34+TARGET_CFLAGS+= $(FPIC) -flto
35+MAKE_FLAGS+= \
36+ CFLAGS="-std=c99 $(TARGET_CFLAGS)" \
37+ EVCFLAGS="$(TARGET_CFLAGS)"
3738
3839 define Package/ipt2socks/install
3940 $(INSTALL_DIR) $(1)/usr/bin
40- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/ipt2socks $(1)/usr/bin
41+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt2socks $(1)/usr/bin
4142 endef
4243
4344 $(eval $(call BuildPackage,ipt2socks))
Afficher sur ancien navigateur de dépôt.