blob: 150a1a3bb8af7d70df7ffd15bc634a448a5997c4 [file] [log] [blame]
developer0f54b522023-03-08 10:04:11 +08001#
2# Copyright (C) 2009-2013 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=netfilter_flowtable
11PKG_VERSION:=1.0
12PKG_RELEASE:=1
13
14PKG_LICENSE:=GPL-2.0+
15#PKG_INSTALL:=1
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/netfilter-flowtable
20 SECTION:=MTK Properties
21 CATEGORY:=MTK Properties
22 DEPENDS:=+libnfnetlink +libmnl +kmod-nf-flow-netlink
23 TITLE:=API to the in-kernel flow offload table
24 SUBMENU:=Applications
25endef
26
27define Package/netfilter-flowtable/description
28 API to the in-kernel flow offload table
29endef
30
31TARGET_CFLAGS += $(FPIC)
32
33TARGET_CPPFLAGS := \
34 -D_GNU_SOURCE \
35 -I$(LINUX_DIR)/user_headers/include \
36 -I$(PKG_BUILD_DIR) \
37 $(TARGET_CPPFLAGS) \
38
39define Build/Compile
40 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 $(TARGET_CONFIGURE_OPTS) \
43 LIBS="$(TARGET_LDFLAGS) -lnfnetlink -lm"
44endef
45
46define Package/netfilter-flowtable/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(CP) $(PKG_BUILD_DIR)/ftnl $(1)/usr/bin/
49endef
50
51$(eval $(call BuildPackage,netfilter-flowtable))