Community maintained packages for ImmortalWrt.
Revision | 67520bb8f3b048ecc7eb649469999c6e447d8814 (tree) |
---|---|
Time | 2022-05-14 21:27:19 |
Author | Tianling Shen <cnsztl@immo...> |
Commiter | Tianling Shen |
ua2f: fix build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 14d82009651bdcf976437e1cb258d999d440ec70)
@@ -19,7 +19,6 @@ PKG_LICENSE_FILE:=LICENSE | ||
19 | 19 | PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org> |
20 | 20 | |
21 | 21 | include $(INCLUDE_DIR)/package.mk |
22 | -include $(INCLUDE_DIR)/cmake.mk | |
23 | 22 | |
24 | 23 | define Package/ua2f |
25 | 24 | SECTION:=net |
@@ -35,9 +34,16 @@ define Package/ua2f/description | ||
35 | 34 | Change User-agent to Fwords to prevent being checked by Dr.Com. |
36 | 35 | endef |
37 | 36 | |
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 | + | |
38 | 44 | define Package/ua2f/install |
39 | 45 | $(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/ | |
41 | 47 | |
42 | 48 | $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/etc/uci-defaults |
43 | 49 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ua2f.config $(1)/etc/config/ua2f |