[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 02/02: Detect oui db in source file



This is an automated email from the git hooks/post-receive script.

broucaries-guest pushed a commit to branch master
in repository lintian.

commit f5d7dd3bc9297a41b450a0aca31400b08de2ac7c
Author: bastien <roucaries.bastien+debian@gmail.com>
Date:   Sun Jun 14 21:53:40 2015 +0200

    Detect oui db in source file
    
    Signed-off-by: bastien <roucaries.bastien+debian@gmail.com>
---
 checks/cruft.desc                                    | 11 +++++++++++
 data/cruft/non-free-license                          |  2 ++
 debian/changelog                                     |  1 +
 t/scripts/implemented-tags.t                         |  1 +
 t/tests/cruft-autogenerated/debian/src/oui.db/oui.db | 20 ++++++++++++++++++++
 t/tests/cruft-autogenerated/tags                     |  1 +
 6 files changed, 36 insertions(+)

diff --git a/checks/cruft.desc b/checks/cruft.desc
index e5457f0..0998474 100644
--- a/checks/cruft.desc
+++ b/checks/cruft.desc
@@ -787,6 +787,17 @@ Info: The source of the following file is missing. Lintian checked a few
  .
  If this is a false-positive, please report a bug against Lintian.
 
+Tag: source-contains-data-from-ieee-data-oui-db
+Severity: pedantic
+Certainty: possible
+Info: The following file contains data from oui database
+ .
+ This file contains a likely outadated copy of
+ Organizationally Unique Identifier (OUI) database from ieee.
+ .
+ Please use file from ieee-data package.
+
+
 Tag: source-contains-autogenerated-visual-c++-file
 Severity: pedantic
 Certainty: possible
diff --git a/data/cruft/non-free-license b/data/cruft/non-free-license
index 8c381ee..7a6a5b8 100644
--- a/data/cruft/non-free-license
+++ b/data/cruft/non-free-license
@@ -27,3 +27,5 @@ license-problem-cc-by-nc-sa ~~ license && by-nc-sa && creativecommons.org  ~~ ht
 source-contains-autogenerated-visual-c++-file ~~ microsoft && visual && generated ~~ microsoft visual c++ generated ~~ microsoft [ ] visual [ ] c[+][+] [ ] generated (?![ ] by [ ] freeze\.py)
 # not really a license but warn about it: gperf generated file
 source-contains-autogenerated-gperf-data ~~ code && produced && gperf && version ~~ code produced by gperf version ~~ code [ ] produced [ ] by [ ] gperf [ ] version [ ] \d+\.\d+
+# warm about copy of ieee-data
+source-contains-data-from-ieee-data-oui-db ~~ struck && scitex && racore ~~ dr. b. struck ~~ dr. [ ] b. [ ] struck
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
index ccfb375..42d2bd4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -65,6 +65,7 @@ lintian (2.5.32) UNRELEASED; urgency=medium
     + [BR] Detect embedded ieee-data package.
   * data/cruft/non-free-license:
     + [BR] Detect autogenerated gperf data.  (Closes: #762179).
+    + [BR] Detect ieee oui db in source files.
   * data/cruft/missing-dir-search-path:
     + [BR] Fix a false positive in fspy for source-is-missing.
   * data/cruft/warn-file-type:
diff --git a/t/scripts/implemented-tags.t b/t/scripts/implemented-tags.t
index 86f0b38..a08baf3 100755
--- a/t/scripts/implemented-tags.t
+++ b/t/scripts/implemented-tags.t
@@ -62,6 +62,7 @@ our $EXCLUDE =join(
       ^debian-rules-should-not-.*$
       ^source-contains-prebuilt-.*$
       ^source-contains-autogenerated-.*$
+      ^source-contains-data-.*$
       ^invalid-short-name-in-dep5-copyright$
       ));
 
diff --git a/t/tests/cruft-autogenerated/debian/src/oui.db/oui.db b/t/tests/cruft-autogenerated/debian/src/oui.db/oui.db
new file mode 100644
index 0000000..ebf4106
--- /dev/null
+++ b/t/tests/cruft-autogenerated/debian/src/oui.db/oui.db
@@ -0,0 +1,20 @@
+# part of oui database
+
+00-00-56   (hex)		DR. B. STRUCK
+000056     (base 16)		DR. B. STRUCK
+		POB 1147 BAECKERBARG 6
+		D-2000 TANGSTEDT/HAMBURG
+		W-GERMANY
+		GERMANY
+
+00-00-57   (hex)		SCITEX CORPORATION LTD.
+000057     (base 16)		SCITEX CORPORATION LTD.
+		P.O. BOX 330
+		46103 HERZLIA B
+		ISRAEL
+
+00-00-58   (hex)		RACORE COMPUTER PRODUCTS INC.
+000058     (base 16)		RACORE COMPUTER PRODUCTS INC.
+		2355 SOUTH 1070 WEST
+		SALT LAKE CITY UT 84119
+		UNITED STATES
\ No newline at end of file
diff --git a/t/tests/cruft-autogenerated/tags b/t/tests/cruft-autogenerated/tags
index e95338b..74c67f5 100644
--- a/t/tests/cruft-autogenerated/tags
+++ b/t/tests/cruft-autogenerated/tags
@@ -1,3 +1,4 @@
 P: cruft-autogenerated source: source-contains-autogenerated-gperf-data src/gperf/gperf.c
 P: cruft-autogenerated source: source-contains-autogenerated-gperf-data src/gperf/gperf.cpp
 P: cruft-autogenerated source: source-contains-autogenerated-visual-c++-file src/visualc++/positive.cpp
+P: cruft-autogenerated source: source-contains-data-from-ieee-data-oui-db src/oui.db/oui.db

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: