summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/FreeBSD/unkinstall
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2013-07-19 05:41:57 +0000
committercy <cy@FreeBSD.org>2013-07-19 05:41:57 +0000
commit672af8808c0e7c15f330b401482f9271c2eb3fa6 (patch)
tree225b5acf68c01bc6a260b386c2b2dbf4fa2839e3 /contrib/ipfilter/FreeBSD/unkinstall
parent71e82d94e82560b20789833f60056506de34de8b (diff)
downloadFreeBSD-src-672af8808c0e7c15f330b401482f9271c2eb3fa6.zip
FreeBSD-src-672af8808c0e7c15f330b401482f9271c2eb3fa6.tar.gz
As per the developers handbook (5.3.1 step 1), prepare the vendor trees for
import of new ipfilter vendor sources by flattening them. To keep the tags consistent with dist, the tags are also flattened. Approved by: glebius (Mentor)
Diffstat (limited to 'contrib/ipfilter/FreeBSD/unkinstall')
-rwxr-xr-xcontrib/ipfilter/FreeBSD/unkinstall58
1 files changed, 0 insertions, 58 deletions
diff --git a/contrib/ipfilter/FreeBSD/unkinstall b/contrib/ipfilter/FreeBSD/unkinstall
deleted file mode 100755
index 8547fcd..0000000
--- a/contrib/ipfilter/FreeBSD/unkinstall
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/csh -f
-#
-set dir=`pwd`
-set karch=`uname -m`
-if ( -d /sys/arch/$karch ) set archdir="/sys/arch/$karch"
-if ( -d /sys/$karch ) set archdir="/sys/$karch"
-set confdir="$archdir/conf"
-
-if ( $dir =~ */FreeBSD ) cd ..
-echo -n "Uninstalling "
-foreach i (ip_fil.[ch] ip_nat.[ch] ip_frag.[ch] ip_state.[ch] fil.c \
- ip_compat.h ip_auth.[ch] ip_proxy.[ch] ip_ftp_pxy.c ip_log.c)
- echo -n "$i ";
- /bin/rm -f /sys/netinet/$i
-end
-echo ""
-echo "Unpatching $archdir/$karch/conf.c"
-cat FreeBSD/conf.c.diffs | (cd $archdir/$karch; patch -R)
-echo "Unpatching ip_input.c, ip_output.c and in_proto.c"
-cat FreeBSD/ip_{in,out}put.c.diffs FreeBSD/in_proto.c.diffs | \
-(cd /sys/netinet; patch -R)
-
-if ( -f /sys/conf/files.newconf ) then
- echo "Unpatching /sys/conf/files.newconf"
- cat FreeBSD/files.newconf.diffs | (cd /sys/conf; patch -R)
- echo "Unpatching /sys/conf/files"
- cat FreeBSD/files.diffs | (cd /sys/conf; patch -R)
-endif
-if ( -f /sys/conf/files.oldconf ) then
- echo "Unpatching /sys/conf/files.oldconf"
- cat FreeBSD/files.oldconf.diffs | (cd /sys/conf; patch -R)
- echo "Unpatching /sys/conf/files"
- cat FreeBSD/filez.diffs | (cd /sys/conf; patch -R)
-endif
-
-set config=`(cd $confdir; /bin/ls -1t [0-9A-Z_]*) | head -1`
-echo -n "Kernel configuration to update [$config] "
-set newconfig=$<
-if ( "$newconfig" != "" ) then
- set config="$confdir/$newconfig"
-else
- set newconfig=$config
-endif
-if ( -f $confdir/$newconfig ) then
- mv $confdir/$newconfig $confdir/$newconfig.bak
-endif
-if ( -d $archdir/../compile/$newconfig ) then
- set bak=".bak"
- set dot=0
- while ( -d $archdir/../compile/${newconfig}.${bak} )
- set bak=".bak.$dot"
- set dot=`expr 1 + $dot`
- end
- mv $archdir/../compile/$newconfig $archdir/../compile/${newconfig}.${bak}
-endif
-egrep -v IPFILTER $confdir/$newconfig.bak > $confdir/$newconfig
-echo 'You will now need to run "config" and build a new kernel.'
-exit 0
OpenPOWER on IntegriCloud