Skip to content

Commit

Permalink
Add commercial license detection rules #3162
Browse files Browse the repository at this point in the history
Reference: #3162
Reference: haproxy/haproxy#1948
Reported-by: Marc-Etienne Vargenau <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Nov 28, 2022
1 parent 28e7ddd commit 097298d
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/commercial-license_80.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
license_expression: commercial-license
is_license_notice: yes
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

This software package is the property of ScientiaMobile Inc. and is licensed
commercially according to a contract between the Licensee and ScientiaMobile Inc. (Licensor).
If you represent the Licensee, please refer to the licensing agreement which has been signed
between the two parties. If you do not represent the Licensee, you are not authorized to use
this software in any way.
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/commercial-license_81.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: commercial-license
is_license_notice: yes
relevance: 100
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

software package is the property
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/commercial-license_82.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: commercial-license
is_license_notice: yes
relevance: 100
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

licensed commercially
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/commercial-license_83.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: commercial-license
is_license_notice: yes
relevance: 100
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

licensed commercially according to a contract
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/commercial-license_84.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: commercial-license
is_license_notice: yes
relevance: 100
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

refer to the licensing agreement which has been signed
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/commercial-license_85.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: commercial-license
is_license_notice: yes
relevance: 100
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

you are not authorized to use this software in any way.
8 changes: 8 additions & 0 deletions src/licensedcode/data/rules/commercial-license_86.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
license_expression: commercial-license
is_license_notice: yes
relevance: 100
notes: Seen in wurfl.h https://github.com/haproxy/haproxy/commit/cd9b9bd3e47cb2814eaab6c07d1facf222f013a9#diff-be9afa6e330d524179c2f689a4858fd7645bb3d1f05e54871b962f829f2580e8
---

not authorized to use this software
17 changes: 17 additions & 0 deletions tests/licensedcode/data/datadriven/lic4/wurfl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* InFuze C API - HAPROXY Dummy library version of include
*
* Copyright (c) ScientiaMobile, Inc.
* http://www.scientiamobile.com
*
* This software package is the property of ScientiaMobile Inc. and is licensed
* commercially according to a contract between the Licensee and ScientiaMobile Inc. (Licensor).
* If you represent the Licensee, please refer to the licensing agreement which has been signed
* between the two parties. If you do not represent the Licensee, you are not authorized to use
* this software in any way.
*
*/

#ifndef _WURFL_H_
#define _WURFL_H_
3 changes: 3 additions & 0 deletions tests/licensedcode/data/datadriven/lic4/wurfl.h.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expressions:
- commercial-license

0 comments on commit 097298d

Please sign in to comment.