Merge pull request #4779 from tru7/master
[feed/packages.git] / net / l7-protocols / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=l7-protocols
11 PKG_VERSION:=2009-05-28
12 PKG_RELEASE:=2
13 PKG_LICENSE:=GPL-2.0
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/l7-filter
17 PKG_HASH:=d6bf98a69268558543bd32fccea287cb3f14b37521d18c790e2b6f8dcfaa5381
18
19 include $(INCLUDE_DIR)/uclibc++.mk
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/l7-protocols
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Protocols for layer7 filtering
26 URL:=http://l7-filter.sourceforge.net/
27 SUBMENU:=Firewall
28 MAINTAINER:=Lim Guo Wei <limguowei@gmail.com>
29 DEPENDS:=iptables-mod-filter
30 endef
31
32 define Package/l7-protocols/description
33 l7-filter classifies packets based on patterns in application
34 layer data. This allows correct classification of P2P traffic that
35 uses unpredictable ports as well as standard protocols running on
36 non-standard ports.
37 endef
38
39 define Package/l7-protocols-testing
40 $(call Package/l7-protocols)
41 TITLE:=testing utilities for layer7
42 DEPENDS+=l7-protocols $(CXX_DEPENDS)
43 endef
44
45 define Package/l7-protocols-testing/description
46 testing utilities for layer 7 patterns
47 endef
48
49 define Build/Configure
50 endef
51
52 ifneq ($(SDK)$(CONFIG_PACKAGE_l7-protocols-testing),)
53 define Build/Compile
54 cd $(PKG_BUILD_DIR)/testing && $(MAKE) $(CONFIGURE_VARS)
55 endef
56 else
57 define Build/Compile
58 endef
59 endif
60
61 define Package/l7-protocols/install
62 find $(PKG_BUILD_DIR) -name "README" -delete
63 $(INSTALL_DIR) $(1)/etc/l7-protocols
64 $(CP) $(PKG_BUILD_DIR)/extra \
65 $(PKG_BUILD_DIR)/file_types \
66 $(PKG_BUILD_DIR)/groups.sh \
67 $(PKG_BUILD_DIR)/malware \
68 $(PKG_BUILD_DIR)/protocols \
69 $(1)/etc/l7-protocols
70 endef
71
72 define Package/l7-protocols-testing/install
73 $(INSTALL_DIR) $(1)/etc/l7-protocols/testing
74 $(CP) $(PKG_BUILD_DIR)/testing/data \
75 $(1)/etc/l7-protocols/testing
76 $(INSTALL_BIN) \
77 $(PKG_BUILD_DIR)/testing/rand{chars,printable} \
78 $(PKG_BUILD_DIR)/testing/test_speed-{kernel,userspace} \
79 $(PKG_BUILD_DIR)/testing/match_kernel \
80 $(PKG_BUILD_DIR)/testing/doallspeeds.sh \
81 $(PKG_BUILD_DIR)/testing/test_match.sh \
82 $(PKG_BUILD_DIR)/testing/timeit.sh \
83 $(1)/etc/l7-protocols/testing
84 endef
85
86 $(eval $(call BuildPackage,l7-protocols))
87 $(eval $(call BuildPackage,l7-protocols-testing))