[package] l7-protocols: fix g++-uc location
[openwrt/svn-archive/archive.git] / net / l7-protocols / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=l7-protocols
4 PKG_VERSION:=2009-05-28
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=@SF/l7-filter
9 PKG_MD5SUM:=91be154d12134dcdbc560cc7aa7fe4ce
10
11 include $(INCLUDE_DIR)/uclibc++.mk
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/l7-protocols
15 SECTION:=net
16 CATEGORY:=Network
17 TITLE:=Protocols for layer7 filtering
18 URL:=http://l7-filter.sourceforge.net/
19 SUBMENU:=Firewall
20 DEPENDS:=iptables-mod-filter
21 endef
22
23 define Package/l7-protocols/description
24 l7-filter classifies packets based on patterns in application
25 layer data. This allows correct classification of P2P traffic that
26 uses unpredictable ports as well as standard protocols running on
27 non-standard ports.
28 endef
29
30 define Package/l7-protocols-testing
31 $(call Package/l7-protocols)
32 TITLE:=testing utilities for layer7
33 DEPENDS+=l7-protocols +uclibcxx
34 endef
35
36 define Package/l7-protocols-testing/description
37 testing utilities for layer 7 patterns
38 endef
39
40 define Build/Configure
41 endef
42
43 ifneq ($(SDK)$(CONFIG_PACKAGE_l7-protocols-testing),)
44 define Build/Compile
45 cd $(PKG_BUILD_DIR)/testing && $(MAKE) $(TARGET_CONFIGURE_OPTS)
46 endef
47 else
48 define Build/Compile
49 endef
50 endif
51
52 define Package/l7-protocols/install
53 $(INSTALL_DIR) $(1)/etc/l7-protocols
54 $(CP) $(PKG_BUILD_DIR)/example_traffic \
55 $(PKG_BUILD_DIR)/extra \
56 $(PKG_BUILD_DIR)/file_types \
57 $(PKG_BUILD_DIR)/groups.sh \
58 $(PKG_BUILD_DIR)/malware \
59 $(PKG_BUILD_DIR)/protocols \
60 $(1)/etc/l7-protocols
61 endef
62
63 define Package/l7-protocols-testing/install
64 $(INSTALL_DIR) $(1)/etc/l7-protocols/testing
65 $(CP) $(PKG_BUILD_DIR)/testing/data \
66 $(1)/etc/l7-protocols/testing
67 $(INSTALL_BIN) \
68 $(PKG_BUILD_DIR)/testing/rand{chars,printable} \
69 $(PKG_BUILD_DIR)/testing/test_speed-{kernel,userspace} \
70 $(PKG_BUILD_DIR)/testing/match_kernel \
71 $(PKG_BUILD_DIR)/testing/doallspeeds.sh \
72 $(PKG_BUILD_DIR)/testing/test_match.sh \
73 $(PKG_BUILD_DIR)/testing/timeit.sh \
74 $(1)/etc/l7-protocols/testing
75 endef
76
77 $(eval $(call BuildPackage,l7-protocols))
78 $(eval $(call BuildPackage,l7-protocols-testing))