From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 13:14:00 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F61316A46E for ; Fri, 4 Jan 2008 13:14:00 +0000 (UTC) (envelope-from fbsd06+R2=a5421b80@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 3883B13C4FF for ; Fri, 4 Jan 2008 13:14:00 +0000 (UTC) (envelope-from fbsd06+R2=a5421b80@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id D6FC923E3E8 for ; Fri, 4 Jan 2008 08:13:58 -0500 (EST) Date: Fri, 4 Jan 2008 13:13:55 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080104131355.71a5f5bd@gumby.homeunix.com.> In-Reply-To: References: <5a1835cd0801031653u34943657x76b80c53ec2a0ae1@mail.gmail.com> <20080104050838.6d47a662@gumby.homeunix.com.> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.3; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: How to patch the kernel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 13:14:00 -0000 On Fri, 4 Jan 2008 01:06:42 -0500 "Aryeh Friedman" wrote: > On 1/4/08, RW wrote: > > On Thu, 3 Jan 2008 19:53:18 -0500 > > "Lyle Scott III" wrote: > > > > > I don't have much experience patching anything, really. > > > > > > I was told by the port security/ipsec-tools to patch the kernel > > > if i wanted to use nat-transversals. > > > > > > they provide me with > > > http://vanhu.free.fr/FreeBSD/patch-natt-freebsd6-2007-05-31.diff, > > > but I am now sure how to patch up the kernel so I can do a > > > buildworld. > > > > > > Any help would be much appreciated. I took a quick read over the > > > patch manpage, but simply 'patch < file' in /usr/src askes me what > > > file to patch... > > > > Try /usr/src/sys/ instead, that's where the kernel source is. > > > > _______________________________________________ > > Keep in mind the next time you do a cvsup it will nuke the patch so > you will have to reapply it... now if you do this often enough you > might want to consider keeping a local cvs repository that way when > you update your sources it will not overwrite the patch or you could just write a three line script that runs cvsup, then reapplies the patch