|
@@ -36,6 +36,7 @@ PKG_CONFIG_DEPENDS := \
|
36
|
36
|
COOVACHILLI_OPENSSL
|
37
|
37
|
|
38
|
38
|
include $(INCLUDE_DIR)/package.mk
|
|
39
|
+include $(INCLUDE_DIR)/kernel.mk
|
39
|
40
|
|
40
|
41
|
define Package/coova-chilli
|
41
|
42
|
SUBMENU:=Captive Portals
|
|
@@ -61,6 +62,38 @@ define Package/coova-chilli/config
|
61
|
62
|
source "$(SOURCE)/Config.in"
|
62
|
63
|
endef
|
63
|
64
|
|
|
65
|
+define KernelPackage/ipt-coova
|
|
66
|
+ URL:=http://www.coova.org/CoovaChilli
|
|
67
|
+ SUBMENU:=Netfilter Extensions
|
|
68
|
+ DEPENDS:=coova-chilli +kmod-ipt-core +libxtables
|
|
69
|
+ TITLE:=Coova netfilter module
|
|
70
|
+ FILES:=$(PKG_BUILD_DIR)/src/linux/xt_*.$(LINUX_KMOD_SUFFIX)
|
|
71
|
+ AUTOLOAD:=$(call AutoProbe,xt_coova)
|
|
72
|
+endef
|
|
73
|
+
|
|
74
|
+define KernelPackage/ipt-coova/description
|
|
75
|
+ Netfilter kernel module for CoovaChilli
|
|
76
|
+ Includes:
|
|
77
|
+ - coova
|
|
78
|
+endef
|
|
79
|
+
|
|
80
|
+DISABLE_NLS=
|
|
81
|
+
|
|
82
|
+TARGET_CFLAGS += $(FPIC)
|
|
83
|
+
|
|
84
|
+CONFIGURE_VARS += \
|
|
85
|
+ ARCH="$(LINUX_KARCH)" \
|
|
86
|
+ KERNEL_DIR="$(LINUX_DIR)"
|
|
87
|
+
|
|
88
|
+MAKE_FLAGS += \
|
|
89
|
+ ARCH="$(LINUX_KARCH)" \
|
|
90
|
+ KERNEL_DIR="$(LINUX_DIR)"
|
|
91
|
+
|
|
92
|
+MAKE_INSTALL_FLAGS += \
|
|
93
|
+ ARCH="$(LINUX_KARCH)" \
|
|
94
|
+ KERNEL_DIR="$(LINUX_DIR)" \
|
|
95
|
+ INSTALL_MOD_PATH="$(PKG_INSTALL_DIR)"
|
|
96
|
+
|
64
|
97
|
define Build/Prepare
|
65
|
98
|
$(call Build/Prepare/Default)
|
66
|
99
|
( cd $(PKG_BUILD_DIR) ; \
|
|
@@ -82,6 +115,7 @@ define Build/Configure
|
82
|
115
|
$(if $(CONFIG_COOVACHILLI_MATRIXSSL),--with,--without)-matrixssl \
|
83
|
116
|
$(if $(CONFIG_COOVACHILLI_CYASSL),--with,--without)-cyaxssl \
|
84
|
117
|
$(if $(CONFIG_COOVACHILLI_OPENSSL),--with,--without)-openssl \
|
|
118
|
+ $(if $(CONFIG_PACKAGE_kmod-ipt-coova),--with-nfcoova) \
|
85
|
119
|
)
|
86
|
120
|
endef
|
87
|
121
|
|
|
@@ -100,6 +134,9 @@ define Package/coova-chilli/install
|
100
|
134
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/
|
101
|
135
|
$(INSTALL_DIR) $(1)/usr/lib/
|
102
|
136
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
|
|
137
|
+ $(INSTALL_DIR) $(1)/usr/lib/iptables
|
|
138
|
+ $(CP) $(PKG_INSTALL_DIR)/usr/iptables/lib*.so $(1)/usr/lib/iptables
|
103
|
139
|
endef
|
104
|
140
|
|
105
|
141
|
$(eval $(call BuildPackage,coova-chilli))
|
|
142
|
+$(eval $(call KernelPackage,ipt-coova))
|