ref: c439d71310e42cfb7480cdfa4a99c7d731a95ec1 sr.ht-docs/license.md -rw-r--r-- 2.7 KiB
c439d713Drew DeVault license.md: improve syntax of AGPL information 1 year, 1 month ago

#title: Choosing a software license

Most public projects on SourceHut (or anywhere else) need to have a software license before others can use the project, contribute to the code, and so on. Choosing the right license for your needs is important. If you're unsure of which to use, we can offer some suggestions.

Once you pick a license, add it to your project by copying the plain-text version into a file called "LICENSE" or "COPYING" at the root directory of your repository.

Note: we are not your lawyer and this is not legal advice.

#I want others to share their improvements with me.

The GNU foundation publishes the GNU General Public License for this purpose. In short, it requires anyone who modifies or reuses your code to publish their changes or the software they incorporated it into under the same license terms. Version 3 also requires hardware manufacturers to allow users to install their modifications onto devices which use GPLv3 licensed software.

Links: GPLv3 informationGPLv3 plain text

Authors publishing software which is useful over a network — databases, web applications, and so on — should consider the "Affro" General Public License, or AGPL, as well: AGPLv3 informationAGPLv3 plain text

SourceHut itself is distributed with the AGPLv3 license.

#I want a simple license with few obligations.

The MIT and BSD licenses allow anyone to use or modify your software for any purpose, including to make changes or incorporate it into their own software without releasing their source code. Both licenses are very short and easy to understand.

MIT license text

BSD 3-clause license text

#I want to protect my company's trademarks and license my patents.

If you're publishing software as a business, Apache 2.0 is likely to be the most appropriate license for your open-source project. It explicitly protects your trademarks and includes a patent license for any patents which are applicable to your project.

Apache 2.0 informationApache 2.0 plain text

#Other resources