From owner-freebsd-ports@FreeBSD.ORG Tue Apr 4 08:20:27 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 4D73416A400; Tue, 4 Apr 2006 08:20:27 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C865743D49; Tue, 4 Apr 2006 08:20:26 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id D1312B857; Tue, 4 Apr 2006 11:20:25 +0300 (EEST) Received: (nullmailer pid 69402 invoked by uid 1002); Tue, 04 Apr 2006 08:20:25 -0000 Date: Tue, 4 Apr 2006 11:20:25 +0300 From: Vasil Dimov To: Adrian Message-ID: <20060404082025.GA69304@qlovarnika.bg.datamax> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.0-STABLE User-Agent: Mutt/1.5.11 Cc: freebsd-ports@freebsd.org Subject: Re: How to modify port source code before 'make' ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 08:20:27 -0000 On Tue, Apr 04, 2006 at 06:07:47PM +1000, Adrian wrote: > Hi, > > I'm trying to install a port.. I know a little and can > make the changes I need to but when I 'make' it > refetches the file from /usr/ports/distfiles > and scraps the changes I've made! Do a % make extract % cd `make -V WRKSRC` % cp file file.orig edit file % diff -u file.orig file > patch-file place patch-file in the port files/ directory it will be applied every time you do make by the `make patch' target. > > I've tried updating the dist file and putting it back in > that directory but it seems to perform a hash check > on it! The checksum file can be updated by `make makesum' but this is probably not what you want. Good luck! -- Vasil Dimov gro.DSBeerF@dv Testing can show the presence of bugs, but not their absence. -- Edsger W. Dijkstra