I found out about this tip from IRC. I often hang out on the #FreeBSD channel on
the Undernet IRC network (http://www.undernet.org/)
and something mentioned that you can upgrade your ports with the following commands:
# cd /usr/src
# make update
So I rushed off to try this. It failed with:
[root@ducky:/usr/src] # make update
make: don't know how to make update. Stop
Well. Let's look at /etc/make.conf. Here's what you find:
#
#
# CVSup update flags. Edit SUPFILE settings to reflect whichever
# distribution file(s) you use on your site (see
# /usr/share/examples/cvsup/README for more nformation on CVSup and
# these files). To use, do "make update" in /usr/src.
#
#SUP_UPDATE= yes
#
#SUP= /usr/local/bin/cvsup
#SUPFLAGS= -g -L 2 -z
#SUPFILE= /usr/share/examples/cvsup/standard-supfile
#SUPFILE1= /usr/share/examples/cvsup/secure-supfile
#SUPFILE2= /usr/share/examples/cvsup/ports-supfile
Hmmm, this looks pretty easy to me. When I first tried Updating
the ports collection, I created a supfile for my ports. So I changed the above
entries to meet my requirements:
SUP_UPDATE= yes
SUP= /usr/local/bin/cvsup
SUPFLAGS= -g -L 2 -z
SUPFILE= /home/ports-supfile
Then I did the make again:
# cd /usr/src
# make update
Well, that seemed to work. Great! A bit easier to do than the instructions
under Updating the ports collection but uses the same process. |