Migrate old wiki Copyright best practices 00/94800/2
authorGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 25 Jan 2021 20:52:29 +0000 (21:52 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 26 Jan 2021 09:46:01 +0000 (10:46 +0100)
and rework them
https://wiki-archive.opendaylight.org/view/BestPractices/Developer_Best_Practices#Copyright

JIRA: TSC-296
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Iae1e53bd5e3248bdf389c9bd55ce86be38b3b982

docs/contributor-guides/copyright.rst [new file with mode: 0644]
docs/contributor-guides/index.rst

diff --git a/docs/contributor-guides/copyright.rst b/docs/contributor-guides/copyright.rst
new file mode 100644 (file)
index 0000000..80da8d2
--- /dev/null
@@ -0,0 +1,84 @@
+###########################
+About Copyright and License
+###########################
+
+*Note: This document is a work in progress.*
+
+Contributors must comply with `the terms of the OpenDaylight Technical charter
+<https://www.opendaylight.org/wp-content/uploads/sites/14/2018/01/ODL-Technical-Charter-LF-Projects-LLC-FINAL.pdf>`__.
+
+Following are the requirements with regards to Copyright and License statements
+in all source code in the OpenDaylight projects.
+
+New Files
+=========
+
+Every file should contain a copyright statement, which at a minimum states that
+the source code is available under the Eclipse Public License (EPL)
+or a compatible license.
+By placing the copyright in all source files, downstream consumers of
+OpenDaylight can refer to their redistribution clauses.
+
+*The OpenDaylight Project does not request or require copyright assignment to
+the OpenDaylight non-profit organization, so adding the original contributor's
+name or company is allowed.*
+
+*A missing copyright statement is treated as a bug so the EPL license can
+at least be added for downstream consumers.*
+
+Possible structure of the EPL copyright header:
+
+.. code:: text
+
+   /**
+    * Copyright (c) <Date> <Company or Individual> and others.  All rights reserved.
+    *
+    * This program and the accompanying materials are made available under the
+    * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+    * and is available at http://www.eclipse.org/legal/epl-v10.html
+    **/
+
+.. note::
+
+   If you are contributing to OpenDaylight on behalf of a company or
+   organization, please check with your company's legal department
+   if you need to use your company name's or if you can use your personal
+   name as the copyright holder.
+   Be sure to place the current date and company name in the copyright.
+   If copying a copyright please make sure that you place the correct
+   company's name into the copyright (i.e. if you copy an existing
+   copyright statement, make sure you change the name to give credit to
+   the correct people or organizations!).
+
+
+Edited Files
+============
+
+If you, the editor, feel like you have made a *significant* contribution
+for which you want to issue a copyright, then modify the copyright,
+adding your company's name or individual name into the original header.
+
+.. code:: text
+
+   /**
+    * Copyright (c) <Date> Existing Company One, and others.  All rights reserved.
+    * Copyright (c) <Date> New Company Two
+    *
+    * This program and the accompanying materials are made available under the
+    * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+    * and is available at http://www.eclipse.org/legal/epl-v10.html
+    **/
+
+In the example above, "New Company Two" was added into the copy right.
+"Existing Company One" already existed and remained in the copyright header.
+Whether or not you edit the existing copyright is up to you.
+
+.. note::
+
+   Never remove or replace the copyright on a file.
+   The original author still retains the copyright on the original work.
+   You retain the copyright on the new edits only.
+   *Significant* is purposely left vague to be left to your best judgement.
+   At the end of the day if the issue of who owns what changes ever arises
+   it will be left to the lawyers and judges to determine the copyright
+   ownership. Remember, all changes are logged in the git repository.
index 8c383ef454fe2a3293b80e54726bb07ba1ca5906..e28d6913ea191280d2e1882c38f4395952cdf203 100644 (file)
@@ -2,16 +2,13 @@
 Contributor Guides
 ##################
 
-.. toctree::
-   :glob:
-   :maxdepth: 1
-
-   newcomers-guide
-
-* :doc:`Gerrit Guide <lfdocs:gerrit>`
 
 .. toctree::
    :glob:
    :maxdepth: 1
 
+   newcomers-guide
    coding-guidelines/index
+   copyright
+
+* :doc:`LFN Gerrit Guide <lfdocs:gerrit>`