If you don’t have ‘cvsup’ installed, do so by following the tutorial on Open Addict (section: Rebuild the World, and Recompile the Kernel):
Since all you have to do to update your ports is run the command:
cvsup -g -L 2 /root/ports-supfile
Just stick that command in your crontab and make it run every midnight.
crontab -e # This opens the crontab in the vi editor.
Add this line to the crontab:
0 0 * * * /usr/local/bin/cvsup -g -L 2 /root/ports-supfile
Shift+zz to save and you are done.
This it one of the reasons why I love Unix. With little thought, everything is script-able and customizable.