Not sure if you have tried this, but I pulled this
from  the squid FAQ's:

2.6 How do I apply a patch or a diff?

You need the patch program. You should probably
duplicate the entire directory structure before
applying the patch. For example, if you are upgrading
from squid-1.1.10 to 1.1.11, you would run these
commands:

        cd squid-2.5.STABLE3
        mkdir ../squid-2.5.STABLE4
        find . -depth -print | cpio -pdv
../squid-1.1.11
        cd ../squid-1.1.11
        patch -p1 <
/tmp/squid-2.5.STABLE3-STABLE4.diff

or alternatively

        cp -rl squid-2.5.STABLE3 squid-2.5.STABLE4
        cd squid-2.5.STABLE4
        zcat /tmp/squid-2.5.STABLE3-STABLE4.diff.gz |
patch -p1

After the patch has been applied, you must rebuild
Squid from the very beginning, i.e.:

        make distclean
        ./configure ...
        make
        make install

If your patch program seems to complain or refuses to
work, you should get a more recent version, from the
GNU FTP site, for example.

Here is the link:

http://www.squid-cache.org/Doc/FAQ/FAQ-2.html#ss2.6


--- "Pavel M. Ivanchev" <[EMAIL PROTECTED]>
wrote:

> Hi there!
> I have installed squid on openbsd 3.7 from port tree
> and dansguardian 
> from source. To extend the functionality or squid i
> need to apply patch 
> for "Follow X-Forwarded-For" which i downloaded
> separately. Anyway my 
> quiestion is should I just copy the patch to
> "patches" directory in the 
> squid port and rebuild the squid  with the new 
> option?
> I couldn't find any info how to deal with such case.
> Thanks in advance

Reply via email to