For various reasons, when using FTP over the Internet to obtain the source code, you may not always end up with the same copy of the code that the original porter worked from, and this can lead to problems. So a simple checksumming system has been employed to try and highlight problems in this area.
To check the entire system, go to the top of the ports tree (defaults to /usr/ports) and type
make checksumThis will give a report on the validity of the files you have FTP'd. If some are missing, the system will attempt to retrieve them before running the checksum routine. The same technique can be applied to a single port.
The system will complain if there is no pre-computed checksum available for that port. Not all ports currently have checksums, but this should be cured soon.
Some older versions of the system don't recognize the ``checksum'' target. In that case, try the command
make check-md5(``check-md5'' was the pre-cursor to the ``checksum'' target). If neither work, get the latest copies of bsd.port.mk and bsd.port.subdir.mk from
ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/share/mk
and install them in /usr/share/mk. This will get you the latest version of the ports system.