• R/O
  • HTTP
  • SSH
  • HTTPS

packages: Commit

Community maintained packages for ImmortalWrt.


Commit MetaInfo

Revision9af29c00c557afb0ae2597fc9e1e3f13d2f993ee (tree)
Time2022-05-14 21:27:22
AuthorTianling Shen <cnsztl@immo...>
CommiterTianling Shen

Log Message

ua2f: fix build

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

Change Summary

Incremental Difference

--- a/net/ua2f/Makefile
+++ b/net/ua2f/Makefile
@@ -19,7 +19,6 @@ PKG_LICENSE_FILE:=LICENSE
1919 PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
2020
2121 include $(INCLUDE_DIR)/package.mk
22-include $(INCLUDE_DIR)/cmake.mk
2322
2423 define Package/ua2f
2524 SECTION:=net
@@ -35,9 +34,16 @@ define Package/ua2f/description
3534 Change User-agent to Fwords to prevent being checked by Dr.Com.
3635 endef
3736
37+EXTRA_LDFLAGS += -lmnl -lnetfilter_queue -lipset
38+
39+define Build/Compile
40+ $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) \
41+ $(PKG_BUILD_DIR)/src/ua2f.c -o $(PKG_BUILD_DIR)/src/ua2f
42+endef
43+
3844 define Package/ua2f/install
3945 $(INSTALL_DIR) $(1)/usr/bin
40- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ua2f $(1)/usr/bin/
46+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ua2f $(1)/usr/bin/
4147
4248 $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/etc/uci-defaults
4349 $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ua2f.config $(1)/etc/config/ua2f
Show on old repository browser