Migrate To New Ports Collection

The FreeBSD ports collection was migrated from CVS to Subversion. The old-style csup method to update the ports tree won’t be available after February 28th, 2013, see FreeBSD Handbook, Using the Ports Collection and FreeBSD Handbook, Using CVSup (Deprecated).

Fetch ports with portsnap fetch:

# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching public key from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Thu Jan 10 01:08:41 CET 2013:
c10f52cb0ec3a00d601f694eecd31839c7f03658ce0252100% of   67 MB   10 MBps
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Thu Jan 10 01:08:41 CET 2013 to Thu Jan 10 13:32:48 CET 2013.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 48 patches.....10....20....30....40.... done.
Applying patches... done.
Fetching 0 new ports or files... done.

Maybe you want to save the previously downloaded distfiles:

mv /usr/ports/distfiles .

Now replace the old /usr/ports tree by removing existing ports and extracting the new ones:

rm -rf /usr/ports
portsnap extract

Move back distfiles:

mv distfiles /usr/ports

Edit your crontab to update ports on a regular basis:

#  m  h    d dom d command
  30  5/4  * *   * portsnap cron update

Before I had a crontab like this:

#  m  h    d dom d command
  30  5/4  * *   * ( cd /usr/src ; make update > make-update.log )

as I were using /etc/make.conf for updating the ports tree:

# Updating, "make update" in /usr/src
SUP_UPDATE=
SUP=               /usr/bin/csup
SUPFLAGS=          -L 2
SUPHOST=           cvsup.de.FreeBSD.org
SUPFILE=           /root/cvsup/standard-supfile
PORTSSUPFILE=      /root/cvsup/ports-supfile

HTH.

This entry was posted in System Administration and tagged , . Bookmark the permalink.