Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2006 11:20:25 +0300
From:      Vasil Dimov <vd@FreeBSD.org>
To:        Adrian <adrian.jfl@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: How to modify port source code before 'make' ?
Message-ID:  <20060404082025.GA69304@qlovarnika.bg.datamax>
In-Reply-To: <c0a4ca3a0604040107se3ac593xebf8f1043ebd95fd@mail.gmail.com>
References:  <c0a4ca3a0604040107se3ac593xebf8f1043ebd95fd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060404082025.GA69304>