[Reprint] open-source license is enough to understand these

Open-source license is enough to understand these

HTTPS: // www.jianshu.com/p/cceeafb019ed 

thanks to the original author.

 


 

We are in the process of development projects, often to use some open source frameworks or code snippets. Sometimes to feel valuable code on github open sharing. But it may have never carefully to find out about our use of open-source framework of its open-source license is that? There is no infringing use it, it will not pose a risk to the project? So we still have some basic understanding of those open source licenses often used to, so I checked some information, organize it to others.

First, how to choose an open source license?

Today there is a lot of open source protocol, you can view details (http://www.opensource.org/licenses/alphabetical). The most commonly used open source license that we have six kinds, GPL, LGPL, BSD, Apache, Mozilla, MIT. These are OSI-approved protocol, but also the vast majority of companies will use the protocol.

The figure is a popular online map protocol analysis, allows us to judge at a glance what the open-source protocol selection (original: Ukraine programmer Paul Bagwell, translation: Ruan Yifeng).

 

 

After reading this chart, it is not the bottom of my heart? A little sum up, if you work in commercial companies, it is best not to use open source software, the GPL because it has a "contagious" and forced open, as long as a module is the introduction of the GPL, it would have been extended to the top You know the whole GPL open source projects are mandatory. The idea with the BSD, Apache or MIT open source project is generally not a problem, just another open source project itself needs security or robustness, etc. to meet the company's requirements.

In addition to explain that there is an agreement and not a statement of agreement naked Code is a very important distinction, which generally works did not declare default Copy right agreement, which is copyright reserved. That suggested that others do not have any authorization, shall distribute modified using the copy and so on. So if you want to open your own code, select the best and well-known open source license.

Second, worship the god of open source

Then, paste the god of several Zhang Kaiyuan world picture, worship it.

1.  Linus Torvalds

 

Linux内核的发明人及该计划的合作者,Git的作者。

代表作:(1)Linux

              (2)Git

Linux在github上的项目(https://github.com/torvalds/linux)也是我见过的star数量最多的(35000+ star)

2、Richard Matthew Stallman

 

 

自由软件运动的精神领袖、GNU计划以及自由软件基金会(Free Software Foundation)的创立者。

代表作:

(1)Emacs

(2)GPL

(3)GCC

(4)GDB

3、Doug Cutting

 

Hadoop等项目的发起人。他将高深莫测的搜索技术形成产品,贡献给普罗大众,打造了目前在云计算和大数据领域里如日中天的Hadoop,

代表作:Hadoop

 

三、6中常用开源协议介绍

最后,针对上面提到的六种开源许可协议做一个简单资料整理和介绍,供大家查阅。

1. BSD( original BSD license 、 FreeBSD license 、 Original BSD license )

BSD 开源协议是一个给于使用者很大自由的协议。基本上使用者可以” 为所欲为”, 可以自由的使用,修改源代码,也可以将修改后的代码作为开源或者专有软件再发布。

但” 为所欲为” 的前提当你发布使用了BSD 协议的代码,或则以BSD 协议代码为基础做二次开发自己的产品时,需要满足三个条件:

- 如果再发布的产品中包含源代码,则在源代码中必须带有原来代码中的BSD 协议。

- 如果再发布的只是二进制类库/ 软件,则需要在类库/ 软件的文档和版权声明中包含原来代码中的BSD 协议。

- 不可以用开源代码的作者/ 机构名字和原来产品的名字做市场推广。

BSD 代码鼓励代码共享,但需要尊重代码作者的著作权。BSD 由于允许使用者修改和重新发布代码,也允许使用或在BSD 代码上开发商业软件发布和销售,因此是对 商业集成很友好的协议。而很多的公司企业在选用开源产品的时候都首选BSD 协议,因为可以完全控制这些第三方的代码,在必要的时候可以修改或者二次开发。

2. Apache Licence 2.0( Apache License, Version 2.0 、Apache License, Version 1.1 、Apache License, Version 1.0 )

Apache Licence 是著名的非盈利开源组织Apache 采用的协议。该协议和BSD 类似,同样鼓励代码共享和尊重原作者的著作权,同样允许代码修改,再发布(作为开源或商业软件)。需要满足的条件也和BSD 类似:

- 需要给代码的用户一份Apache Licence

- 如果你修改了代码,需要再被修改的文件中说明。

- 在延伸的代码中(修改和有源代码衍生的代码中)需要带有原来代码中的协议,商标,专利声明和其他原来作者规定需要包含的说明。

- 如果再发布的产品中包含一个Notice 文件,则在Notice 文件中需要带有Apache Licence 。你可以在Notice 中增加自己的许可,但不可以表现为对Apache Licence 构成更改。

Apache Licence 也是对商业应用友好的许可。使用者也可以在需要的时候修改代码来满足需要并作为开源或商业产品发布/ 销售。

3.  GPL( GNU General Public License )

我们很熟悉的Linux 就是采用了GPL 。GPL 协议和BSD, Apache Licence 等鼓励代码重用的许可很不一样。GPL不允许修改后和衍生的代码做为闭源的商业软件发布和销售。这也就是为什么我们能用免费的各种linux ,包括商业公司的linux 和linux 上各种各样的由个人,组织,以及商业软件公司开发的免费软件了。

GPL 协议的主要内容是只要在一个软件中使用(” 使用” 指类库引用,修改后的代码或者衍生代码)GPL 协议的产品,则该软件产品必须也采用GPL 协议,既必须也是开源和免费。这就是所谓的” 传染性”。GPL 协议的产品作为一个单独的产品使用没有任何问题,还可以享受免费的优势。

由于GPL 严格要求使用了GPL 类库的软件产品必须使用GPL 协议,对于使用GPL 协议的开源代码,商业软件或者对代码有保密要求的部门就不适合集成/ 采用作为类库和二次开发的基础。

4. LGPL( GNU Lesser General Public License )

LGPL 是GPL 的一个为主要为类库使用设计的开源协议。和GPL 要求任何使用/ 修改/ 衍生之GPL 类库的的软件必须采用GPL 协议不同。LGPL 允许商业软件通过类库引用(link) 方式使用LGPL 类库而不需要开源商业软件的代码。这使得采用LGPL 协议的开源代码可以被商业软件作为类库引用并 发布和销售。

但是如果修改LGPL 协议的代码或者衍生,则所有修改的代码,涉及修改部分的额外代码和衍生的代码都必须采用LGPL 协议。因此LGPL 协议的开源 代码很适合作为第三方类库被商业软件引用,但不适合希望以LGPL 协议代码为基础,通过修改和衍生的方式做二次开发的商业软件采用。

5. MIT(The MIT License)

MIT 是和BSD 一样宽范的许可协议, 作者只想保留版权, 而无任何其他了限制. 也就是说, 你必须在你的发行版里包含原许可协议的声明, 无论你是以二进制发布的还是以源代码发布的.

6. MPL( Mozilla Public License  )

MPL协议允许免费重发布、免费修改,但要求修改后的代码版权归软件的发起者 。这种授权维护了商业软件的利益,它要求基于这种软件的修改无偿贡献版权给该软件。


微信公众号:云峰小罗,分享 编程.生活.段子

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/11423513.html