2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=l7-protocols
11 PKG_VERSION
:=2009-05-28
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/l7-filter
17 PKG_HASH
:=d6bf98a69268558543bd32fccea287cb3f14b37521d18c790e2b6f8dcfaa5381
19 include $(INCLUDE_DIR
)/uclibc
++.mk
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/l7-protocols
25 TITLE
:=Protocols for layer7 filtering
26 URL
:=http
://l7-filter.sourceforge.net
/
28 MAINTAINER
:=Lim Guo Wei
<limguowei@gmail.com
>
29 DEPENDS
:=iptables-mod-filter
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
39 define Package
/l7-protocols-testing
40 $(call Package
/l7-protocols
)
41 TITLE
:=testing utilities for layer7
42 DEPENDS
+=l7-protocols
$(CXX_DEPENDS
)
45 define Package
/l7-protocols-testing
/description
46 testing utilities for layer
7 patterns
49 define Build
/Configure
52 ifneq ($(SDK
)$(CONFIG_PACKAGE_l7-protocols-testing
),)
54 cd
$(PKG_BUILD_DIR
)/testing
&& $(MAKE
) $(CONFIGURE_VARS
)
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 \
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
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
86 $(eval
$(call BuildPackage
,l7-protocols
))
87 $(eval
$(call BuildPackage
,l7-protocols-testing
))