[an error occurred while processing this directive] FreeBSD Handbook : Installing applications : The Ports collection : System Administration
Previous: How do I get more information on all the ports?
Next: Configuring the FreeBSD Kernel

4.2.12. I've heard of a new checksum system. What is this for?

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 checksum
This 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.


FreeBSD Handbook : Installing applications : The Ports collection : System Administration
Previous: How do I get more information on all the ports?
Next: Configuring the FreeBSD Kernel [an error occurred while processing this directive]