SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Create a patch file
Creating a patch
For a directory of files:
diff -Naur olddir newdir > new-patch
or for a single file:
diff -Naur oldfile newfile >new-patch
Applying a patch
patch -p0 < /path/to/new-patch
patch -p1 < /path/to/new-patch
Which one of the above patch commands you use depends on your current working directory.
The -p option will optionally strip off directory levels from the patchfile. For Ex: if you have a patchfile with a header as such:
--- old/modules/pcitable Mon Sep 27 11:03:56 1999
+++ new/modules/pcitable Tue Dec 19 20:05:41 2000
Using a -p0 will expect, from your current working directory, to find a subdirectory called "new", then "modules" below that, then the "pcitable" file below that.
Using a -p1 will strip off the 1st level from the path and will expect to find (from your current working directory) a directory called "modules", then a file called "pcitable". Patch will ignore the "new" directory mentioned in the header of the patchfile.
Technology:
- Log in to post comments