Skip to content

Commit 327a826

Browse files
committed
Add Apache license detection rules
These rules improve the accuracy of the license detection in Subversion Reference: #3608 Reported-by: Stefan Rehm @srehm Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 51fcab0 commit 327a826

8 files changed

+170
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
license_expression: apache-1.1
3+
is_license_text: yes
4+
ignorable_urls:
5+
- http://www.collab.net/
6+
ignorable_emails:
7+
- info@collab.net
8+
---
9+
10+
*
11+
* Redistribution and use in source and binary forms, with or without
12+
* modification, are permitted provided that the following conditions
13+
* are met:
14+
*
15+
* 1. Redistributions of source code must retain the above copyright
16+
* notice, this list of conditions and the following disclaimer.
17+
*
18+
* 2. Redistributions in binary form must reproduce the above copyright
19+
* notice, this list of conditions and the following disclaimer in
20+
* the documentation and/or other materials provided with the
21+
* distribution.
22+
*
23+
* 3. The end-user documentation included with the redistribution,
24+
* if any, must include the following acknowledgment:
25+
* "This product includes software developed by
26+
* CollabNet (http://www.Collab.Net/)."
27+
* Alternately, this acknowledgment may appear in the software itself,
28+
* if and wherever such third-party acknowledgments normally appear.
29+
*
30+
* 4. The hosted project names must not be used to endorse or promote
31+
* products derived from this software without prior written
32+
* permission. For written permission, please contact info@collab.net.
33+
*
34+
* 5. Products derived from this software may not use the "Tigris" name
35+
* nor may "Tigris" appear in their names without prior written
36+
* permission of CollabNet.
37+
*
38+
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
39+
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
40+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
41+
* IN NO EVENT SHALL COLLABNET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
42+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
43+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
44+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
45+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
46+
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
47+
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
48+
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49+
*
50+
* ====================================================================
51+
*
52+
* This software consists of voluntary contributions made by many
53+
* individuals on behalf of CollabNet.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
license_expression: apache-1.1
3+
is_license_text: yes
4+
notes: Based on Subversion 1.6 anonymized variant
5+
---
6+
7+
*
8+
* Redistribution and use in source and binary forms, with or without
9+
* modification, are permitted provided that the following conditions
10+
* are met:
11+
*
12+
* 1. Redistributions of source code must retain the above copyright
13+
* notice, this list of conditions and the following disclaimer.
14+
*
15+
* 2. Redistributions in binary form must reproduce the above copyright
16+
* notice, this list of conditions and the following disclaimer in
17+
* the documentation and/or other materials provided with the
18+
* distribution.
19+
*
20+
* 3. The end-user documentation included with the redistribution,
21+
* if any, must include the following acknowledgment:
22+
* "This product includes software developed by
23+
*
24+
* Alternately, this acknowledgment may appear in the software itself,
25+
* if and wherever such third-party acknowledgments normally appear.
26+
*
27+
* 4. The hosted project names must not be used to endorse or promote
28+
* products derived from this software without prior written
29+
* permission. For written permission, please contact
30+
*
31+
* 5. Products derived from this software may not use the name
32+
* nor may appear in their names without prior written
33+
* permission of .
34+
*
35+
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
36+
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
37+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
38+
* IN NO EVENT SHALL OR ITS CONTRIBUTORS BE LIABLE FOR ANY
39+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
40+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
41+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
42+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
43+
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
44+
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
45+
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46+
*
47+
* ====================================================================
48+
*
49+
* This software consists of voluntary contributions made by many
50+
* individuals on behalf of .
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
license_expression: apache-2.0
3+
is_license_notice: yes
4+
relevance: 99
5+
ignorable_urls:
6+
- http://subversion.tigris.org/license-1.html
7+
---
8+
9+
* This software is licensed as described in the file COPYING, which
10+
* you should have received as part of this distribution. The terms
11+
* are also available at http://subversion.tigris.org/license-1.html.
12+
* If newer versions of this license are posted there, you may use a
13+
* newer version instead, at your option.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
license_expression: apache-2.0
3+
is_license_notice: yes
4+
relevance: 99
5+
referenced_filenames:
6+
- COPYING
7+
ignorable_urls:
8+
- http://subversion.tigris.org/
9+
- http://subversion.tigris.org/license-1.html
10+
---
11+
12+
This software is licensed as described in the file COPYING, which
13+
you should have received as part of this distribution. The terms
14+
are also available at http://subversion.tigris.org/license-1.html.
15+
If newer versions of this license are posted there, you may use a
16+
newer version instead, at your option.
17+
18+
This software consists of voluntary contributions made by many
19+
individuals. For exact contribution history, see the revision
20+
history and logs, available at http://subversion.tigris.org/.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
license_expression: apache-2.0
3+
is_license_reference: yes
4+
relevance: 99
5+
notes: http://subversion.tigris.org/license-1.html pointed to different licenses over time apache-1.1
6+
and then apache-2.0
7+
ignorable_urls:
8+
- http://subversion.tigris.org/license-1.html
9+
---
10+
11+
http://subversion.tigris.org/license-1.html
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: not a licnese, just a fragment in a patch
4+
---
5+
6+
11 under the License.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: not a licnese, just a fragment in a patch
4+
---
5+
6+
10 Under the License.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
license_expression: apache-1.1 AND apache-2.0
3+
is_license_clue: yes
4+
notes: http://subversion.tigris.org/license-1.html pointed to different licenses over time
5+
ignorable_urls:
6+
- http://svn.apache.org/repos/asf/subversion/tags/1.6.0/www/license-1.html
7+
- http://svn.apache.org/repos/asf/subversion/trunk/LICENSE
8+
---
9+
10+
The license of Subversion 1.7 and later is at http://svn.apache.org/repos/asf/subversion/trunk/LICENSE.
11+
The license of Subversion 1.6 and earlier can be found at http://svn.apache.org/repos/asf/subversion/tags/1.6.0/www/license-1.html

0 commit comments

Comments
 (0)