Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Oct 2005 18:50:40 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Eric Devolder <eric.devolder@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to recompile a port in a clean maneer?
Message-ID:  <434458C0.7070503@mac.com>
In-Reply-To: <f0531c170510050744n71b7379pbeded58b09e54d4b@mail.gmail.com>
References:  <f0531c170510050744n71b7379pbeded58b09e54d4b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Eric Devolder wrote:
[ ... ]
> My specific questions are:
> * how to fetch the source code of a port? and especially from another release?

cd /usr/ports/mail/postfix      # or whatever port you want
make fetch

If you want to fetch a different version of the port, you can change the 
Makefile in the port's directory, along with anything else that may be needed 
(the patches under files will need to be adjusted, if any, etc).

> * how to unpack, change the makefile, compile?

make extract
cd work
cd _path_   # this depends on the port and version, then edit files
             # cd back to the top-level port directory
make

> * how to package it again?

make package

-- 
-Chuck



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