BSD许可协议
概述
简介
BSD许可协议,即 Berkeley Software Distribution license 的简称,是由加州大学伯克利分校发布并维护的开源软件许可证。
BSD许可协议和MIT类似,也是较为宽松的许可协议,允许自由地使用、复制、修改、合并、发布、分发、再授权和销售软件及其副本的任何部分。由于BSD许可协议较少的条款限制,其成为目前较为流行开源许可协议之一。
BSD许可协议又分为2条款协议(BSD-2-Clause)和3条款协议(BSD-3-Clause),BSD-3-Clause 比 BSD-2-Clause 多了一项条款,即需获得书面许可才能以版权人或贡献者名字来推广软件的衍生品。
权限
- 修改: 许可材料可以被修改。
- 分发: 许可材料可以分发。
- 商业用途: 许可的材料和衍生物可用于商业目的。
- 私人使用: 许可的材料可以私下使用和修改。
条件
- 许可和版权声明: 许可和版权声明的副本必须包含在许可材料中。
协议内容
BSD-3-Clause 在 BSD-2-Clause基础上增加的一项条款是:
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
中文译文如下:
3. 未经事先书面许可,不得使用版权所有者的名称或其贡献者的名称来认可或推广源自本软件的产品。
完整的协议内容请看下文:
BSD-2-Clause
BSD 2-Clause License
Copyright (c) [year], [fullname]
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
BSD-3-Clause
BSD 3-Clause License
Copyright (c) [year], [fullname]
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
如何使用
在项目源代码的根目录中创建一个许可协议文本文件(通常命名为 LICENSE 或 LICENSE.txt),并将许可协议内容复制到该文件中。然后,将其中的 [year] 和 [fullname] 分别替换为 当前年份 和版权所有者的 姓名 即可。
谁在使用
总体来说,BSD-3-Clause 比 BSD-2-Clause 应用得更广泛一些。下面列举了几个比较流行的开源项目:
- Nginx [趋势]
- SerenityOS [趋势]
- Flutter [趋势]
- LevelDB [趋势]
- Highlight.js [趋势]
- ......