From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 10:56:09 2010 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 02078106570C for ; Fri, 3 Sep 2010 10:56:09 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5F4948FC1B for ; Fri, 3 Sep 2010 10:56:08 +0000 (UTC) Received: from vhoffman-macbooklocal.local (lonfw01.namesco.net [195.7.254.100] (may be forged)) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id o83Au4IL018321 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 3 Sep 2010 11:56:06 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4C80D443.3040409@unsane.co.uk> Date: Fri, 03 Sep 2010 11:56:03 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: bsd References: <4AB42548-002B-41A5-8603-638CF97DC7E9@todoo.biz> In-Reply-To: <4AB42548-002B-41A5-8603-638CF97DC7E9@todoo.biz> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Liste FreeBSD Subject: Re: Applying a patch to a port 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, 03 Sep 2010 10:56:09 -0000 On 03/09/2010 08:53, bsd wrote: > Hello, > > I have a patch for clamav that was submited by a developer of clamav. > I don't know how to apply It to the source code of the port. > > What I would like to do: > > 1. Get the source code > 2. cd to the source directory > 3. Apply the patch > 4. Recompile > 5. Test > > If this is ok, then as an option: > > 6. validate changes & updates > 7. submit patch to the FBSD port > Not too hard, the infrastructure for patching ports is there already. 1) cd /usr/ports/catagory/portname (obviously make this the port directory you want 2) make patch (this will fetch the source if you need it and extract it and apply any patches already needed/supplied ) 3) cd work (this is where the tarball is extracted.) and possibly into the clamav-$version directory 4) apply your patchfile :) 5) cd back into the port directory 6) make (or make install if you want to install it. All current patches are in the files directory of the port so you can use them as a template for naming etc so the port can automatically use you patch once your happy its working. The porters handbook is well worth a look though if your planing on doing much with a port. (http://www.freebsd.org/doc/en/books/porters-handbook/) Vince > Thanks for your support. > > > ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ > Gregober ---> PGP ID --> 0x1BA3C2FD > bsd @at@ todoo.biz > ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"