FreeBSD Handbook : Installing Applications: The Ports collection : Making a port yourself : Licensing Problems
Previous: The pkg Subdirectory
Next: Upgrading

4.7.6. Licensing Problems

Some software packages have restrictive licenses or can be in violation to the law (PKP's patent on public key crypto, ITAR (export of crypto software) to name just two of them). What we can do with them varies a lot, depending on the exact wordings of the respective licenses.

Note that it is your responsibility as a porter to read the licensing terms of the software and make sure that the FreeBSD project will not be held accountable of violating them by redistributing the source or compiled binaries either via ftp or CD-ROM. If in doubt, please contact the FreeBSD ports mailing list <freebsd-ports@FreeBSD.ORG>.

There are two variables you can set in the Makefile to handle the situations that arise frequently:

  1. If the port has a `do not sell for profit' type of license, set the variable NO_CDROM to the string describing the reason why. We will make sure such ports won't go into the CD-ROM come release time. The distfile and package will still be available via ftp.
  2. If the resulting package needs to be built uniquely for each site, or the resulting binary package can't be distributed due to licensing, set the variable NO_PACKAGE to the string describing the reason why. We will make sure such packages won't go on the ftp site, nor into the CD-ROM come release time. The distfile will still be included on both however.
  3. If the port has legal restrictions on who can use it (e.g., crypto stuff) or has a `no commercial use' license, set the variable RESTRICTED to be the string describing the reason why. For such ports, the distfiles/packages will not be available even from our ftp sites.

Note: The GNU General Public License (GPL), both version 1 and 2, should not be a problem for ports.

Note: If you are a committer, make sure you update the ports/LEGAL file too.


FreeBSD Handbook : Installing Applications: The Ports collection : Making a port yourself : Licensing Problems
Previous: The pkg Subdirectory
Next: Upgrading