From owner-freebsd-ports@FreeBSD.ORG Tue May 17 22:40:36 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16C13106564A; Tue, 17 May 2011 22:40:36 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from u18-124.dslaccess.de (unknown [194.231.39.124]) by mx1.freebsd.org (Postfix) with ESMTP id A50608FC0A; Tue, 17 May 2011 22:40:35 +0000 (UTC) Received: from [172.20.1.100] (cde1100.uni.vrs [172.20.1.100]) (Authenticated sender: ohauer) by u18-124.dslaccess.de (Postfix) with ESMTPSA id C59D120380; Wed, 18 May 2011 00:40:30 +0200 (CEST) Message-ID: <4DD2F95F.5070300@FreeBSD.org> Date: Wed, 18 May 2011 00:40:31 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Matthew Pounsett References: <958AF7F7-AD80-4F01-8F1D-E9E262B953F6@conundrum.com> <4DD2F188.6050402@FreeBSD.org> <338FDD60-B7F5-4AC0-864F-3DB745ACB06D@conundrum.com> In-Reply-To: <338FDD60-B7F5-4AC0-864F-3DB745ACB06D@conundrum.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ohauer@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: Complicated patching X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohauer@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2011 22:40:36 -0000 On 2011-05-18 00:23, Matthew Pounsett wrote: > > On 2011/05/17, at 18:07, Olli Hauer wrote: > >> there is a way, sample ports: >> dns/djbdns, dns/bind94, mail/postfix (VDA patches) and many more > > Thanks for the examples. I'll dig through those and see what I can glean from them. > >> A short description can be found in Mk/bsd.port.mk >> A longer description can be found in the porters handbook >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html > > I've read through the porters handbook, and this page in particular, but didn't see anything that solved my problem. I'll have another look though. > > Thanks very much! > >> >> Additional you can place a patch without the prefix "patch-" >> into the portname/files directory, then use for example >> >> .if defined(PATCH_THIS_FOO) >> EXTRA_PATCHES+= >> .endif > > In a (possibly foolish) attempt to add a third-party patch to an application I use *without* abandoning the ports tree for this app, I'm trying to make a local modification to the port to download and include the patch in the build process. It the patch doesn't change that often and the size is not to big then it is an option to add the patch to the port/files directory (if it is permitted by the author and/or license) Another option can be to mirror the patch somewhere else or ask if the committer can store the patch in local_distfiles.