You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.3 KiB

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