Adding license information for non-predefined license.

Yasuhiro KIMURA yasu at utahime.org
Wed Sep 20 20:11:30 UTC 2017


Hello all.

Let's assume there is a port of software with following situation.

* It is covered under single license that is not defined in
  bsd.license.db.mk.
* There is no license document file in source archive.
* But there is license sentences in each of source code files.

In this case following variable must be set in Makefile of the port.

* LICENSE
* LICENSE_NAME
* LICENSE_PERMS
* Either LICENSE_FILE or LICENSE_TEXT

And I would like to ask how to handle last one. That is,

1. Set one of source code files as LICENSE_FILE.
   (e.g. LICENSE_FILE=${WRKSRC}/src/main.c)
2. Cut license sentences from source code file, create a file under
   'files' directory and paste the sentences to it, and set it as
   LICENSE_FILE. (e.g. LICENSE_FILE=${FILESDIR}/LICENSE)
3. Set LICENSE_TEXT such as "License conditions are written in source
   code files. Extract archive file and check them if necessary."

Which is most preferable in this case?

---
Yasuhiro KIMURA


More information about the freebsd-ports mailing list