|
From: Serge L. <sma...@us...> - 2005-11-15 16:01:20
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2134/scripts Modified Files: Tag: rel-1-2-patches patch-o-matic Log Message: - added netfilter Layer 7 packet classifier Index: patch-o-matic =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/patch-o-matic,v retrieving revision 1.22.2.1 retrieving revision 1.22.2.2 diff -u -d -r1.22.2.1 -r1.22.2.2 --- patch-o-matic 4 Sep 2004 15:00:16 -0000 1.22.2.1 +++ patch-o-matic 15 Nov 2005 16:00:54 -0000 1.22.2.2 @@ -30,7 +30,19 @@ export KERNEL_DIR=$KERNELDIR IPTABLES_DIR=$(find_src_dir iptables) export IPTABLES_DIR - +#L7 + if [ "$CONFIG_NF_LAYER7" = "y" ]; then + + pushd $KERNEL_DIR > /dev/null + patch -p1 < ../netfilter-layer7-*/kernel-2.4-layer7-*.patch || exit 1 + popd > /dev/null + + pushd $IPTABLES_DIR > /dev/null + patch -p1 < ../netfilter-layer7-*/iptables-layer7-*.patch || exit 1 + chmod +x extensions/.layer7-test || exit 1 + popd > /dev/null + fi + # update the patch-o-matic.exclude file to make sure we have everything listed in there for PDIR in $(ls -d -1 *); do if [ -d "$PDIR" ]; then @@ -87,9 +99,14 @@ FILES=$(grep -rl $CFG * | grep patch.configure.help) copy_files "$FILES" $DOCDIR/netfilter-patch-o-matic || exit 1 done +#L7 + if [ "$CONFIG_NF_LAYER7" = "y" ]; then + tar -C $ETCDIR/etc -xzvf $SRCDIR/l7-protocols-*.tar.gz || exit 1 + mv $ETCDIR/etc/l7-protocols-* $ETCDIR/etc/l7-protocols || exit 1 + + fi fi ;; - * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" |