Date: Thu, 6 Oct 2005 10:07:47 +0200 From: Eric Devolder <eric.devolder@gmail.com> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-questions@freebsd.org Subject: Re: how to recompile a port in a clean maneer? Message-ID: <f0531c170510060107x7cd1a20dq@mail.gmail.com> In-Reply-To: <434458C0.7070503@mac.com> References: <f0531c170510050744n71b7379pbeded58b09e54d4b@mail.gmail.com> <434458C0.7070503@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thank you Chuck, now I better understand what's behind this. Maybe just a side question: Can I "refresh" the files contained in /usr/ports with the one of an older release? for example, I would like to use ports from 4.3 while I'm running a 4.11 for now. Of course, my /usr/ports reflects only ports for 4.11. How can I replace them with the 4.3 ones? - Eric 2005/10/6, Chuck Swiger <cswiger@mac.com>: > Eric Devolder wrote: > [ ... ] > > My specific questions are: > > * how to fetch the source code of a port? and especially from another r= elease? > > 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 ne= eded > (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?f0531c170510060107x7cd1a20dq>