summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/obsolete-sites
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/obsolete-sites
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/obsolete-sites')
-rw-r--r--t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/desc2
-rw-r--r--t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/hints1
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/copyright14
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/upstream/metadata8
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/watch7
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/fill-values3
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/eval/desc2
-rw-r--r--t/recipes/checks/obsolete-sites/obsolete-sites/eval/hints7
11 files changed, 81 insertions, 0 deletions
diff --git a/t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/debian/control.in b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..5ddc664
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/debian/control.in
@@ -0,0 +1,17 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: http://search.cpan.org/Foo-Bar-9.0_01/
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %]
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
diff --git a/t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/fill-values b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/fill-values
new file mode 100644
index 0000000..11db86e
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-cpan-homepage
+Description: CPAN Homepage URLs shouldn't have versions
diff --git a/t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/desc b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/desc
new file mode 100644
index 0000000..c6c15af
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-cpan-homepage
+Check: obsolete-sites
diff --git a/t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/hints b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/hints
new file mode 100644
index 0000000..c5a69e6
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/fields-cpan-homepage/eval/hints
@@ -0,0 +1 @@
+fields-cpan-homepage (source): obsolete-url-in-packaging http://search.cpan.org/Foo-Bar-9.0_01/ [debian/control]
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/control.in b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/control.in
new file mode 100644
index 0000000..e80a3a2
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/control.in
@@ -0,0 +1,17 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: http://code.google.com/p/foo
+
+Package: foo
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %]
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/copyright b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/copyright
new file mode 100644
index 0000000..627f71b
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/copyright
@@ -0,0 +1,14 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Foo
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: https://foo.berlios.de/
+Positive: ftp://ftp.debian.org/debian/doc/
+False-Positive: http://ftp.debian.org/
+
+Files: *
+Copyright: 2014, me
+License: Bla
+Comment: http://freshmeat.net/p/foo
+
+License: Bla
+ This is the Bla license.
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/upstream/metadata b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..5459131
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/upstream/metadata
@@ -0,0 +1,8 @@
+%YAML 1.1
+---
+# https://wiki.debian.org/UpstreamMetadata
+Bug-Submit: http://github.com/foo/foo/issues/new
+FAQ: http://foo.sourceforge.net/faq/
+Homepage: http://freecode.com/p/foo
+Repository: git://gitorious.org/foo/foo.git
+Repository-Browse: http://sourceforge.net/p/foo/code/ci/master/tree/
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/watch b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/watch
new file mode 100644
index 0000000..6bfdfb1
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/debian/watch
@@ -0,0 +1,7 @@
+version=3
+
+http://gitorious.org/foo/foo/file-(.*)\.tar\.gz
+
+# False positives:
+#
+# http://code.google.com/p/wps-bully/
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/fill-values b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/fill-values
new file mode 100644
index 0000000..b731914
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: obsolete-sites
+Skeleton: upload-non-native
+Description: Test cases where packages contain links to frozen, closing or closed hosters
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/eval/desc b/t/recipes/checks/obsolete-sites/obsolete-sites/eval/desc
new file mode 100644
index 0000000..9438b94
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/eval/desc
@@ -0,0 +1,2 @@
+Testname: obsolete-sites
+Check: obsolete-sites
diff --git a/t/recipes/checks/obsolete-sites/obsolete-sites/eval/hints b/t/recipes/checks/obsolete-sites/obsolete-sites/eval/hints
new file mode 100644
index 0000000..8126fb4
--- /dev/null
+++ b/t/recipes/checks/obsolete-sites/obsolete-sites/eval/hints
@@ -0,0 +1,7 @@
+obsolete-sites (source): obsolete-url-in-packaging https://foo.berlios.de/ [debian/copyright]
+obsolete-sites (source): obsolete-url-in-packaging http://gitorious.org/foo/foo/file-(.*)\.tar\.gz [debian/watch]
+obsolete-sites (source): obsolete-url-in-packaging http://freshmeat.net/p/foo [debian/copyright]
+obsolete-sites (source): obsolete-url-in-packaging http://freecode.com/p/foo [debian/upstream/metadata]
+obsolete-sites (source): obsolete-url-in-packaging http://code.google.com/p/foo [debian/control]
+obsolete-sites (source): obsolete-url-in-packaging git://gitorious.org/foo/foo.git [debian/upstream/metadata]
+obsolete-sites (source): obsolete-url-in-packaging ftp://ftp.debian.org [debian/copyright]