Changeset 9469


Ignore:
Timestamp:
2007-10-31T22:13:33+01:00 (10 years ago)
Author:
pavlov
Message:

add testing for l7 filters, and modify it so that it actually works

Location:
packages/net/l7-protocols
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/l7-protocols/Makefile

    r9467 r9469  
    33PKG_NAME:=l7-protocols 
    44PKG_VERSION:=2007-10-10 
    5 PKG_RELEASE:=1 
     5PKG_RELEASE:=2 
    66 
    77PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    1616  TITLE:=Protocols for layer7 filtering 
    1717  URL:=http://l7-filter.sourceforge.net/ 
     18  SUBMENU:=layer7 
     19  DEPENDS:=iptables-mod-filter 
    1820endef 
    1921 
    2022define Package/l7-protocols/description 
    21         l7-filter classifies packets based on patterns in application  
    22         layer data. This allows correct classification of P2P traffic that  
    23         uses unpredictable ports as well as standard protocols running on  
    24         non-standard ports. 
     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 
     26       non-standard ports. 
     27endef 
     28 
     29define Package/l7-protocols-testing 
     30        $(call Package/l7-protocols) 
     31    TITLE:=testing utilities for layer7 
     32        DEPENDS+=l7-protocols +uclibcxx 
     33endef 
     34 
     35define Package/l7-protocols-testing/description 
     36        testing utilities for layer 7 patterns 
    2537endef 
    2638 
     
    2840endef 
    2941 
    30 define Build/Compile 
    31 endef 
     42ifneq ($(SDK)$(CONFIG_PACKAGE_l7-protocols-testing),) 
     43  define Build/Compile 
     44        cd $(PKG_BUILD_DIR)/testing && $(MAKE) $(TARGET_CONFIGURE_OPTS) CXX="$(STAGING_DIR)/usr/bin/g++-uc" 
     45  endef 
     46else 
     47  define Build/Compile 
     48  endef 
     49endif 
    3250 
    3351define Package/l7-protocols/install 
     
    3957                $(PKG_BUILD_DIR)/malware \ 
    4058                $(PKG_BUILD_DIR)/protocols \ 
    41                 $(PKG_BUILD_DIR)/testing \ 
    4259                $(1)/etc/l7-protocols 
    4360endef 
    4461 
     62define 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 
     66        $(INSTALL_BIN) \ 
     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 
     74endef 
     75 
    4576$(eval $(call BuildPackage,l7-protocols)) 
     77$(eval $(call BuildPackage,l7-protocols-testing)) 
Note: See TracChangeset for help on using the changeset viewer.