summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fields/homepage
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/fields/homepage')
-rw-r--r--t/recipes/checks/fields/homepage/fields-bioconductor-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-bioconductor-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-cpan-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-cpan-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-cran-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-cran-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-cran-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-cran-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-general/build-spec/debian/control.in46
-rw-r--r--t/recipes/checks/fields/homepage/fields-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-general/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-general/eval/hints5
-rw-r--r--t/recipes/checks/fields/homepage/fields-github-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-github-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-github-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-github-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-gitlab-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-gitlab-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-homepage/eval/desc3
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-homepage/eval/hints1
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/fields-salsa-homepage/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/fields-salsa-homepage/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/hints2
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/eval/hints4
-rw-r--r--t/recipes/checks/fields/homepage/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/eval/hints3
-rw-r--r--t/recipes/checks/fields/homepage/legacy-relations/eval/post-test1
77 files changed, 1039 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..021d60a
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-bioconductor-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 %]
+Homepage: https://www.bioconductor.org/packages/release/bioc/html/foo.html
+Rules-Requires-Root: no
+
+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/fields/homepage/fields-bioconductor-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/build-spec/fill-values
new file mode 100644
index 0000000..1163b6c
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-bioconductor-homepage
+Description: Bioconductor Homepage URLs should be canonical
diff --git a/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/desc
new file mode 100644
index 0000000..1fb9c13
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-bioconductor-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/hints
new file mode 100644
index 0000000..a4360c3
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-bioconductor-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-bioconductor-homepage (source): homepage-for-bioconductor-package-not-canonical https://www.bioconductor.org/packages/release/bioc/html/foo.html
+fields-bioconductor-homepage (binary): homepage-for-bioconductor-package-not-canonical https://www.bioconductor.org/packages/release/bioc/html/foo.html
diff --git a/t/recipes/checks/fields/homepage/fields-cpan-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-cpan-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..5ddc664
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/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/fields/homepage/fields-cpan-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-cpan-homepage/build-spec/fill-values
new file mode 100644
index 0000000..11db86e
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/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/fields/homepage/fields-cpan-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/desc
new file mode 100644
index 0000000..4a54895
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-cpan-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/hints
new file mode 100644
index 0000000..5bf09e5
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-cpan-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-cpan-homepage (source): homepage-for-cpan-package-contains-version http://search.cpan.org/Foo-Bar-9.0_01/
+fields-cpan-homepage (binary): homepage-for-cpan-package-contains-version http://search.cpan.org/Foo-Bar-9.0_01/
diff --git a/t/recipes/checks/fields/homepage/fields-cran-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-cran-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..56d9fdc
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-cran-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: https://cran.r-project.org/web/packages/foo/index.html
+
+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/fields/homepage/fields-cran-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-cran-homepage/build-spec/fill-values
new file mode 100644
index 0000000..7e4e067
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-cran-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-cran-homepage
+Description: CRAN Homepage URLs should be canonical
diff --git a/t/recipes/checks/fields/homepage/fields-cran-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-cran-homepage/eval/desc
new file mode 100644
index 0000000..d4e9502
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-cran-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-cran-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-cran-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-cran-homepage/eval/hints
new file mode 100644
index 0000000..39c4d54
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-cran-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-cran-homepage (source): homepage-for-cran-package-not-canonical https://cran.r-project.org/web/packages/foo/index.html
+fields-cran-homepage (binary): homepage-for-cran-package-not-canonical https://cran.r-project.org/web/packages/foo/index.html
diff --git a/t/recipes/checks/fields/homepage/fields-general/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-general/build-spec/debian/control.in
new file mode 100644
index 0000000..f5aa07a
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-general/build-spec/debian/control.in
@@ -0,0 +1,46 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: http://lintian.debian.org/
+
+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.
+# Whoops, typo
+Homepage: ttp://lintian.debian.org/
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (dbg)
+ 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.
+ .
+ The debug package (dbg)g.
+# ... and some unneeded <>
+Homepage: <http://lintian.debian.org/>
+
+Package: [% $source %]-debug
+Section: debug
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (debug)
+ 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.
+ .
+ The debug package (debug).
+
diff --git a/t/recipes/checks/fields/homepage/fields-general/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-general/build-spec/fill-values
new file mode 100644
index 0000000..11b0c69
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-general
+Description: Test for tags related to minor field issues
diff --git a/t/recipes/checks/fields/homepage/fields-general/eval/desc b/t/recipes/checks/fields/homepage/fields-general/eval/desc
new file mode 100644
index 0000000..4aa98da
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-general
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-general/eval/hints b/t/recipes/checks/fields/homepage/fields-general/eval/hints
new file mode 100644
index 0000000..49d8cba
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-general/eval/hints
@@ -0,0 +1,5 @@
+fields-general (source): homepage-field-uses-insecure-uri http://lintian.debian.org/
+fields-general-debug (binary): homepage-field-uses-insecure-uri http://lintian.debian.org/
+fields-general-dbg (binary): superfluous-clutter-in-homepage <http://lintian.debian.org/>
+fields-general-dbg (binary): homepage-field-uses-insecure-uri <http://lintian.debian.org/>
+fields-general (binary): bad-homepage ttp://lintian.debian.org/
diff --git a/t/recipes/checks/fields/homepage/fields-github-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-github-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..f6ac160
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-github-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: https://github.com/foo/bar.git
+
+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/fields/homepage/fields-github-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-github-homepage/build-spec/fill-values
new file mode 100644
index 0000000..e4c5602
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-github-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-github-homepage
+Description: GitHub homepage URL should't end with .git
diff --git a/t/recipes/checks/fields/homepage/fields-github-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-github-homepage/eval/desc
new file mode 100644
index 0000000..a1c96fa
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-github-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-github-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-github-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-github-homepage/eval/hints
new file mode 100644
index 0000000..e4dd4ef
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-github-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-github-homepage (source): homepage-github-url-ends-with-dot-git https://github.com/foo/bar.git
+fields-github-homepage (binary): homepage-github-url-ends-with-dot-git https://github.com/foo/bar.git
diff --git a/t/recipes/checks/fields/homepage/fields-gitlab-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..9912e11
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-gitlab-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: https://gitlab.com/foo/bar.git
+
+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/fields/homepage/fields-gitlab-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/build-spec/fill-values
new file mode 100644
index 0000000..5e923ca
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-gitlab-homepage
+Description: GitLab homepage URL should't end with .git
diff --git a/t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/desc
new file mode 100644
index 0000000..cbef9c8
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-gitlab-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/hints
new file mode 100644
index 0000000..e1bc8b1
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-gitlab-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-gitlab-homepage (source): homepage-gitlab-url-ends-with-dot-git https://gitlab.com/foo/bar.git
+fields-gitlab-homepage (binary): homepage-gitlab-url-ends-with-dot-git https://gitlab.com/foo/bar.git
diff --git a/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/debian/control.in
new file mode 100644
index 0000000..4b9a679
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/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://github.com/insecure/uri
+
+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/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/fill-values
new file mode 100644
index 0000000..f9c6f34
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-homepage-field-uses-insecure-uri
+Description: Test for Homepage fields using insecure URIs
diff --git a/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/desc b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/desc
new file mode 100644
index 0000000..0670f2a
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-homepage-field-uses-insecure-uri
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/hints b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/hints
new file mode 100644
index 0000000..ac8a0d2
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-homepage-field-uses-insecure-uri/eval/hints
@@ -0,0 +1,2 @@
+fields-homepage-field-uses-insecure-uri (source): homepage-field-uses-insecure-uri http://github.com/insecure/uri
+fields-homepage-field-uses-insecure-uri (binary): homepage-field-uses-insecure-uri http://github.com/insecure/uri
diff --git a/t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..62f3235
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+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/fields/homepage/fields-no-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/fill-values
new file mode 100644
index 0000000..f185ac4
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: fields-no-homepage
+Skeleton: upload-non-native
+Description: Test pedantic check for no Homepage field
diff --git a/t/recipes/checks/fields/homepage/fields-no-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-no-homepage/eval/desc
new file mode 100644
index 0000000..b98608e
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-homepage/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-no-homepage
+Test-Against: homepage-field-uses-insecure-uri
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-no-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-no-homepage/eval/hints
new file mode 100644
index 0000000..a70760a
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-homepage/eval/hints
@@ -0,0 +1 @@
+fields-no-homepage (source): no-homepage-field
diff --git a/t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..a29351f
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-source-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
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+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.
+Homepage: http://lintian.debian.org
diff --git a/t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/fill-values
new file mode 100644
index 0000000..7324214
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-source-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: fields-no-source-homepage
+Skeleton: upload-non-native
+Description: Test check for no Homepage field in source
diff --git a/t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/desc
new file mode 100644
index 0000000..fe34e9c
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-no-source-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/hints
new file mode 100644
index 0000000..a2cf9f3
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-no-source-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-no-source-homepage (source): homepage-in-binary-package fields-no-source-homepage
+fields-no-source-homepage (binary): homepage-field-uses-insecure-uri http://lintian.debian.org
diff --git a/t/recipes/checks/fields/homepage/fields-salsa-homepage/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/fields-salsa-homepage/build-spec/debian/control.in
new file mode 100644
index 0000000..3f0a4ac
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-salsa-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: https://salsa.debian.org/foo/bar.git
+
+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/fields/homepage/fields-salsa-homepage/build-spec/fill-values b/t/recipes/checks/fields/homepage/fields-salsa-homepage/build-spec/fill-values
new file mode 100644
index 0000000..a0f671f
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-salsa-homepage/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-salsa-homepage
+Description: Salsa homepage URL should't end with .git
diff --git a/t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/desc b/t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/desc
new file mode 100644
index 0000000..514eb62
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-salsa-homepage
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/hints b/t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/hints
new file mode 100644
index 0000000..b87b338
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/fields-salsa-homepage/eval/hints
@@ -0,0 +1,2 @@
+fields-salsa-homepage (source): homepage-salsa-url-ends-with-dot-git https://salsa.debian.org/foo/bar.git
+fields-salsa-homepage (binary): homepage-salsa-url-ends-with-dot-git https://salsa.debian.org/foo/bar.git
diff --git a/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/debian/control.in
new file mode 100644
index 0000000..d6ef053
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/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://ftp.gnu.org/gnu/aspell/dict/ar/
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+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/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/fill-values b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/fill-values
new file mode 100644
index 0000000..5f2cfed
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: homepage-refers-to-filesystem-listing
+Description: Check for packages pointing to a directory listing
diff --git a/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/desc b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/desc
new file mode 100644
index 0000000..193e661
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/desc
@@ -0,0 +1,2 @@
+Testname: homepage-refers-to-filesystem-listing
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/hints b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/hints
new file mode 100644
index 0000000..5648438
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-filesystem-listing/eval/hints
@@ -0,0 +1,2 @@
+homepage-refers-to-filesystem-listing (source): homepage-refers-to-filesystem-listing http://ftp.gnu.org/gnu/aspell/dict/ar/
+homepage-refers-to-filesystem-listing (binary): homepage-refers-to-filesystem-listing http://ftp.gnu.org/gnu/aspell/dict/ar/
diff --git a/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/debian/control.in b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/debian/control.in
new file mode 100644
index 0000000..0427236
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/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: https://alioth.debian.org/foo/
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+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/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/fill-values b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/fill-values
new file mode 100644
index 0000000..9380c53
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: homepage-refers-to-obsolete-debian-infrastructure
+Description: Check for packages with deprecated Homepage fields
diff --git a/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/desc b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/desc
new file mode 100644
index 0000000..ebf256d
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/desc
@@ -0,0 +1,2 @@
+Testname: homepage-refers-to-obsolete-debian-infrastructure
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/hints b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/hints
new file mode 100644
index 0000000..137fec4
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/homepage-refers-to-obsolete-debian-infrastructure/eval/hints
@@ -0,0 +1,2 @@
+homepage-refers-to-obsolete-debian-infrastructure (source): homepage-refers-to-obsolete-debian-infrastructure https://alioth.debian.org/foo/
+homepage-refers-to-obsolete-debian-infrastructure (binary): homepage-refers-to-obsolete-debian-infrastructure https://alioth.debian.org/foo/
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/NEWS.Debian
@@ -0,0 +1,12 @@
+binary (4-1.1) UNRELEASED; urgency=high
+
+ This is a Debian NEWS entry that isn't encoded properly in UTF-8: ü.
+ It also has a usefull speling error.
+
+ -- Russ Allbery <rra@debian.org> Sun, 14 Oct 2007 17:11:36 -0700
+
+binary (1) unstable; urgency=low
+
+ This is another entry but this one isn't syntactically valid.
+
+ -- Russ Allbery 2007-10-14
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/README.Debian
@@ -0,0 +1,5 @@
+this is a binary package to test lintian's handling of bins.
+Check handling of D-Bus and dbus (neither of which should produce
+warnings).
+
+ -- Russ Allbery <rra@debian.org>, Wed, 6 Feb 2008 18:35:11 -0800
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/changelog.in
@@ -0,0 +1,47 @@
+binary ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm doing an comaintainer-upload, acknowledging a NMU, but with a version
+ number which suggests I'm doing a NMU myself.
+
+ Lintian-maintainers: Please don't update this changelog, otherwise you'll
+ probably break the checks/nmu checks.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 01:49:42 +0200
+
+binary (4-1) unstable; urgency=low
+
+ * Weird version number for the new check for accidents with native
+ packaging.
+ * Date was fixed by BR and this test was put on changelog-file-strange-date
+ due to dpkg bug, see #794674.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Thu, 15 Apr 2004 23:33:51 +0200
+
+binary (4) unstable; urgency=low
+
+ * Add big file to /usr/share to trigger the big-usr-share check
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 27 Feb 2004 10:15:59 +0100
+
+binary (3) unstable; urgency=unlimited
+
+ * Add some bogus menu entries using su-to-root in a bogus way
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Thu, 12 Feb 2004 20:11:22 +0100
+
+binary (2) unstable; urgency=low
+
+ * Added an INSTALL document which policy 6.3 suggests not to do
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800
+
+binary (1) unstable; urgency=low
+
+ * hello.c added
+ * hello-static is same as hello, but compiled statically
+ * added a menu entry which lacks a Section
+ * added a postinst
+ * postinst calls suidregister which is no longer policy compliant
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 10 Jan 2001 08:55:34 -0800
+
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/control b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/control
@@ -0,0 +1,42 @@
+Source: binary
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Co-maintainer one <one@debian.org>, Jeroen van Wolffelaar <jeroen@wolffelaar.nl>, Co-maintainer three <three@debian.org>
+Standards-Version: 3.2.1
+Homepage: http://lintian.debian.org/
+Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk
+XS-Vcs-Browser: http://svn.wolffelaar.nl/lintian/trunk
+XS-Dm-Upload-Allowed: yes
+
+Package: binary
+Architecture: any
+Pre-Depends: ${shlibs:Depends}, xorg, binary-data (= ${source:Version}), libssl0.9.8
+Homepage: <http://lintian.debian.org/>
+Vcs-Svn: http://svn.wolffelaar.nl/lintian/trunk
+Description: test handling of binary files
+ Regression test for lintian's handling of binary files for debian. This
+ is checked for picky spelling errors.
+ .
+ This package list [ subversion | gconf ] should not be flagged as a spelling
+ mistake. The spelling correction for dont should be correct.
+ .
+ Homepage: http://lintian.debian.org/
+
+Package: binary-data
+Architecture: all
+Depends: binary (= ${source:Version}), libssl-not-openssl,
+ libssl0.9.8 | or-something-else
+Description: test handling of binary relationships
+ Regression test for lintian's checking of package relationships between
+ arch:any and arch:all packages.
+ .
+ This mention of subversion should be flagged as a spelling mistake.
+
+#Package: binary-comment
+#Architecture: space-almonds
+#Depends: *
+#Depends: *
+#Description: test comment support
+# Yes, comments are actually allowed in debian/control, so none of the
+# above should produce errors.
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..1d6806d
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/copyright
@@ -0,0 +1,15 @@
+hello.c is released under public domain. This is distributed in the hope that
+it will be useful, but without any warranty; without even the implied warranty
+of merchantability or fitness for a particular purpose.
+
+A reference to /usr/share/common-licenses/GPL-2 to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+Test for old FSF address:
+
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+
+Test for deprecated nätionäl äncoding.
+
+Improper capitalization of linux or debian isn't caught here.
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/doc-base
@@ -0,0 +1,41 @@
+Document: binary!docs
+Title: Broken debian binary doc-base control file
+Author: Russ Allbery
+Abstract: This control file exercises various tests of doc-base control
+ files, including several things that aren't tested yet. The third and
+ fourth one has trailing whitespace.
+ .
+ This section has a speling error and bad ® character.
+ .
+ The above separator was fine.
+Section: Non/Existant
+Unknown: Some field
+
+
+
+Format: debiandoc-sgML
+Files: /usr/share/doc/binary/binary.sgml.gz
+Unknown: Some field
+
+Format: ESP
+Index: /usr/share/doc/binary/binary.txt
+
+Index: /usr/share/doc/binary/html/index.html
+ /usr/share/doc/binary/html/ch1.html
+ /usr/share/doc/binary/html/ch4.html
+
+
+Format: HTML
+Index: /usr/share/doc/binary/html/index.html
+Files: /usr/share/doc/binary/html/ch?.h*l
+ /usr/share/doc/binary/hml/*.html
+
+Format: inFO
+Files: /usr/share/info/binary.info.gz
+
+Format: HTML
+Index: /usr/share/doc/binary/html/index.html
+Files: /usr/share/doc/binary/html/ch5.html
+ /usr/share/doc/binary/html/ch6.html
+
+
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/goodbye.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name:Goodbye
+# Name=Goodbye
+Comment=Say hello!
+SpecialTag=This doesn't exist!
+Exec=goodbye
+icon=hello
+Terminal=true
+Type=Application
+Categories=WeirdStuff;Screensaver;
+Encoding=ISO-10646-1
+[Other Entry]
+Name=Goodbye
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/hello.desktop
@@ -0,0 +1,14 @@
+# some random comment
+
+# [Foo Bar]
+[KDE Desktop Entry]
+Name=Hello
+Name[en_US]=Hello
+Comment=Say hello!
+Exec=kdesu hello
+Icon=hello
+Terminal=true
+Type=Application
+Categories=GNOME;GTK;System;Applet;X-Foo;Settings;
+Encoding=UTF-8
+OnlyShowIn=GNOME;
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu
@@ -0,0 +1,26 @@
+?package(binary):needs=text title="Hello World" command="/usr/bin/hello"
+?package(binary):needs=text section="Applications/System" title="Run cfdisk (0)" command="/usr/bin/su-to-root cfdisk"
+?package(binary):needs="text" section="Applications/System/Hardware" title="Run cfdisk (1)" command="sux -p cfdisk"
+?package(binary):needs="x11" section="Window Managers" title="Run xfdisk" command="/usr/sbin/su-to-root -c xfdisk"
+?package(binary):needs="wm" section="Applications/System/Administration" title="Run fdisk-wm" command="su-to-root -c hello"
+?package(binary):section="Apps/Games" title="I'm not root!" command="su-to-root -c imnothere"
+?package(binary):needs="text" section="Apps/System" title="I'm not here!" command="/imnothere"
+?package(binary,other-binary):\
+ needs="text"\
+ section="Applications/Shells"\
+ title="more than one required"\
+ command="other-bin -s omething"
+?package(binary):needs="wmmodule" section="WindowManagers/Modules" title="somemodule" command="ModuleCmd"
+?package(binary):needs="wmmodule" section="FVWM Modules" title="somemodule" command="ModuleCmd"
+?package(binary):needs="text" section="Applications/System/Administration" title="I'm not in /usr/bin!" command="iminusrbin"
+?package(binary):needs="text"\
+ section="Applications/System/Administration"\
+ title="I'm not root!" command="su-to-root -c imnothere"
+?package(binary):needs="text" section="Applications/System/Administration"\
+ title="Run cfdisk (0)" command="cfdisk"
+?package(binary):needs="text" section="Applications/System/Administration" title="Hello World" command="/usr/bin/hello"
+?package(binary):needs="wm" section="FVWM Modules" title="Fake Module" command="hello"
+?package(binary):needs="fvwmmodule" section="Window Maker" title="Fake Module"\
+ command="hello"
+?package(binary):needs="x11" section="Applications/System/Hardware" title="Run xfdisk" command="su-to-root -c 'xfdisk -f'"
+?package(binary):needs="text" section="Applications/System/Administration" title="foo" command="sh /path/to/foo"
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/menu-method
@@ -0,0 +1,22 @@
+#!/usr/bin/install-menu
+
+# -*- mode: shell-script; -*-
+#I need menu-1!
+#
+
+!include notmenu.h
+
+compat="menu-2"
+
+outputencoding="UTF-8";
+outputlanguage="C";
+
+x11 = AppEntry("false");
+text = AppEntry("true");
+
+startmenu = "";
+endmenu = "";
+submenutitle = "";
+rootprefix = "/var/lib/lintian/menu";
+userprefix = ".local/share/lintian/menu";
+
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/postinst
@@ -0,0 +1,6 @@
+#! /bin/bash -e
+
+if [ $1 eq 'configure' ]
+then
+ suidregister hello-static root root 4755
+fi
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/rules b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/rules
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+# This reference to $(PWD) should not cause an error but the one below
+# should.
+build-arch:
+ make
+ echo $(PWD)
+
+build: build-arch
+
+clean:
+ make -i clean
+ [ ! -f debian/files ] || rm -f debian/files
+ [ ! -f debian/substvars ] || rm -f debian/substvars
+ [ ! -d debian/tmp ] || rm -rf debian/tmp
+ [ ! -d debian/binary ] || rm -rf debian/binary
+ [ ! -d debian/binary-data ] || rm -rf debian/binary-data
+
+binary-arch: build
+ install -d $(tmp)/usr/bin
+ install -d $(tmp)/boot/hello
+ install -m 755 hello $(tmp)/usr/bin
+ touch $(tmp)/usr/bin/iminusrbin
+ chmod 755 $(tmp)/usr/bin/iminusrbin
+ install -m 755 hello-static $(tmp)/usr/bin
+ strip $(tmp)/usr/bin/hello-static
+ install -m 755 hello-static $(tmp)/usr/bin/hello.static
+ strip --remove-section=.comment --remove-section=.note $(tmp)/usr/bin/hello.static
+ ln $(tmp)/usr/bin/hello.static $(tmp)/usr/bin/static-hello
+ install -m 755 hello-static $(tmp)/boot/hello
+ strip --remove-section=.comment --remove-section=.note $(tmp)/boot/hello/hello-static
+ install -d $(tmp)/usr/share/doc/binary
+ install -m 644 INSTALL $(tmp)/usr/share/doc/binary
+ install -d $(tmp)/usr/share/doc/binary/html
+ echo '<html></html>' > $(tmp)/usr/share/doc/binary/html/index.html
+ echo '<html></html>' > $(tmp)/usr/share/doc/binary/html/ch1.html
+ ln -s ../html/./ch1.html $(tmp)/usr/share/doc/binary/html/ch2.html
+ ln -s /usr/share/doc/binary/htm/ch1.html $(tmp)/usr/share/doc/binary/html/ch3.html
+ echo '<html></html>' > $(tmp)/usr/share/doc/binary/html/ch5.html
+ ln $(tmp)/usr/share/doc/binary/html/ch5.html \
+ $(tmp)/usr/share/doc/binary/html/ch6.html
+ install -d $(tmp)/usr/share/menu
+ install -d $(tmp)/usr/lib/menu
+ install -d $(tmp)/usr/share/binary
+ install -m 644 debian/menu $(tmp)/usr/share/menu/binary
+ install -m 644 debian/menu $(tmp)/usr/lib/menu/binary
+ install -d $(tmp)/etc/menu-methods
+ install -m 755 debian/menu-method $(tmp)/etc/menu-methods/lintian
+ install -d $(tmp)/usr/share/doc-base
+ install -m 644 debian/doc-base $(tmp)/usr/share/doc-base/binary
+ touch '$(tmp)/usr/share/doc-base/space '
+ install -m 644 debian/README.Debian $(tmp)/usr/share/doc/binary
+ install -m 644 debian/NEWS.Debian $(tmp)/usr/share/doc/binary
+ gzip -n -9 $(tmp)/usr/share/doc/binary/NEWS.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/binary
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/binary
+ #gzip -n -9 $(tmp)/usr/share/doc/binary/changelog
+ install -d $(tmp)/DEBIAN
+ install -m 755 debian/postinst $(tmp)/DEBIAN
+ install -m 644 debian/conffiles $(tmp)/DEBIAN
+
+ install -d $(tmp)/usr/share/applications
+ install -m 644 debian/hello.desktop \
+ $(tmp)/usr/share/applications/hello.desktop
+ install -m 755 debian/goodbye.desktop \
+ $(tmp)/usr/share/applications/goodbye.desktop
+
+ # should be ok...
+ echo boe > $(tmp)/usr/bar
+ ln $(tmp)/usr/bar $(tmp)/usr/foo
+ # but this isn't
+ echo boe > $(tmp)/usr/bar2
+ ln $(tmp)/usr/bar2 $(tmp)/usr/share/baz
+
+ dd if=/dev/zero of=$(tmp)/usr/share/binary/largefile bs=1024 count=4000
+
+ install -d debian/binary-data/DEBIAN
+ install -d debian/binary-data/usr/share/doc
+ ln -s binary debian/binary-data/usr/share/doc/binary-data
+
+ dpkg-shlibdeps $(tmp)/usr/bin/hello
+ dpkg-gencontrol -pbinary -isp
+ dpkg-gencontrol -pbinary-data -Pdebian/binary-data -isp
+
+ dpkg --build debian/tmp ..
+ dpkg --build debian/binary-data ..
+
+binary: binary-arch
+
+.PHONY: build-arch build binary-arch binary clean
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/templates b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/debian/templates
@@ -0,0 +1,16 @@
+# The debconf templates defined here are the sort that you'd use if
+# providing a wordlist and an ispell dictionary for the language
+# "perl". This shouldn't trigger warnings about not using debconf-po.
+
+Template: shared/packages-ispell
+Type: text
+Description:
+
+Template: shared/packages-wordlist
+Type: text
+Description:
+
+Template: miscfiles/languages
+Type: text
+Default: perl (Pathologically Eclectic Rubbish Lister)
+Description:
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/fill-values b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-non-native
+Testname: legacy-binary
+Source: binary
+Version: 4-1.1
+Description: Legacy test "binary"
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/INSTALL
@@ -0,0 +1,176 @@
+Basic Installation
+==================
+
+ These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, a file
+`config.cache' that saves the results of its tests to speed up
+reconfiguring, and a file `config.log' containing compiler output
+(useful mainly for debugging `configure').
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If at some point `config.cache'
+contains results you don't want to keep, you may remove or edit it.
+
+ The file `configure.in' is used to create `configure' by a program
+called `autoconf'. You only need `configure.in' if you want to change
+it or regenerate `configure' using a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes a while. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. You can give `configure'
+initial values for variables by setting them in the environment. Using
+a Bourne-compatible shell, you can do that on the command line like
+this:
+ CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
+
+Or on systems that have the `env' program, you can do it like this:
+ env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not supports the `VPATH'
+variable, you have to compile the package for one architecture at a time
+in the source code directory. After you have installed the package for
+one architecture, use `make distclean' before reconfiguring for another
+architecture.
+
+Installation Names
+==================
+
+ By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' can not figure out
+automatically, but needs to determine by the type of host the package
+will run on. Usually `configure' can figure that out, but if it prints
+a message saying it can not guess the host type, give it the
+`--host=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name with three fields:
+ CPU-COMPANY-SYSTEM
+
+See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the host type.
+
+ If you are building compiler tools for cross-compiling, you can also
+use the `--target=TYPE' option to select the type of system they will
+produce code for and the `--build=TYPE' option to select the type of
+system on which you are compiling the package.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Operation Controls
+==================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--cache-file=FILE'
+ Use and save the results of the tests in FILE instead of
+ `./config.cache'. Set FILE to `/dev/null' to disable caching, for
+ debugging `configure'.
+
+`--help'
+ Print a summary of the options to `configure', and exit.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made.
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`--version'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`configure' also accepts some other, not widely useful, options.
+
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/Makefile
@@ -0,0 +1,12 @@
+all: hello hello-static
+
+hello: hello.c
+ gcc hello.c -o hello
+
+hello-static: hello.c
+ gcc -static hello.c -o hello-static
+
+clean:
+ rm -f hello hello-static
+
+distclean: clean
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/build-spec/orig/hello.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char *argv[]) {
+
+ printf("Hello, World!\n");
+ exit(0);
+}
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/eval/desc b/t/recipes/checks/fields/homepage/legacy-binary/eval/desc
new file mode 100644
index 0000000..6c379cc
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/eval/hints b/t/recipes/checks/fields/homepage/legacy-binary/eval/hints
new file mode 100644
index 0000000..2d1d7a5
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/eval/hints
@@ -0,0 +1,4 @@
+binary (source): homepage-field-uses-insecure-uri http://lintian.debian.org/
+binary-data (binary): homepage-field-uses-insecure-uri http://lintian.debian.org/
+binary (binary): superfluous-clutter-in-homepage <http://lintian.debian.org/>
+binary (binary): homepage-field-uses-insecure-uri <http://lintian.debian.org/>
diff --git a/t/recipes/checks/fields/homepage/legacy-binary/eval/post-test b/t/recipes/checks/fields/homepage/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-binary/eval/post-test
@@ -0,0 +1,3 @@
+s/arch-dep-package-has-big-usr-share .*kB .*%/arch-dep-package-has-big-usr-share/
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/changelog.in
@@ -0,0 +1,33 @@
+relations ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm orphaning this package -- I'm sick of it: it's completely broken,
+ lintian complains all over the place.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 02 Dec 2007 15:59:59 -0800
+
+relations (4) unstable; urgency=low
+
+ * Added a package that tests dependencies for multiple versions of
+ libraries, and test some description stuff in there as well.
+
+ -- Josip Rodin <jrodin@jagor.srce.hr> Fri, 29 Nov 2002 20:13:33 +0100
+
+relations (3) unstable; urgency=low
+
+ * Added a virtual provides to test against my virtual depends without
+ a real package first test
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 8 Feb 2001 11:29:53 -0800
+
+relations (2) unstable; urgency=low
+
+ * Added a depends on dpkg (violates policy) and a versioned depends
+ on bash (follows policy)
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 2 Feb 2001 12:37:17 -0800
+
+relations (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Richard Braakman <dark@xs4all.nl> Tue, 7 Jul 1998 16:27:56 +0200
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/control b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/control
@@ -0,0 +1,51 @@
+Source: relations
+Section: misc
+Priority: optional
+Build-Depends: mail-transport-agent, libc6-dev, findutils, foo (= 3) [!amd64 !i386], bar, arch-test1 [i386], arch-test2 [!i386], quilt (>= 0.40), perl
+Build-Depends-Indep: make, bash, debmake, build-essential, baz (= 2.0), ghostscript | gs,
+ car (>= 1.0), car (<= 2.0), caz (= 1.0) [amd64], caz (>= 2.0) [i386],
+ caz (= 2.0) [powerpc], perl (>= 5.0), foo (<< 4) [!amd64 !i386], libfoo (>= 1.2-1), bozzle [kfreebsd-i386]
+Build-Conflicts: foo [amd64 i386], bar [alpha test], xlibs-dev, arch-test1 [powerpc], arch-test2 [!sparc]
+Build-Conflicts-Indep: debmake [!powerpc]
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Standards-Version: 3.7.3
+Homepage: lintian.debian.org
+Origin: Debian
+Bugs: debbugs://bugs.debian.org/
+
+Package: relations
+Architecture: all
+Section: contrib/misc
+Pre-Depends: awk|gawk
+Depends: relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, ,null (>= 0), ${misc:Depends}, makedev
+Provides: mail-reader
+Replaces: relations
+Conflicts: foobar (<< 5+5), foo, relations,
+ gnuwdf,
+Suggests: alpha, gnu (>= 44-3-4-8-11.4) | ung (<< 89beta) | nug | ngu, beta, some-other-package
+Recommends: emacs21 | emacsen, dpkg, null, some-other-package, ${f-oo:b-ar}, gs | ghostscript | gs-aladdin
+Description: Strange dependency relationships (dummy)
+ This package declares relationships designed to tickle lintian's "fields"
+ check. It should generate a number of tags for these.
+ .
+ The package is built with "dpkg --build --no-check", because some of the
+ relationships used here are normally rejected by dpkg.
+
+Package: relations-multiple-libs
+Architecture: all
+Section: non-free/misc
+Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3, xorg, ${shlibs:Depends}, makedev | udev
+Provides: awk
+Enhances: foo
+Recommends: ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev
+Breaks: libpng3 (<< 1.0), libpng2
+Suggests: x-dev, ghostscript | gs
+Description: Duplicate library dependency relationships.
+ Duplicate library dependency relationships.
+ This tests the depending on different versions of the same library
+ at the same time.
+ .
+ At the same time, it conveniently tests some description file checks. :)
+ .
+ It is a metapackage from the lintian perspective, so the xorg dependency
+ should be allowed.
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/rules b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/rules
@@ -0,0 +1,49 @@
+#!/usr/bin/make -f
+
+# Copyright (C) 1998 Richard Braakman
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, you can find it on the World Wide
+# Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free
+# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+# MA 02110-1301, USA.
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/tmp/DEBIAN
+ dpkg-gencontrol -prelations -isp
+ dpkg --build debian/tmp ../relations_5_all.deb
+ install -d debian/tmp/usr/share/doc/
+ ln -s relations debian/tmp/usr/share/doc/relations-multiple-libs
+ dpkg-gencontrol -prelations-multiple-libs -isp
+ dpkg --build debian/tmp ../relations-multiple-libs_5_all.deb
+
+binary: binary-arch binary-indep
+
+clean::
+ rm -rf debian/tmp debian/files
+
+# Test allowing quilt Build-Depends for manual quilt invocations.
+ TESTING=foo ANOTHER=bar quilt || true
+
+# Test requiring perl Build-Depends for manual perl invocations.
+ [ ! -f Build ] || $(PERL) Build distclean
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/debian/tmp/DEBIAN/control
@@ -0,0 +1,14 @@
+Package: relations-multiple-libs
+Version: 4
+Section: misc
+Priority: optional
+Architecture: all
+Depends: libstdc++2.10, libstdc++2.10-glibc2.2, libstdc++3.0, tk8.2, tk8.3, tcl8.0, tcl8.2, tkx8.2, tkx8.3, tclx8.2, libpng2, libpng3
+Installed-Size: 12
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Source: relations
+Description: Duplicate library dependency relationships.
+ Duplicate library dependency relationships. This tests the depending on
+ different versions of the same library at the same time.
+ .
+ At the same time, it conveniently tests some description file checks. :)
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/build-spec/fill-values b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-relations
+Source: relations
+Version: 5
+Description: Legacy test "relations"
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/eval/desc b/t/recipes/checks/fields/homepage/legacy-relations/eval/desc
new file mode 100644
index 0000000..e6c2700
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: fields/homepage
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/eval/hints b/t/recipes/checks/fields/homepage/legacy-relations/eval/hints
new file mode 100644
index 0000000..c25ed8d
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/eval/hints
@@ -0,0 +1,3 @@
+relations (source): bad-homepage lintian.debian.org
+relations-multiple-libs (binary): bad-homepage lintian.debian.org
+relations (binary): bad-homepage lintian.debian.org
diff --git a/t/recipes/checks/fields/homepage/legacy-relations/eval/post-test b/t/recipes/checks/fields/homepage/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/fields/homepage/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/