Initial import into v3 branch

This commit is contained in:
Vadim Kurland
2007-12-25 22:25:59 +00:00
commit fcfedad398
852 changed files with 319104 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
*.fw
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
N=$1
if which opendiff > /dev/null 2>&1; then
TOOL="opendiff"
elif which tkdiff > /dev/null 2>&1; then
TOOL="tkdiff -b -B "
else
TOOL="diff -b -B "
fi
${TOOL} firewall${N}.fw.orig firewall${N}.fw
File diff suppressed because it is too large Load Diff
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/perl
$XMLFILE=@ARGV[0];
$DIFFCMD="diff -C 1 -b -B -c -I \"# Generated\" -I 'Activating ' -I '# Firewall Builder fwb_ipfw v' ";
while (<>) {
$str=$_;
while ( $str=~ /<Firewall / ) {
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
$fw=$1;
printf "$DIFFCMD %s.fw.orig %s.fw\n",$fw,$fw;
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
}
}
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
for f in *.fw; do
j=${f}.orig
mv $f $j
done
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/perl
$XMLFILE=@ARGV[0];
while (<>) {
$str=$_;
while ( $str=~ /<Firewall / ) {
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
$fw=$1;
printf "fwb_ipfw -v -f $XMLFILE $fw\n";
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
}
}