From owner-freebsd-ports@FreeBSD.ORG Tue Aug 24 22:31:19 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59F9716A4E2 for ; Tue, 24 Aug 2004 22:31:19 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B2AD43D41 for ; Tue, 24 Aug 2004 22:31:19 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so114985rnl for ; Tue, 24 Aug 2004 15:31:12 -0700 (PDT) Received: by 10.38.83.11 with SMTP id g11mr700421rnb; Tue, 24 Aug 2004 15:31:12 -0700 (PDT) Received: by 10.38.75.25 with HTTP; Tue, 24 Aug 2004 15:31:12 -0700 (PDT) Message-ID: <790a9fff0408241531402eca3d@mail.gmail.com> Date: Tue, 24 Aug 2004 17:31:12 -0500 From: Scot Hetzel To: Galen Yalch In-Reply-To: <010c01c48a25$00a4a630$9b01a8c0@nwrg.local> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <010c01c48a25$00a4a630$9b01a8c0@nwrg.local> cc: freebsd-ports@freebsd.org Subject: Re: Patch creation question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Scot Hetzel List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 22:31:19 -0000 On Tue, 24 Aug 2004 15:54:48 -0600, Galen Yalch wrote: > I am trying to apply the autocreate INBOX patch to the cyrus imap port and > can't figure out how to create the patch file. I ahve downloaded the .diff > file but I can't find out how to create a patch file from this. Any help > would be great. Thanks. > The .diff file is the patch file. To apply the patch manually, you need to use the patch program as follows: cd patch [-p 1] < patch_file.diff I you want to have the port patch the sources, then you need to edit the ports Makefile and do the following: 1. Add the location of the patch to PATCH_SITES 2. The name of the patch file to PATCHFILES 3. Add approiate CONFIGURE_ARGS, if needed 4. Run "make makesum" to regenerate distinfo. 5. Run "make patch -DPATCH_DEBUG" - needed to ensure that all the patch files apply correctly - if a patch file fails, you'll need to fix the patch file, and re-run step 5. 6. Run "make configure" 7. Run "env PREFIX=/usr/local2; make build" 8. Run "env PREFIX=/usr/local2; make install" 9. Run "env PREFIX=/usr/local2; make deinstall", to ensure no files are left over - if there are left over files, fix pkg-plist. NOTE: if any of the steps fails, you'll need to fix, and then "make clean" and start over with step 5.