#!/bin/sh
#   CVSup script file, updates installed ports
#
# Location of your portsupfile
SUPFILE=/usr/local/etc/cvsup/ports-supfile
# Country location for cvsup server
LOC=us
# Run cvsup
cvsup -L 2 -h `(fastest_cvsup -q -c $LOC )` $SUPFILE
# Change into the ports directory
cd /usr/ports/
# First fetch ports index, or comment this out and build it manually
make fetchindex
# Uncomment to build the ports index manually
#make index
# Build the ports database
portsdb -u
# Show out of date ports
pkg_version -l "<"
# Upgrade ports
portupgrade -arR
# Check for stale dependencies
pkgdb -F
# Clean out work directories and delete old distfiles
portsclean -CDD
# Done
echo Successfully updated!

From http://www.j79zlr.com/howto.php?id=8

Good just to remember the sequence