1 include $(TOPDIR)/rules.mk
4 PKG_VERSION:=2007-11-22
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=@SF/l7-filter
9 PKG_MD5SUM:=162c988422fec85e1f1c24417a2c600c
11 include $(INCLUDE_DIR)/package.mk
13 define Package/l7-protocols
16 TITLE:=Protocols for layer7 filtering
17 URL:=http://l7-filter.sourceforge.net/
19 DEPENDS:=iptables-mod-filter
22 define Package/l7-protocols/description
23 l7-filter classifies packets based on patterns in application
24 layer data. This allows correct classification of P2P traffic that
25 uses unpredictable ports as well as standard protocols running on
29 define Package/l7-protocols-testing
30 $(call Package/l7-protocols)
31 TITLE:=testing utilities for layer7
32 DEPENDS+=l7-protocols +uclibcxx
35 define Package/l7-protocols-testing/description
36 testing utilities for layer 7 patterns
39 define Build/Configure
42 ifneq ($(SDK)$(CONFIG_PACKAGE_l7-protocols-testing),)
44 cd $(PKG_BUILD_DIR)/testing && $(MAKE) $(TARGET_CONFIGURE_OPTS) CXX="$(STAGING_DIR)/usr/bin/g++-uc"
51 define Package/l7-protocols/install
52 $(INSTALL_DIR) $(1)/etc/l7-protocols
53 $(CP) $(PKG_BUILD_DIR)/example_traffic \
54 $(PKG_BUILD_DIR)/extra \
55 $(PKG_BUILD_DIR)/file_types \
56 $(PKG_BUILD_DIR)/groups.sh \
57 $(PKG_BUILD_DIR)/malware \
58 $(PKG_BUILD_DIR)/protocols \
62 define Package/l7-protocols-testing/install
63 $(INSTALL_DIR) $(1)/etc/l7-protocols/testing
64 $(CP) $(PKG_BUILD_DIR)/testing/data \
65 $(1)/etc/l7-protocols/testing
67 $(PKG_BUILD_DIR)/testing/rand{chars,printable} \
68 $(PKG_BUILD_DIR)/testing/test_speed-{kernel,userspace} \
69 $(PKG_BUILD_DIR)/testing/match_kernel \
70 $(PKG_BUILD_DIR)/testing/doallspeeds.sh \
71 $(PKG_BUILD_DIR)/testing/test_match.sh \
72 $(PKG_BUILD_DIR)/testing/timeit.sh \
73 $(1)/etc/l7-protocols/testing
76 $(eval $(call BuildPackage,l7-protocols))
77 $(eval $(call BuildPackage,l7-protocols-testing))