emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.03k stars 83 forks source link

Add license file #10

Closed ffontaine closed 3 years ago

ffontaine commented 3 years ago

Add a license file by copying/pasting text from darkhttpd.c

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

emikulic commented 3 years ago

Why duplicate it when it's already in the source file? :)

(darkhttpd used to be just the source file, the tests kind of polluted things from there)

ffontaine commented 3 years ago

Having the license in a dedicated file is useful for license tracking. For example COPYING will be recognized by github, which will automatically add a "View license" in your project "About" section. Moreover, COPYING hash will be saved by buildroot. Thanks to this, if the hash changes when we bump the version in buildroot, we'll carefully check the changes to be sure that the license of darkhttpd hasn't changed. Currently, we're using darkhttpd.c as the license file but then we have to update darkhttpd.c each time we bump the version even if the license has not changed.