summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/debian')
-rw-r--r--t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc6
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc6
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in42
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-general/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-general/eval/hints14
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in8
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in17
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in14
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS7
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules14
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints7
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS6
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news6
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules13
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in45
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in22
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in24
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key81
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key41
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc6
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html8
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in10
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date7
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints3
-rw-r--r--t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in8
-rw-r--r--t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/date-based-version/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/date-based-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-bad/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian6
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in5
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in13
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright24
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex4
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs2
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs1
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex45
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex15
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex25
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex10
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX22
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex157
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex296
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex59
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex156
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex291
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex2
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex41
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex39
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex37
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex40
-rwxr-xr-xt/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules91
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex23
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values7
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile4
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README13
-rwxr-xr-xt/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in5
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints3
-rw-r--r--t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/eval/hints9
-rw-r--r--t/recipes/checks/debian/changelog/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control20
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/improper2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/proper2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/changelog.in10
-rw-r--r--t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/control28
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/rules33
-rw-r--r--t/recipes/checks/debian/changelog/legacy-fields/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-fields/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-fields/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-fields/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in78
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base11
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules231
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/".tif1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/eval/hints4
-rw-r--r--t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test3
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/eval/hints4
-rw-r--r--t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control58
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright8
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst4
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm4
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst10
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm7
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs8
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols3
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules121
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile55
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c6
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c0
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints9
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test4
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in57
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in18
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst181
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postrm47
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst18
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm188
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules35
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers4
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch11
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc5
-rw-r--r--t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in9
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in8
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-version/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/nmu-local-version/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in9
-rw-r--r--t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/package-version-0/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/package-version-0/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in5
-rw-r--r--t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc4
-rw-r--r--t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints0
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base9
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme8
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel6
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series3
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling6
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/changelog/spelling-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc3
-rw-r--r--t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control-file-golang-xs-go-import-path.install1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control.in42
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/basic.c12
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/desc3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hint0
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hints0
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/debian/control.in19
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in18
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/desc3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/hints0
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/hints2
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/control1
-rw-r--r--t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/test-12
-rw-r--r--t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/debian/control.in43
-rw-r--r--t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/debian/control.in33
-rw-r--r--t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/desc5
-rw-r--r--t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints2
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control-file-golang-built-using.install1
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control.in41
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/basic.c12
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/hints2
-rw-r--r--t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/hints3
-rw-r--r--t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/debian/control.in26
-rw-r--r--t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/hints4
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/redundant/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/redundant/control-file-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/control58
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/copyright8
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.postinst4
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.prerm4
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.postinst10
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.prerm7
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.shlibs8
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.symbols3
-rwxr-xr-xt/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/rules121
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/source.lintian-overrides1
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/Makefile55
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/baz.c6
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/extra.c0
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/post-test4
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in22
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints5
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints3
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in30
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/debian/control.in30
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/pre-build6
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/debian/control.in19
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints3
-rw-r--r--t/recipes/checks/debian/control/link/control-file-symlink/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/control/link/control-file-symlink/build-spec/pre-build6
-rw-r--r--t/recipes/checks/debian/control/link/control-file-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/link/control-file-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/control.in81
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/orig/some-file2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/debian/control.in115
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints3
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/control58
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/copyright8
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.postinst4
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.prerm4
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.postinst10
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.prerm7
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.shlibs8
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.symbols3
-rwxr-xr-xt/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/rules121
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/source.lintian-overrides1
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/Makefile55
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/baz.c6
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/extra.c0
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/post-test4
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/control.in118
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/desc11
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints4
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints5
-rw-r--r--t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/copyright23
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/orig/NOTICE1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/hints0
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/debian/copyright23
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE.txt1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/subdir/NOTICE1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/unrel/NOTICE1
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in39
-rwxr-xr-xt/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints0
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/DEBIAN/control.in12
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/control-members1
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-control7
-rwxr-xr-xt/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-data13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/control.in243
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-crln.copyright36
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright661
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright202
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright397
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright206
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright344
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright674
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright171
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright22
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright25
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright5
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-no-errors.copyright36
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright19
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-php.copyright151
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright24
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-versionless.copyright2
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-w3c.copyright95
-rwxr-xr-xt/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/rules14
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-general/eval/hints28
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/control.in28
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright20
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright21
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/control.in95
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache2.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache3.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gfdl.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gpl.copyright14
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl2.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-perl.copyright13
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/desc8
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/hints0
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/control.in40
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/rules22
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/copyright-file-symlink/eval/hints3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev14
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/fill-values6
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/pre-build18
-rw-r--r--t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/desc5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/control.in243
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-crln.copyright36
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright661
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright202
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright397
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright206
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright344
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright674
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright171
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright25
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-no-errors.copyright36
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright19
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-php.copyright151
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright24
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-versionless.copyright2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-w3c.copyright95
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/rules14
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/hints16
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/control.in28
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright20
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/autoconf.texi12
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/dvipdfmx.tex6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/empty.texi5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/emptybis.texi7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/false-positive.rtf125
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.html56
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.texi7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/invariant.txt7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/appendix.txt25
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/badpunctuation.txt8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/cflow.texi12
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/citetitle.po16
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.txt9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.xml6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/comments.po9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/diveintopythonok.html12
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findsutilsokinlinenewline.c15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findutilsok.c15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fonts.html9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fontsMX.html1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.html13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.texi13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexamplesbr.html13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdltexcomments.tex7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.html15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.info14
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.xml15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gtk-doc.po42
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/hyphen-used-as-minus-sign.diff102
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/krusader20
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhref.tex7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyperlink.tex7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyphenslash.tex2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexurl.tex7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/libnss-pgsql.xml7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond.texi6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond2.txt19
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/mailutils.texi6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.html28
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.texi13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/make-stds.texi7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.c13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.texi6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalbkchem.texi6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalhtmlcomment.html9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalmancomment.txt7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalwithbreakathyphen.texi8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/oidentd.89
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/opentoken.txt5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/parsewiki.txt4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partedvariant.txt8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partialtranslation.po15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-R.diff7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-c0.diff18
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-u.diff9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-uR.diff9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch.diff7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/php-elisp.texi19
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/pipeindent.txt7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quotes.xml8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quoteswithasdefined.xml9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/sdlbasic.html11
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/smbc.texi9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/soundjuicer.po8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texignu.texi6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlive.tex8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlivefont.tex6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/tla.txt21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/ulink.xml7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/variantdictfold.txt7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/zeroisnotplural.texi6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldmanpagesgfdlproblem.112
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/debian/copyright30
-rw-r--r--t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/orig/some-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/debian/copyright13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/debian/copyright38
-rw-r--r--t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/orig/COPYING1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/.matches0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/include-this0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright34
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch10
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/copyright11
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/patches/a.patch1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/orig/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/debian/copyright23
-rw-r--r--t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/debian/copyright47
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/figtoipe/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/ipe5toxml/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/pdftoipe/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/svgtoipe/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/desc5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/debian/copyright19
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/orig/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/debian/copyright20
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/README1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/space1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/debian/copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/debian/copyright113
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints14
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/debian/copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/debian/copyright97
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints12
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/debian/copyright19
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/debian/copyright28
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/orig/filea0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/debian/copyright81
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints11
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/post-test4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/debian/copyright379
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/post-test3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/debian/copyright79
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints11
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/post-test4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/debian/copyright16
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/fill-values2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/bad.xml18
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/good.xml18
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/debian/copyright23
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/hints0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/debian/copyright23
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/debian/copyright24
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/debian/copyright23
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/debian/copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/debian/copyright16
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/orig/README1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/copyright29
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/0001-recreate-file.diff6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/.matches0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir-2/filename0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename-20
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-this0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/foolib/false-positive0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints5
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/copyright56
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/plus+file0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints19
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/debian/copyright36
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/NEWS1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/README1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/hints6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/debian/copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/debian/copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/debian/copyright22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/debian/copyright43
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING.CC-BY-SA-3.01
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/LICENSE1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/file,with,commas0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/i-have-no-copyright-information0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/01-file-with-(something-in-parenthesis).png0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/03-even-]-is-not-safe.png0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/04-Perhaps-even-|-will-cause-problems.png0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png0
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints7
-rw-r--r--t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/doc-base9
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/add-readme8
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/nonrel6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/series3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/spelling6
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/spelling-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/debian/copyright35
-rw-r--r--t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/rules13
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.dirs2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.metadata.xml22
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.udev25
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/dep5/udev-rules/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/patches/a.patch1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/orig/a-file1
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/desc3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints3
-rw-r--r--t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/README.Debian6
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/changelog.in5
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/control.in13
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/copyright24
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/cron.d.ex4
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/dirs2
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/docs1
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-install.ex45
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex15
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex25
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex10
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX22
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.ex157
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex296
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.1.ex59
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex156
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.xml.ex291
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/menu.ex2
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postinst.ex41
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postrm.ex39
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/preinst.ex37
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/prerm.ex40
-rwxr-xr-xt/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/rules91
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/watch.ex23
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/fill-values7
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/Makefile4
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/README13
-rwxr-xr-xt/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/pre-build.in5
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/desc4
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/hints5
-rw-r--r--t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/changelog.in2
-rw-r--r--t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/control.in5
-rwxr-xr-xt/recipes/checks/debian/copyright/generic-empty/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/copyright/generic-empty/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/generic-empty/build-spec/orig/README4
-rwxr-xr-xt/recipes/checks/debian/copyright/generic-empty/build-spec/pre-build6
-rw-r--r--t/recipes/checks/debian/copyright/generic-empty/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/generic-empty/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/eval/hints8
-rw-r--r--t/recipes/checks/debian/copyright/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles.only2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/control20
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/improper2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/proper2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-etcfiles/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in10
-rw-r--r--t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control28
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/rules33
-rw-r--r--t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-fields/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-fields/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-fields/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/changelog.in78
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/doc-base11
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/rules231
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/ .tif2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/".tif1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/Maelstrom Sound1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/eval/hints3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-filenames/eval/post-test3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/changelog.in57
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/control.in18
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postinst181
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postrm47
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/preinst18
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/prerm188
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/rules35
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/triggers4
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/watch11
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/copyright/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/copyright/named-copyright-in-source/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/named-copyright-in-source/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/copyright/source-copyright-missing/build-spec/pre-build2
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-missing/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-missing/eval/hints2
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/copyright56
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/plus+file0
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-undefined/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/source-copyright-undefined/eval/hints1
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/doc-base9
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/add-readme8
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/nonrel6
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/series3
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/spelling6
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/copyright/spelling-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config22
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po42
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot42
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates15
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-general/eval/hints4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config5
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in15
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script6
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config9
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po24
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot24
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst10
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm10
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst11
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules16
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints5
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot25
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config6
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst7
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config6
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po241
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po223
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot223
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates124
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints22
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides1
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build7
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/eval/desc3
-rw-r--r--t/recipes/checks/debian/debconf/debconf-traversal/eval/hints0
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/eval/hints49
-rw-r--r--t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates3
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/national-encoding/eval/hints1
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po1
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in3
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po2
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot30
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates10
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US5
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/debconf/po-debconf-general/eval/hints3
-rw-r--r--t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/debian/not-forwarded.desktop1
-rw-r--r--t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/desktop-entries/desktop-file/eval/desc3
-rw-r--r--t/recipes/checks/debian/desktop-entries/desktop-file/eval/hints1
-rw-r--r--t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS62
-rw-r--r--t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS.Debian62
-rw-r--r--t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/filenames/duplicate-news-files/eval/desc3
-rw-r--r--t/recipes/checks/debian/filenames/duplicate-news-files/eval/hints1
-rw-r--r--t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/debian/NEWS.Debian62
-rw-r--r--t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/filenames/news-has-debian-extension/eval/desc3
-rw-r--r--t/recipes/checks/debian/filenames/news-has-debian-extension/eval/hints1
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/changelog.in8
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/orig/dummy1
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/desc2
-rw-r--r--t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/hints2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/debian/lintian-overrides6
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/debian/lintian-overrides6
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/debian/source/lintian-overrides2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/post-build7
-rw-r--r--t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/orig/Makefile18
-rw-r--r--t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/hints4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/debian/source/lintian-overrides1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in28
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd641
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd641
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/overrides2
-rwxr-xr-xt/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/lintian-overrides20
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/manpages1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/orig/foo.132
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/desc4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/manpages1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/overrides-shown.lintian-overrides21
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/orig/foo.132
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/desc5
-rw-r--r--t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/debian/lintian-overrides1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/debian/lintian-overrides1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/desc2
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints1
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in28
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd641
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd641
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc5
-rw-r--r--t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints1
-rw-r--r--t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/debian/maintscript4
-rw-r--r--t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/desc2
-rw-r--r--t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints3
-rwxr-xr-xt/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/bin/not-suitable-for-upstream3
-rw-r--r--t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/not-suitable-for-upstream.11
-rw-r--r--t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/desc9
-rw-r--r--t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/hints1
-rw-r--r--t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/debian/not-forwarded.11
-rw-r--r--t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/manual-pages/manpage-in-1/eval/desc3
-rw-r--r--t/recipes/checks/debian/manual-pages/manpage-in-1/eval/hints1
-rw-r--r--t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/debian/not-installed1
-rw-r--r--t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/desc3
-rw-r--r--t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch10
-rw-r--r--t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch20
-rw-r--r--t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series5
-rw-r--r--t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/count/two-patches/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/count/two-patches/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch15
-rw-r--r--t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc5
-rw-r--r--t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch14
-rw-r--r--t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch15
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch15
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc5
-rw-r--r--t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff41
-rw-r--r--t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc5
-rw-r--r--t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch17
-rw-r--r--t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc5
-rw-r--r--t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints5
-rw-r--r--t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list12
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff7
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints5
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series6
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file11
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file12
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-21
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README1
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints2
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/eval/hints2
-rw-r--r--t/recipes/checks/debian/patches/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/eval/hints2
-rw-r--r--t/recipes/checks/debian/patches/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/eval/hints3
-rw-r--r--t/recipes/checks/debian/patches/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list12
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff7
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series0
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok7
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-17
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok7
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description5
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch8
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description17
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series6
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file11
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file12
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-21
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints3
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok7
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README1
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen5
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars1
-rw-r--r--t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README1
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build32
-rw-r--r--t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/changelog.in33
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/control51
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/rules49
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/tmp/DEBIAN/control14
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test1
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints6
-rw-r--r--t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series0
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-17
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok7
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description5
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch8
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description17
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc3
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints3
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series6
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file11
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file12
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-21
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints6
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch6
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok7
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README1
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/doc-base9
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/add-readme8
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel6
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel28
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series4
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling6
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/copyright21
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/doc-base9
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/add-readme8
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel6
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel28
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series4
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling6
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/patches/spelling-general/eval/hints1
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in1
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po241
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po223
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot223
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates124
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl31
-rwxr-xr-xt/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk8
-rwxr-xr-xt/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build4
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config8
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot37
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po64
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst8
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates22
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints1
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints12
-rw-r--r--t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po1
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in3
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po2
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot30
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates10
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US5
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints8
-rwxr-xr-xt/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config9
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po17
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst7
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates10
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config9
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst7
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates10
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints3
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/eval/desc2
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/eval/hints1
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/eval/post-test1
-rw-r--r--t/recipes/checks/debian/readme/debian-readme-general/build-spec/debian/README.Debian11
-rw-r--r--t/recipes/checks/debian/readme/debian-readme-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/readme/debian-readme-general/eval/desc3
-rw-r--r--t/recipes/checks/debian/readme/debian-readme-general/eval/hints4
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/README.Debian6
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/changelog.in5
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/control.in13
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/copyright24
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/cron.d.ex4
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/dirs2
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/docs1
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-install.ex45
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex15
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex25
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex10
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX22
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.ex157
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex296
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.1.ex59
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex156
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.xml.ex291
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/menu.ex2
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postinst.ex41
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postrm.ex39
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/preinst.ex37
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/prerm.ex40
-rwxr-xr-xt/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/rules91
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/watch.ex23
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/fill-values7
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/Makefile4
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/README13
-rwxr-xr-xt/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/pre-build.in5
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/eval/desc4
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/eval/hints1
-rw-r--r--t/recipes/checks/debian/readme/generic-dh-make-2008/eval/post-test1
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles5
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles.only2
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/control20
-rwxr-xr-xt/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/improper2
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/proper2
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/eval/desc2
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/eval/hints1
-rw-r--r--t/recipes/checks/debian/readme/legacy-etcfiles/eval/post-test1
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/readme/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level3
-rwxr-xr-xt/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level3
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in33
-rwxr-xr-xt/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules24
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile2
-rw-r--r--t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level2
-rwxr-xr-xt/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules17
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints7
-rwxr-xr-xt/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules14
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints4
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules4
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints0
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules4
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules4
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc6
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in1
-rwxr-xr-xt/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules76
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values6
-rwxr-xr-xt/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules4
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules4
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules6
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian6
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in12
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright10
-rwxr-xr-xt/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules100
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values8
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README9
-rwxr-xr-xt/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in5
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints4
-rw-r--r--t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test1
-rw-r--r--t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in2
-rw-r--r--t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in5
-rwxr-xr-xt/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README4
-rwxr-xr-xt/recipes/checks/debian/rules/generic-empty/build-spec/pre-build6
-rw-r--r--t/recipes/checks/debian/rules/generic-empty/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/generic-empty/eval/hints4
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/eval/hints4
-rw-r--r--t/recipes/checks/debian/rules/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control52
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright10
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates3
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst10
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm7
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates3
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm7
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst13
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates3
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config24
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst10
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates101
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de3
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in0
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst9
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates3
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in2
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po66
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po60
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po15
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po15
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output1
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po15
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po1
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot61
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat1
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions1
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/eval/hints2
-rw-r--r--t/recipes/checks/debian/rules/legacy-debconf/eval/post-test1
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles5
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only2
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control20
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper2
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper2
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test1
-rw-r--r--t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in10
-rw-r--r--t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control28
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules33
-rw-r--r--t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/rules/legacy-fields/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/legacy-fields/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/legacy-fields/eval/post-test1
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/eval/hints2
-rw-r--r--t/recipes/checks/debian/rules/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/rules/permissions-775/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/rules/permissions-775/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/permissions-775/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules37
-rw-r--r--t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc3
-rw-r--r--t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints4
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules29
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules34
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-order/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-order/eval/hints5
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules29
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules29
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints0
-rw-r--r--t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in16
-rwxr-xr-xt/recipes/checks/debian/rules/rules-general/build-spec/debian/rules23
-rw-r--r--t/recipes/checks/debian/rules/rules-general/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/rules/rules-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-general/eval/hints8
-rwxr-xr-xt/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-ignore-define/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-ignore-define/eval/hints0
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile3
-rwxr-xr-xt/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc3
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile3
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules5
-rw-r--r--t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc3
-rw-r--r--t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules3
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk2
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints4
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in27
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules5
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-missing-targets/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules13
-rw-r--r--t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-not-makefile/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-not-makefile/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules18
-rw-r--r--t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc5
-rw-r--r--t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints0
-rwxr-xr-xt/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints4
-rw-r--r--t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules11
-rw-r--r--t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints6
-rwxr-xr-xt/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules6
-rw-r--r--t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules12
-rw-r--r--t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints6
-rw-r--r--t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-special-variables/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-special-variables/eval/hints2
-rw-r--r--t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real4
-rw-r--r--t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build6
-rw-r--r--t/recipes/checks/debian/rules/rules-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-symlink/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in16
-rwxr-xr-xt/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints1
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in16
-rwxr-xr-xt/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules8
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc2
-rw-r--r--t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints3
-rw-r--r--t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/rules/rules-variable-targets/eval/desc3
-rw-r--r--t/recipes/checks/debian/rules/rules-variable-targets/eval/hints0
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/control.in48
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.install1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.install1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.install1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.install1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/Makefile23
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/code.c9
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints4
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/libbasic2.symbols4
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/rules15
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/Makefile14
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/basic.c19
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/cpp.cxx14
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/control.in17
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/libbasic2.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/rules10
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/basic.c19
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/control.in25
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/libbasic2.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/basic.c19
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/control.in21
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/libbasic2.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/rules23
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/Makefile26
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/basic.c19
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/eval/desc3
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/binaries-multiarch/eval/post-test2
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/control.in33
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic-dev.install1
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/Makefile24
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/_symbols23
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/changelog.in13
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/control85
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/copyright4
-rwxr-xr-xt/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/rules99
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/hello.c9
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.c7
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.h1
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/eval/desc3
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/eval/hints48
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-debug/eval/post-test2
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/control58
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/copyright8
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.postinst4
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.prerm4
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.postinst10
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.prerm7
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.shlibs8
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.symbols3
-rwxr-xr-xt/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/rules121
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/source.lintian-overrides1
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/Makefile55
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/baz.c6
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/extra.c0
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/legacy-libbaz/eval/hints20
-rwxr-xr-xt/recipes/checks/debian/shlibs/legacy-libbaz/eval/post-test4
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/control.in57
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/rules19
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/Makefile23
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/hints11
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/control.in27
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.install2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.symbols7
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-dev.install3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/Makefile27
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.c16
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.h8
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/control.in27
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo-dev.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/Makefile24
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.c16
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.h8
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/libexecbit1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/Makefile23
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/hints2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/libexecstack1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/Makefile22
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/foo.c9
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/get.c6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/libexecbit1.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/Makefile22
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/code.c12
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/libexecbit1.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/Makefile22
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/code.c13
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-exit/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/libfoo1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/Makefile20
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.install2
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst6
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/control.in47
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install1
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst6
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install1
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst8
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm8
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install1
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm8
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols3
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/rules21
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/Makefile22
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/app2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/libfoo1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/Makefile22
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/libexecbit1.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/Makefile19
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/code.c10
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/desc3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/libhallo1.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/Makefile22
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/code.c10
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/libhallo1.symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/Makefile23
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/code.c10
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/erase-pt-gnu-stack9
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.shlibs1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/orig/some-lib1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile21
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/Makefile.in110
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/symbols3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/Makefile26
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/non-pic.c11
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/desc3
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/post-test1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/control.in48
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libesym1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.symbols10
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libsym1.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/nolibrary.install1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/rules17
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/Makefile22
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/code.c15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/someconf.conf2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/hints9
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/control.in15
-rwxr-xr-xt/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/rules13
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/symbols2
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/triggers1
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/Makefile15
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/foo.c24
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/desc5
-rw-r--r--t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/hints2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints1
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints3
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt1
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints4
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series11
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches11
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file0
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints2
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches11
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc4
-rw-r--r--t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints1
-rw-r--r--t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc2
-rw-r--r--t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints2
-rw-r--r--t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/debian/source/include-binaries3
-rw-r--r--t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/hints1
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/somepackage.substvars1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/substvars1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-diff/build-spec/pre-build34
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-diff/eval/desc3
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-diff/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/substvars1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-native/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-native/build-spec/pre-build32
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-native/eval/desc2
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-native/eval/hints1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/README.source1
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/somepackage.substvars1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/substvars1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/fill-values4
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/pre-build34
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-quilt/eval/desc3
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-quilt/eval/hints2
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/patches/wig-pen5
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/rules9
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/substvars1
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/orig/README1
-rwxr-xr-xt/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/pre-build32
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/desc2
-rw-r--r--t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/hints1
-rw-r--r--t/recipes/checks/debian/symbols/package-placeholder/build-spec/debian/package-placeholder.symbols66
-rw-r--r--t/recipes/checks/debian/symbols/package-placeholder/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/symbols/package-placeholder/eval/desc2
-rw-r--r--t/recipes/checks/debian/symbols/package-placeholder/eval/hints1
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in8
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy1
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc2
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints22
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source6
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in9
-rwxr-xr-xt/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules7
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc2
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints4
-rwxr-xr-xt/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules13
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc2
-rw-r--r--t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/debian/upstream/metadata4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/bogus-field/eval/desc4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/bogus-field/eval/hints5
-rw-r--r--t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/debian/upstream1
-rw-r--r--t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/debian/upstream/metadata7
-rw-r--r--t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/fields-present/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/fields-present/eval/hints7
-rw-r--r--t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/debian/upstream/metadata2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/in-native-source/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/in-native-source/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/debian/upstream/metadata2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/pre-build2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/pre-build11
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/debian/upstream/metadata5
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints7
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/debian/upstream/metadata6
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints7
-rw-r--r--t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/debian/upstream/metadata5
-rw-r--r--t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/hints2
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/debian/upstream/signing-key.asc160
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/desc5
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/debian/upstream/signing-key.asc0
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/debian/upstream/signing-key.asc101
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/desc4
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream-signing-key.pgp52
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream/signing-key.asc52
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/watch5
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/debian/upstream/signing-key.asc160
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/debian/upstream/signing-key.asc1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/desc2
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints1
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/debian/upstream/signing-key.asc153
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/desc4
-rw-r--r--t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/hints1
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/a-file1
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/install1
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-install/eval/desc4
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-install/eval/hints1
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/a-file1
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/links1
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-links/eval/desc4
-rw-r--r--t/recipes/checks/debian/variables/build-multiarch-in-links/eval/hints1
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/NEWS.Debian12
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/changelog.in47
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/conffiles1
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/control42
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/copyright15
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/doc-base41
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/goodbye.desktop13
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/hello.desktop14
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/menu26
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/menu-method22
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/postinst6
-rwxr-xr-xt/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/rules92
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/templates16
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/orig/INSTALL176
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/orig/Makefile12
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/orig/hello.c8
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/eval/desc2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/eval/hints2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-binary/eval/post-test3
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/README.Debian5
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/changelog.in7
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles5
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles.only2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/control20
-rwxr-xr-xt/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/rules64
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/improper2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/proper2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/desc2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/hints1
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/post-test1
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/changelog.in6
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/control58
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/copyright8
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.postinst4
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.prerm4
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.postinst10
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.prerm7
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.shlibs8
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.symbols3
-rwxr-xr-xt/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/rules121
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/source.lintian-overrides1
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/Makefile55
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/baz.c6
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/extra.c0
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/desc2
-rw-r--r--t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/hints2
-rwxr-xr-xt/recipes/checks/debian/version-substvars/legacy-libbaz/eval/post-test4
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/debian/control.in62
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-general/eval/desc2
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-general/eval/hints7
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in57
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc3
-rw-r--r--t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints8
-rw-r--r--t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc1
-rw-r--r--t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/fill-values6
-rwxr-xr-xt/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/pre-build18
-rw-r--r--t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/desc3
-rw-r--r--t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/filenamemangle/build-spec/debian/watch5
-rw-r--r--t/recipes/checks/debian/watch/filenamemangle/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/filenamemangle/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/filenamemangle/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/README.Debian6
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/changelog.in5
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/compat.in1
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/control.in13
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/copyright24
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/cron.d.ex4
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/dirs2
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/docs1
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-install.ex45
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex15
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex25
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex10
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX22
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.ex157
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex296
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.1.ex59
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex156
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.xml.ex291
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/menu.ex2
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postinst.ex41
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postrm.ex39
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/preinst.ex37
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/prerm.ex40
-rwxr-xr-xt/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/rules91
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/watch.ex23
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/fill-values7
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/Makefile4
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/README13
-rwxr-xr-xt/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/pre-build.in5
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/eval/desc4
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/generic-dh-make-2008/eval/post-test1
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/changelog.in57
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/control.in18
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postinst181
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postrm47
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/preinst18
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/prerm188
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/rules35
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/triggers4
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/watch11
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/hints4
-rw-r--r--t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/watch/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/eval/hints7
-rw-r--r--t/recipes/checks/debian/watch/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/debian/watch11
-rw-r--r--t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/comments-only/build-spec/debian/watch2
-rw-r--r--t/recipes/checks/debian/watch/standard/comments-only/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/comments-only/eval/desc7
-rw-r--r--t/recipes/checks/debian/watch/standard/comments-only/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/changelog.in31
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/control30
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/copyright7
-rwxr-xr-xt/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/rules36
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/fill-values5
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-foo++/eval/post-test1
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/changelog.in41
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/control.in16
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/copyright5
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list11
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list.sparc1
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00options1
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch7
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch5
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch7
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postinst14
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postrm9
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/preinst15
-rwxr-xr-xt/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/rules105
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/scripts.conffiles6
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/watch8
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/fill-values6
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/csh-foo2
-rwxr-xr-xt/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/envfoo4
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/fish-foo2
-rwxr-xr-xt/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/gccbug.dpatch39
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/guile-bizarre6
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-broken34
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-other22
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-no-lsb17
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-skeleton150
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/jruby-broken2
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/lefty-foo2
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/make-foo3
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-111
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-27
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-36
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perlfoo3
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpenvfoo7
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpfoo7
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/rubyfoo4
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/sh-broken2
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/suidperlfoo3
-rwxr-xr-xt/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/tkfoo31
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/wishfoo4
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/xsession-test3
-rwxr-xr-xt/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/pre-build5
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/eval/hints3
-rw-r--r--t/recipes/checks/debian/watch/standard/legacy-scripts/eval/post-test1
-rw-r--r--t/recipes/checks/debian/watch/standard/no-version/build-spec/debian/watch1
-rw-r--r--t/recipes/checks/debian/watch/standard/no-version/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/no-version/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/no-version/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/version-1/build-spec/debian/watch2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-1/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/version-1/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-1/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/version-2/build-spec/debian/watch2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-2/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/version-2/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-2/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-3/build-spec/debian/watch2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-3/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/version-3/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-3/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-4/build-spec/debian/watch2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-4/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/version-4/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-4/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/version-5/build-spec/debian/watch2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-5/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/standard/version-5/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/standard/version-5/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/changelog.in14
-rw-r--r--t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/upstream/signing-key.asc52
-rw-r--r--t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/watch32
-rw-r--r--t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/standard/watch-file-general/eval/desc3
-rw-r--r--t/recipes/checks/debian/watch/standard/watch-file-general/eval/hints4
-rw-r--r--t/recipes/checks/debian/watch/two-upstream-components/build-spec/debian/watch6
-rw-r--r--t/recipes/checks/debian/watch/two-upstream-components/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/two-upstream-components/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/two-upstream-components/eval/hints3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/upstream/signing-key.asc1
-rw-r--r--t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/watch4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-bug-765995/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-bug-765995/eval/hints3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/changelog.in14
-rw-r--r--t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/upstream/signing-key.asc52
-rw-r--r--t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/watch32
-rw-r--r--t/recipes/checks/debian/watch/watch-file-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-general/eval/desc3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-general/eval/hints24
-rw-r--r--t/recipes/checks/debian/watch/watch-file-native/build-spec/debian/watch5
-rw-r--r--t/recipes/checks/debian/watch/watch-file-native/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-native/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-native/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/changelog.in14
-rw-r--r--t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/watch3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc1
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/watch5
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/desc4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/debian/watch3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/desc4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/debian/watch3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-prerelease/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-prerelease/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/debian/watch3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/hints2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/debian/watch4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/desc4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints1
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/debian/watch11
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/fill-values4
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-should-mangle/eval/hints3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-template/build-spec/debian/watch3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-template/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/watch/watch-file-template/eval/desc2
-rw-r--r--t/recipes/checks/debian/watch/watch-file-template/eval/hints3
3279 files changed, 49624 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values
new file mode 100644
index 0000000..a9262a1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-distribution-does-not-match-changes-file
+Skeleton: upload-native
+Distribution: experimental
+Description: Test upload with unstable in changes but experimental in changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in
new file mode 100755
index 0000000..10a61dc
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/build-spec/post-build.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+perl -pi -e 's/^(Distribution:)\s+\S+/$1 unstable/' [% $build_product %]
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc
new file mode 100644
index 0000000..d46c519
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-distribution-does-not-match-changes-file
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints
new file mode 100644
index 0000000..cede117
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-distribution-does-not-match-changes-file/eval/hints
@@ -0,0 +1 @@
+changelog-distribution-does-not-match-changes-file (binary): changelog-distribution-does-not-match-changes-file experimental != unstable [usr/share/doc/changelog-distribution-does-not-match-changes-file/changelog.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in
new file mode 100644
index 0000000..36992ba
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (0.1-2) unstable; urgency=low
+
+ * An earlier non-native version.
+
+ -- [% $author %] Tue, 1 Jan 2008 22:45:57 +0000
diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values
new file mode 100644
index 0000000..1d3073c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-become-native
+Description: Test for packages where the version suddenly becomes native
diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc
new file mode 100644
index 0000000..4294061
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-become-native
+See-Also: Debian Bug #504070
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints
new file mode 100644
index 0000000..05caab0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-become-native/eval/hints
@@ -0,0 +1 @@
+changelog-file-become-native (source): odd-historical-debian-changelog-version 0.1-2 (for native) [debian/changelog:8]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in
new file mode 100644
index 0000000..363fcc6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Version reused, new source package name.
+
+ -- [% $author %] [% $date %]
+
+[% $source %]-oldname (1.0-3) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values
new file mode 100644
index 0000000..0e3cdbf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-consecutive-debian-revision-unrel
+Skeleton: upload-non-native
+Description: Check for false positive in non-consecutive-debian-revision
diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc
new file mode 100644
index 0000000..a78a0ae
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-consecutive-debian-revision-unrel
+Test-Against: non-consecutive-debian-revision
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-consecutive-debian-revision-unrel/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules
new file mode 100755
index 0000000..c8b797a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+PKG:=$(shell dh_listpackages)
+DOC_DIR:=debian/$(PKG)/usr/share/doc/$(PKG)
+
+%:
+ dh $@
+
+override_dh_md5sums:
+ mv $(DOC_DIR)/changelog.gz $(DOC_DIR)/changelog.Debian.gz
+ dh_md5sums
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values
new file mode 100644
index 0000000..37405fe
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-dch-wrong-name-native
+Description: Test if Debian changelog has the wrong name
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc
new file mode 100644
index 0000000..3595388
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-dch-wrong-name-native
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints
new file mode 100644
index 0000000..dae41ee
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name-native/eval/hints
@@ -0,0 +1 @@
+changelog-file-dch-wrong-name-native (binary): wrong-name-for-changelog-of-native-package [usr/share/doc/changelog-file-dch-wrong-name-native/changelog.Debian.gz]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules
new file mode 100755
index 0000000..2d5cd31
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+PKG:=$(shell dh_listpackages)
+DOC_DIR:=debian/$(PKG)/usr/share/doc/$(PKG)
+
+%:
+ dh $@
+
+override_dh_md5sums:
+ mv $(DOC_DIR)/changelog.Debian.gz $(DOC_DIR)/changelog.debian.gz
+ dh_md5sums
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values
new file mode 100644
index 0000000..80de357
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-dch-wrong-name
+Skeleton: upload-non-native
+Description: Test if Debian changelog has the wrong name
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog
new file mode 100644
index 0000000..a935b07
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/build-spec/orig/ChangeLog
@@ -0,0 +1,5 @@
+2011-09-10 Niels Thykier <niels@thykier.net>
+
+ * This is a non-Debian ChangeLog. Lintian should not be tricked
+ to believe this is a Debian changelog.
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc
new file mode 100644
index 0000000..ba278f1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-dch-wrong-name
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints
new file mode 100644
index 0000000..b726e93
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-dch-wrong-name/eval/hints
@@ -0,0 +1 @@
+changelog-file-dch-wrong-name (binary): wrong-name-for-debian-changelog-file [usr/share/doc/changelog-file-dch-wrong-name/changelog.debian.gz]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in
new file mode 100644
index 0000000..107f854
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) UNRELEASED; urgency=low
+
+ * .
+ *
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (0.1) unstable; urgency=low
+
+ * First upload (Closes: #123456).
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values
new file mode 100644
index 0000000..e0f238f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-empty-entry-unrel
+Description: Check changelog empty entry (UNRELEASED)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc
new file mode 100644
index 0000000..7e2446f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-empty-entry-unrel
+Test-Against: changelog-empty-entry
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints
new file mode 100644
index 0000000..2b08d4c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry-unrel/eval/hints
@@ -0,0 +1 @@
+changelog-file-empty-entry-unrel (binary): debian-changelog-line-too-short . [usr/share/doc/changelog-file-empty-entry-unrel/changelog.gz:3]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in
new file mode 100644
index 0000000..27fbf38
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * .
+ *
+
+ --
+
+[% $source %] (0.1) unstable; urgency=low
+
+ * First upload (Closes: #123456).
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values
new file mode 100644
index 0000000..30bc2c8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-empty-entry
+Description: Check changelog empty entry
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc
new file mode 100644
index 0000000..a884875
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-empty-entry
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints
new file mode 100644
index 0000000..a1252e4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-empty-entry/eval/hints
@@ -0,0 +1,4 @@
+changelog-file-empty-entry (binary): syntax-error-in-debian-changelog "found start of entry where expected more change data or trailer" [usr/share/doc/changelog-file-empty-entry/changelog.gz:8]
+changelog-file-empty-entry (binary): syntax-error-in-debian-changelog "badly formatted trailer line" [usr/share/doc/changelog-file-empty-entry/changelog.gz:6]
+changelog-file-empty-entry (binary): debian-changelog-line-too-short . [usr/share/doc/changelog-file-empty-entry/changelog.gz:3]
+changelog-file-empty-entry (binary): changelog-empty-entry [usr/share/doc/changelog-file-empty-entry/changelog.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in
new file mode 100644
index 0000000..eb930a3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/debian/changelog.in
@@ -0,0 +1,11 @@
+[% $source %] (1:[% $version %]) unstable; urgency=low
+
+ * This changelog entry introduces a version prefix.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (999999) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values
new file mode 100644
index 0000000..4150aae
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-epoch-change-without-comment-new
+Description: Check changelog for accidental epoch changes
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc
new file mode 100644
index 0000000..f91cffa
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-epoch-change-without-comment-new
+Test-Against:
+ epoch-changed-but-upstream-version-did-not-go-backwards
+ latest-debian-changelog-entry-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints
new file mode 100644
index 0000000..5a62f5b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-new/eval/hints
@@ -0,0 +1 @@
+changelog-file-epoch-change-without-comment-new (source): epoch-change-without-comment 999999 -> 1:1.0 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in
new file mode 100644
index 0000000..c3fcc68
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/debian/changelog.in
@@ -0,0 +1,11 @@
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * This changelog entry has the same prefix as before.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (2:0) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values
new file mode 100644
index 0000000..986d64d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-epoch-change-without-comment-same
+Description: Check changelog for accidental epoch changes (false positive)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc
new file mode 100644
index 0000000..13e9349
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-epoch-change-without-comment-same
+Test-Against:
+ epoch-change-without-comment
+ epoch-changed-but-upstream-version-did-not-go-backwards
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-same/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in
new file mode 100644
index 0000000..785572f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * This changelog entry bumps the epoch and references the word in the
+ changelog.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1:999999) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values
new file mode 100644
index 0000000..2a74c76
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-epoch-change-without-comment-unrel
+Description: Check changelog for accidental epoch changes (false positive)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc
new file mode 100644
index 0000000..f2bb59b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/desc
@@ -0,0 +1,6 @@
+Testname: changelog-file-epoch-change-without-comment-unrel
+Test-Against:
+ epoch-change-without-comment
+ epoch-changed-but-upstream-version-did-not-go-backwards
+ latest-debian-changelog-entry-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment-unrel/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in
new file mode 100644
index 0000000..c8a9ab0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/debian/changelog.in
@@ -0,0 +1,11 @@
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * This changelog entry bumps the version.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1:99999999) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values
new file mode 100644
index 0000000..9bcb203
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-epoch-change-without-comment
+Description: Check changelog for accidental epoch changes
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc
new file mode 100644
index 0000000..538582f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-epoch-change-without-comment
+Test-Against:
+ epoch-changed-but-upstream-version-did-not-go-backwards
+ latest-debian-changelog-entry-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints
new file mode 100644
index 0000000..c8fe1d5
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-change-without-comment/eval/hints
@@ -0,0 +1 @@
+changelog-file-epoch-change-without-comment (source): epoch-change-without-comment 1:99999999 -> 2:1.0 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in
new file mode 100644
index 0000000..c7a1b0c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * This changelog entry bumps the epoch and the upstream version number
+ decreased (correctly).
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1:9999999) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values
new file mode 100644
index 0000000..b39c267
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-epoch-changed-upstream-version-decrease
+Description: Check changelog for accidental epoch changes (decrease)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc
new file mode 100644
index 0000000..4239848
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/desc
@@ -0,0 +1,6 @@
+Testname: changelog-file-epoch-changed-upstream-version-decrease
+Test-Against:
+ epoch-change-without-comment
+ epoch-changed-but-upstream-version-did-not-go-backwards
+ latest-debian-changelog-entry-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-decrease/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in
new file mode 100644
index 0000000..49c0a3d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * This changelog entry bumps the epoch and the upstream version number
+ increased too.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1:0.9-4) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values
new file mode 100644
index 0000000..c2167bf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: changelog-file-epoch-changed-upstream-version-increase
+Version: 1.0-3
+Description: Check changelog for accidental epoch changes (increase)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc
new file mode 100644
index 0000000..6113173
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-epoch-changed-upstream-version-increase
+Test-Against:
+ epoch-change-without-comment
+ latest-debian-changelog-entry-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints
new file mode 100644
index 0000000..2ac17d4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-increase/eval/hints
@@ -0,0 +1 @@
+changelog-file-epoch-changed-upstream-version-increase (source): epoch-changed-but-upstream-version-did-not-go-backwards 1:0.9-4 -> 2:1.0-3 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in
new file mode 100644
index 0000000..a992b11
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/debian/changelog.in
@@ -0,0 +1,11 @@
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * This changelog entry bumps the epoch but not the upstream version number,
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1:[% $version %]) unstable; urgency=low
+
+ * Initial upload.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values
new file mode 100644
index 0000000..86e8493
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: changelog-file-epoch-changed-upstream-version-same
+Version: 1.0-3
+Description: Check changelog for accidental epoch changes (same)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc
new file mode 100644
index 0000000..b5c1b45
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-epoch-changed-upstream-version-same
+Test-Against:
+ epoch-change-without-comment
+ latest-debian-changelog-entry-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints
new file mode 100644
index 0000000..8bb66ca
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-epoch-changed-upstream-version-same/eval/hints
@@ -0,0 +1,2 @@
+changelog-file-epoch-changed-upstream-version-same (source): latest-debian-changelog-entry-reuses-existing-version 2:1.0-3 ~ 1:1.0-3 (last used: Fri, 06 Feb 2009 22:22:37 -0800) [debian/changelog:1]
+changelog-file-epoch-changed-upstream-version-same (source): epoch-changed-but-upstream-version-did-not-go-backwards 1:1.0-3 -> 2:1.0-3 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in
new file mode 100644
index 0000000..71b790a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- Russ Allbery <rra@debian.org> [% $date %]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values
new file mode 100644
index 0000000..0239f93
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-file-etch-nmu
+Skeleton: upload-non-native
+Version: 1.0-1etch1.1
+Description: Test for a code name in an unstable upload
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc
new file mode 100644
index 0000000..5904a7d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-etch-nmu
+Test-Against:
+ malformed-debian-changelog-version
+ version-refers-to-distribution
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch-nmu/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values
new file mode 100644
index 0000000..1d1817f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-file-etch
+Skeleton: upload-non-native
+Version: 1.0-1etch1
+Description: Test for a code name in an unstable upload
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc
new file mode 100644
index 0000000..03dd7f8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-file-etch
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints
new file mode 100644
index 0000000..8b1b701
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-etch/eval/hints
@@ -0,0 +1 @@
+changelog-file-etch (source): version-refers-to-distribution 1.0-1etch1 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in
new file mode 100644
index 0000000..01e7403
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Upload to sid.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0-1) experimental; urgency=low
+
+ * First upload to experimental.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values
new file mode 100644
index 0000000..dc465ac
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: changelog-file-experimental-false-positive
+Version: 1.0-3
+Description: Check experimental to unstable changes false positive
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc
new file mode 100644
index 0000000..4e6018a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-experimental-false-positive
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints
new file mode 100644
index 0000000..318b4f2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental-false-positive/eval/hints
@@ -0,0 +1 @@
+changelog-file-experimental-false-positive (source): non-consecutive-debian-revision 1.0-1 -> 1.0-3 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in
new file mode 100644
index 0000000..b8b07af
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0-1) experimental; urgency=low
+
+ * First upload to experimental.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values
new file mode 100644
index 0000000..562583b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: changelog-file-experimental
+Version: 1.0-3
+Description: Check experimental to unstable changes
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc
new file mode 100644
index 0000000..e48f09b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-experimental
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints
new file mode 100644
index 0000000..58aaeee
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-experimental/eval/hints
@@ -0,0 +1,2 @@
+changelog-file-experimental (source): non-consecutive-debian-revision 1.0-1 -> 1.0-3 [debian/changelog:1]
+changelog-file-experimental (binary): experimental-to-unstable-without-comment [usr/share/doc/changelog-file-experimental/changelog.Debian.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs
new file mode 100644
index 0000000..6d10dce
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/debian/docs
@@ -0,0 +1 @@
+changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values
new file mode 100644
index 0000000..6d6ac8c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-extra-upstream
+Skeleton: upload-non-native
+Description: Check a package with ChangeLog and changelog.gz
diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog
new file mode 100644
index 0000000..2d85e10
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/build-spec/orig/changelog
@@ -0,0 +1 @@
+This is some upstream changelog file.
diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc
new file mode 100644
index 0000000..8520129
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-extra-upstream
+Test-Against: changelog-file-not-compressed
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-extra-upstream/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..d73efdd
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/changelog.in
@@ -0,0 +1,42 @@
+[% $source %] (1:[% $version %]) unstable; urgency=low
+
+
+ * Test: [% $testname %]
+ * Upload to experimental.
+ * improbable-bug-number-in-closes (Closes: #1234)
+ * Another bug closer without a colon (Closes #555555)
+ * This line is too long since it contains words and words and words but doesn't
+ have any wrapping except at column 81.
+ * http://www.example.com/but-a-really-long-url-does-not-count-as-a-long-line-at-all
+ See http://www.example.com/but-a-really-long-url-does-not-count-as-a-long-line-at-all
+ even if preceded by See.
+ * Misspelled Closes (Close: #666666)
+
+ * Here is another really long in the changelog, and it would be really nice if a
+ certain program would report its line number correctly. Especially since,
+ we have an extra empty line in the start of the entry.
+
+ * Below is another very long line (UTF-8), which should have a "visual" width
+ of ~75 characters, but consists of over 200 bytes.
+ üüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüüü
+
+ * It might even fix TEMP-1234567-abcdef, though probably not.
+ * We refer to the epoch bump here.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Duplicate changelog entry to trigger tags.
+
+ -- Unknown <unknown@unknown> [% $date %]
+
+[% $source %] (0.1) unstable; urgency=low
+
+ * Used to be a syntax error here.
+
+ -- [% $author %] [% $date %]
+
+Local variables:
+add-log-mailing-address: "rra@debian.org"
+End:
diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules
new file mode 100755
index 0000000..9171128
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+pkg = $(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_installchangelogs:
+ install -c -m 644 debian/changelog \
+ debian/$(pkg)/usr/share/doc/$(pkg)/changelog.Debian
+ gzip -1 -n debian/$(pkg)/usr/share/doc/$(pkg)/changelog.Debian
diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values
new file mode 100644
index 0000000..ec70647
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-general
+Skeleton: upload-non-native
+Description: General tests for changelog-file tags
diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-general/eval/desc
new file mode 100644
index 0000000..b5e38e0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-general/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-file-general
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-general/eval/hints
new file mode 100644
index 0000000..083916b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-general/eval/hints
@@ -0,0 +1,14 @@
+changelog-file-general (source): latest-debian-changelog-entry-without-new-date [debian/changelog:1]
+changelog-file-general (source): latest-debian-changelog-entry-reuses-existing-version 1:1.0-1 ~ 1.0-1 (last used: CURRENT) [debian/changelog:1]
+changelog-file-general (source): epoch-changed-but-upstream-version-did-not-go-backwards 1.0-1 -> 1:1.0-1 [debian/changelog:1]
+changelog-file-general (binary): possible-missing-colon-in-closes Closes #555555 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1]
+changelog-file-general (binary): misspelled-closes-bug Close: #666666 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1]
+changelog-file-general (binary): latest-changelog-entry-without-new-date [usr/share/doc/changelog-file-general/changelog.Debian.gz:1]
+changelog-file-general (binary): improbable-bug-number-in-closes 1234 [usr/share/doc/changelog-file-general/changelog.Debian.gz:1]
+changelog-file-general (binary): debian-changelog-line-too-long [usr/share/doc/changelog-file-general/changelog.Debian.gz:8]
+changelog-file-general (binary): debian-changelog-line-too-long [usr/share/doc/changelog-file-general/changelog.Debian.gz:15]
+changelog-file-general (binary): debian-changelog-file-contains-obsolete-user-emacs-settings [usr/share/doc/changelog-file-general/changelog.Debian.gz:41]
+changelog-file-general (binary): changelog-references-temp-security-identifier TEMP-1234567-abcdef [usr/share/doc/changelog-file-general/changelog.Debian.gz:1]
+changelog-file-general (binary): changelog-not-compressed-with-max-compression [usr/share/doc/changelog-file-general/changelog.Debian.gz]
+changelog-file-general (binary): bogus-mail-host-in-debian-changelog unknown@unknown (for version 1.0-1) [usr/share/doc/changelog-file-general/changelog.Debian.gz:28]
+changelog-file-general (binary): bad-intended-distribution intended for experimental but uploaded to unstable [usr/share/doc/changelog-file-general/changelog.Debian.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test b/t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test
new file mode 100644
index 0000000..a84cbe8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-general/eval/post-test
@@ -0,0 +1 @@
+s/\(last used: ([^\)]+*)\)/(last used: CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in
new file mode 100644
index 0000000..fdf11f7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/changelog.in
@@ -0,0 +1,8 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+ * Writes out "Sept" and "Thurs"; should be "Sep" and "Thu".
+
+ -- [% $author %] Thurs, 14 Sept 2017 10:47:43 +0000
diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in
new file mode 100644
index 0000000..c770eac
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: 4.1.0
+Build-Depends: [% $build_depends %]
+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/debian/changelog/changelog-file-invalid-date/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/fill-values
new file mode 100644
index 0000000..d0d3f38
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-invalid-date
+Description: Test for invalid dates
diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc
new file mode 100644
index 0000000..d58b493
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-file-invalid-date
+Test-Against:
+ debian-changelog-has-wrong-day-of-week
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints
new file mode 100644
index 0000000..472360d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-invalid-date/eval/hints
@@ -0,0 +1,2 @@
+changelog-file-invalid-date (binary): invalid-date-in-debian-changelog (Thurs -> Thu) [usr/share/doc/changelog-file-invalid-date/changelog.gz:1]
+changelog-file-invalid-date (binary): invalid-date-in-debian-changelog (Sept -> Sep) [usr/share/doc/changelog-file-invalid-date/changelog.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in
new file mode 100644
index 0000000..b700347
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/debian/changelog.in
@@ -0,0 +1,17 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ * The following lines are too short.
+ * R³
+ * dh 11
+ * 12345
+
+ * The following entries are long enough.
+ * dh 11.
+ * 123456
+
+ * These are false positives.
+ * 123:
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values
new file mode 100644
index 0000000..719e316
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-line-too-short
+Skeleton: upload-non-native
+Description: Test for short changelog entries
diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc
new file mode 100644
index 0000000..9681924
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-line-too-short
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints
new file mode 100644
index 0000000..92d4bf6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-line-too-short/eval/hints
@@ -0,0 +1,3 @@
+changelog-file-line-too-short (binary): debian-changelog-line-too-short dh 11 [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:7]
+changelog-file-line-too-short (binary): debian-changelog-line-too-short R³ [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:6]
+changelog-file-line-too-short (binary): debian-changelog-line-too-short 12345 [usr/share/doc/changelog-file-line-too-short/changelog.Debian.gz:8]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in
new file mode 100644
index 0000000..ea010a2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) stable-proposed-updates; urgency=low
+
+ * New version.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (0.9-1) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] Tue, 1 Jan 2008 22:45:57 +0000
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values
new file mode 100644
index 0000000..2bdf496
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-file-missing-explicit-entry
+Skeleton: upload-non-native
+Version: 1.2-3+deb9u1
+Description: Test for missing (stable update, etc.) entries
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc
new file mode 100644
index 0000000..f2805f3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-missing-explicit-entry
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints
new file mode 100644
index 0000000..b24457e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing-explicit-entry/eval/hints
@@ -0,0 +1 @@
+changelog-file-missing-explicit-entry (source): changelog-file-missing-explicit-entry 0.9-1 -> 1.2-3 (missing) -> 1.2-3+deb9u1 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules
new file mode 100755
index 0000000..a687494
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+
+override_dh_md5sums:
+ find debian/*/ -type f -a -name 'changelog*' -delete
+ dh_md5sums
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values
new file mode 100644
index 0000000..fb5b402
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-missing
+Skeleton: upload-non-native
+Description: Test if Debian changelog is missing
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc
new file mode 100644
index 0000000..c3c534b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-missing
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints
new file mode 100644
index 0000000..de5ad15
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-missing/eval/hints
@@ -0,0 +1 @@
+changelog-file-missing (binary): no-changelog usr/share/doc/changelog-file-missing/changelog.Debian.gz (non-native package)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in
new file mode 100644
index 0000000..18d0420
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/debian/changelog.in
@@ -0,0 +1,14 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * New upstream bugfix release.
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0-1) unstable; urgency=low
+
+ * Old changelog entry to trigger the tag.
+
+ -- [% $author %] Sat, 20 Mar 2010 16:09:18 -0700
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values
new file mode 100644
index 0000000..c26e446
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-file-new-upstream
+Skeleton: upload-non-native
+Version: 1.0-2
+Description: Check a new upstream version without a version change
diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc
new file mode 100644
index 0000000..dca2515
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-new-upstream
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints
new file mode 100644
index 0000000..6c35244
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-new-upstream/eval/hints
@@ -0,0 +1 @@
+changelog-file-new-upstream (source): possible-new-upstream-release-without-new-version [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS
new file mode 100644
index 0000000..6a69656
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/NEWS
@@ -0,0 +1,7 @@
+changelog-file-news-and-changelog-not-compressed (1.0) unstable; urgency=low
+
+ Something incredibly important... or maybe this is just a
+ lintian test for an uncompressed NEWS file.
+
+ -- Niels Thykier <niels@thykier.net> Wed, 10 Aug 2011 21:09:24 +0200
+ \ No newline at end of file
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules
new file mode 100755
index 0000000..f957b51
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+pkg = $(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_installchangelogs:
+ install -c -m 644 debian/changelog \
+ debian/$(pkg)/usr/share/doc/$(pkg)/changelog
+ install -c -m 644 debian/NEWS \
+ debian/$(pkg)/usr/share/doc/$(pkg)/NEWS.Debian
+
+override_dh_compress:
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values
new file mode 100644
index 0000000..8fc7c20
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-news-and-changelog-not-compressed
+Description: General tests for changelog-file tags
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc
new file mode 100644
index 0000000..9d29525
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-news-and-changelog-not-compressed
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints
new file mode 100644
index 0000000..2715a6c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-and-changelog-not-compressed/eval/hints
@@ -0,0 +1,2 @@
+changelog-file-news-and-changelog-not-compressed (binary): debian-news-file-not-compressed [usr/share/doc/changelog-file-news-and-changelog-not-compressed/NEWS.Debian]
+changelog-file-news-and-changelog-not-compressed (binary): changelog-file-not-compressed [usr/share/doc/changelog-file-news-and-changelog-not-compressed/changelog]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS
new file mode 100644
index 0000000..e5ca0f2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/debian/NEWS
@@ -0,0 +1,11 @@
+changelog-file-news-general (1.0) UNRELEASED; urgency=high
+
+ * This is a major change, which shouldn't be using an asterisk. It also
+ has an ISO 8859-1 character: µ and a speling error.
+
+ -- Russ Allbery <rra@debian.org> Fri, 01 Jan 2010 20:57:15 -0800
+changelog-file-news-general (0.9) unstable; urgency=low
+
+ Another entry, this one with a syntax error in the date.
+
+ -- Russ Allbery <rra@debian.org> Fri, 01 Jan 2010 20:57:15 -080
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values
new file mode 100644
index 0000000..7b9e061
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-news-general
+Description: General checks for NEWS.Debian
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc
new file mode 100644
index 0000000..83f65c2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-news-general
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints
new file mode 100644
index 0000000..e04e26e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-general/eval/hints
@@ -0,0 +1,7 @@
+changelog-file-news-general (binary): syntax-error-in-debian-news-file "found eof where expected more change data or trailer" [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:12]
+changelog-file-news-general (binary): syntax-error-in-debian-news-file "badly formatted trailer line" [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:11]
+changelog-file-news-general (binary): spelling-error-in-news-debian speling spelling [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz]
+changelog-file-news-general (binary): debian-news-entry-uses-asterisk [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1]
+changelog-file-news-general (binary): debian-news-entry-has-strange-distribution UNRELEASED [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1]
+changelog-file-news-general (binary): changelog-news-debian-mismatch Urgency low != high [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1]
+changelog-file-news-general (binary): changelog-news-debian-mismatch Distribution unstable != UNRELEASED [usr/share/doc/changelog-file-news-general/NEWS.Debian.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS
new file mode 100644
index 0000000..a4be560
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/debian/NEWS
@@ -0,0 +1,6 @@
+changelog-file-news-version (2.0) unstable; urgency=low
+
+ This is some news entry about something.
+
+ -- Russ Allbery <rra@debian.org> Fri, 01 Jan 2010 22:09:12 -0800
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values
new file mode 100644
index 0000000..6b75823
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-news-version
+Description: Check mismatches of the NEWS.Debian version
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc
new file mode 100644
index 0000000..ddeddca
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-news-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints
new file mode 100644
index 0000000..6f9c9f0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-version/eval/hints
@@ -0,0 +1 @@
+changelog-file-news-version (binary): debian-news-entry-has-unknown-version 2.0 [usr/share/doc/changelog-file-news-version/NEWS.Debian.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news
new file mode 100644
index 0000000..928a48c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/package-news
@@ -0,0 +1,6 @@
+changelog-file-wrong-name (1.0) unstable; urgency=low
+
+ Some interesting information.
+
+ -- Niels Thykier <niels@thykier.net> Sun, 22 Jul 2012 20:30:00 +0000
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules
new file mode 100755
index 0000000..952d45a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+PKG=$(shell dh_listpackages)
+DOC=debian/$(PKG)/usr/share/doc/$(PKG)
+
+%:
+ dh $@
+
+override_dh_installchangelogs:
+ dh_installchangelogs
+ gzip -n -9c < debian/package-news > $(DOC)/news.debian.gz
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values
new file mode 100644
index 0000000..0e4b849
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-news-wrong-name
+Description: Check for NEWS.Debian installed with wrong name
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc
new file mode 100644
index 0000000..86a8f41
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-news-wrong-name
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints
new file mode 100644
index 0000000..3636bbb
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-news-wrong-name/eval/hints
@@ -0,0 +1 @@
+changelog-file-news-wrong-name (binary): wrong-name-for-debian-news-file [usr/share/doc/changelog-file-news-wrong-name/news.debian.gz]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules
new file mode 100755
index 0000000..f7139c2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_md5sums:
+ find debian/*/ -type f -a -iname 'changelog.*' -delete
+ dh_md5sums
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values
new file mode 100644
index 0000000..e3dddde
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-no-dch-native
+Description: Test if Debian changelog is missing in native pkg
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc
new file mode 100644
index 0000000..6dd8e86
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-no-dch-native
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints
new file mode 100644
index 0000000..8172b29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch-native/eval/hints
@@ -0,0 +1 @@
+changelog-file-no-dch-native (binary): no-changelog usr/share/doc/changelog-file-no-dch-native/changelog.gz (native package)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules
new file mode 100755
index 0000000..9307919
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_installchangelogs:
+ # This is needed for Ubuntu, where debhelper does not install
+ # upstream changelogs by default
+ dh_installchangelogs ChangeLog
+
+override_dh_md5sums:
+ find debian/*/ -type f -a -iname 'changelog.debian*' -delete
+ dh_md5sums
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values
new file mode 100644
index 0000000..d5a6192
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-no-dch
+Skeleton: upload-non-native
+Description: Test if Debian changelog is missing
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog
new file mode 100644
index 0000000..a935b07
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/build-spec/orig/ChangeLog
@@ -0,0 +1,5 @@
+2011-09-10 Niels Thykier <niels@thykier.net>
+
+ * This is a non-Debian ChangeLog. Lintian should not be tricked
+ to believe this is a Debian changelog.
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc
new file mode 100644
index 0000000..ff7ebdf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-no-dch
+Test-Against: syntax-error-in-debian-changelog
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints
new file mode 100644
index 0000000..e09922f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-no-dch/eval/hints
@@ -0,0 +1,2 @@
+changelog-file-no-dch (binary): syntax-error-in-debian-changelog "not a Debian changelog" [usr/share/doc/changelog-file-no-dch/changelog.gz:1]
+changelog-file-no-dch (binary): debian-changelog-file-missing-or-wrong-name
diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in
new file mode 100644
index 0000000..7242f97
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/debian/changelog.in
@@ -0,0 +1,45 @@
+[% $source %] (3:[% $version %]) unstable; urgency=low
+
+ * Third use of [% $version %].
+ * This changelog entry bumps the epoch and references the word in the
+ changelog.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (3:0) unstable; urgency=low
+
+ * Bumping epoch to inject a changelog entry to ensure we check later entries.
+
+ -- [% $author %] Fri, 06 Feb 2010 22:22:37 -0800
+
+other ([% $version %]) unstable; urgency=low
+
+ * This has the same version but different source and is thus a
+ false-positive.
+
+ -- [% $author %] Fri, 06 Feb 2009 22:22:37 -0800
+
+[% $source %] (2:[% $version %]) unstable; urgency=low
+
+ * Second use of version [% $version %]. True positive.
+
+ -- [% $author %] Fri, 06 Feb 2008 22:22:37 -0800
+
+[% $source %] (2:0) unstable; urgency=low
+
+ * Bumping epoch to inject a changelog entry to ensure we check later entries.
+
+ -- [% $author %] Fri, 06 Feb 2007 22:22:37 -0800
+
+[% $source %] (1:[% $version %]) unstable; urgency=low
+
+ * Initial use of version [% $version %]. This is a false positive as we should
+ * stop after 2:[% $version %].
+
+ -- [% $author %] Fri, 06 Feb 2006 22:22:37 -0800
+
+[% $source %] (1:0) unstable; urgency=low
+
+ * Add epoch.
+
+ -- [% $author %] Fri, 06 Feb 2005 22:22:37 -0800
diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values
new file mode 100644
index 0000000..5705b4d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-reuses-existing-version
+Description: Check changelog for re-used version numbers
diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc
new file mode 100644
index 0000000..a253dba
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-reuses-existing-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints
new file mode 100644
index 0000000..5016c57
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-reuses-existing-version/eval/hints
@@ -0,0 +1 @@
+changelog-file-reuses-existing-version (source): latest-debian-changelog-entry-reuses-existing-version 3:1.0 ~ 2:1.0 (last used: Fri, 06 Feb 2008 22:22:37 -0800) [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in
new file mode 100644
index 0000000..83189f2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+[% $source %] ([% $version %]) stable-proposed-updates; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values
new file mode 100644
index 0000000..e460a9c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-stable/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-file-stable
+Skeleton: upload-non-native
+Version: 1.0-1etch1
+Description: Test a stable-proposed-updates package
diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc
new file mode 100644
index 0000000..529ce5a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/desc
@@ -0,0 +1,5 @@
+Testname: changelog-file-stable
+Test-Against:
+ malformed-debian-changelog-version
+ version-refers-to-distribution
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-stable/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in
new file mode 100644
index 0000000..b527316
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/debian/changelog.in
@@ -0,0 +1,12 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0) unstable; urgency=low
+
+ * The date will fail with some dpkg version see #794674
+
+ -- [% $author %] The, 15 Apr 2004 23:33:51 +0200
diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values
new file mode 100644
index 0000000..dcc2e78
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: changelog-file-strange-date
+Version: 2.0
+Description: Test some strange date in changelog
+Extra-Build-Depends: dpkg (<< 1.18.2)
diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc
new file mode 100644
index 0000000..c866224
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-strange-date
+See-Also: Debian Bug#794674
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints
new file mode 100644
index 0000000..d8424c8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-strange-date/eval/hints
@@ -0,0 +1 @@
+changelog-file-strange-date (binary): syntax-error-in-debian-changelog line 12 "couldn't parse date The, 15 Apr 2004 23:33:51 +0200"
diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules
new file mode 100755
index 0000000..fa478f6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+
+override_dh_md5sums:
+ DIR=$$(find debian/*/ -type f -a -name 'changelog.gz' \
+ -exec dirname {} \; ) ; \
+ rm -f $$DIR/changelog.gz ; \
+ ln -s ../lintian/changelog.gz $$DIR/changelog.gz
+ dh_md5sums
diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values
new file mode 100644
index 0000000..3d57c66
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-symlink
+Description: Test if Debian changelog is a symlink
diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc
new file mode 100644
index 0000000..7278012
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-symlink
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints
new file mode 100644
index 0000000..90d61c4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-symlink/eval/hints
@@ -0,0 +1 @@
+changelog-file-symlink (binary): debian-changelog-file-is-a-symlink [usr/share/doc/changelog-file-symlink/changelog.gz]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in
new file mode 100644
index 0000000..643d367
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/doc/changelog.in
@@ -0,0 +1,22 @@
+[% $source %] ([% $version %]) [% $distribution %]; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] ([% $prev-version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] Sat, 09 Apr 2016 10:56:49 +0000
+
+[% $source %] () unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] Sat, 02 Apr 2016 10:56:49 +0000
diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values
new file mode 100644
index 0000000..4f393a2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: changelog-file-syntax
+Description: Test for syntax errors in changelogs
diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc
new file mode 100644
index 0000000..0e3a67e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-syntax
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints
new file mode 100644
index 0000000..16a73ee
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-syntax/eval/hints
@@ -0,0 +1,2 @@
+changelog-file-syntax (binary): syntax-error-in-debian-changelog "found change data where expected next heading or eof" [usr/share/doc/changelog-file-syntax/changelog.gz:17]
+changelog-file-syntax (binary): syntax-error-in-debian-changelog "badly formatted heading line" [usr/share/doc/changelog-file-syntax/changelog.gz:15]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values
new file mode 100644
index 0000000..78b1b3f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: changelog-file-unreleased-signed-changes
+Distribution: UNRELEASED
+Description: Warn about UNRELEASED distribution in changelog if changes is signed
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in
new file mode 100755
index 0000000..95e78e4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/post-build.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+# create a temporary directory
+TEMPDIR=`mktemp -d`
+
+# import public key
+gpg --homedir "$TEMPDIR" --import "[% $source_path %]/public.key"
+
+# import private key
+gpg --homedir "$TEMPDIR" --allow-secret-key-import --import "[% $source_path %]/private.key"
+
+# sign changes file
+gpg --homedir "$TEMPDIR" --clearsign "[% $build_product %]"
+
+# save unsigned changes file elsewhere
+mv "[% $build_product %]" "[% $build_product %].unsigned"
+
+# move signed changes file to expected location
+mv "[% $build_product %].asc" "[% $build_product %]"
+
+# remove the temporary directory
+rm -rf "$TEMPDIR"
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key
new file mode 100644
index 0000000..dc65e47
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/private.key
@@ -0,0 +1,81 @@
+-----BEGIN PGP PRIVATE KEY BLOCK-----
+
+lQVYBF1S0+wBDACpWPf3IGIsQ1LAGGYsGZP3jj52oB2SBXde/Uk45bo8il2snTse
+VUUZcxgHUW+/NZescGYyGIUnfAiWPn+kzObMddg5GXWHG2grt1F2LHdIMdLaHBQi
+zIu74JZJ7khnd0OhGdsZVtPQ+ilkh0T/IdcigEcZPG1+0anMsgv+6xZl9+oK6ZBn
+4VZE6DC7+0F5fFtx8osSQrjuorYZ9dHrsfeyAHZxTVOV7ge8RBp3sMKz9mBlNUfw
+ZcyKk8+7M4KMcL7GfZAK8OmfF6cFdRdk3fuEP/6q8UHWNVBAvv4JAr6KG3ZnpJZX
+9jvqOjYkyMpCtNSS3Dkiv8dcOpm+pvR2HsqyyLt4cnozb3Rdz4nLTI2A2wgnHFs2
+rm20Ww4gGblbsh4Ps5Kt8exN1T9cKh/B7TntT2SJKkGp1occAtAAIamv9fSuO81q
+ywuW2x0swNeK+JJADIq0iZh9vvXsnupk60j5m/J9R1emjWWlImAmJ6c8KJkO/iab
+MLZC2Suu7L/rWgUAEQEAAQAL/iC8Qn6iY2fUAcCBVurKbPhrJjbvH5g090zE4G0f
+tz7xrkbqQ93KtOdFAM2VV+kZ1n5uYcroQ4EM8Gn+ndUBCNJYK1pqSfY6fYoJzzTt
+RoeNngksaVYKvS4trU+QQK3Dd67CHUDKMHrSiMLWhSdeZsRUEKpXrIDZzZ10g24d
+CoDeif7fBFuYSwFZ8uW7nX365IBj1q9Kd44lpNbi1lfd2Jgvj7W6MWCnmRYzAfzG
+DfUUuLCHuqbFPuNAzGSPAfrc5itbAyOP2fXdTC+WPbdqFPAU7tjtCl/1FfpzwZsE
++mWG3G+Zspkh7Oz58faOc3Tr86GK/dRNRh36eGJOeUfydQnOLvorPO3S0AC0nHCF
+q+NXyf6xOKOKiNe7Acc6ezGOyn2DgTBXhZDE79r4rOvDDNKyW+J8vM3JpGv4a4jy
+byc3aMd7AU1ai6vfWtbSyB6FtVQ8uPbUBXk3Eo6fvZ8ge7HfIaCAcxCchSCJJevL
+pMYrVOez12uatz/3fTOq4CS7RwYAy7c614xUNTlDzX95UnGelaT4cquGp8hlk9vQ
+pM01QtaAGJPk+JNg+0J9e4qWoSEN+4+2ncfgY3Wahjn+jfkk9cAROmxQMt2JvXvI
+hpcrcvIuMJSAlyp4+HNd4JUzgFP5LCkxs79QbDNVkCZjGDC3zv9UVdVv82IgFCfe
+UwgKhNZZlsQsQatdXs/YiK682JpYnbQLmg5/E5g1rTybbgsiYaYZ3E6Tv4d+FEXN
+PvsVbAxZIk3IeFhGUs2EVX8DJrjzBgDUz6N2moRsuQ2SLYFsr0NlfU95qAZk4r+f
+TZwNhE6ixjiHqfvUuJrgmkhY46GFzcKpJlmxsiCElYrMf+xzhjCE15XLkFoN/jkA
+R9mI97IyiEMqBn+aTvlYmQpRmSV0rEvIRT6Y4jwsG4e7NhtJUP30qUSh2rV42lh4
+BU8mLK+Da1gQtlP4b8XadksdJGIasXvDv3Cna0fd/ZKN4nCc2T5Mz9DGhBM55Il3
+0Z9IBIlzZU8MnKmu7pFJYOVkw3jRXycF/R+TU2BintbbqFszVYw0TMr5+UupyhXh
+2JMBHEjhGrZ40YZpDpUA+9KrfJ6RUfCw0pg4XmA7OI0cpisRuZb1cXWZpdEchdYQ
+N3u/ofUHwCbd6pv86Udmf3Lteeu1zVFBHACnIdsMEVUvMlaO8j5t3nTLYXudaeLe
+WZciXu/3pIU46oWKEbm+XzSl9SiyRRtc4VuB+mMNC5XkkqmaYioVtJ/rv1D6Pq8z
+dvEO35poUStLLdphX/2Wq7i7C0FuKGkYyvEdtCJEdW1teSBrZXkgdG8gc2lnbiB0
+ZXN0IHN1aXRlIGZpbGVziQHOBBMBCgA4FiEE7gdcRYTGSROvlMCvozS9hpbIwjwF
+Al1S0+wCGwMFCwkIBwMFFQoJCAsFFgMCAQACHgECF4AACgkQozS9hpbIwjzxBwv/
+eQXVIgFfCXXxtKuVuae7dLQhu8CBHJZ5PvXLeCjRj8LcERuiEwJz7JRrSP4i7PLn
+zA+vv8WSbYUaJ2Lwg/Gj366U7tlrGVRZUEmHzYj9Bc+qxd3Lf/lZmVP3LavgL89w
+OMzObJZOKNbUs9bAmLEf7lJnObMEpSAiPji7vPHc+wvM5TegtwjjQNLu7o3rGuut
+ARtAA3BxPTBhjKt0Jb30/TrsNE9ecMoC4xcIyy0HY1FPWwwOHFbvJxevyKv84Nng
+RyHErB+8RGqUObhtxNrUkJ7xt+jQvAy2xX8bt2w6nOzG4cST2flEcH+Vbqy1bPD0
+b7hTZFL+dDRq43QzGqgqyNDWmvwM5tFBxbWc4cJKbzynhVDPPC6IqFXPml6EF0PA
+y+o3zMMdacYODBezWix33JBH9vDH/9dSG4JE1ORLGZpVpKqOQ0YxFPoLrOpYXUxE
+2jSDySTrvsCOOpUYl4D7zgVrP9/EkJ2AK5wlVtpv8D5rHrP6/RK2TlfXJt8S6ilt
+nQVYBF1S0+wBDAC25JP4vcHnGINaqyw5sdOAr6+0uCNgqIqdmPgG9ZO0nNJVfZOX
+s6Wp1TYgQr1qmWE5wsVt9HoClQGlP+6TdYv7cnylksI5rrxwi1eWr2JPYS7dP0HK
+nVVXtuqMdak6eNUFHRfjdc896qL5uuHu3VHEpc/3wfqUms6uhsP60xS3AiuwYd6/
+K/nqtA4sz5dh7gLpxT2EpurGohg+q/cf5YegKzjB2J2JYtFKcyHFhX2QiNIrQpVT
+LKQDSDkNykr/wqMpCxJ3cskxKkY7zyColfRa9Vdp4/JNpNkL1IrX2ph+tlQisdJ+
+gcDSvuYz60COJuyFikNVz5+84mfpMCVqYVOt9MGLGSbcQA8IgPOMU4Nv9E63ob/l
+pLEZQMFwqrmo1zfdhj/LW/p7uNEJ7V2Z08FnBqn72g4RmYE+QQohLfqAOecwrcyi
+TcvEeJGDRwX+kZVyTQcrWhm8rchFxJluat7lYsOWFvgS1j8wvRC8QDWQEaODWNUF
+iPVP/bybAeHjXl0AEQEAAQAL/iutqEch7mKGAKzRL3Ux6lyT2KcUyOInLj+YDjf/
+Q0DBqRvgqzRyI3DNailHNxxzt/wG74akedUPB/8SpyQRURaCj5EtXPRQrlFEfe0P
+Qq/Jels9ZbWBYKXbmeVknj9IJzua6J8afh1/4V85ygZ1VbdckC/P5EvEMvMMXVaU
+PaC9RHjRztQiKQPr72y1QSaSpKB2ygvZnz1D7f1drV2xP/Q5DkuBM5JhhrE8kMau
+7D9t5Z+OPcJI6XydLX8FHmc5cL2ZVrGgFBor6Bs4JvCKtXTkPKMTPFDg+cfNPsoi
+Q0kunBwGCLOxFRtvCYxuVdOKRD/usnRk7+AlRui5criGTbJSYl67BkpZay28Dqk0
+vakZhXEPv2xrr/GG3ViJXb/DWb72UC9/ii5gOPivLJnC9Fia2g1q1mj6nTlW+ao/
+9qfRWYsqX8lAjL8INjmqOzGN1Uxo0z0kriRKjmFvswZbMYHTk1Ifo4Q80dRUiE+e
+Ed7snM+Mg4Klar30jm07KF0hIQYA1P08CsWF+3lNHa4tF+rXoBhMa092QLQ1ClCC
+2yqu8t1/pFeCjoJ+81THYBc4oK0XYiLenUYTEEsKCtA/FQoBPjYUY9Ghi5JdSEHi
+yPSA1G7i5Lk2Cewzrjikoqq/eiVguiy8ZLxQOM+89vruBQyk8jP2hCaEspcfi5bS
+FHlZzK6WZ/ytF+VzTFXZLBddq+GHzYh5wttspro0W5WLIuGLjBi8+zHl74hWDdi/
+9elSmW2+BuTx0bZb6J6YaC7L7EdNBgDb03lChbOB+gxgCDOpgMH5wAbHEacS5aeh
+6bmJRsq7Y174voxDjGP92eY+VXyO2GIkcYDihHVTA4NsL4sZPVg7lVliCnyuXR1h
+fZ0QF36fjuYidkxnshribWaW4k9+mgBAqtN1rQqkWr2VaQv7E70Mn0yGamLUoowH
+Vog1PhIo/YA5m9HpamX4VBhtbFdvxuGAlfFahyTc9HEd8R+djSOKA1suFeAp0zJe
+dq91bUt645eP8ayipUtSM6br1kYSi1EF+QE1lHQZ/7kyWJGRAdIb4hwTM+UWJ+3Y
+dxuhyyHeoli7j/Z2313+/LxG5QGHVg6Fyc2wk3kQeQO26LTUUMSngLdHvCgzWYds
+ohPXyE3TJPL5LT0QOqdZyojk7JHYNZB97uUbZQEMRRWZVlec4pyjhKOyAbcQtkjx
+H5ZIhGbwzRdX6eSc2S6dX0D46nij1CLbdasfZVKCt0QtOCmcCp4wzOid0v/R1uxH
+fPdA9V4NSdEjIjPtLVXfips9Yxv2ttYpltpoiQG2BBgBCgAgFiEE7gdcRYTGSROv
+lMCvozS9hpbIwjwFAl1S0+wCGwwACgkQozS9hpbIwjwKxwv9EQ1CO3xsQP+NKI4i
+yEAMCp0zr+3AByiqZONLH7Ggh5ZqlJnwZQaYSFRjvDQQxlegN7MAx14hm1IIzgSO
+bk9e3oCc+yktwLD+I+VOOjSjPFJH5LPPyI0p4oFn4q59dgvMXfsAz0F+GgqVy04t
+XrDrjRSs6b4erbYFuveJPY+JbZLPG068P3L5sFMHCiY623OzaJXSKuGYHlaOvEBO
+97G0NfW7lP8/hWM0tAvgwgISxk6jojA0B3eJTKYwT2hLwmT8bblCmBAyNKyoz+TX
+uAcQYXuVY1hScFzpra4BgJ2o0xCjHg+RkAtc6a1B2zmhrXiE1OMbzKnYUsnMUM0K
+Mgin9Jk6akhCeheEfMoi0OUZNa3BC/D7puDQjupQ+M2xXSb4JGmOJDSumUcg6GnQ
+26JFqamo1H0rXMgFeUd1e9wKsd5FKrt4dZXLGYS5r0hnlgSTJZPmA5y7p89ZKxwC
+J/BnNG5qryGpb0uglf9styQZnIPzZXziiU5W/GOtxONWwXs7
+=mtBa
+-----END PGP PRIVATE KEY BLOCK-----
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key
new file mode 100644
index 0000000..b201834
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/build-spec/public.key
@@ -0,0 +1,41 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQGNBF1S0+wBDACpWPf3IGIsQ1LAGGYsGZP3jj52oB2SBXde/Uk45bo8il2snTse
+VUUZcxgHUW+/NZescGYyGIUnfAiWPn+kzObMddg5GXWHG2grt1F2LHdIMdLaHBQi
+zIu74JZJ7khnd0OhGdsZVtPQ+ilkh0T/IdcigEcZPG1+0anMsgv+6xZl9+oK6ZBn
+4VZE6DC7+0F5fFtx8osSQrjuorYZ9dHrsfeyAHZxTVOV7ge8RBp3sMKz9mBlNUfw
+ZcyKk8+7M4KMcL7GfZAK8OmfF6cFdRdk3fuEP/6q8UHWNVBAvv4JAr6KG3ZnpJZX
+9jvqOjYkyMpCtNSS3Dkiv8dcOpm+pvR2HsqyyLt4cnozb3Rdz4nLTI2A2wgnHFs2
+rm20Ww4gGblbsh4Ps5Kt8exN1T9cKh/B7TntT2SJKkGp1occAtAAIamv9fSuO81q
+ywuW2x0swNeK+JJADIq0iZh9vvXsnupk60j5m/J9R1emjWWlImAmJ6c8KJkO/iab
+MLZC2Suu7L/rWgUAEQEAAbQiRHVtbXkga2V5IHRvIHNpZ24gdGVzdCBzdWl0ZSBm
+aWxlc4kBzgQTAQoAOBYhBO4HXEWExkkTr5TAr6M0vYaWyMI8BQJdUtPsAhsDBQsJ
+CAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEKM0vYaWyMI88QcL/3kF1SIBXwl18bSr
+lbmnu3S0IbvAgRyWeT71y3go0Y/C3BEbohMCc+yUa0j+Iuzy58wPr7/Fkm2FGidi
+8IPxo9+ulO7ZaxlUWVBJh82I/QXPqsXdy3/5WZlT9y2r4C/PcDjMzmyWTijW1LPW
+wJixH+5SZzmzBKUgIj44u7zx3PsLzOU3oLcI40DS7u6N6xrrrQEbQANwcT0wYYyr
+dCW99P067DRPXnDKAuMXCMstB2NRT1sMDhxW7ycXr8ir/ODZ4EchxKwfvERqlDm4
+bcTa1JCe8bfo0LwMtsV/G7dsOpzsxuHEk9n5RHB/lW6stWzw9G+4U2RS/nQ0auN0
+MxqoKsjQ1pr8DObRQcW1nOHCSm88p4VQzzwuiKhVz5pehBdDwMvqN8zDHWnGDgwX
+s1osd9yQR/bwx//XUhuCRNTkSxmaVaSqjkNGMRT6C6zqWF1MRNo0g8kk677AjjqV
+GJeA+84Faz/fxJCdgCucJVbab/A+ax6z+v0Stk5X1ybfEuopbbkBjQRdUtPsAQwA
+tuST+L3B5xiDWqssObHTgK+vtLgjYKiKnZj4BvWTtJzSVX2Tl7OlqdU2IEK9aplh
+OcLFbfR6ApUBpT/uk3WL+3J8pZLCOa68cItXlq9iT2Eu3T9Byp1VV7bqjHWpOnjV
+BR0X43XPPeqi+brh7t1RxKXP98H6lJrOrobD+tMUtwIrsGHevyv56rQOLM+XYe4C
+6cU9hKbqxqIYPqv3H+WHoCs4wdidiWLRSnMhxYV9kIjSK0KVUyykA0g5DcpK/8Kj
+KQsSd3LJMSpGO88gqJX0WvVXaePyTaTZC9SK19qYfrZUIrHSfoHA0r7mM+tAjibs
+hYpDVc+fvOJn6TAlamFTrfTBixkm3EAPCIDzjFODb/ROt6G/5aSxGUDBcKq5qNc3
+3YY/y1v6e7jRCe1dmdPBZwap+9oOEZmBPkEKIS36gDnnMK3Mok3LxHiRg0cF/pGV
+ck0HK1oZvK3IRcSZbmre5WLDlhb4EtY/ML0QvEA1kBGjg1jVBYj1T/28mwHh415d
+ABEBAAGJAbYEGAEKACAWIQTuB1xFhMZJE6+UwK+jNL2GlsjCPAUCXVLT7AIbDAAK
+CRCjNL2GlsjCPArHC/0RDUI7fGxA/40ojiLIQAwKnTOv7cAHKKpk40sfsaCHlmqU
+mfBlBphIVGO8NBDGV6A3swDHXiGbUgjOBI5uT17egJz7KS3AsP4j5U46NKM8Ukfk
+s8/IjSnigWfirn12C8xd+wDPQX4aCpXLTi1esOuNFKzpvh6ttgW694k9j4ltks8b
+Trw/cvmwUwcKJjrbc7NoldIq4ZgeVo68QE73sbQ19buU/z+FYzS0C+DCAhLGTqOi
+MDQHd4lMpjBPaEvCZPxtuUKYEDI0rKjP5Ne4BxBhe5VjWFJwXOmtrgGAnajTEKMe
+D5GQC1zprUHbOaGteITU4xvMqdhSycxQzQoyCKf0mTpqSEJ6F4R8yiLQ5Rk1rcEL
+8Pum4NCO6lD4zbFdJvgkaY4kNK6ZRyDoadDbokWpqajUfStcyAV5R3V73Aqx3kUq
+u3h1lcsZhLmvSGeWBJMlk+YDnLunz1krHAIn8Gc0bmqvIalvS6CV/2y3JBmcg/Nl
+fOKJTlb8Y63E41bBezs=
+=iNsY
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc
new file mode 100644
index 0000000..00bd85b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/desc
@@ -0,0 +1,3 @@
+Testname: changelog-file-unreleased-signed-changes
+See-Also: #873520
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints
new file mode 100644
index 0000000..a4d8b63
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased-signed-changes/eval/hints
@@ -0,0 +1 @@
+changelog-file-unreleased-signed-changes (source): unreleased-changelog-distribution [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in
new file mode 100644
index 0000000..adaaa2d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) [% $distribution %]; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0) unstable; urgency=low
+
+ * An older changelog entry to test suppression of errors about the
+ changelog entry having the same date as the previous one.
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values
new file mode 100644
index 0000000..25da1fa
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: changelog-file-unreleased
+Version: 2.0
+Distribution: UNRELEASED
+Description: Suppress new date warnings for UNRELEASED
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc
new file mode 100644
index 0000000..46a21c6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/desc
@@ -0,0 +1,6 @@
+Testname: changelog-file-unreleased
+Test-Against:
+ latest-debian-changelog-entry-without-new-date
+ unreleased-changelog-distribution
+See-Also: Debian Bug#560149
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-unreleased/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules
new file mode 100644
index 0000000..12f2c85
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+PKG:=$(shell dh_listpackages)
+DOC:=debian/$(PKG)/usr/share/doc/$(PKG)
+
+%:
+ dh $@
+
+override_dh_installchangelogs:
+ dh_installchangelogs
+ cp some-changelog.html $(DOC)/changelog.html
diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values
new file mode 100644
index 0000000..684e84e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-upstream-html-only
+Skeleton: upload-non-native
+Description: Check HTML-only upstream changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html
new file mode 100644
index 0000000..2a4614a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/build-spec/orig/some-changelog.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <titl>Hallo World</title>
+</head>
+<body>
+ <p>A wonderful changelog written in HTML</p>
+</body>
+</html>
diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc
new file mode 100644
index 0000000..5604fd1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-upstream-html-only
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints
new file mode 100644
index 0000000..696aa50
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-upstream-html-only/eval/hints
@@ -0,0 +1 @@
+changelog-file-upstream-html-only (binary): html-changelog-without-text-version [usr/share/doc/changelog-file-upstream-html-only/changelog.html.gz]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules
new file mode 100644
index 0000000..45fbec8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+PKG:=$(shell dh_listpackages)
+DOC:=debian/$(PKG)/usr/share/doc/$(PKG)
+
+%:
+ dh $@
+
+override_dh_installchangelogs:
+ dh_installchangelogs
+ cp some-changelog $(DOC)/Changes
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values
new file mode 100644
index 0000000..2e767c6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: changelog-file-wrong-name-upstream
+Skeleton: upload-non-native
+Description: Check a wrong name for an upstream changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog
new file mode 100644
index 0000000..336f590
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/build-spec/orig/some-changelog
@@ -0,0 +1 @@
+Hallo World
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc
new file mode 100644
index 0000000..5ae1b34
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/desc
@@ -0,0 +1,2 @@
+Testname: changelog-file-wrong-name-upstream
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints
new file mode 100644
index 0000000..44bf518
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-name-upstream/eval/hints
@@ -0,0 +1 @@
+changelog-file-wrong-name-upstream (binary): wrong-name-for-upstream-changelog [usr/share/doc/changelog-file-wrong-name-upstream/Changes]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8fcb315
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/changelog.in
@@ -0,0 +1,10 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ * A bit of wishful thinking that the date below was a Friday.
+
+ -- [% $author %] Fri, 07 Apr 2016 17:00:00 +0000
+
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in
new file mode 100644
index 0000000..0818186
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: 3.9.8
+Build-Depends: [% $build_depends %]
+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/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values
new file mode 100644
index 0000000..0d2c5b7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: changelog-file-wrong-weekday
+Description: Test for wrong weekday in changelog date
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc
new file mode 100644
index 0000000..3411212
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-file-wrong-weekday
+Profile: lintian-test
+Options: --include-dir ./lintian-include-dir
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints
new file mode 100644
index 0000000..22e8a79
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/hints
@@ -0,0 +1 @@
+changelog-file-wrong-weekday (binary): debian-changelog-has-wrong-day-of-week 2016-04-07 was a Thursday [usr/share/doc/changelog-file-wrong-weekday/changelog.gz:1]
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/profiles/lintian-test/main.profile
@@ -0,0 +1,2 @@
+Profile: lintian-test/main
+Extends: debian/main
diff --git a/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date
new file mode 100644
index 0000000..42f8743
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-file-wrong-weekday/eval/lintian-include-dir/vendors/lintian-test/main/data/standards-version/ancient-date
@@ -0,0 +1,7 @@
+# Any Standards Version released before this day is "ancient"
+#
+# Frozen for this test so we do not have to update the test every time
+# we update the real "ancient-date" data file.
+#
+# Format is ANCIENT < Date
+ANCIENT < 20 Feb 2014
diff --git a/t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values
new file mode 100644
index 0000000..6f39521
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-bzr/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-version-bzr
+Version: 0.7+bzr49+repack1-1
+Description: Test for +bzr in version (vs binNMU)
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc
new file mode 100644
index 0000000..24eb5bf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-version-bzr
+Check: debian/changelog
+Test-Against:
+ malformed-debian-changelog-version
diff --git a/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-bzr/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values
new file mode 100644
index 0000000..ba9c466
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-version-non-native-simple
+Version: 1-2
+Description: Test for normal versions
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc
new file mode 100644
index 0000000..9d8d284
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-version-non-native-simple
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-non-native-simple/eval/hints
diff --git a/t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values b/t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values
new file mode 100644
index 0000000..913887b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-special-chars/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: changelog-version-special-chars
+Version: 2:1.5+important~personal1-stable-7
+Description: Test for weird versions
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc
new file mode 100644
index 0000000..a38571b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/desc
@@ -0,0 +1,4 @@
+Testname: changelog-version-special-chars
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints
new file mode 100644
index 0000000..fddb586
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/changelog-version-special-chars/eval/hints
@@ -0,0 +1,3 @@
+changelog-version-special-chars (source): hyphen-in-upstream-part-of-debian-changelog-version 1.5+important~personal1-stable [debian/changelog:1]
+changelog-version-special-chars (source): epoch-changed-but-upstream-version-did-not-go-backwards 0.0.1-1 -> 2:1.5+important~personal1-stable-7 [debian/changelog:1]
+changelog-version-special-chars (source): epoch-change-without-comment 0.0.1-1 -> 2:1.5+important~personal1-stable-7 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values
new file mode 100644
index 0000000..4bc587e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/cruft-native-dash-version/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: cruft-native-dash-version
+Source-Format: 1.0
+Version: 1.0-1
+Description: Test for native packages with dash version
diff --git a/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc
new file mode 100644
index 0000000..8f1baa5
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/desc
@@ -0,0 +1,4 @@
+Testname: cruft-native-dash-version
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints
new file mode 100644
index 0000000..0a358d5
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/cruft-native-dash-version/eval/hints
@@ -0,0 +1 @@
+cruft-native-dash-version (source): malformed-debian-changelog-version 1.0-1 (for native) [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in
new file mode 100644
index 0000000..d6095db
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/date-based-version/build-spec/debian/changelog.in
@@ -0,0 +1,8 @@
+[% $source %] ([% $version %]) [% $distribution %]; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values
new file mode 100644
index 0000000..a4fa0ac
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/date-based-version/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: date-based-version
+Version: 20180219-1
+Description: Date-based version number
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/date-based-version/eval/desc b/t/recipes/checks/debian/changelog/date-based-version/eval/desc
new file mode 100644
index 0000000..f80c48a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/date-based-version/eval/desc
@@ -0,0 +1,4 @@
+Testname: date-based-version
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/date-based-version/eval/hints b/t/recipes/checks/debian/changelog/date-based-version/eval/hints
new file mode 100644
index 0000000..a39ae26
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/date-based-version/eval/hints
@@ -0,0 +1 @@
+date-based-version (binary): new-package-uses-date-based-version-number 20180219-1 (better: 0~20180219-1) [usr/share/doc/date-based-version/changelog.Debian.gz:1]
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values
new file mode 100644
index 0000000..fae232a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad-rc/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: fields-version-bad-rc
+Version: 1.0+rc3-1
+Description: Test for bad release candidate versions
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc
new file mode 100644
index 0000000..bbb03dd
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-version-bad-rc
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints
new file mode 100644
index 0000000..7a6da94
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad-rc/eval/hints
@@ -0,0 +1 @@
+fields-version-bad-rc (source): rc-version-greater-than-expected-version 1.0+rc3 > 1.0 (consider using 1.0~rc3) [debian/changelog:1]
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2895dec
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+[% $source %] ([% $version %]) [% $distribution %]; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- [% $author %] [% $date %]
+
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules
new file mode 100644
index 0000000..ce09a53
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_gencontrol:
+ dh_gencontrol -- -v1.0-0
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values
new file mode 100644
index 0000000..fddcd45
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: fields-version-bad
+Version: 0-.3
+Description: Test for weird versions
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/eval/desc b/t/recipes/checks/debian/changelog/fields-version-bad/eval/desc
new file mode 100644
index 0000000..eaa3215
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-version-bad
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/fields-version-bad/eval/hints b/t/recipes/checks/debian/changelog/fields-version-bad/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-bad/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values
new file mode 100644
index 0000000..1246466
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: fields-version-dfsg-native
+Version: 1.0.dfsg1
+Description: Use of dfsg in a native package
diff --git a/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc
new file mode 100644
index 0000000..50df649
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-version-dfsg-native
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dfsg-native/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values
new file mode 100644
index 0000000..412adaa
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: fields-version-dot-dfsg
+Skeleton: upload-non-native
+Version: 1.0.dfsg1-1
+Description: Use of ".dfsg"
diff --git a/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc
new file mode 100644
index 0000000..0819a9e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-version-dot-dfsg
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dot-dfsg/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values b/t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values
new file mode 100644
index 0000000..077bc94
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dsfg/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: fields-version-dsfg
+Skeleton: upload-non-native
+Version: 1.0+dsfg1-1
+Description: Check for the dsfg typo
diff --git a/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc
new file mode 100644
index 0000000..da32956
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-version-dsfg
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/fields-version-dsfg/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian
new file mode 100644
index 0000000..69112e6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/README.Debian
@@ -0,0 +1,6 @@
+generic-dh-make-2008 for Debian
+-------------------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8d16a3d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/changelog.in
@@ -0,0 +1,5 @@
+generic-dh-make-2008 ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in
new file mode 100644
index 0000000..a668392
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/control.in
@@ -0,0 +1,13 @@
+Source: generic-dh-make-2008
+Section: unknown
+Priority: optional
+Maintainer: Russ Allbery <rra@debian.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.7.3
+Homepage: <insert the upstream URL, if relevant>
+
+Package: generic-dh-make-2008
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright
new file mode 100644
index 0000000..31b796a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Russ Allbery <rra@debian.org> on
+Mon, 29 Dec 2008 17:33:59 -0800.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+ <put author's name and email here>
+ <likewise for another author>
+
+Copyright:
+
+ <Copyright (C) YYYY Name OfAuthor>
+ <likewise for another author>
+
+License:
+
+ <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2008, Russ Allbery <rra@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex
new file mode 100644
index 0000000..d00b7d0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/cron.d.ex
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the generic-dh-make-2008 package
+#
+0 4 * * * root [ -x /usr/bin/generic-dh-make-2008_maintenance ] && /usr/bin/generic-dh-make-2008_maintenance
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
new file mode 100644
index 0000000..393594b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/generic-dh-make-2008
+
+# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+# SITEFLAG="-no-site-file"
+#else
+# SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
new file mode 100644
index 0000000..c48d194
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/generic-dh-make-2008
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/generic-dh-make-2008.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
new file mode 100644
index 0000000..b51657a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50generic-dh-make-2008.el
+;; for the Debian generic-dh-make-2008 package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
+
+;; The generic-dh-make-2008 package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...). The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+ (symbol-name flavor)
+ "/site-lisp/generic-dh-make-2008")))
+;; If package-dir does not exist, the generic-dh-make-2008 package must have
+;; removed but not purged, and we should skip the setup.
+ (when (file-directory-p package-dir)
+ (setq load-path (cons package-dir load-path))
+ (autoload 'generic-dh-make-2008-mode "generic-dh-make-2008-mode"
+ "Major mode for editing generic-dh-make-2008 files." t)
+ (add-to-list 'auto-mode-alist '("\\.generic-dh-make-2008$" . generic-dh-make-2008-mode))))
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
new file mode 100644
index 0000000..d770c6e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
@@ -0,0 +1,10 @@
+# Defaults for generic-dh-make-2008 initscript
+# sourced by /etc/init.d/generic-dh-make-2008
+# installed at /etc/default/generic-dh-make-2008 by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
new file mode 100644
index 0000000..3b966d1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
@@ -0,0 +1,22 @@
+Document: generic-dh-make-2008
+Title: Debian generic-dh-make-2008 Manual
+Author: <insert document author here>
+Abstract: This manual describes what generic-dh-make-2008 is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.ps.gz
+
+Format: text
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.text.gz
+
+Format: HTML
+Index: /usr/share/doc/generic-dh-make-2008/html/index.html
+Files: /usr/share/doc/generic-dh-make-2008/html/*.html
+
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex
new file mode 100644
index 0000000..b464594
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.ex
@@ -0,0 +1,157 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/generic-dh-make-2008
+NAME=generic-dh-make-2008
+DESC=generic-dh-make-2008
+
+test -x $DAEMON || exit 0
+
+LOGDIR=/var/log/generic-dh-make-2008
+PIDFILE=/var/run/$NAME.pid
+DODTIME=1 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+# Include generic-dh-make-2008 defaults if available
+if [ -f /etc/default/generic-dh-make-2008 ] ; then
+ . /etc/default/generic-dh-make-2008
+fi
+
+set -e
+
+running_pid()
+{
+ # Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected child?
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running()
+{
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ # Obtain the pid and check it against the binary name
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+force_stop() {
+# Forcefully kill the process
+ [ ! -f "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ kill -9 $pid
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ echo "Cannot kill $LABEL (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+ return 0
+}
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON -- $DAEMON_OPTS
+ if running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ force-stop)
+ echo -n "Forcefully stopping $DESC: "
+ force_stop
+ if ! running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+ force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart" except that it does nothing if the
+ # daemon isn't already running.
+ # check wether $DAEMON is running. If so, restart
+ start-stop-daemon --stop --test --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON \
+ && $0 restart \
+ || exit 0
+ ;;
+ restart)
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --stop --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON
+ [ -n "$DODTIME" ] && sleep $DODTIME
+ start-stop-daemon --start --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+ echo "$NAME."
+ ;;
+ status)
+ echo -n "$LABEL is "
+ if running ; then
+ echo "running"
+ else
+ echo " not running."
+ exit 1
+ fi
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
new file mode 100644
index 0000000..b3559de
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
@@ -0,0 +1,296 @@
+#!/bin/sh
+#
+# Example init.d script with LSB support.
+#
+# Please read this init.d carefully and modify the sections to
+# adjust it to the program you want to run.
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# This is free software; you may 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,
+# or (at your option) any later version.
+#
+# 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. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: generic-dh-make-2008
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Should-Start: $named
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: <Enter a short description of the sortware>
+# Description: <Enter a long description of the software>
+# <...>
+# <...>
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/generic-dh-make-2008 # Introduce the server's location here
+NAME=#PACKAGE # Introduce the short server's name here
+DESC=#PACKAGE # Introduce a short description here
+LOGDIR=/var/log/generic-dh-make-2008 # Log directory to use
+
+PIDFILE=/var/run/$NAME.pid
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/$NAME
+DAEMON_OPTS="" # Additional options given to the server
+
+DIETIME=10 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+#STARTTIME=2 # Time to wait for the server to start, in seconds
+ # If this value is set each time the server is
+ # started (on start or restart) the script will
+ # stall to try to determine if it is running
+ # If it is not set and the server takes time
+ # to setup a pid file the log message might
+ # be a false positive (says it did not start
+ # when it actually did)
+
+LOGFILE=$LOGDIR/$NAME.log # Server logfile
+#DAEMONUSER=generic-dh-make-2008 # Users to run the daemons as. If this value
+ # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+# Use this if you want the user to explicitly set 'RUN' in
+# /etc/default/
+#if [ "x$RUN" != "xyes" ] ; then
+# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
+# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
+# exit 1
+#fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected server
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running() {
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+start_server() {
+# Start the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ else
+# if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --chuid $DAEMONUSER \
+ --exec $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ fi
+ return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ killproc -p $PIDFILE $DAEMON
+ errcode=$?
+ else
+# if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --user $DAEMONUSER \
+ --exec $DAEMON
+ errcode=$?
+ fi
+
+ return $errcode
+}
+
+reload_server() {
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=pidofproc $PIDFILE # This is the daemon's pid
+ # Send a SIGHUP
+ kill -1 $pid
+ return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+ [ ! -e "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ sleep "$DIETIME"s
+ if running ; then
+ kill -9 $pid
+ sleep "$DIETIME"s
+ if running ; then
+ echo "Cannot kill $NAME (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+}
+
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_progress_msg "apparently already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server ; then
+ # NOTE: Some servers might die some time after they start,
+ # this code will detect this issue if STARTTIME is set
+ # to a reasonable value
+ [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
+ if running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # It is not running after we did start
+ log_end_msg 1
+ fi
+ else
+ # Either we could not start it
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ errcode=0
+ stop_server || errcode=$?
+ log_end_msg $errcode
+ else
+ # If it's not running don't do anything
+ log_progress_msg "apparently not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ force-stop)
+ # First try to stop gracefully the program
+ $0 stop
+ if running; then
+ # If it's still running try to kill it more forcefully
+ log_daemon_msg "Stopping (force) $DESC" "$NAME"
+ errcode=0
+ force_stop || errcode=$?
+ log_end_msg $errcode
+ fi
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ errcode=0
+ stop_server || errcode=$?
+ # Wait some sensible amount, some server need this
+ [ -n "$DIETIME" ] && sleep $DIETIME
+ start_server || errcode=$?
+ [ -n "$STARTTIME" ] && sleep $STARTTIME
+ running || errcode=$?
+ log_end_msg $errcode
+ ;;
+ status)
+
+ log_daemon_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_progress_msg "running"
+ log_end_msg 0
+ else
+ log_progress_msg "apparently not running"
+ log_end_msg 1
+ exit 1
+ fi
+ ;;
+ # Use this if the daemon cannot reload
+ reload)
+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+ log_warning_msg "cannot re-read the config file (use restart)."
+ ;;
+ # And this if it cann
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+ # if running ; then
+ # reload_server
+ # if ! running ; then
+ # Process died after we tried to reload
+ # log_progress_msg "died on reload"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ # else
+ # log_progress_msg "server is not running"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ #;;
+
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex
new file mode 100644
index 0000000..d67baa2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.1.ex
@@ -0,0 +1,59 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH GENERIC-DH-MAKE-2008 SECTION "December 29, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+generic-dh-make-2008 \- program to do something
+.SH SYNOPSIS
+.B generic-dh-make-2008
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B generic-dh-make-2008
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBgeneric-dh-make-2008\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+generic-dh-make-2008 was written by <upstream author>.
+.PP
+This manual page was written by Russ Allbery <rra@debian.org>,
+for the Debian project (but may be used by others).
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
new file mode 100644
index 0000000..26b3e0c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+ <!ENTITY dhsurname "<surname>SURNAME</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>December 29, 2008</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
+ <!ENTITY dhemail "<email>rra@debian.org</email>">
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhucpackage "<refentrytitle>GENERIC-DH-MAKE-2008</refentrytitle>">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2003</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+
+ <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+ <arg><option>--example <replaceable>that</replaceable></option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+
+ <para>This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the &gnu;
+ <application>Info</application> format; see below.</para>
+
+ <para><command>&dhpackage;</command> is a program that...</para>
+
+ </refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <para>These programs follow the usual &gnu; command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <application>Info</application> files.</para>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>-h</option>
+ <option>--help</option>
+ </term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option>
+ <option>--version</option>
+ </term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1>
+ <title>SEE ALSO</title>
+
+ <para>bar (1), baz (1).</para>
+
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the
+ <application>Info</application> system.</para>
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 any
+ later version published by the Free Software Foundation.
+ </para>
+ <para>
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+ </para>
+
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
new file mode 100644
index 0000000..2d01c6f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
@@ -0,0 +1,291 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!--
+
+`xsltproc -''-nonet \
+ -''-param man.charmap.use.subset "0" \
+ -''-param make.year.ranges "1" \
+ -''-param make.single.year.ranges "1" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
+ manpage.xml'
+
+A manual page <package>.<section> will be generated. You may view the
+manual page with: nroff -man <package>.<section> | less'. A typical entry
+in a Makefile or Makefile.am is:
+
+DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
+
+manpage.1: manpage.xml
+ $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package. The XSL files are in
+docbook-xsl. A description of the parameters you can use can be found in the
+docbook-xsl-doc-* packages. Please remember that if you create the nroff
+version in one of the debian/rules file targets (such as build), you will need
+to include xsltproc and docbook-xsl in your Build-Depends control field.
+Alternatively use the xmlto command/package. That will also automatically
+pull in xsltproc and docbook-xsl.
+
+Notes for using docbook2x: docbook2x-man does not automatically create the
+AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
+<refsect1> ... </refsect1>.
+
+To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
+read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
+found in the docbook-xsl-doc-html package.
+
+Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
+
+General documentation about man-pages and man-page-formatting:
+man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
+
+-->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "FIRSTNAME">
+ <!ENTITY dhsurname "SURNAME">
+ <!-- dhusername could also be set to "&firstname; &surname;". -->
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhemail "rra@debian.org">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1) and
+ http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
+ <!ENTITY dhsection "SECTION">
+ <!-- TITLE should be something like "User commands" or similar (see
+ http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
+ <!ENTITY dhtitle "generic-dh-make-2008 User Manual">
+ <!ENTITY dhucpackage "GENERIC-DH-MAKE-2008">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+]>
+
+<refentry>
+ <refentryinfo>
+ <title>&dhtitle;</title>
+ <productname>&dhpackage;</productname>
+ <authorgroup>
+ <author>
+ <firstname>&dhfirstname;</firstname>
+ <surname>&dhsurname;</surname>
+ <contrib>Wrote this manpage for the Debian system.</contrib>
+ <address>
+ <email>&dhemail;</email>
+ </address>
+ </author>
+ </authorgroup>
+ <copyright>
+ <year>2007</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ <legalnotice>
+ <para>This manual page was written for the Debian system
+ (but may be used by others).</para>
+ <para>Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU General Public License,
+ Version 2 or (at your option) any later version published by
+ the Free Software Foundation.</para>
+ <para>On Debian systems, the complete text of the GNU General Public
+ License can be found in
+ <filename>/usr/share/common-licenses/GPL</filename>.</para>
+ </legalnotice>
+ </refentryinfo>
+ <refmeta>
+ <refentrytitle>&dhucpackage;</refentrytitle>
+ <manvolnum>&dhsection;</manvolnum>
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- These are several examples, how syntaxes could look -->
+ <arg choice="plain"><option>-e <replaceable>this</replaceable></option></arg>
+ <arg choice="opt"><option>--example=<parameter>that</parameter></option></arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <replaceable class="option">this</replaceable>
+ </arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <group choice="req">
+ <arg choice="plain"><replaceable>this</replaceable></arg>
+ <arg choice="plain"><replaceable>that</replaceable></arg>
+ </group>
+ </arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- Normally the help and version options make the programs stop
+ right after outputting the requested information. -->
+ <group choice="opt">
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-h</option></arg>
+ <arg choice="plain"><option>--help</option></arg>
+ </group>
+ </arg>
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-v</option></arg>
+ <arg choice="plain"><option>--version</option></arg>
+ </group>
+ </arg>
+ </group>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1 id="description">
+ <title>DESCRIPTION</title>
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+ <para>This manual page was written for the Debian distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the GNU <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> format; see below.</para>
+ <para><command>&dhpackage;</command> is a program that...</para>
+ </refsect1>
+ <refsect1 id="options">
+ <title>OPTIONS</title>
+ <para>The program follows the usual GNU command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> files.</para>
+ <variablelist>
+ <!-- Use the variablelist.term.separator and the
+ variablelist.term.break.after parameters to
+ control the term elements. -->
+ <varlistentry>
+ <term><option>-e <replaceable>this</replaceable></option></term>
+ <term><option>--example=<replaceable>that</replaceable></option></term>
+ <listitem>
+ <para>Does this and that.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h</option></term>
+ <term><option>--help</option></term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option></term>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="files">
+ <title>FILES</title>
+ <variablelist>
+ <varlistentry>
+ <term><filename>/etc/foo.conf</filename></term>
+ <listitem>
+ <para>The system-wide configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><filename>${HOME}/.foo.conf</filename></term>
+ <listitem>
+ <para>The per-user configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="environment">
+ <title>ENVIONMENT</title>
+ <variablelist>
+ <varlistentry>
+ <term><envar>FOO_CONF</envar></term>
+ <listitem>
+ <para>If used, the defined file is used as configuration
+ file (see also <xref linkend="files"/>).</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="diagnostics">
+ <title>DIAGNOSTICS</title>
+ <para>The following diagnostics may be issued
+ on <filename class="devicefile">stderr</filename>:</para>
+ <variablelist>
+ <varlistentry>
+ <term><errortext>Bad configuration file. Exiting.</errortext></term>
+ <listitem>
+ <para>The configuration file seems to contain a broken configuration
+ line. Use the <option>--verbose</option> option, to get more info.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para><command>&dhpackage;</command> provides some return codes, that can
+ be used in scripts:</para>
+ <segmentedlist>
+ <segtitle>Code</segtitle>
+ <segtitle>Diagnostic</segtitle>
+ <seglistitem>
+ <seg><errorcode>0</errorcode></seg>
+ <seg>Program exited successfully.</seg>
+ </seglistitem>
+ <seglistitem>
+ <seg><errorcode>1</errorcode></seg>
+ <seg>The configuration file seems to be broken.</seg>
+ </seglistitem>
+ </segmentedlist>
+ </refsect1>
+ <refsect1 id="bugs">
+ <!-- Or use this section to tell about upstream BTS. -->
+ <title>BUGS</title>
+ <para>The program is currently limited to only work
+ with the <package>foobar</package> library.</para>
+ <para>The upstreams <acronym>BTS</acronym> can be found
+ at <ulink url="http://bugzilla.foo.tld"/>.</para>
+ </refsect1>
+ <refsect1 id="see_also">
+ <title>SEE ALSO</title>
+ <!-- In alpabetical order. -->
+ <para><citerefentry>
+ <refentrytitle>bar</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>baz</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry></para>
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> system.</para>
+ </refsect1>
+</refentry>
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex
new file mode 100644
index 0000000..8a67e62
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/menu.ex
@@ -0,0 +1,2 @@
+?package(generic-dh-make-2008):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+ title="generic-dh-make-2008" command="/usr/bin/generic-dh-make-2008"
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex
new file mode 100644
index 0000000..b5f5ca7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postinst.ex
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex
new file mode 100644
index 0000000..1d8a18a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/postrm.ex
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex
new file mode 100644
index 0000000..3134ccf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/preinst.ex
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex
new file mode 100644
index 0000000..4e5dd3f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/prerm.ex
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules
new file mode 100755
index 0000000..92aa2b1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/generic-dh-make-2008.sgml > generic-dh-make-2008.1
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/generic-dh-make-2008.
+ $(MAKE) DESTDIR=$(CURDIR)/debian/generic-dh-make-2008 install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex
new file mode 100644
index 0000000..e62d18f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/debian/watch.ex
@@ -0,0 +1,23 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/generic-dh-make-2008/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to find new files on GooglePages
+# http://example.googlepages.com/foo.html generic-dh-make-2008-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values
new file mode 100644
index 0000000..ef7a896
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/fill-values
@@ -0,0 +1,7 @@
+Testname: generic-dh-make-2008
+Skeleton: upload-builder-only
+Author: Russ Allbery <rra@debian.org>
+Package-Architecture: any
+Dh-Compat-Level: 7
+Description: Generic dh_make template generated in 2008
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile
new file mode 100644
index 0000000..4f762d8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/Makefile
@@ -0,0 +1,4 @@
+# Stub Makefile that's just enough so that the default rules file doesn't
+# error out.
+
+clean install:
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README
new file mode 100644
index 0000000..6a3c009
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/orig/README
@@ -0,0 +1,13 @@
+dh_make 0.46 test
+=================
+
+This is the results of running dh_make 0.46 on an upstream tarball
+containing only this file. It's a useful test for the various dh_make
+template and boilerplate tags, as well as many tags for ways of doing
+things dh_make used to promote but are now deprecated or old debhelper
+commands that are now deprecated.
+
+Please don't modify anything about the files in this package; instead, add
+new tags as needed when Lintian adds new checks. This test case is
+intended to continue to be a test of Lintian's handling of old and
+template packages.
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in
new file mode 100755
index 0000000..bbdb5cb
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/build-spec/pre-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# not using any templates, but dh_clean requires compat
+
+echo "[% $dh_compat_level %]" > "$1/debian/compat"
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc
new file mode 100644
index 0000000..ebf79a7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/desc
@@ -0,0 +1,4 @@
+Testname: generic-dh-make-2008
+Check: debian/changelog
+See-Also:
+ Bug#497347
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints
new file mode 100644
index 0000000..0d2065a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/hints
@@ -0,0 +1,3 @@
+generic-dh-make-2008 (binary): wrong-bug-number-in-closes #nnnn [usr/share/doc/generic-dh-make-2008/changelog.Debian.gz:3]
+generic-dh-make-2008 (binary): initial-upload-closes-no-bugs [usr/share/doc/generic-dh-make-2008/changelog.Debian.gz:1]
+generic-dh-make-2008 (binary): changelog-is-dh_make-template [usr/share/doc/generic-dh-make-2008/changelog.Debian.gz:1]
diff --git a/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/generic-dh-make-2008/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..945632a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..1d6806d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/changelog/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-binary/eval/desc b/t/recipes/checks/debian/changelog/legacy-binary/eval/desc
new file mode 100644
index 0000000..dcf46fa
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-binary/eval/hints b/t/recipes/checks/debian/changelog/legacy-binary/eval/hints
new file mode 100644
index 0000000..c634eb0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-binary/eval/hints
@@ -0,0 +1,9 @@
+binary (binary): syntax-error-in-debian-news-file "found eof where expected more change data or trailer" [usr/share/doc/binary/NEWS.Debian.gz:13]
+binary (binary): syntax-error-in-debian-news-file "badly formatted trailer line" [usr/share/doc/binary/NEWS.Debian.gz:12]
+binary (binary): spelling-error-in-news-debian usefull useful [usr/share/doc/binary/NEWS.Debian.gz]
+binary (binary): spelling-error-in-news-debian speling spelling [usr/share/doc/binary/NEWS.Debian.gz]
+binary (binary): debian-news-entry-has-strange-distribution UNRELEASED [usr/share/doc/binary/NEWS.Debian.gz:1]
+binary (binary): debian-changelog-file-missing-or-wrong-name
+binary (binary): changelog-news-debian-mismatch Urgency low != high [usr/share/doc/binary/NEWS.Debian.gz:1]
+binary (binary): changelog-news-debian-mismatch Distribution unstable != UNRELEASED [usr/share/doc/binary/NEWS.Debian.gz:1]
+binary (binary): changelog-file-not-compressed [usr/share/doc/binary/changelog]
diff --git a/t/recipes/checks/debian/changelog/legacy-binary/eval/post-test b/t/recipes/checks/debian/changelog/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/README.Debian
new file mode 100644
index 0000000..e289bfb
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/README.Debian
@@ -0,0 +1,5 @@
+this is a package to test lintian's handling of files in /etc.
+Also, there's a random mention of /usr/doc here to prompt a warning.
+But /usr/documentation doesn't.
+
+ -- Russ Allbery <rra@debian.org>, Mon, 18 Feb 2008 16:40:55 -0800
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/changelog.in
new file mode 100644
index 0000000..00cdc77
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+etcfiles ([% $version %]) [% $distribution %]; urgency=low
+
+ * Acknowledge NMU (Closes: #123456).
+ * initial setup
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Fri, 21 Sep 2001 11:56:02 -0700
+
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles
new file mode 100644
index 0000000..76032b7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles
@@ -0,0 +1,5 @@
+/etc/proper
+/var/lib/foo
+/etc/cron.daily/cronfile-normal
+/etc/cron.daily/.cronfile-begins-with-fullstop
+/etc/cron.daily/cronfile-contains.fullstop
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only
new file mode 100644
index 0000000..a4b3895
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/conffiles.only
@@ -0,0 +1,2 @@
+/etc/etcfiles/foo
+/etc/etcfiles/bar
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control
new file mode 100644
index 0000000..f3dbda7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/control
@@ -0,0 +1,20 @@
+Source: etcfiles
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.5.0
+
+Package: etcfiles
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: test handling of files in /etc
+ Regression test for lintian's handling of files in /etc.
+ .
+ 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.
+
+Package: only-etcfiles
+Architecture: all
+Depends: etcfiles (= ${source:Version})
+Description: test handling of conffile-only package
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/rules
new file mode 100755
index 0000000..97ff09f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+tmponly=debian/only-etcfiles
+
+clean:
+ rm -f debian/files debian/substvars
+ rm -rf debian/tmp
+ rm -rf debian/only-etcfiles
+
+build:
+build-arch:
+build-indep:
+binary-indep:
+ install -d $(tmp)/etc
+ install -m 644 proper $(tmp)/etc
+ install -m 644 improper $(tmp)/etc
+ mkdir $(tmp)/etc/cron.daily
+ touch $(tmp)/etc/cron.daily/cronfile-normal
+ touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop
+ touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop
+ ln $(tmp)/etc/improper $(tmp)/etc/improper-link
+ install -d $(tmp)/usr/share/doc/etcfiles
+ install -d $(tmp)/var/lib
+ install -m 644 proper $(tmp)/var/lib/foo
+ install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles
+ #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog
+ install -d $(tmp)/DEBIAN
+ install -m 644 debian/conffiles $(tmp)/DEBIAN
+
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \
+ > debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '05c72cacce994208128b7d081116b04a ./etc/proper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce etc/improper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'this is a malformed line' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \
+ >> debian/tmp/DEBIAN/md5sums
+
+ install -d $(tmponly)/etc/etcfiles
+ touch $(tmponly)/etc/etcfiles/foo
+ touch $(tmponly)/etc/etcfiles/bar
+ install -d $(tmponly)/usr/share/doc
+ cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles
+ install -d $(tmponly)/DEBIAN
+ install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles
+
+ dpkg-gencontrol -isp -petcfiles
+ dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly)
+ dpkg --build $(tmp) ..
+ dpkg --build $(tmponly) ..
+
+binary: binary-indep
+
+.PHONY: binary-indep binary clean
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/fill-values
new file mode 100644
index 0000000..86deb10
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-etcfiles
+Source: etcfiles
+Version: 1
+Description: Legacy test "etcfiles"
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/improper
new file mode 100644
index 0000000..23656f4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/improper
@@ -0,0 +1,2 @@
+[config]
+ var = value \ No newline at end of file
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/proper
new file mode 100644
index 0000000..f3dc68b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/build-spec/orig/proper
@@ -0,0 +1,2 @@
+# i am a config file
+foo = var \ No newline at end of file
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc
new file mode 100644
index 0000000..9e1392d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-etcfiles
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints
new file mode 100644
index 0000000..49072d6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/hints
@@ -0,0 +1 @@
+etcfiles (binary): changelog-file-not-compressed [usr/share/doc/etcfiles/changelog]
diff --git a/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-etcfiles/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/changelog.in
new file mode 100644
index 0000000..38fc4e9
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/changelog.in
@@ -0,0 +1,10 @@
+fields ([% $version %]) [% $distribution %]; urgency=low
+
+ * This package adds tests for the following tags:
+ - debian-revision-not-well-formed
+ - depends-on-python-minimal
+ - essential-no-not-needed
+ - debian-revision-should-not-be-zero
+ - new-essential-package
+
+ -- Tobias Quathamer <toddy@debian.org> Sun, 10 Apr 2011 14:30:00 +0100
diff --git a/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/control
new file mode 100644
index 0000000..d980a6e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/control
@@ -0,0 +1,28 @@
+Source: fields
+Section: does-not-exist
+Priority: standard
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.9.2
+
+Package: fields
+Essential: no
+Architecture: all
+Depends: python-minimal
+Description: Generate some errors
+ 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.
+
+Package: another-version
+Essential: yes
+Section: admin
+Architecture: all
+Description: Also generate some errors
+ This package gets another version number and tries to sneak in a new
+ essential package.
+ .
+ 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/debian/changelog/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/rules
new file mode 100755
index 0000000..11ad4a7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d $(tmp)/usr/share/doc/fields
+ install -m 644 debian/changelog \
+ $(tmp)/usr/share/doc/fields/changelog
+ gzip -n -9 $(tmp)/usr/share/doc/fields/changelog
+ dh_md5sums -pfields -P$(tmp)
+ dpkg-gencontrol -pfields -P$(tmp)
+ dpkg --build $(tmp) ..
+ rm -rf $(tmp)
+
+ # Create another package with a different version
+ dh_md5sums -panother-version -P$(tmp)
+ dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp)
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/changelog/legacy-fields/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/fill-values
new file mode 100644
index 0000000..fe90eb0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-non-native
+Testname: legacy-fields
+Source: fields
+Version: 1.5-.3
+Description: Legacy test "fields"
diff --git a/t/recipes/checks/debian/changelog/legacy-fields/eval/desc b/t/recipes/checks/debian/changelog/legacy-fields/eval/desc
new file mode 100644
index 0000000..cdb6b18
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-fields
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-fields/eval/hints b/t/recipes/checks/debian/changelog/legacy-fields/eval/hints
new file mode 100644
index 0000000..33e2889
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/eval/hints
@@ -0,0 +1,2 @@
+fields (binary): debian-changelog-file-missing-or-wrong-name
+another-version (binary): no-changelog usr/share/doc/another-version/changelog.Debian.gz (non-native package)
diff --git a/t/recipes/checks/debian/changelog/legacy-fields/eval/post-test b/t/recipes/checks/debian/changelog/legacy-fields/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-fields/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in
new file mode 100644
index 0000000..b79c4ca
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/changelog.in
@@ -0,0 +1,78 @@
+filenames ([% $version %]) [% $distribution %]; urgency=low
+
+ * /me is doing a correct NMU of this package, bumping the epoch too.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:04:39 +0200
+
+filenames (11) unstable; urgency=low
+
+ * Add a README.macos.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Mon, 12 Apr 2004 23:35:24 +0200
+
+filenames (10) unstable; urgency=low
+
+ * Some new files to check the checks for the use of /usr/*/X11 and
+ /usr/X11R6/*.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Sun, 11 Apr 2004 17:35:20 +0200
+
+filenames (9) unstable; urgency=low
+
+ * Add a two *.ali files, one with the right permission, one with
+ the more common, but false one.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Sun, 11 Apr 2004 00:18:16 +0200
+
+filenames (8) unstable; urgency=low
+
+ * Add a real ancient file
+
+ -- Frank Lichtenheld <djpig@debian.org> Thu, 8 Apr 2004 22:22:40 +0200
+
+filenames (7) unstable; urgency=low
+
+ * Add a dozen symlinks, some correct, some not
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 27 Feb 2004 01:28:42 +0100
+
+filenames (6) unstable; urgency=low
+
+ * Add perl files to check if
+ package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly
+ issued even after attempting to suppress it in some cases
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 27 Feb 2004 00:49:44 +0100
+
+filenames (5) unstable; urgency=low
+
+ * Added check for too long symlink
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 3 Jan 2001 13:20:31 -0800
+
+filenames (4) unstable; urgency=low
+
+ * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag.
+ * Add /usr/lib/menu/README to test the new execption for it.
+
+ -- Richard Braakman <dark@xs4all.nl> Thu, 22 Oct 1998 15:42:52 +0200
+
+filenames (3) unstable; urgency=low
+
+ * Don't rely on the installer's umask.
+
+ -- Richard Braakman <dark@xs4all.nl> Thu, 20 Aug 1998 12:45:47 +0200
+
+filenames (2) unstable; urgency=low
+
+ * Noted more limitations on what filenames lintian handles.
+ * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz
+ to Changes.gz.
+
+ -- Richard Braakman <dark@xs4all.nl> Sat, 4 Jul 1998 15:46:11 +0200
+
+filenames (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Richard Braakman <dark@xs4all.nl> Sat, 4 Jul 1998 15:25:01 +0200
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control
new file mode 100644
index 0000000..1ff9c50
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/control
@@ -0,0 +1,42 @@
+Source: filenames
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Standards-Version: 3.1.1
+Rules-Requires-Root: binary-targets
+
+Package: filenames
+Architecture: any
+Description: see how lintian reacts to weird filenames
+ This package contains files with the most evil names I could find,
+ except for ones that lintian is explicitly not designed to handle.
+ .
+ Lintian does not handle filenames containing newlines, or filenames
+ that contain the strings " link to ", " -> ", or ": ". The last one
+ is used as a separator by the file command, the others are used as
+ separators by tar.
+ .
+ Lintian also does not handle filenames that contain backslashes, or
+ other characters that are mangled by tar's -tv output.
+
+Package: filename-games
+Architecture: all
+Depends: filenames
+Section: games
+Description: Test game filename/location checks
+ This package contains files with slightly less evil names than
+ filenames.
+ .
+ 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.
+
+Package: more-filename-games
+Architecture: all
+Depends: filenames, filename-games
+Section: games
+Priority: optional
+Description: More test for game filename/location checks
+ This package contains no evil names, only evil locations.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base
new file mode 100644
index 0000000..e5a611b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/doc-base
@@ -0,0 +1,11 @@
+Document: testing
+Title: Working doc-base control file
+Author: Russ Allbery
+Abstract: This control file ensures that we don't get false positives for
+ correct doc-base files.
+ .
+ There isn't anything wrong with this one.
+Section: Education
+
+Format: Text
+Files: /usr/share/doc/filenames/README.macosx
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules
new file mode 100755
index 0000000..0b9e87c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/debian/rules
@@ -0,0 +1,231 @@
+#!/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.
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+clean:
+ mkdir -p .svn CVS "{arch}" .arch-ids .bzr
+ touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp
+ touch data/.arch-inventory
+ touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121'
+ touch 'data/Maelstrom Sound.mine'
+ touch "data/'\\ "
+ touch filenames.c~
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+
+binary-arch:
+
+binary-indep:
+ install -d debian/tmp/DEBIAN
+ cp -a data debian/tmp/files
+ chmod -R go=rX debian/tmp/files
+
+ install -d debian/tmp/usr/lib/filenames
+ install -m 555 -d debian/tmp/usr/lib/filenames/readonly
+ touch debian/tmp/usr/lib/filenames/readonly/test
+
+ install -d debian/tmp/usr/lib/menu
+ install -d debian/tmp/usr/share/menu
+ touch debian/tmp/usr/lib/menu/README
+ touch debian/tmp/usr/share/menu/README
+ touch debian/tmp/usr/lib/menu/menu
+ touch debian/tmp/usr/share/menu/menu
+ chmod 644 debian/tmp/usr/lib/menu/*
+
+ install -d debian/tmp/$(VENDORARCH)/foo
+ mkdir debian/tmp/$(VENDORARCH)/.svn
+ mkdir debian/tmp/$(VENDORARCH)/CVS
+ mkdir "debian/tmp/$(VENDORARCH)/{arch}"
+ mkdir debian/tmp/$(VENDORARCH)/.arch-ids
+ mkdir debian/tmp/$(VENDORARCH)/.bzr
+ mkdir debian/tmp/$(VENDORARCH)/.be
+ mkdir debian/tmp/$(VENDORARCH)/.ditrack
+ install -d debian/tmp/usr/share/perl5
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt
+
+ touch debian/tmp/$(VENDORARCH)/foo/.packlist
+ chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist
+ touch debian/tmp/$(VENDORARCH)/foo/bar.pm
+ TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm
+ chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm
+
+ install -d debian/tmp/usr/share/pixmaps
+ install -d debian/tmp/usr/share/pixmaps/foo
+ touch debian/tmp/usr/share/pixmaps/license.jpeg
+ touch debian/tmp/usr/share/pixmaps/licence.jpg
+ touch debian/tmp/usr/share/pixmaps/copying.xpm
+ touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg
+ touch debian/tmp/usr/share/pixmaps/foo/copying.png
+ touch debian/tmp/usr/share/pixmaps/license.txt
+ touch debian/tmp/usr/share/pixmaps/license.foo
+ touch debian/tmp/usr/share/pixmaps/COPYING
+
+ install -d debian/tmp/usr/share/linda/overrides
+ echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames
+
+ install -d debian/tmp/usr/share/doc/filenames
+ touch debian/tmp/usr/share/doc/filenames/README.macosx
+
+ echo foo > debian/tmp/usr/share/doc/filenames/bokmål
+ echo foo > debian/tmp/usr/share/doc/filenames/bokm\\Ã¥l
+ echo foo > debian/tmp/usr/share/doc/filenames/bokmål
+ echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål
+
+ echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db
+ echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store
+ echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian
+
+ touch debian/tmp/usr/share/doc/filenames/news.debian
+ gzip -n debian/tmp/usr/share/doc/filenames/news.debian
+ touch debian/tmp/usr/share/doc/filenames/NEWS.Debian
+
+ echo foo > debian/tmp/usr/share/doc/filenames/link-one
+ ln debian/tmp/usr/share/doc/filenames/link-one \
+ debian/tmp/usr/share/doc/filenames/link-two
+
+ install -d debian/tmp/usr/share/doc/filenames/examples
+ touch debian/tmp/usr/share/doc/filenames/examples/__init__.py
+ touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example
+ touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2
+ gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2
+
+ install -d debian/tmp/usr/lib/ada/adalib/
+ touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali
+ chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali
+ chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali
+
+ install -d debian/tmp/usr/bin/X11/
+ touch debian/tmp/usr/bin/X11/testxbin
+ install -d debian/tmp/usr/X11R6/bin
+ touch debian/tmp/usr/X11R6/bin/testxbin2
+ install -d debian/tmp/usr/include/X11
+ touch debian/tmp/usr/include/X11/foo.h
+
+ install -d debian/tmp/usr/bin/mh
+ touch debian/tmp/usr/bin/mh/read
+ chmod 755 debian/tmp/usr/bin/mh/read
+ install -d debian/tmp/usr/bin/bin
+ touch debian/tmp/usr/bin/bin/bad
+ chmod 755 debian/tmp/usr/bin/bin/bad
+
+ install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes
+ gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes
+ ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz
+
+ install -d debian/tmp/var/www
+ echo foo > debian/tmp/var/www/foo
+
+ install -d debian/tmp/srv/foo
+ touch debian/tmp/srv/foo/bar
+ install -d debian/tmp/opt/foo
+ touch debian/tmp/opt/foo/bar
+
+ install -d debian/tmp/etc/gconf/schemas
+ touch debian/tmp/etc/gconf/schemas/test.schema
+
+ install -d debian/tmp/usr/lib/sgml
+ touch debian/tmp/usr/lib/sgml/package
+
+ install -d debian/tmp/usr/share/gnome/apps/System
+ touch debian/tmp/usr/share/gnome/apps/System/foo.desktop
+
+ install -d debian/tmp/usr/share/filenames
+ touch debian/tmp/usr/share/filenames/jquery.js
+ touch debian/tmp/usr/share/filenames/jquery.lite.js
+ touch debian/tmp/usr/share/filenames/jquery.min.js
+ touch debian/tmp/usr/share/filenames/jquery.pack.js
+ touch debian/tmp/usr/share/filenames/mochikit.js
+ touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js
+ touch debian/tmp/usr/share/filenames/prototype.js
+ touch debian/tmp/usr/share/filenames/prototype.js.gz
+ touch debian/tmp/usr/share/filenames/scriptaculous.js
+ touch debian/tmp/usr/share/filenames/yahoo-dom-event.js
+ touch debian/tmp/usr/share/filenames/yahoo-min.js
+
+ ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz
+ ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok
+ ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong
+ ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong
+ ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok
+ ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong
+ ln -s test debian/tmp/usr/lib/filenames/symlink3ok
+ ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong
+ ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong
+ ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok
+ ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong
+ ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong
+ ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong
+ ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong
+ ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn
+ ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn
+ ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn
+ ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong
+
+# devhelp tests. Files in /usr/share/gtk-doc/html or /usr/share/devhelp/books
+# are okay. Files elsewhere are okay iff their parent path is symlinked into
+# one of those paths.
+ install -d debian/tmp/usr/share/devhelp/books/filenames
+ echo 'Not really XML' > debian/tmp/usr/share/devhelp/books/filenames/a.devhelp
+ echo 'Not really XML' > debian/tmp/usr/share/devhelp/books/filenames/.devhelp2
+ gzip -n -9 debian/tmp/usr/share/devhelp/books/filenames/.devhelp2
+ install -d debian/tmp/usr/share/gtk-doc/html/filenames
+ echo 'Not really XML' > debian/tmp/usr/share/gtk-doc/html/filenames/b.devhelp
+ gzip -n -9 debian/tmp/usr/share/gtk-doc/html/filenames/b.devhelp
+ install -d debian/tmp/usr/share/doc/filenames/good-devhelp
+ echo 'Not really XML' > debian/tmp/usr/share/doc/filenames/good-devhelp/.devhelp2
+ install -d debian/tmp/usr/share/doc/filenames/bad-devhelp
+ echo 'Not really XML' > debian/tmp/usr/share/doc/filenames/bad-devhelp/c.devhelp
+ gzip -n -9 debian/tmp/usr/share/doc/filenames/bad-devhelp/c.devhelp
+ ln -s ../../doc/filenames/good-devhelp debian/tmp/usr/share/gtk-doc/html/good
+ ln -s ../doc/filenames/bad-devhelp debian/tmp/usr/share/gtk-doc/html/bad
+
+ install -d debian/tmp/usr/share/doc-base
+ install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames
+
+ dpkg-gencontrol -pfilenames -Pdebian/tmp
+ dpkg --build debian/tmp ..
+
+ install -d debian/filename-games debian/filename-games/DEBIAN
+ install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin
+ echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game
+ chmod 755 debian/filename-games/usr/bin/test-game
+ dpkg-gencontrol -pfilename-games -Pdebian/filename-games
+ dpkg --build debian/filename-games ..
+
+ install -d debian/more-filename-games debian/more-filename-games/DEBIAN
+ install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin
+ echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game
+ echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game
+ chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game
+ dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games
+ dpkg --build debian/more-filename-games ..
+
+binary: binary-arch binary-indep
+
+.PHONY: build-indep build-arch build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values
new file mode 100644
index 0000000..062a1ea
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-non-native
+Testname: legacy-filenames
+Source: filenames
+Version: 1:12-0.1
+Description: Legacy test "filenames"
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif
new file mode 100644
index 0000000..07fd914
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/ .tif
@@ -0,0 +1,2 @@
+This filename was inspired by the ".tif used by fnlib. The real package
+uses space.tif.
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/".tif b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/".tif
new file mode 100644
index 0000000..e005775
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/".tif
@@ -0,0 +1 @@
+This filename is really used, by fnlib.
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound
new file mode 100644
index 0000000..4110410
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/build-spec/orig/data/Maelstrom Sound
@@ -0,0 +1 @@
+This filename occurs in the maelstrom package.
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/eval/desc b/t/recipes/checks/debian/changelog/legacy-filenames/eval/desc
new file mode 100644
index 0000000..b528ba4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/eval/desc
@@ -0,0 +1,3 @@
+Testname: legacy-filenames
+Test-Against: epoch-change-without-comment
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/eval/hints b/t/recipes/checks/debian/changelog/legacy-filenames/eval/hints
new file mode 100644
index 0000000..7ff07b2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/eval/hints
@@ -0,0 +1,4 @@
+filenames (source): odd-historical-debian-changelog-version 11 (for non-native) [debian/changelog:7]
+filenames (binary): wrong-name-for-debian-news-file [usr/share/doc/filenames/news.debian.gz]
+filenames (binary): debian-news-file-not-compressed [usr/share/doc/filenames/NEWS.Debian]
+filenames (binary): debian-changelog-file-is-a-symlink [usr/share/doc/filenames/changelog.gz]
diff --git a/t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test b/t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test
new file mode 100644
index 0000000..571e35d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-filenames/eval/post-test
@@ -0,0 +1,3 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/package-installs-packlist/ d
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..3da7954
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..3e86b96
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description also uses non-UTF8 high bytes chars: ÄÖÜß
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/eval/desc b/t/recipes/checks/debian/changelog/legacy-foo++/eval/desc
new file mode 100644
index 0000000..1907a84
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/eval/hints b/t/recipes/checks/debian/changelog/legacy-foo++/eval/hints
new file mode 100644
index 0000000..2775f3f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/eval/hints
@@ -0,0 +1,4 @@
+foo++ (source): latest-debian-changelog-entry-without-new-date [debian/changelog:1]
+foo++ (binary): latest-changelog-entry-without-new-date [usr/share/doc/foo++/changelog.gz:1]
+foo++ (binary): debian-changelog-has-wrong-day-of-week 2003-04-14 was a Monday [usr/share/doc/foo++/changelog.gz:1]
+foo++ (binary): bogus-mail-host-in-debian-changelog he@unknown (for version 5) [usr/share/doc/foo++/changelog.gz:1]
diff --git a/t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test b/t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in
new file mode 100644
index 0000000..91a6bb5
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+libbaz ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial setup
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800
+
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control
new file mode 100644
index 0000000..1506687
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/control
@@ -0,0 +1,58 @@
+Source: libbaz
+Section: libs
+Priority: optional
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Build-depends: debhelper (>=4)
+Standards-Version: 3.2.1
+
+Package: libbaz1
+Architecture: any
+Provides: libbaz
+Description: test handling of library packages
+ Regression test for lintian's handling of libraries.
+ .
+ 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.
+
+Package: libbaz1-dev
+Architecture: any
+Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8
+Description: development package
+ Regression test for lintian's handling of libraries (dev).
+ .
+ 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.
+
+Package: libbaz2
+Architecture: any
+Depends: ${shlibs:Depends}, libssl0.9.8
+Description: test handling of library packages (good)
+ Regression test for lintian's handling of libraries (good).
+ .
+ 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.
+
+Package: libbaz2-dev
+Architecture: any
+Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version})
+Description: development package (good)
+ Regression test for lintian's handling of libraries (dev good).
+ .
+ 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.
+
+Package: libbaz2-dbg
+Architecture: any
+Depends: libbaz2 (= ${binary:Version})
+Priority: optional
+Description: debugging package
+ Regression test for lintian's handling of libraries (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.
+
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright
new file mode 100644
index 0000000..a874c87
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/copyright
@@ -0,0 +1,8 @@
+This package 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.
+
+However, this has an OpenSSL exception.
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/dev.prerm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst
new file mode 100644
index 0000000..ec0b98a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ]
+; then
+ ln -sf ../share/doc/$PKG /usr/doc/$PKG
+ fi
+fi
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm
new file mode 100644
index 0000000..50e37c3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then
+ rm -f /usr/doc/$PKG
+fi
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs
new file mode 100644
index 0000000..b88e288
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.shlibs
@@ -0,0 +1,8 @@
+libdoesntexist2 1.0 libbaz1
+libdoesntexist2 1.0 libbaz1
+libbaz2 1.1 libbaz
+libbaz3 1 libbaz1 (>> 1-1)
+libbaz4 1 libbaz1 (= 1-1)
+libbaz5 1 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols
new file mode 100644
index 0000000..72f9d8a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/lib.symbols
@@ -0,0 +1,3 @@
+libbaz.so.2 libbaz1 #MINVER#
+ pw 1-1
+ foo 1.1-1
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules
new file mode 100755
index 0000000..fa99bc8
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/rules
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+
+lib_tmp=debian/tmp-lib
+dev_tmp=debian/tmp-dev
+
+LIB=libbaz1
+DEV=libbaz1-dev
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+build-arch:
+ $(MAKE)
+
+build-indep:
+
+build: build-arch build-indep
+
+clean:
+ $(MAKE) clean
+ dh_clean -plibbaz2 -plibbaz2-dev
+ rm -f debian/files debian/substvars
+ rm -rf $(lib_tmp) $(dev_tmp)
+
+# Now the correct libbaz2-dev package
+binary-correct:
+ install -d debian/libbaz2-dev/usr/lib
+ cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib
+ # usually, I'd also include some .h files to /usr/include
+
+ # Now the correct libbaz2 package
+ install -d debian/libbaz2/usr/lib
+ cp -a libbaz2.so.* debian/libbaz2/usr/lib
+ chmod a-x debian/libbaz2/usr/lib/*
+
+ # General stuff that is tested in other testsets:
+ dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # Mess up the libbaz2 changelog files to test the symlink handling.
+ ln -s /usr/share/doc/lintian/changelog.gz \
+ debian/libbaz2/usr/share/doc/libbaz2/changelog.gz
+ install -m 644 debian/changelog \
+ debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo
+ ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog
+
+ # Okay, if either line is omitted, it should be noted
+ dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev
+ dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # and again, regular packaging stuff
+ dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs
+ dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+# and the incorrect one
+binary-arch: build-arch binary-correct
+ # first, the lib package
+ install -d $(lib_tmp)/usr/lib
+ # resp. no soname (check), wrong soname (check), and no-pic (check)
+ cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib
+ cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b
+ install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b
+ # let's include the .a in the non-dev too (TODO)
+ # Also, libbaz1.a hasn't a symbol table (TODO)
+ cp -a *.a $(lib_tmp)/usr/lib
+ # And a wrong .so symlink (wrong, only in -dev, TODO)
+ ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so
+ # And a wrong .so.X symlink (wrong, should point to a real existing
+ # shlib, TODO)
+ ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9
+ # And a plain .so (wrong, TODO)
+ touch $(lib_tmp)/usr/lib/libbar2.so
+ # And a non-versioned SONAME.
+ install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so
+ strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+
+ install -d $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB)
+ gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog
+ install -d $(lib_tmp)/DEBIAN
+ install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst
+ install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm
+ touch $(lib_tmp)/usr/share/doc/README.Debian
+ #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0
+ install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs
+ install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols
+ dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp)
+ dpkg --build $(lib_tmp) ..
+
+ # now the -dev package
+ install -d $(dev_tmp)/usr/include
+ install -d $(lib_tmp)/usr/lib
+ # let's also install the .so at the same time... (wrong, TODO)
+ cp -a *.a *.so.* $(lib_tmp)/usr/lib
+ # and fuck up permission (TODO)
+ chmod a+x $(lib_tmp)/usr/lib/*.a
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ install -d $(dev_tmp)/usr/share/doc
+ ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV)
+ install -d $(dev_tmp)/DEBIAN
+ install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst
+ install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp)
+ dpkg --build $(dev_tmp) ..
+
+
+binary: binary-arch
+
+# The mention of binary-indep here should be sufficient to suppress the
+# warning that it's not present.
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides
new file mode 100644
index 0000000..6008d27
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/debian/source.lintian-overrides
@@ -0,0 +1 @@
+libbaz source: maintainer-script-lacks-debhelper-token
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values
new file mode 100644
index 0000000..7effe4f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-libbaz
+Source: libbaz
+Version: 1-1
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Description: Legacy test "libbaz"
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile
new file mode 100644
index 0000000..657dc2a
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/Makefile
@@ -0,0 +1,55 @@
+# This is the correct way to build a lib
+
+CC=gcc
+CFLAGS=-g -Wall -Winline -O2
+LDFLAGS=-Wl,--no-as-needed
+
+OBJS=baz.o extra.o
+SHOBJS=baz.sho extra.sho
+NOPICOBJS = $(SHOBJS)
+
+all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \
+ libbaz.so
+
+libbaz2.so: libbaz2.so.1.0
+ ln -sf $^ $@
+libbaz2.so.1.0: libbaz2.so.1.0.3b
+ ln -sf $^ $@
+
+# Oops, forget the soname altogether
+libbaz1.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared $^ -lc
+
+libbaz2.so.1.0.3b: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc
+
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc
+
+# Non-versioned SONAME.
+libbaz.so: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc
+
+#%.o-noreentrant: %.c
+# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $<
+
+%.sho: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $<
+
+%.o: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $<
+
+libbaz2.a: $(OBJS)
+ ar cq $@ $(OBJS)
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+ ranlib $@
+
+# The pic one in the .a (wrong), no archive table
+libbaz1.a: $(SHOBJS)
+ ar cqS $@ $^
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+clean:
+ rm -f *.a *.o *.so* *.sho
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c
new file mode 100644
index 0000000..4d5fc45
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/baz.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double pw(double p)
+{
+ return exp(p);
+}
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/build-spec/orig/extra.c
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc
new file mode 100644
index 0000000..4b301de
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-libbaz
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints
new file mode 100644
index 0000000..186319e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/hints
@@ -0,0 +1,9 @@
+libbaz2-dev (binary): initial-upload-closes-no-bugs [usr/share/doc/libbaz2-dev/changelog:1]
+libbaz2-dev (binary): debian-changelog-file-missing-or-wrong-name
+libbaz2-dev (binary): debian-changelog-file-is-a-symlink [usr/share/doc/libbaz2-dev/changelog]
+libbaz2-dev (binary): changelog-file-not-compressed [usr/share/doc/libbaz2-dev/changelog]
+libbaz2-dbg (binary): no-changelog usr/share/doc/libbaz2-dbg/changelog.Debian.gz (non-native package)
+libbaz2 (binary): debian-changelog-file-missing-or-wrong-name
+libbaz2 (binary): debian-changelog-file-is-a-symlink [usr/share/doc/libbaz2/changelog.gz]
+libbaz1 (binary): initial-upload-closes-no-bugs [usr/share/doc/libbaz1/changelog.gz:1]
+libbaz1 (binary): debian-changelog-file-missing-or-wrong-name
diff --git a/t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test
new file mode 100755
index 0000000..29dc3f4
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-libbaz/eval/post-test
@@ -0,0 +1,4 @@
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/: file-references-package-build-path / d
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..a12fc8c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,57 @@
+maintainer-scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * Doing an upload for QA but I fail to give it a correct version number,
+ have some uploaders, and also fail to mention it... Bad me ;)
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:05:29 +0200
+
+maintainer-scripts (6.1) unstable; urgency=low
+
+ * I made this entry on my local PC, oops ;)
+
+ -- Jeroen van Wolffelaar <jeroen@mordor> Sat, 21 Feb 2004 18:29:37 +0100
+
+maintainer-scripts (6) unstable; urgency=low
+
+ * added ldconfig calls to postrm to check test the postrm tests
+ from shared-libs
+
+ -- Frank Lichtenheld <djpig@debian.org> Sat, 21 Feb 2004 18:29:36 +0100
+
+maintainer-scripts (5) unstable; urgency=low
+
+ * added bash style arrays to postinst, this one is for you Torsten (-:
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 30 Mar 2001 23:27:06 -0800
+
+maintainer-scripts (4) unstable; urgency=low
+
+ * added a here document to the prerm, along with two more bashisms
+ * made postrm a bash script to check that bash scripts are not searched
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Mon, 26 Feb 2001 13:02:57 -0800
+
+maintainer-scripts (3) unstable; urgency=low
+
+ * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this
+ thinking the '||' was a argument.
+ * also added an invalid call to '. foo bar'
+ * postinst now has a space between the #! and /bin/sh to test the interpreter
+ checking code.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 9 Jan 2001 23:06:25 -0800
+
+maintainer-scripts (2) unstable; urgency=low
+
+ * Fix location of changelog.
+ * prerm and postrm do 'update-alternatives --remove'; should only complain
+ about postrm.
+
+ -- Colin Watson <cjw44@flatline.org.uk> Fri, 29 Dec 2000 06:01:24 +0000
+
+maintainer-scripts (1) unstable; urgency=low
+
+ * Initial version
+ * postinst and prerm set the usr/doc symlink
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..63dd2db
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/control.in
@@ -0,0 +1,18 @@
+Source: maintainer-scripts
+Section: misc
+Priority: optional
+Maintainer: QA group <packages@qa.debian.org>
+Uploaders: Anyone but Jeroen <jeroen@wolffelaar.nl>
+Build-Depends: [% $build_depends %]
+Standards-Version: 3.1.1
+Rules-Requires-Root: binary-targets
+XS-Dm-Upload-Allowed: Yes
+
+Package: maintainer-scripts
+Architecture: [% $package_architecture %]
+Depends: test
+Description: test lintian's maintainer script checks
+ 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/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..e56ed3b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postinst
@@ -0,0 +1,181 @@
+#! /bin/sh -e
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then
+ ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts
+ fi
+fi
+
+# valid
+. /usr/share/lintian/shell || exit 0
+. /usr/share/lintian/shell >/dev/null
+. /usr/share/lintian/shell 2>/dev/null
+. /usr/share/lintian/shell </dev/null
+. "$(dirname $0)/shell" ; bar
+# invalid
+. /usr/share/lintian/shell foo
+. "$(dirname $0)/shell" bar
+
+print "Hit enter to continue"
+read
+
+H[0]='this is a string'
+echo ${H[0]}
+echo "Index 0's length is ${#H[0]}"
+echo "All of the array is: ${H[@]}"
+
+install-info /usr/share/info/foo \
+ --quiet \ # make it so
+ --section foo
+
+echo Please use update-rc.d or invoke-rc.d to set up blah blah.
+
+chown root.root /usr/share/doc/maintainer-scripts/changelog
+chown root:root /usr/share/doc/maintainer-scripts/changelog
+
+$FOO=bar
+update-rc.d foo defaults >/dev/null
+update-rc.d $FOO defaults
+update-rc.d foo remove
+
+# valid
+FOO=/tmp
+FOO=/var/tmp
+: ${FOO:=/tmp}
+FOO=`mktemp /tmp/scripts.XXXXXX`
+rm "$FOO"
+FOO=`tempfile -n/tmp/scripts.tmp`
+mkdir /var/tmp/scripts
+FOO="/tmp/false.positive.XXXXXX"
+# invalid
+echo foo >>/tmp/scripts.tmp
+rm /tmp/scripts.tmp
+rmdir /var/tmp/scripts
+
+# invalid, maintainer-script-hides-init-failure
+invoke-rc.d foo start || exit 0
+
+# The right way to invoke an rc script
+if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d package start
+else
+ /etc/init.d/package start
+fi
+
+# Example ucf invocation.
+ucf /usr/share/foo/configuration /etc/foo.conf
+
+# Calling gconftool directly.
+gconftool-2 --makefile-install-rule foo.schema
+
+# Calling gconf-schemas with no dependency.
+gconf-schemas --register foo.schema
+
+# Calling update-xmlcatalog with no dependency.
+update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \
+ --package maintainer-scripts --root
+
+# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old
+# recipe from the dpkg wiki that should be replaced with dpkg-query.
+sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \
+ /var/lib/dpkg/status
+
+# Don't modify these files.
+echo 'broken 6714/tcp' >> /etc/services
+cp /nonexistent /etc/protocols
+mv /usr/share/doc/rpc /etc/rpc
+
+# But this is okay.
+cp /etc/protocols /etc/protocols.new
+
+# This is also wrong.
+echo 'broken' > /etc/inetd.conf
+cp /etc/inetd.conf.new /etc/inetd.conf
+
+# But this is fine.
+cp /etc/inetd.conf /srv/chroot/etc/inetd.conf
+
+# Deprecated
+install-sgmlcatalog --install package
+install-sgmlcatalog --remove package
+
+# This too is a heredoc.
+some-program > /etc/config-file <<'EOF'
+echo "All of the array is: ${H[@]}"
+EOF
+
+# But this isn't.
+cat '<<EOF'
+echo "All of the array is: ${H[@]}"
+EOF
+
+# This is a heredoc
+cat <<-EOF
+echo "All of the array is ${H[@]}"
+EOF
+
+# As is this
+cat <<';'
+echo "All of the array is ${H[@]}"
+;
+
+# and this
+cat <<foo
+echo "All of the array is ${H[@]}"
+foobar
+echo $HOSTNAME
+foo
+
+# and again
+cat <<\bar
+echo "All of the array is ${H[@]}"
+bar
+
+# yet another
+cat <<"x++"
+echo "All of the array is ${H[@]}"
+x++
+
+# Recognize single quotes even if they start at the beginning of a line.
+echo not a bashism \
+'/{ptex,tex}/{amstex,plain,generic,}'
+
+# More bashisms.
+echo -e 'foo\n'
+echo "${!foo}"
+cat $(\< file)
+select foo in a b ; do echo $foo ; done
+cnt=$((cnt + 1))
+if false ; then
+ exec -l /bin/sh
+ exec -c /bin/sh
+ exec -a foo /bin/sh
+fi
+let cnt++
+if test -a /etc/default ; then
+ echo "$RANDOM|stuff"
+fi
+
+# Calling start-stop-daemon directly in an init script.
+start-stop-daemon --start --quiet --name foo --startas /usr/bin/foo
+
+# But stopping it is fine -- we may be working around something else.
+start-stop-daemon --stop --quiet --name foo --startas /usr/bin/foo
+
+# Deprecated chown use with flags.
+chown -R root.root /usr/share/doc/maintainer-scripts
+
+case $mainscript in
+ /usr/bin/foo) foobarbaz;;
+esac
+
+/usr/bin/baz; echo bar
+
+# Some comment checking
+# This should flag $RANDOM
+test $# -gt 2 && echo $RANDOM
+# But these shouldn't
+test 1=1 # echo $RANDOM
+(test 1=1)# echo $RANDOM
+test 1=1;# echo $RANDOM
+backgroundtask &#echo $RA
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..c0aaf19
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/postrm
@@ -0,0 +1,47 @@
+#!/bin/bash
+#set -e
+
+update-alternatives --remove dummy /usr/bin/dummy-alternative
+
+# Normally read in a maintainer script is not kosher, but here we're going
+# to do it only if debconf doesn't exist.
+if ! test -f /usr/share/debconf/confmodule ; then
+ echo "Hit enter"
+ read
+fi
+
+# neither of the following should be detected as postrm-unsafe-ldconfig
+# intended, without quotes
+ if [ "$1" = remove ]; then
+ ldconfig
+ fi
+# reversed, many whitespace
+if [ 'remove' = "$1" ]
+then
+
+ ldconfig
+fi
+
+[ "remove" ="$1" ] && ldconfig
+
+update-rc.d bar remove
+
+# Shouldn't provoke an error despite no invoke-rc.d.
+echo "/etc/init.d/package stop to stop something"
+
+# Shouldn't require a ucf dependency. Unfortunately, right now that's
+# just because postrm isn't checked, not because we ensure that the
+# invocation is conditional.
+if which ucf >/dev/null; then
+ ucf --purge /etc/foo.conf
+fi
+
+# This isn't allowed.
+rm /tmp/foo /dev/device
+rm /dev/device1
+
+# But this is okay.
+rm /tmp/foo > /dev/null
+
+# Not allowed here even with remove.
+install-sgmlcatalog --remove package
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..6058978
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+update-rc.d foo remove
+update-rc.d bar defaults
+
+# Obsolete dpkg assertions.
+dpkg --assert-support-predepends || exit 1
+dpkg --assert-working-epoch || exit 1
+dpkg --assert-long-filenames || exit 1
+dpkg --assert-multi-conrep || exit 1
+
+/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status
+
+# continuation lines
+update-alternatives --install /usr/bin/fakeroot fakeroot \
+ /usr/bin/fakeroot-ng 5 \
+ --slave /usr/share/man/man1/fakeroot.1.gz \
+ fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm
new file mode 100644
index 0000000..076ecaf
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/prerm
@@ -0,0 +1,188 @@
+#!/bin/sh
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove dummy /usr/bin/dummy-alternative
+fi
+
+if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the
+n
+ rm -f /usr/doc/maintainer-scripts
+fi
+
+cat <<EOF
+This is all really bad bash specific code!!!
+read
+source /bar/baz/bat foo
+EOF
+
+# ok, back to checking
+if [ "$2" == "purge" ]; then
+ rm -r /bar/baz
+fi
+
+function foo( ) {
+ # but not here: local
+ local bar
+ echo "foo" &>/dev/null
+}
+
+source $FOO
+
+trap "echo hi" EXIT HUP 3
+
+if [[ "$2" = "purge" ]]; then
+ kill -HUP $$
+fi
+
+#this is ok though
+if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then
+ echo 1
+fi
+
+update-rc.d foo remove
+
+# More false positives for bashism checks. None of these are errors.
+echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//'
+echo "$line" | grep -q "${fonts},${foo}"
+echo '$[1+2]'
+printf "foo |& bar"
+perl -e "print q( kill -HUP $? )"
+
+# Still catch disallowed expansions in double-quotes, though.
+echo "${line:3:1}"
+
+# The wrong way to run an init script (no invoke-rc.d).
+/etc/init.d/package stop
+
+# This is the only install-sgmlcatalog call that's allowed.
+install-sgmlcatalog --quiet --remove package
+
+# More bashisms checks
+
+read -x foo
+read -x
+read -r foo
+read foo
+read
+
+echo "a\\b"
+echo 'a\nb'
+
+echo "${UID}"
+echo "$EUID"
+echo "$SHLVL"
+echo "$DIRSTACK"
+echo "$SECONDS"
+echo "$BASH"
+echo "$BASH_FOO"
+echo "$SHELLOPTS"
+echo "$PIPESTATUS"
+
+bar="$(cut '-d|' -f2 <<< "$foo")"
+
+VAR=1
+VAR+=a
+
+echos() {
+ echo -n -e "bar"
+ echo -e -n "bar"
+ echo -en "bar"
+ echo -ne "bar"
+ echo "bar"
+ echo "echo -e foo"
+}
+
+ech.os() {
+ echo foo >& 2
+ echo foo >&bar
+ echo foo >& bar
+}
+
+echoes() {
+ echo "abc\nxyz"
+ echo 'xyz\rabc'
+ echo foo\cbar
+
+ echo -e "abc\nxyz"
+ echo -net 'xyz\rabc'
+ echo -e foo\cbar
+}
+
+foobar.() {
+ suspend x
+ suspended x
+ caller x
+ complete x
+ compgen x
+ declare -a foo
+}
+
+.foobar() {
+ typeset -x bar
+ disown 1
+ builtin foo
+ set -B
+ alias -p
+ unalias -a
+}
+
+IFS="()"
+
+ulimit
+shopt
+type -v bar
+time ls
+dirs
+diff <(tac a) <(tac b)
+
+pushd
+
+local foo=bar
+local -x foo
+
+popd
+
+readonly -f
+
+echo bar > /dev/tcp
+export x
+export -x x
+export -p x
+
+sh -x
+sh -D
+sh --foo
+sh +O
+
+# Brace expansion checks
+echo {a,b}
+echo {abc},{bcd}
+
+foobar()
+{
+ # This is a function
+}
+
+ foo.bar()
+(
+ # This is a function with a bad name
+)
+
+foobar@()
+{
+ # As is this
+}
+
+# This is ok
+read -r foo
+# but these aren't
+read -r
+read -p "Would you like to restart the service?" foo bar
+read --fish
+
+set -e
+
+source "$BAR"
+source '$BAR'
+source ~/bar
+source a
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..5fcef00
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/tmp/DEBIAN
+ install -m 0755 debian/preinst debian/tmp/DEBIAN
+ install -m 0755 debian/postinst debian/tmp/DEBIAN
+ install -m 0755 debian/prerm debian/tmp/DEBIAN
+ install -m 0755 debian/postrm debian/tmp/DEBIAN
+ install -m 0644 debian/triggers debian/tmp/DEBIAN
+ install -d debian/tmp/usr/share/doc/maintainer-scripts
+ install -m 0644 debian/changelog \
+ debian/tmp/usr/share/doc/maintainer-scripts/changelog
+ gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog
+ dpkg-gencontrol -isp
+ dpkg --build debian/tmp ..
+
+binary: binary-arch binary-indep
+
+# Make sure we see dh_clean even in a rule clean depends on. Not the point of
+# this test suite, but a convenient place to put it.
+clean: clean1 clean2 clean3
+clean1:
+clean2:
+ dh_clean
+clean3:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers
new file mode 100644
index 0000000..f627094
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/triggers
@@ -0,0 +1,4 @@
+# Example triggers file
+activate foo
+
+interest bar
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..430eea3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/debian/watch
@@ -0,0 +1,11 @@
+# A whitespace is fine for uscan:
+ version=5
+
+# Following line should not be matched:
+#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \
+# Following one is incorrect, there's a missing backslash at the end
+opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/
+
+# 'active' is useless here, but it works anyway
+options=active \
+http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values
new file mode 100644
index 0000000..c281e87
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-maintainer-scripts
+Source: maintainer-scripts
+Version: 7+dfsg-0.1
+Description: Legacy test "maintainer-scripts"
+Extra-Build-Depends: dash (>= 0.5.10.2)
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc
new file mode 100644
index 0000000..d41ac19
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-maintainer-scripts
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints
new file mode 100644
index 0000000..1bae29f
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/hints
@@ -0,0 +1,2 @@
+maintainer-scripts (source): odd-historical-debian-changelog-version 6.1 (for non-native) [debian/changelog:8]
+maintainer-scripts (binary): bogus-mail-host-in-debian-changelog jeroen@mordor (for version 6.1) [usr/share/doc/maintainer-scripts/changelog.gz:8]
diff --git a/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-maintainer-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/changelog/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/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/debian/changelog/legacy-relations/eval/desc b/t/recipes/checks/debian/changelog/legacy-relations/eval/desc
new file mode 100644
index 0000000..5093618
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/legacy-relations/eval/hints b/t/recipes/checks/debian/changelog/legacy-relations/eval/hints
new file mode 100644
index 0000000..f3ccfcb
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-relations/eval/hints
@@ -0,0 +1 @@
+relations (binary): no-changelog usr/share/doc/relations/changelog.gz (native package)
diff --git a/t/recipes/checks/debian/changelog/legacy-relations/eval/post-test b/t/recipes/checks/debian/changelog/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values
new file mode 100644
index 0000000..806df46
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: missing-explicit-entry-fp-unrel
+Skeleton: upload-non-native
+Version: 1.13.7-0.1
+Prev-Version: 1.13.2-1
+Description: Test for false positive of missing changelog entry, with a source NMU on a new upstream version.
diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc
new file mode 100644
index 0000000..e6b2d13
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/desc
@@ -0,0 +1,5 @@
+Testname: missing-explicit-entry-fp-unrel
+Test-Against:
+ changelog-file-missing-explicit-entry
+Check: debian/changelog
+See-Also: Debian Bug #942411
diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp-unrel/eval/hints
diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values
new file mode 100644
index 0000000..ced3c4e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: missing-explicit-entry-fp
+Skeleton: upload-non-native
+Version: 1.2-0+deb9u1
+Prev-Version: 0.9-1
+Description: Test for missing (stable update, etc.) entries, false positive, exception on 0.
diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc
new file mode 100644
index 0000000..b0514b1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/desc
@@ -0,0 +1,4 @@
+Testname: missing-explicit-entry-fp
+Test-Against:
+ changelog-file-missing-explicit-entry
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/missing-explicit-entry-fp/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8deb337
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/debian/changelog.in
@@ -0,0 +1,9 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Local package.
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- Russ Allbery <rra@debian.org> [% $date %]
diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values
new file mode 100644
index 0000000..2f60c73
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: nmu-local-changelog
+Description: Test suppression of NMU tags for local packages
diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc
new file mode 100644
index 0000000..4140200
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/desc
@@ -0,0 +1,4 @@
+Testname: nmu-local-changelog
+Test-Against: malformed-debian-changelog-version
+See-Also: Debian Bug#501523
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-changelog/eval/hints
diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8eba4c0
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/debian/changelog.in
@@ -0,0 +1,8 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- Russ Allbery <rra@debian.org> [% $date %]
diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values
new file mode 100644
index 0000000..e04302d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-version/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: nmu-local-version
+Version: 1.0local1
+Description: Test suppression of NMU tags for local packages
diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/eval/desc b/t/recipes/checks/debian/changelog/nmu-local-version/eval/desc
new file mode 100644
index 0000000..1cffe96
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-version/eval/desc
@@ -0,0 +1,4 @@
+Testname: nmu-local-version
+Test-Against: malformed-debian-changelog-version
+See-Also: Debian Bug#501523
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/nmu-local-version/eval/hints b/t/recipes/checks/debian/changelog/nmu-local-version/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-local-version/eval/hints
diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in
new file mode 100644
index 0000000..4017019
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ -- Thadeu Lima de Souza Cascardo <cascardo@debian.org> [% $date %]
diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values
new file mode 100644
index 0000000..409b82b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: nmu-new-upstream-version
+Version: 3.1-0.1
+Description: Test for new upstream NMU versions
+Skeleton: upload-non-native
diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc
new file mode 100644
index 0000000..7f8b8b3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/desc
@@ -0,0 +1,4 @@
+Testname: nmu-new-upstream-version
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-new-upstream-version/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in
new file mode 100644
index 0000000..6745296
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/debian/changelog.in
@@ -0,0 +1,9 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Team upload.
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- Russ Allbery <rra@debian.org> [% $date %]
diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values
new file mode 100644
index 0000000..0da98e2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-team-upload/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: nmu-team-upload
+Version: 1.0+nmu1
+Description: Test for versioning of a team upload
diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc
new file mode 100644
index 0000000..c867e9e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/desc
@@ -0,0 +1,3 @@
+Testname: nmu-team-upload
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/nmu-team-upload/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values b/t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values
new file mode 100644
index 0000000..d0d3daa
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/package-version-0/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: package-version-0
+Version: 0
+Description: Test a package with version 0
diff --git a/t/recipes/checks/debian/changelog/package-version-0/eval/desc b/t/recipes/checks/debian/changelog/package-version-0/eval/desc
new file mode 100644
index 0000000..98ff4b3
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/package-version-0/eval/desc
@@ -0,0 +1,4 @@
+Testname: package-version-0
+Test-Against:
+ malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/package-version-0/eval/hints b/t/recipes/checks/debian/changelog/package-version-0/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/package-version-0/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values
new file mode 100644
index 0000000..373fa4c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: sid-and-unstable-match-in-changes
+Skeleton: upload-native
+Distribution: sid
+Description: Test if Debian changelog is missing
diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in
new file mode 100755
index 0000000..0048c4d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/build-spec/post-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+perl -pi -e 's/(Distribution:\s*)sid/$1unstable/' "[% $build_product %]"
diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc
new file mode 100644
index 0000000..7f785c9
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/desc
@@ -0,0 +1,4 @@
+Testname: sid-and-unstable-match-in-changes
+Test-Against:
+ changelog-distribution-does-not-match-changes-file
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/sid-and-unstable-match-in-changes/eval/hints
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2d380f5
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+ * This line has a speling error.
+ - This line has the same speling error, but we should only
+ get one tag for it.
+ * Corrected spelling: abov -> above.
+ * Corrected typo: abov -> above.
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright
new file mode 100644
index 0000000..30cbe5c
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+This duplicate duplicate word should not trigger. (re. #897402)
+
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+Insofar as this is copyrightable, it is:
+
+ Copyright 2010 Russ Allbery <rra@debian.org>
+
+This text should not generate a spelling error for "ment":
+
+ computer software documentation," as such terms are used in
+ 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern-
+ ment only as a commercial end item. Consistent with 48 C.F.R.
+ 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995),
+
+But deafult is still a spelling error.
+
+This text should not generate a spelling error for the duplicate "a" (re. #844166)
+
+ following Attribution Information: (a) a copyright notice including the name
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base
new file mode 100644
index 0000000..3839a9b
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/doc-base
@@ -0,0 +1,9 @@
+Document: spelling-general
+Title: Check for debian doc-base spelling errors
+Author: Russ Allbery
+Abstract: This control file exercises, picky, speling error checks for
+ Debian doc-base files, such as meta-package.
+Section: Programming
+
+Format: text
+Files: /usr/share/doc/spelling-general/copyright
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme
new file mode 100644
index 0000000..b1647ba
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/add-readme
@@ -0,0 +1,8 @@
+This is a deliberate speling error. duplicate
+
+duplicate
+
+--- upstream.orig/README
++++ upstream/README
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel
new file mode 100644
index 0000000..48e7740
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/nonrel
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; description mentions typo)
+
+--- upstream.orig/nonrel
++++ upstream/nonrel
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..0bfb03d
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/series
@@ -0,0 +1,3 @@
+add-readme
+spelling
+nonrel
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling
new file mode 100644
index 0000000..29b9cfd
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/debian/patches/spelling
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; filename match)
+
+--- upstream.orig/spelling
++++ upstream/spelling
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values
new file mode 100644
index 0000000..1c8c790
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: spelling-general
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: General checks for spelling errors
diff --git a/t/recipes/checks/debian/changelog/spelling-general/eval/desc b/t/recipes/checks/debian/changelog/spelling-general/eval/desc
new file mode 100644
index 0000000..c42796e
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: spelling-general
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/spelling-general/eval/hints b/t/recipes/checks/debian/changelog/spelling-general/eval/hints
new file mode 100644
index 0000000..70278a2
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/spelling-general/eval/hints
@@ -0,0 +1 @@
+spelling-general (binary): spelling-error-in-changelog speling spelling [usr/share/doc/spelling-general/changelog.Debian.gz]
diff --git a/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values
new file mode 100644
index 0000000..073f011
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: two-dashes-in-non-native-version
+Version: 4.6.2-1-1
+Description: Two dashes in a non-native version
diff --git a/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc
new file mode 100644
index 0000000..2c2a6d1
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/desc
@@ -0,0 +1,3 @@
+Testname: two-dashes-in-non-native-version
+Test-Against: malformed-debian-changelog-version
+Check: debian/changelog
diff --git a/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints
new file mode 100644
index 0000000..c5e0665
--- /dev/null
+++ b/t/recipes/checks/debian/changelog/two-dashes-in-non-native-version/eval/hints
@@ -0,0 +1 @@
+two-dashes-in-non-native-version (source): hyphen-in-upstream-part-of-debian-changelog-version 4.6.2-1 [debian/changelog:1]
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/adopted/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/adopted/control-file-general/eval/desc
new file mode 100644
index 0000000..da4b5c8
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/adopted
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/adopted/control-file-general/eval/hints
new file mode 100644
index 0000000..0c6607a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-general/eval/hints
@@ -0,0 +1 @@
+control-file-general (source): adopted-extended-field (in section for source) XS-Vcs-Svn [debian/control:14]
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control-file-golang-xs-go-import-path.install b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control-file-golang-xs-go-import-path.install
new file mode 100644
index 0000000..0ba75d6
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control-file-golang-xs-go-import-path.install
@@ -0,0 +1 @@
+static usr/lib/foo/
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control.in
new file mode 100644
index 0000000..65425a5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/debian/control.in
@@ -0,0 +1,42 @@
+Source: [% $source %]
+Section: net
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Rules-Requires-Root: [% $rules_requires_root %]
+Build-Depends: [% $build_depends %],
+ golang-go (>= 2:1.1.1-4)
+XS-Go-Import-Path: github.com/Debian/lintian-test-package
+Go-Import-Path: github.com/Debian/lintian-test-package
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Built-Using: ${misc:Built-Using}
+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.
+
+Package: [% $source %]-dev
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (dev)
+ 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.
+ .
+ This package contains the source.
+
+Package: [% $source %]-clean-dev
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (clean dev)
+ 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.
+ .
+ This package contains the source, without a built-using tag.
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/fill-values
new file mode 100644
index 0000000..130e255
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: control-file-golang-xs-go-import-path
+Description: False-positive test for XS-Go-Import field
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/Makefile b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/Makefile
new file mode 100644
index 0000000..6047afb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/Makefile
@@ -0,0 +1,12 @@
+NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS))
+NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS))
+COMPILE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS)
+
+all:
+ # static version
+ $(COMPILE) -static -o static basic.c
+
+clean distclean:
+ rm -f basic
+
+check test:
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/basic.c b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/basic.c
new file mode 100644
index 0000000..7dea5a0
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/build-spec/orig/basic.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int
+main(void)
+{
+ char t[10];
+ printf("Hello world!\n");
+ /* Bad choice for reading from stdin, but it forces a stack
+ protector, so meh.
+ */
+ gets (t);
+}
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/desc b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/desc
new file mode 100644
index 0000000..c5ce740
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/desc
@@ -0,0 +1,3 @@
+Testname: control-file-golang-xs-go-import-path
+Test-Against: adopted-extended-field
+Check: debian/control/field/adopted
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hint b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hint
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hint
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hints b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-golang-xs-go-import-path/eval/hints
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/debian/control.in
new file mode 100644
index 0000000..bb46277
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/debian/control.in
@@ -0,0 +1,19 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: https://lintian.debian.org/
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+XC-Package-Type: udeb
+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/debian/control/field/adopted/control-file-pedantic/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/fill-values
new file mode 100644
index 0000000..d31fe5e
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-pedantic
+Description: Pedantic tests for control file issues
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/desc b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/desc
new file mode 100644
index 0000000..d8e0f7f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-pedantic
+Check: debian/control/field/adopted
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/hints b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/hints
new file mode 100644
index 0000000..d3770ad
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-pedantic/eval/hints
@@ -0,0 +1 @@
+control-file-pedantic (source): adopted-extended-field (in section for control-file-pedantic-udeb) XC-Package-Type [debian/control:14]
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in
new file mode 100644
index 0000000..920b4e2
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/debian/control.in
@@ -0,0 +1,18 @@
+Source: [% $source %]
+Priority: optional
+Section: non-free/[% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+XS-Autobuild: no
+Autobuild: 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/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values
new file mode 100644
index 0000000..07d27d1
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-source-upload-to-non-free-without-autobuild
+Description: Check for source-only uploads to non-free without autobuild
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/desc b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/desc
new file mode 100644
index 0000000..d59a609
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/desc
@@ -0,0 +1,3 @@
+Testname: control-file-source-upload-to-non-free-without-autobuild
+Test-Against: adopted-extended-field
+Check: debian/control/field/adopted
diff --git a/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/hints b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/control-file-source-upload-to-non-free-without-autobuild/eval/hints
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..1d6806d
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/control/field/adopted/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-binary/eval/desc b/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/desc
new file mode 100644
index 0000000..700e237
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/control/field/adopted
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/hints b/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/hints
new file mode 100644
index 0000000..bf0c2ff
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/hints
@@ -0,0 +1,2 @@
+binary (source): adopted-extended-field (in section for source) XS-Vcs-Browser [debian/control:9]
+binary (source): adopted-extended-field (in section for source) XS-Dm-Upload-Allowed [debian/control:10]
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/post-test b/t/recipes/checks/debian/control/field/adopted/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/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/debian/control/field/adopted/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..1e276d7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description also uses some UTF8 high bytes chars: ÄÖÜß
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/desc b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/desc
new file mode 100644
index 0000000..4f6731b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/control/field/adopted
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/hints b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/hints
new file mode 100644
index 0000000..7d978ef
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (source): adopted-extended-field (in section for source) XS-Dm-Upload-Allowed [debian/control:9]
diff --git a/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/post-test b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/control.in
new file mode 100644
index 0000000..b8807cf
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/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
+XS-Testsuite: autopkgtest, golf
+
+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/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/control b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/control
new file mode 100644
index 0000000..19e2aee
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/control
@@ -0,0 +1 @@
+Tests: test-1
diff --git a/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/test-1 b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/test-1
new file mode 100644
index 0000000..039e4d0
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/debian/tests/test-1
@@ -0,0 +1,2 @@
+#!/bin/sh
+exit 0
diff --git a/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/fill-values b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/fill-values
new file mode 100644
index 0000000..11a2f63
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: testsuite-unknown-suite
+Description: Tests for unknown suite in the control being non-file
diff --git a/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/desc b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/desc
new file mode 100644
index 0000000..e36143f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/desc
@@ -0,0 +1,2 @@
+Testname: testsuite-unknown-suite
+Check: debian/control/field/adopted
diff --git a/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints
new file mode 100644
index 0000000..ad57ccd
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/adopted/testsuite-unknown-suite/eval/hints
@@ -0,0 +1 @@
+testsuite-unknown-suite (source): adopted-extended-field (in section for source) XS-Testsuite [debian/control:8]
diff --git a/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/debian/control.in
new file mode 100644
index 0000000..25e3070
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/debian/control.in
@@ -0,0 +1,43 @@
+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 %]-broken
+Architecture: any-amd64 any-arm64 any-mips64 any-mips64el any-ia64
+ any-ppc64 any-ppc64el any-sparc64
+Depends: ${misc:Depends}
+Description: [% $description %] (multiline architecture, broken)
+ This is a (broken) 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 Architecture (multi-)line example above is taken from
+ https://bugs.debian.org/780473
+
+Package: [% $source %]-fine-any-something
+Architecture: any-amd64 any-arm64 any-mips64 any-mips64el any-ia64 any-ppc64 any-ppc64el any-sparc64
+Depends: ${misc:Depends}
+Description: [% $description %] (any-something, fine)
+ This is a (non-broken) 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.
+ .
+ This "any-something" package should not show up.
+
+Package: [% $source %]-fine-all
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (all, fine)
+ This is a (non-broken) 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.
+ .
+ This "all" package should not show up.
diff --git a/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/fill-values b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/fill-values
new file mode 100644
index 0000000..b1b9f17
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-important-space
+Description: Important tests for control file spacing
diff --git a/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/desc b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/desc
new file mode 100644
index 0000000..1fcd3a9
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-important-space
+Check: debian/control/field/architecture/multiline
diff --git a/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints
new file mode 100644
index 0000000..366ed52
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/architecture/multiline/control-file-important-space/eval/hints
@@ -0,0 +1 @@
+control-file-important-space (source): multiline-architecture-field Architecture (in section for control-file-important-space-broken) [debian/control:11]
diff --git a/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/debian/control.in
new file mode 100644
index 0000000..7df1b9f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/debian/control.in
@@ -0,0 +1,33 @@
+Source: [% $source %]
+Priority: optional
+Section: devel
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ big <stage1>, bpfail1 <foobar>,
+ bpcomplicated <stage1 nocheck> <cross> <!pkg.[% $source %].foo>
+Rules-Requires-Root: no
+
+Package: [% $source %]-wrong-syntax
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Build-Profiles: <in<valid>
+Description: [% $description %] (wrong syntax)
+ Check the syntax of the Build-Profiles field
+ .
+ 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.
+
+Package: [% $source %]-unknown-profile
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Build-Profiles: <!stage1 !nocheck> <!unknown> <pkg.[% $source %].foo>
+Description: [% $description %] (unknown profile)
+ Check for unknown profile names
+ .
+ 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/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/fill-values
new file mode 100644
index 0000000..7fd9fd0
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-build-profiles-general
+Description: General tests for build profiles
diff --git a/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/desc b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/desc
new file mode 100644
index 0000000..20c61ee
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/desc
@@ -0,0 +1,5 @@
+Testname: fields-build-profiles-general
+Check: debian/control/field/build-profiles
+See-Also:
+ Debian Bug#540594,
+ Debian Bug#551793
diff --git a/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints
new file mode 100644
index 0000000..e100e00
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/build-profiles/fields-build-profiles-general/eval/hints
@@ -0,0 +1,2 @@
+fields-build-profiles-general (source): invalid-restriction-formula-in-build-profiles-field <in<valid> (in section for fields-build-profiles-general-wrong-syntax) [debian/control:14]
+fields-build-profiles-general (source): invalid-profile-name-in-build-profiles-field unknown (in section for fields-build-profiles-general-unknown-profile) [debian/control:26]
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control-file-golang-built-using.install b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control-file-golang-built-using.install
new file mode 100644
index 0000000..c07a6cb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control-file-golang-built-using.install
@@ -0,0 +1 @@
+static /usr/lib/foo/
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control.in
new file mode 100644
index 0000000..d060140
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/debian/control.in
@@ -0,0 +1,41 @@
+Source: [% $source %]
+Section: net
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Rules-Requires-Root: [% $rules_requires_root %]
+Build-Depends: [% $build_depends %],
+ golang-go (>= 2:1.1.1-4)
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Built-Using: ${misc:Built-Using}
+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.
+
+Package: [% $source %]-dev
+Architecture: all
+Depends: ${misc:Depends}
+Built-Using: ${misc:Built-Using}
+Description: [% $description %] (dev)
+ 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.
+ .
+ This package contains the source.
+
+Package: [% $source %]-clean-dev
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (clean dev)
+ 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.
+ .
+ This package contains the source, without a built-using tag.
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/fill-values b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/fill-values
new file mode 100644
index 0000000..2c9dd7d
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: control-file-golang-built-using
+Description: False-positive test for Built-Using field
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/Makefile b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/Makefile
new file mode 100644
index 0000000..6047afb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/Makefile
@@ -0,0 +1,12 @@
+NOPIE_CFLAGS = $(filter-out -fPIE,$(CFLAGS))
+NOPIE_LDFLAGS = $(filter-out -fPIE -pie,$(LDFLAGS))
+COMPILE:= $(CC) $(NOPIE_CFLAGS) $(CPPFLAGS) $(NOPIE_LDFLAGS)
+
+all:
+ # static version
+ $(COMPILE) -static -o static basic.c
+
+clean distclean:
+ rm -f basic
+
+check test:
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/basic.c b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/basic.c
new file mode 100644
index 0000000..7dea5a0
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/build-spec/orig/basic.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int
+main(void)
+{
+ char t[10];
+ printf("Hello world!\n");
+ /* Bad choice for reading from stdin, but it forces a stack
+ protector, so meh.
+ */
+ gets (t);
+}
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/desc b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/desc
new file mode 100644
index 0000000..89280b2
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-golang-built-using
+Check: debian/control/field/built-using
diff --git a/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/hints b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/hints
new file mode 100644
index 0000000..ffc3280
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/built-using/control-file-golang-built-using/eval/hints
@@ -0,0 +1 @@
+control-file-golang-built-using (source): built-using-field-on-arch-all-package (in section for control-file-golang-built-using-dev) Built-Using ${misc:Built-Using} [debian/control:23]
diff --git a/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/description/duplicate/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/desc
new file mode 100644
index 0000000..69e1475
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/description/duplicate
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/hints
new file mode 100644
index 0000000..cc92e1d
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/description/duplicate/control-file-general/eval/hints
@@ -0,0 +1,2 @@
+control-file-general (source): duplicate-short-description control-file-general control-file-general-1 [debian/control]
+control-file-general (source): duplicate-long-description control-file-general control-file-general-1 control-file-general-2 control-file-general-3 control-file-general-4 control-file-general-5 control-file-general-dbg control-file-general-dbgsym [debian/control]
diff --git a/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/doubled-up/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/desc
new file mode 100644
index 0000000..981eddf
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/doubled-up
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/hints
new file mode 100644
index 0000000..5d69243
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/doubled-up/control-file-general/eval/hints
@@ -0,0 +1,3 @@
+control-file-general (source): debian-control-repeats-field-name-in-value (in section for control-file-general-dbgsym) Description [debian/control:91]
+control-file-general (source): debian-control-repeats-field-name-in-value (in section for control-file-general-dbg) Description [debian/control:101]
+control-file-general (source): debian-control-repeats-field-name-in-value (in section for control-file-general-5) Description [debian/control:81]
diff --git a/t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/debian/control.in
new file mode 100644
index 0000000..c1c9cdc
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/debian/control.in
@@ -0,0 +1,26 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Uploaders:
+ Wrapped Onto New Line <test@example.com>
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: binary-targets
+Homepage: https://lintian.debian.org/
+Vcs-Browser:
+# The following line contains "Vcs-Git: \n"
+Vcs-Git:
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests:
+# The following line contains "Provides: \n"
+Provides:
+Recommends: ${false:Positive}
+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/debian/control/field/empty/control-has-empty-field/build-spec/fill-values b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/fill-values
new file mode 100644
index 0000000..65e572e
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-has-empty-field
+Description: Check for empty fields
diff --git a/t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/desc b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/desc
new file mode 100644
index 0000000..5f7696d
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-has-empty-field
+Check: debian/control/field/empty
diff --git a/t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/hints b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/hints
new file mode 100644
index 0000000..8f187c3
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/empty/control-has-empty-field/eval/hints
@@ -0,0 +1,4 @@
+control-has-empty-field (source): debian-control-has-empty-field (in source paragraph) Vcs-Git [debian/control:13]
+control-has-empty-field (source): debian-control-has-empty-field (in source paragraph) Vcs-Browser [debian/control:11]
+control-has-empty-field (source): debian-control-has-empty-field (in section for control-has-empty-field) Suggests [debian/control:18]
+control-has-empty-field (source): debian-control-has-empty-field (in section for control-has-empty-field) Provides [debian/control:20]
diff --git a/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/misplaced/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/desc
new file mode 100644
index 0000000..869cae4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/misplaced
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/hints
new file mode 100644
index 0000000..f2cf497
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/control-file-general/eval/hints
@@ -0,0 +1 @@
+control-file-general (source): build-prerequisite-in-installable-section Build-Conflicts (in section for control-file-general) [debian/control:21]
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..1e276d7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description also uses some UTF8 high bytes chars: ÄÖÜß
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/desc b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/desc
new file mode 100644
index 0000000..d2bbe00
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/control/field/misplaced
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/hints b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/hints
new file mode 100644
index 0000000..71d7bec
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (source): build-prerequisite-in-installable-section Build-Depends (in section for foo++) [debian/control:13]
diff --git a/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/post-test b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/misplaced/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/redundant/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/redundant/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/redundant/control-file-general/eval/desc
new file mode 100644
index 0000000..f74e37c
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/redundant
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/redundant/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/redundant/control-file-general/eval/hints
new file mode 100644
index 0000000..d7ec903
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/control-file-general/eval/hints
@@ -0,0 +1 @@
+control-file-general (source): installable-field-mirrors-source (in section for control-file-general) Maintainer [debian/control:20]
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..1d6806d
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/control/field/redundant/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-binary/eval/desc b/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/desc
new file mode 100644
index 0000000..8a0c040
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/control/field/redundant
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/hints b/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/hints
new file mode 100644
index 0000000..6d49eb7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/hints
@@ -0,0 +1 @@
+binary (source): installable-field-mirrors-source (in section for binary) Vcs-Svn [debian/control:16]
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/post-test b/t/recipes/checks/debian/control/field/redundant/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/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/debian/control/field/redundant/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/changelog.in
new file mode 100644
index 0000000..91a6bb5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+libbaz ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial setup
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800
+
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/control
new file mode 100644
index 0000000..1506687
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/control
@@ -0,0 +1,58 @@
+Source: libbaz
+Section: libs
+Priority: optional
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Build-depends: debhelper (>=4)
+Standards-Version: 3.2.1
+
+Package: libbaz1
+Architecture: any
+Provides: libbaz
+Description: test handling of library packages
+ Regression test for lintian's handling of libraries.
+ .
+ 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.
+
+Package: libbaz1-dev
+Architecture: any
+Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8
+Description: development package
+ Regression test for lintian's handling of libraries (dev).
+ .
+ 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.
+
+Package: libbaz2
+Architecture: any
+Depends: ${shlibs:Depends}, libssl0.9.8
+Description: test handling of library packages (good)
+ Regression test for lintian's handling of libraries (good).
+ .
+ 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.
+
+Package: libbaz2-dev
+Architecture: any
+Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version})
+Description: development package (good)
+ Regression test for lintian's handling of libraries (dev good).
+ .
+ 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.
+
+Package: libbaz2-dbg
+Architecture: any
+Depends: libbaz2 (= ${binary:Version})
+Priority: optional
+Description: debugging package
+ Regression test for lintian's handling of libraries (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.
+
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/copyright
new file mode 100644
index 0000000..a874c87
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/copyright
@@ -0,0 +1,8 @@
+This package 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.
+
+However, this has an OpenSSL exception.
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.postinst
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.prerm
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/dev.prerm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.postinst
new file mode 100644
index 0000000..ec0b98a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ]
+; then
+ ln -sf ../share/doc/$PKG /usr/doc/$PKG
+ fi
+fi
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.prerm
new file mode 100644
index 0000000..50e37c3
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then
+ rm -f /usr/doc/$PKG
+fi
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.shlibs
new file mode 100644
index 0000000..b88e288
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.shlibs
@@ -0,0 +1,8 @@
+libdoesntexist2 1.0 libbaz1
+libdoesntexist2 1.0 libbaz1
+libbaz2 1.1 libbaz
+libbaz3 1 libbaz1 (>> 1-1)
+libbaz4 1 libbaz1 (= 1-1)
+libbaz5 1 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.symbols
new file mode 100644
index 0000000..72f9d8a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/lib.symbols
@@ -0,0 +1,3 @@
+libbaz.so.2 libbaz1 #MINVER#
+ pw 1-1
+ foo 1.1-1
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/rules
new file mode 100755
index 0000000..fa99bc8
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/rules
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+
+lib_tmp=debian/tmp-lib
+dev_tmp=debian/tmp-dev
+
+LIB=libbaz1
+DEV=libbaz1-dev
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+build-arch:
+ $(MAKE)
+
+build-indep:
+
+build: build-arch build-indep
+
+clean:
+ $(MAKE) clean
+ dh_clean -plibbaz2 -plibbaz2-dev
+ rm -f debian/files debian/substvars
+ rm -rf $(lib_tmp) $(dev_tmp)
+
+# Now the correct libbaz2-dev package
+binary-correct:
+ install -d debian/libbaz2-dev/usr/lib
+ cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib
+ # usually, I'd also include some .h files to /usr/include
+
+ # Now the correct libbaz2 package
+ install -d debian/libbaz2/usr/lib
+ cp -a libbaz2.so.* debian/libbaz2/usr/lib
+ chmod a-x debian/libbaz2/usr/lib/*
+
+ # General stuff that is tested in other testsets:
+ dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # Mess up the libbaz2 changelog files to test the symlink handling.
+ ln -s /usr/share/doc/lintian/changelog.gz \
+ debian/libbaz2/usr/share/doc/libbaz2/changelog.gz
+ install -m 644 debian/changelog \
+ debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo
+ ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog
+
+ # Okay, if either line is omitted, it should be noted
+ dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev
+ dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # and again, regular packaging stuff
+ dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs
+ dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+# and the incorrect one
+binary-arch: build-arch binary-correct
+ # first, the lib package
+ install -d $(lib_tmp)/usr/lib
+ # resp. no soname (check), wrong soname (check), and no-pic (check)
+ cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib
+ cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b
+ install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b
+ # let's include the .a in the non-dev too (TODO)
+ # Also, libbaz1.a hasn't a symbol table (TODO)
+ cp -a *.a $(lib_tmp)/usr/lib
+ # And a wrong .so symlink (wrong, only in -dev, TODO)
+ ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so
+ # And a wrong .so.X symlink (wrong, should point to a real existing
+ # shlib, TODO)
+ ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9
+ # And a plain .so (wrong, TODO)
+ touch $(lib_tmp)/usr/lib/libbar2.so
+ # And a non-versioned SONAME.
+ install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so
+ strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+
+ install -d $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB)
+ gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog
+ install -d $(lib_tmp)/DEBIAN
+ install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst
+ install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm
+ touch $(lib_tmp)/usr/share/doc/README.Debian
+ #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0
+ install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs
+ install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols
+ dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp)
+ dpkg --build $(lib_tmp) ..
+
+ # now the -dev package
+ install -d $(dev_tmp)/usr/include
+ install -d $(lib_tmp)/usr/lib
+ # let's also install the .so at the same time... (wrong, TODO)
+ cp -a *.a *.so.* $(lib_tmp)/usr/lib
+ # and fuck up permission (TODO)
+ chmod a+x $(lib_tmp)/usr/lib/*.a
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ install -d $(dev_tmp)/usr/share/doc
+ ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV)
+ install -d $(dev_tmp)/DEBIAN
+ install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst
+ install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp)
+ dpkg --build $(dev_tmp) ..
+
+
+binary: binary-arch
+
+# The mention of binary-indep here should be sufficient to suppress the
+# warning that it's not present.
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/source.lintian-overrides
new file mode 100644
index 0000000..6008d27
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/debian/source.lintian-overrides
@@ -0,0 +1 @@
+libbaz source: maintainer-script-lacks-debhelper-token
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/fill-values
new file mode 100644
index 0000000..7effe4f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-libbaz
+Source: libbaz
+Version: 1-1
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Description: Legacy test "libbaz"
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/Makefile
new file mode 100644
index 0000000..657dc2a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/Makefile
@@ -0,0 +1,55 @@
+# This is the correct way to build a lib
+
+CC=gcc
+CFLAGS=-g -Wall -Winline -O2
+LDFLAGS=-Wl,--no-as-needed
+
+OBJS=baz.o extra.o
+SHOBJS=baz.sho extra.sho
+NOPICOBJS = $(SHOBJS)
+
+all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \
+ libbaz.so
+
+libbaz2.so: libbaz2.so.1.0
+ ln -sf $^ $@
+libbaz2.so.1.0: libbaz2.so.1.0.3b
+ ln -sf $^ $@
+
+# Oops, forget the soname altogether
+libbaz1.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared $^ -lc
+
+libbaz2.so.1.0.3b: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc
+
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc
+
+# Non-versioned SONAME.
+libbaz.so: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc
+
+#%.o-noreentrant: %.c
+# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $<
+
+%.sho: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $<
+
+%.o: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $<
+
+libbaz2.a: $(OBJS)
+ ar cq $@ $(OBJS)
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+ ranlib $@
+
+# The pic one in the .a (wrong), no archive table
+libbaz1.a: $(SHOBJS)
+ ar cqS $@ $^
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+clean:
+ rm -f *.a *.o *.so* *.sho
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/baz.c
new file mode 100644
index 0000000..4d5fc45
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/baz.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double pw(double p)
+{
+ return exp(p);
+}
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/extra.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/build-spec/orig/extra.c
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/desc b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/desc
new file mode 100644
index 0000000..485af32
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-libbaz
+Check: debian/control/field/redundant
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/hints b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/hints
new file mode 100644
index 0000000..fc30343
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/hints
@@ -0,0 +1 @@
+libbaz (source): installable-field-mirrors-source (in section for libbaz2-dbg) Priority [debian/control:51]
diff --git a/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/post-test b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/post-test
new file mode 100755
index 0000000..29dc3f4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/redundant/legacy-libbaz/eval/post-test
@@ -0,0 +1,4 @@
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/: file-references-package-build-path / d
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in
new file mode 100644
index 0000000..961052e
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/debian/control.in
@@ -0,0 +1,22 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %], debhelper
+Build-Depends-Indep: foobar, foo, foobar
+Build-Conflicts: bar,
+ baz,
+ bar [i386]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${misc:Depends}
+Recommends: foo (>> 1.0) | bar, foo
+Suggests: baz (= 1.0), baz, baz (>= 2.0)
+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/debian/control/field/relation/control-file-duplicate/build-spec/fill-values b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/fill-values
new file mode 100644
index 0000000..51e95fe
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: control-file-duplicate
+Package-Architecture: all
+Description: Pedantic test for duplicate relations
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc
new file mode 100644
index 0000000..a819543
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-duplicate
+Check: debian/control/field/relation
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints
new file mode 100644
index 0000000..2633892
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-duplicate/eval/hints
@@ -0,0 +1,5 @@
+control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Depends-Indep foobar, foobar [debian/control:7]
+control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Depends debhelper, debhelper (>= 13~) [debian/control:6]
+control-file-duplicate (source): redundant-control-relation (in source paragraph) Build-Conflicts bar, bar [i386] [debian/control:8]
+control-file-duplicate (source): redundant-control-relation (in section for control-file-duplicate) Suggests baz, baz (= 1.0), baz (>= 2.0) [debian/control:17]
+control-file-duplicate (source): redundant-control-relation (in section for control-file-duplicate) Depends ${misc:Depends}, ${misc:Depends} [debian/control:15]
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/field/relation/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc
new file mode 100644
index 0000000..27425f4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/field/relation
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints
new file mode 100644
index 0000000..67abb80
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-general/eval/hints
@@ -0,0 +1,3 @@
+control-file-general (source): obsolete-relation-form-in-source (in source paragraph) Build-Depends-Indep perl (> 5.8) [debian/control:12]
+control-file-general (source): obsolete-relation-form-in-source (in section for control-file-general-1) Breaks libsqlite3-0 (< 3.6.12) [debian/control:37]
+control-file-general (source): missing-separator-between-items (in section for control-file-general) '${shlibs:Depends}' and '${some:Depends}' [debian/control:24]
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in
new file mode 100644
index 0000000..fff0af8
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/debian/control.in
@@ -0,0 +1,30 @@
+Source: control-file-missing-separator
+Section: devel
+Priority: optional
+Maintainer: [% $author %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc
+ mips mipsel
+ hppa
+ s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Standards-Version: [% $standards_version %]
+
+Package: control-file-missing-separator
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1)
+ baz (<< 2),
+ fizz (= 2.0)
+Suggests: p1
+ p2
+ p3
+ p4
+ p5
+Description: Test for missing separators in control files
+ 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.
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values
new file mode 100644
index 0000000..1a4a198
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: control-file-missing-separator
+Version: 1
+Description: Test for missing separators in control files
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc
new file mode 100644
index 0000000..134b1a6
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-missing-separator
+Check: debian/control/field/relation
diff --git a/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints
new file mode 100644
index 0000000..232c263
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/relation/control-file-missing-separator/eval/hints
@@ -0,0 +1,2 @@
+control-file-missing-separator (source): missing-separator-between-items (in section for control-file-missing-separator) 'p1' and 'p2' [debian/control:22]
+control-file-missing-separator (source): missing-separator-between-items (in section for control-file-missing-separator) 'foo (>= 1)' and 'baz (<< 2)' [debian/control:19]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/debian/control.in
new file mode 100644
index 0000000..fff0af8
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/debian/control.in
@@ -0,0 +1,30 @@
+Source: control-file-missing-separator
+Section: devel
+Priority: optional
+Maintainer: [% $author %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc
+ mips mipsel
+ hppa
+ s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Standards-Version: [% $standards_version %]
+
+Package: control-file-missing-separator
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1)
+ baz (<< 2),
+ fizz (= 2.0)
+Suggests: p1
+ p2
+ p3
+ p4
+ p5
+Description: Test for missing separators in control files
+ 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.
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/fill-values
new file mode 100644
index 0000000..1a4a198
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: control-file-missing-separator
+Version: 1
+Description: Test for missing separators in control files
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/desc
new file mode 100644
index 0000000..b788a20
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-missing-separator
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/hints
new file mode 100644
index 0000000..7fc3867
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-missing-separator/eval/hints
@@ -0,0 +1 @@
+control-file-missing-separator (source): silent-on-rules-requiring-root [debian/control]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in
new file mode 100644
index 0000000..9b17d19
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/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: binary-targets
+Homepage: https://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.
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/rules b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/rules
new file mode 100644
index 0000000..3d706f5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zgzip
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/fill-values
new file mode 100644
index 0000000..f97b076
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-rules-requires-root-binary-targets
+Description: Test for "Rules-Requires-Root: binary-targets"
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/desc
new file mode 100644
index 0000000..7d4185b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-rules-requires-root-binary-targets
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints
new file mode 100644
index 0000000..bd286c7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-binary-targets/eval/hints
@@ -0,0 +1 @@
+control-file-rules-requires-root-binary-targets (source): rules-require-root-explicitly [debian/control:7]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/control.in
new file mode 100644
index 0000000..503994d
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/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://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.
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/rules b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/rules
new file mode 100644
index 0000000..3d706f5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zgzip
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/fill-values
new file mode 100644
index 0000000..7359a3f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-rules-requires-root-no
+Description: Test for "Rules-Requires-Root: no"
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/desc
new file mode 100644
index 0000000..daf6c23
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-rules-requires-root-no
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints
new file mode 100644
index 0000000..faa5fc4
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-rules-requires-root-no/eval/hints
@@ -0,0 +1 @@
+control-file-rules-requires-root-no (source): rules-do-not-require-root [debian/control:7]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/fill-values
new file mode 100644
index 0000000..9db2167
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-symlink
+Description: Test if debian/control is a symlink
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/pre-build b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/pre-build
new file mode 100755
index 0000000..d872c36
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/build-spec/pre-build
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+ROOT_DIR="$1"
+
+mv "${ROOT_DIR}/debian/control" "${ROOT_DIR}/debian/control.real"
+ln -s control.real "${ROOT_DIR}/debian/control"
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/desc
new file mode 100644
index 0000000..8ddc4fb
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-symlink
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints
new file mode 100644
index 0000000..b191772
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/control-file-symlink/eval/hints
@@ -0,0 +1 @@
+control-file-symlink (source): rules-do-not-require-root [debian/control.real:7]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/debian/control.in
new file mode 100644
index 0000000..c69c988
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/debian/control.in
@@ -0,0 +1,19 @@
+Source: [% $source %]
+Priority: optional
+Section: devel
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Require-Root: no
+Rules-Requires-Root: no
+XS-Comment: This is random comment ending up in the dsc file.
+
+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/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/fill-values
new file mode 100644
index 0000000..df47230
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-unknown-fields
+Description: General tests for unknown fields
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/desc
new file mode 100644
index 0000000..c37168e
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-unknown-fields
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints
new file mode 100644
index 0000000..a698c7f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/fields-unknown-fields/eval/hints
@@ -0,0 +1,2 @@
+fields-unknown-fields (source): spelling-error-in-rules-requires-root Rules-Require-Root [debian/control:7]
+fields-unknown-fields (source): rules-do-not-require-root [debian/control:8]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/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/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/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/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/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/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/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/debian/control/field/rules-requires-root/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/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/debian/control/field/rules-requires-root/legacy-relations/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/desc
new file mode 100644
index 0000000..02acb73
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/hints
new file mode 100644
index 0000000..2404d59
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/hints
@@ -0,0 +1 @@
+relations (source): silent-on-rules-requiring-root [debian/control]
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/post-test b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/debian/control.in
new file mode 100644
index 0000000..fb3b62f
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/debian/control.in
@@ -0,0 +1,17 @@
+Source: [% $source %]
+Priority: [% $priority %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Homepage: [% $homepage %]
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Pre-Depends: ${misc:Pre-Depends}
+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/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/fill-values b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/fill-values
new file mode 100644
index 0000000..a1b35c5
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: rules-requires-root-missing
+Skeleton: upload-native
+Description: d/control without explicit rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/desc b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/desc
new file mode 100644
index 0000000..ca896c2
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-requires-root-missing
+Check: debian/control/field/rules-requires-root
diff --git a/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/hints b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/hints
new file mode 100644
index 0000000..32edc86
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/rules-requires-root/rules-requires-root-missing/eval/hints
@@ -0,0 +1 @@
+rules-requires-root-missing (source): silent-on-rules-requiring-root [debian/control]
diff --git a/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/debian/control.in
new file mode 100644
index 0000000..cf9ff9a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/debian/control.in
@@ -0,0 +1,17 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: https://lintian.debian.org/
+
+Package: [% $source %]
+Section: [% $section %]
+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/debian/control/field/section/no-section-in-source-stanza/build-spec/fill-values b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/fill-values
new file mode 100644
index 0000000..0b221ac
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: no-section-in-source-stanza
+Description: No Section declared in source stanza of d/control
+
diff --git a/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/desc b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/desc
new file mode 100644
index 0000000..5e52eb8
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/desc
@@ -0,0 +1,2 @@
+Testname: no-section-in-source-stanza
+Check: debian/control/field/section
diff --git a/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints
new file mode 100644
index 0000000..e12b62a
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/section/no-section-in-source-stanza/eval/hints
@@ -0,0 +1 @@
+no-section-in-source-stanza (source): no-source-section [debian/control]
diff --git a/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/build-spec/debian/control.in b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/build-spec/debian/control.in
new file mode 100644
index 0000000..9af359b
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/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://lintian.debian.org/
+
+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/debian/control/field/spacing/control-file-pedantic-space/build-spec/fill-values b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/build-spec/fill-values
new file mode 100644
index 0000000..f44d584
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-pedantic-space
+Description: Pedantic tests for control file spacing
diff --git a/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/desc b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/desc
new file mode 100644
index 0000000..86d452c
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-pedantic-space
+Check: debian/control/field/spacing
diff --git a/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints
new file mode 100644
index 0000000..df949b0
--- /dev/null
+++ b/t/recipes/checks/debian/control/field/spacing/control-file-pedantic-space/eval/hints
@@ -0,0 +1,3 @@
+control-file-pedantic-space (source): debian-control-has-unusual-field-spacing Source [debian/control:1]
+control-file-pedantic-space (source): debian-control-has-unusual-field-spacing Section [debian/control:3]
+control-file-pedantic-space (source): debian-control-has-unusual-field-spacing Priority [debian/control:2]
diff --git a/t/recipes/checks/debian/control/link/control-file-symlink/build-spec/fill-values b/t/recipes/checks/debian/control/link/control-file-symlink/build-spec/fill-values
new file mode 100644
index 0000000..9db2167
--- /dev/null
+++ b/t/recipes/checks/debian/control/link/control-file-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-symlink
+Description: Test if debian/control is a symlink
diff --git a/t/recipes/checks/debian/control/link/control-file-symlink/build-spec/pre-build b/t/recipes/checks/debian/control/link/control-file-symlink/build-spec/pre-build
new file mode 100755
index 0000000..d872c36
--- /dev/null
+++ b/t/recipes/checks/debian/control/link/control-file-symlink/build-spec/pre-build
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+ROOT_DIR="$1"
+
+mv "${ROOT_DIR}/debian/control" "${ROOT_DIR}/debian/control.real"
+ln -s control.real "${ROOT_DIR}/debian/control"
diff --git a/t/recipes/checks/debian/control/link/control-file-symlink/eval/desc b/t/recipes/checks/debian/control/link/control-file-symlink/eval/desc
new file mode 100644
index 0000000..556a375
--- /dev/null
+++ b/t/recipes/checks/debian/control/link/control-file-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-symlink
+Check: debian/control/link
diff --git a/t/recipes/checks/debian/control/link/control-file-symlink/eval/hints b/t/recipes/checks/debian/control/link/control-file-symlink/eval/hints
new file mode 100644
index 0000000..04be3f2
--- /dev/null
+++ b/t/recipes/checks/debian/control/link/control-file-symlink/eval/hints
@@ -0,0 +1 @@
+control-file-symlink (source): debian-control-file-is-a-symlink [debian/control]
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/prerequisite/circular/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/desc b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/desc
new file mode 100644
index 0000000..02f41b5
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/prerequisite/circular
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/hints b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/hints
new file mode 100644
index 0000000..1c51dc4
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-general/eval/hints
@@ -0,0 +1 @@
+control-file-general (source): circular-installation-prerequisite (in section for control-file-general) Depends control-file-general, foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends} [debian/control:24]
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/debian/control.in b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/debian/control.in
new file mode 100644
index 0000000..c69e042
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/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: ${shlibs:Depends}, ${misc:Depends}
+Suggests: [% $source %]
+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/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/fill-values
new file mode 100644
index 0000000..837abce
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-suggests-itself
+Description: Test a package Suggesting itself
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/desc b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/desc
new file mode 100644
index 0000000..b880eed
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-suggests-itself
+Check: debian/control/prerequisite/circular
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints
new file mode 100644
index 0000000..c2e5627
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/control-file-suggests-itself/eval/hints
@@ -0,0 +1 @@
+control-file-suggests-itself (source): circular-installation-prerequisite (in section for control-file-suggests-itself) Suggests control-file-suggests-itself [debian/control:12]
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/control.in
new file mode 100644
index 0000000..054ffc3
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/control.in
@@ -0,0 +1,81 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %], libtest-simple-perl (>= 0.98), perl-modules
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, xorg, bash,
+ conflict-dep, gawk | awk, new-package | xbase-clients (>= 0.1), [% $source %],
+ gaim (>= 0.1), emacs21, emacs22, emacs23, makedev, libtest-simple-perl (>= 0.98),
+ packaging-dev, xfont-a, emacs22-gtk, emacs23-el, emacs23-nox, emacs23-lucid,
+ emacs222, perl-modules, debhelper
+Breaks: package-without-version, [% $source %] (<< 0.1),
+ replaced-wo-version
+Replaces: replaced-wo-version
+Conflicts: package-with-version (<< 3.0), conflict-dep
+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.
+
+Package: lib[% $source %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, libdb1-compat, perl-modules-5.22
+Recommends: debconf-doc, cdbs
+Conflicts: debhelper
+Section: libs
+Description: [% $description %] -- fake library
+ This is a fake library 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.
+
+Package: py-[% $source %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, python-minimal
+Description: [% $description %] - Fake Python package
+ 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 fake Python package.
+
+Package: [% $source %]-doc
+Section: doc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, [% $source %]
+Description: [% $description %] - Fake Doc package
+ 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 fake doc package.
+
+Package: dh-[% $source %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, debhelper
+Description: [% $description %] - Fake Debhelper package
+ 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 fake Debhelper package to test false-positives in
+ binary-package-depends-on-toolchain-package.
+
+Package: [% $source %]-source
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, debhelper
+Description: [% $description %] - Fake DKMS-like package
+ 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 fake DKMS-like package to test false-positives in
+ binary-package-depends-on-toolchain-package.
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/install b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/install
new file mode 100644
index 0000000..6c37889
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/debian/install
@@ -0,0 +1 @@
+some-file usr/share/lintian
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/fill-values
new file mode 100644
index 0000000..6e84753
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: fields-depends-general
+Description: General tests for binary package dependencies
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/orig/some-file b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/orig/some-file
new file mode 100644
index 0000000..7bf08f7
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/build-spec/orig/some-file
@@ -0,0 +1,2 @@
+This file is installed into /usr/share/lintian just to ensure that this
+package doesn't look like a metapackage for the dependency checks.
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/desc b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/desc
new file mode 100644
index 0000000..e47d658
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-depends-general
+Check: debian/control/prerequisite/circular
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints
new file mode 100644
index 0000000..44047f1
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/fields-depends-general/eval/hints
@@ -0,0 +1 @@
+fields-depends-general (source): circular-installation-prerequisite (in section for fields-depends-general) Depends ${shlibs:Depends}, ${misc:Depends}, xorg, bash, conflict-dep, gawk | awk, new-package | xbase-clients (>= 0.1), fields-depends-general, gaim (>= 0.1), emacs21, emacs22, emacs23, makedev, libtest-simple-perl (>= 0.98), packaging-dev, xfont-a, emacs22-gtk, emacs23-el, emacs23-nox, emacs23-lucid, emacs222, perl-modules, debhelper [debian/control:11]
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/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/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/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/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/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/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/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/debian/control/prerequisite/circular/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/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/debian/control/prerequisite/circular/legacy-relations/eval/desc b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/desc
new file mode 100644
index 0000000..515312a
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/control/prerequisite/circular
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints
new file mode 100644
index 0000000..3285321
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/hints
@@ -0,0 +1,2 @@
+relations (source): circular-installation-prerequisite (in section for relations-multiple-libs) Recommends ${shlibs:Depends}, relations-multiple-libs, gs | gs-gpl, makedev [debian/control:40]
+relations (source): circular-installation-prerequisite (in section for relations) Depends relations (<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, null (>= 0), ${misc:Depends}, makedev [debian/control:20]
diff --git a/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/post-test b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/circular/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/debian/control.in b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/debian/control.in
new file mode 100644
index 0000000..170132e
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/debian/control.in
@@ -0,0 +1,115 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libcontrol-file-foo1
+Section: libs
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (shared lib 1)
+ First shared library.
+ .
+ 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.
+
+Package: libcontrol-file-bar7ldbl
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (shared lib 2)
+ Second shared library.
+ .
+ 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.
+
+Package: libcontrol-file-dev
+Section: libdevel
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libcontrol-file-foo1 (= ${binary:Version}),
+ libcontrol-file-bar7ldbl, libcontrol-file-baz9-4 (>= ${binary:Version}),
+ libfoo4, libcontrol-file-doc, libcontrol-file4-dev
+Description: [% $description %] (dev package)
+ Dev package.
+ .
+ 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.
+
+Package: libcontrol-file-baz9-4
+Section: libs
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (shared lib 3)
+ Third shared library.
+ .
+ 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.
+
+Package: libcontrol-file-doc
+Section: doc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (doc package)
+ Doc package.
+ .
+ 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.
+
+Package: libcontrol-file4-dev
+Section: libdevel
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libcontrol-file-foo1 (<= ${source:Upstream-Version}-99)
+ | libcontrol-file-baz9-4 (<= ${source:Upstream-Version}-99),
+ libcontrol-file-foo1 (>= ${binary:Version})
+ | libcontrol-file-baz9-4 (>= ${binary:Version})
+Description: [% $description %] (dev package with version)
+ Dev package containing a number.
+ .
+ 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.
+
+Package: libcontrol-file-all-dev
+Section: libdevel
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, libcontrol-file-doc,
+ libcontrol-file-foo1 (>= ${source:Upstream-Version}),
+ libcontrol-file-foo1 (<= ${source:Version}.1~),
+ libcontrol-file-baz9-4 (>= ${source:Version})
+Description: [% $description %] (arch: all dev package)
+ Architecture-independent development package.
+ .
+ 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.
+
+Package: libcontrol-baz-dev
+Section: libdevel
+Architecture: [% $package_architecture %]
+Depends:
+ libcontrol-file-baz9-4 (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: [% $description %] (dev whitespace)
+ Test proper parsing of leading whitespace in Depends
+ .
+ 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/debian/control/prerequisite/development/control-file-library-dev/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/fill-values
new file mode 100644
index 0000000..3651a6c
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-library-dev
+Description: Check control file handling of library dev packages
diff --git a/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/desc b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/desc
new file mode 100644
index 0000000..07a35fd
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-library-dev
+Check: debian/control/prerequisite/development
diff --git a/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints
new file mode 100644
index 0000000..5d06a02
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/control-file-library-dev/eval/hints
@@ -0,0 +1,3 @@
+control-file-library-dev (source): weak-library-dev-dependency (in section for libcontrol-file-dev) Depends libcontrol-file-baz9-4 (>= ${binary:Version}) [debian/control:35]
+control-file-library-dev (source): weak-library-dev-dependency (in section for libcontrol-file-dev) Depends libcontrol-file-bar7ldbl [debian/control:35]
+control-file-library-dev (source): weak-library-dev-dependency (in section for libcontrol-file-all-dev) Depends libcontrol-file-baz9-4 (>= ${source:Version}) [debian/control:90]
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/changelog.in
new file mode 100644
index 0000000..91a6bb5
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+libbaz ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial setup
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800
+
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/control
new file mode 100644
index 0000000..1506687
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/control
@@ -0,0 +1,58 @@
+Source: libbaz
+Section: libs
+Priority: optional
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Build-depends: debhelper (>=4)
+Standards-Version: 3.2.1
+
+Package: libbaz1
+Architecture: any
+Provides: libbaz
+Description: test handling of library packages
+ Regression test for lintian's handling of libraries.
+ .
+ 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.
+
+Package: libbaz1-dev
+Architecture: any
+Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8
+Description: development package
+ Regression test for lintian's handling of libraries (dev).
+ .
+ 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.
+
+Package: libbaz2
+Architecture: any
+Depends: ${shlibs:Depends}, libssl0.9.8
+Description: test handling of library packages (good)
+ Regression test for lintian's handling of libraries (good).
+ .
+ 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.
+
+Package: libbaz2-dev
+Architecture: any
+Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version})
+Description: development package (good)
+ Regression test for lintian's handling of libraries (dev good).
+ .
+ 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.
+
+Package: libbaz2-dbg
+Architecture: any
+Depends: libbaz2 (= ${binary:Version})
+Priority: optional
+Description: debugging package
+ Regression test for lintian's handling of libraries (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.
+
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/copyright
new file mode 100644
index 0000000..a874c87
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/copyright
@@ -0,0 +1,8 @@
+This package 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.
+
+However, this has an OpenSSL exception.
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.postinst
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.prerm
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/dev.prerm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.postinst
new file mode 100644
index 0000000..ec0b98a
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ]
+; then
+ ln -sf ../share/doc/$PKG /usr/doc/$PKG
+ fi
+fi
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.prerm
new file mode 100644
index 0000000..50e37c3
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then
+ rm -f /usr/doc/$PKG
+fi
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.shlibs
new file mode 100644
index 0000000..b88e288
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.shlibs
@@ -0,0 +1,8 @@
+libdoesntexist2 1.0 libbaz1
+libdoesntexist2 1.0 libbaz1
+libbaz2 1.1 libbaz
+libbaz3 1 libbaz1 (>> 1-1)
+libbaz4 1 libbaz1 (= 1-1)
+libbaz5 1 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.symbols
new file mode 100644
index 0000000..72f9d8a
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/lib.symbols
@@ -0,0 +1,3 @@
+libbaz.so.2 libbaz1 #MINVER#
+ pw 1-1
+ foo 1.1-1
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/rules
new file mode 100755
index 0000000..fa99bc8
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/rules
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+
+lib_tmp=debian/tmp-lib
+dev_tmp=debian/tmp-dev
+
+LIB=libbaz1
+DEV=libbaz1-dev
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+build-arch:
+ $(MAKE)
+
+build-indep:
+
+build: build-arch build-indep
+
+clean:
+ $(MAKE) clean
+ dh_clean -plibbaz2 -plibbaz2-dev
+ rm -f debian/files debian/substvars
+ rm -rf $(lib_tmp) $(dev_tmp)
+
+# Now the correct libbaz2-dev package
+binary-correct:
+ install -d debian/libbaz2-dev/usr/lib
+ cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib
+ # usually, I'd also include some .h files to /usr/include
+
+ # Now the correct libbaz2 package
+ install -d debian/libbaz2/usr/lib
+ cp -a libbaz2.so.* debian/libbaz2/usr/lib
+ chmod a-x debian/libbaz2/usr/lib/*
+
+ # General stuff that is tested in other testsets:
+ dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # Mess up the libbaz2 changelog files to test the symlink handling.
+ ln -s /usr/share/doc/lintian/changelog.gz \
+ debian/libbaz2/usr/share/doc/libbaz2/changelog.gz
+ install -m 644 debian/changelog \
+ debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo
+ ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog
+
+ # Okay, if either line is omitted, it should be noted
+ dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev
+ dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # and again, regular packaging stuff
+ dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs
+ dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+# and the incorrect one
+binary-arch: build-arch binary-correct
+ # first, the lib package
+ install -d $(lib_tmp)/usr/lib
+ # resp. no soname (check), wrong soname (check), and no-pic (check)
+ cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib
+ cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b
+ install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b
+ # let's include the .a in the non-dev too (TODO)
+ # Also, libbaz1.a hasn't a symbol table (TODO)
+ cp -a *.a $(lib_tmp)/usr/lib
+ # And a wrong .so symlink (wrong, only in -dev, TODO)
+ ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so
+ # And a wrong .so.X symlink (wrong, should point to a real existing
+ # shlib, TODO)
+ ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9
+ # And a plain .so (wrong, TODO)
+ touch $(lib_tmp)/usr/lib/libbar2.so
+ # And a non-versioned SONAME.
+ install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so
+ strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+
+ install -d $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB)
+ gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog
+ install -d $(lib_tmp)/DEBIAN
+ install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst
+ install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm
+ touch $(lib_tmp)/usr/share/doc/README.Debian
+ #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0
+ install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs
+ install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols
+ dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp)
+ dpkg --build $(lib_tmp) ..
+
+ # now the -dev package
+ install -d $(dev_tmp)/usr/include
+ install -d $(lib_tmp)/usr/lib
+ # let's also install the .so at the same time... (wrong, TODO)
+ cp -a *.a *.so.* $(lib_tmp)/usr/lib
+ # and fuck up permission (TODO)
+ chmod a+x $(lib_tmp)/usr/lib/*.a
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ install -d $(dev_tmp)/usr/share/doc
+ ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV)
+ install -d $(dev_tmp)/DEBIAN
+ install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst
+ install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp)
+ dpkg --build $(dev_tmp) ..
+
+
+binary: binary-arch
+
+# The mention of binary-indep here should be sufficient to suppress the
+# warning that it's not present.
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/source.lintian-overrides
new file mode 100644
index 0000000..6008d27
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/debian/source.lintian-overrides
@@ -0,0 +1 @@
+libbaz source: maintainer-script-lacks-debhelper-token
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/fill-values
new file mode 100644
index 0000000..7effe4f
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-libbaz
+Source: libbaz
+Version: 1-1
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Description: Legacy test "libbaz"
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/Makefile
new file mode 100644
index 0000000..657dc2a
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/Makefile
@@ -0,0 +1,55 @@
+# This is the correct way to build a lib
+
+CC=gcc
+CFLAGS=-g -Wall -Winline -O2
+LDFLAGS=-Wl,--no-as-needed
+
+OBJS=baz.o extra.o
+SHOBJS=baz.sho extra.sho
+NOPICOBJS = $(SHOBJS)
+
+all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \
+ libbaz.so
+
+libbaz2.so: libbaz2.so.1.0
+ ln -sf $^ $@
+libbaz2.so.1.0: libbaz2.so.1.0.3b
+ ln -sf $^ $@
+
+# Oops, forget the soname altogether
+libbaz1.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared $^ -lc
+
+libbaz2.so.1.0.3b: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc
+
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc
+
+# Non-versioned SONAME.
+libbaz.so: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc
+
+#%.o-noreentrant: %.c
+# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $<
+
+%.sho: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $<
+
+%.o: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $<
+
+libbaz2.a: $(OBJS)
+ ar cq $@ $(OBJS)
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+ ranlib $@
+
+# The pic one in the .a (wrong), no archive table
+libbaz1.a: $(SHOBJS)
+ ar cqS $@ $^
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+clean:
+ rm -f *.a *.o *.so* *.sho
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/baz.c
new file mode 100644
index 0000000..4d5fc45
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/baz.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double pw(double p)
+{
+ return exp(p);
+}
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/extra.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/build-spec/orig/extra.c
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/desc b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/desc
new file mode 100644
index 0000000..1b2d731
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-libbaz
+Check: debian/control/prerequisite/development
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints
new file mode 100644
index 0000000..8113d34
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/hints
@@ -0,0 +1,2 @@
+libbaz (source): weak-library-dev-dependency (in section for libbaz2-dev) Depends libbaz2 (= ${source:Version}) [debian/control:40]
+libbaz (source): weak-library-dev-dependency (in section for libbaz1-dev) Depends libbaz1 (= ${source:Version}) [debian/control:20]
diff --git a/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/post-test b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/post-test
new file mode 100755
index 0000000..29dc3f4
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/development/legacy-libbaz/eval/post-test
@@ -0,0 +1,4 @@
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/: file-references-package-build-path / d
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..3058e5a
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/control.in
@@ -0,0 +1,118 @@
+Source: [% $source %]
+Priority: optional
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %],
+ fiddle [amd64 powerpc mips mipsel hppa s390],
+ faddle
+ (>>
+ 2) [
+ sparc i386 amd64
+ ]
+Build-Depends-Indep: perl (> 5.8)
+Rules-Requires-Root: no
+XS-Vcs-Svn: https://svn.example.com/[% $source %]/trunk
+#Vcs-Git: git://git.debian.org/collab-maint/<pkg>.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/<pkg>.git;a=summary
+
+Package: [% $source %]
+Section: [% $section %]
+Maintainer: [% $author %]
+Build-Conflicts: foo
+Architecture: all
+Pre-depends: ${misc:Pre-depends}, multiarch-support
+Depends: [% $source %], foo, baz, ${shlibs:Depends} ${some:Depends}, ${misc:Depends}
+Recommends: foo, bar, no-match${lintian:Foo}, match${lintian:Match}, no-match${lintian:Bar}-foo
+Suggests: bar | baz, no-match${lintian:Bar}, match${lintian:Match}
+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.
+
+Package: [% $source %]-1
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Breaks: libsqlite3-0 (< 3.6.12)
+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.
+
+Package: [% $source %]-2
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (two)
+ 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.
+
+Package: [% $source %]-3
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo (>= 1),
+ baz (<< 2),
+ fizz (= 2.0), gcc-${pv:gcc} ${reqv:gcc}
+Description: [% $description %] (three)
+ 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.
+
+Package: [% $source %]-4
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, foo |
+ bar (>= 1), baz
+Description: [% $description %] (four)
+ 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.
+
+Package: [% $source %]-5
+Section: [% $section %]
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: 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.
+
+Package: [% $source %]-dbgsym
+Section: debug
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Description: dbg-sym
+ 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.
+
+Package: [% $source %]-dbg
+Section: debug
+Architecture: all
+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.
+
+Package: [% $source %]-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (udeb)
+ udeb tests.
+ .
+ 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/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/rules b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/rules
new file mode 100644
index 0000000..f5db4bb
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_gencontrol:
+ echo 'pv:gcc=4.3' >> debian/substvars
+ echo 'reqv:gcc=(>= 4.3-1)' >> debian/substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/fill-values
new file mode 100644
index 0000000..7338a95
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-general
+Description: Various problems with debian/control
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/desc b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/desc
new file mode 100644
index 0000000..7f12c44
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/desc
@@ -0,0 +1,11 @@
+Testname: control-file-general
+Check: debian/control/prerequisite/redundant
+See-Also:
+ Debian Bug#30020,
+ Debian Bug#409099,
+ Debian Bug#516706,
+ Debian Bug#533202,
+ Debian Bug#557971,
+ Debian Bug#573399,
+ Debian Bug#580494,
+ Debian Bug#657110
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints
new file mode 100644
index 0000000..0671905
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/control-file-general/eval/hints
@@ -0,0 +1,4 @@
+control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Suggests -> Recommends match${lintian:Match} [debian/control:25]
+control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Suggests -> Recommends bar | baz [debian/control:25]
+control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Suggests -> Depends bar | baz [debian/control:24]
+control-file-general (source): redundant-installation-prerequisite (in section for control-file-general) Recommends -> Depends foo [debian/control:24]
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/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/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/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/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/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/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/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/debian/control/prerequisite/redundant/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/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/debian/control/prerequisite/redundant/legacy-relations/eval/desc b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/desc
new file mode 100644
index 0000000..68843a4
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/control/prerequisite/redundant
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints
new file mode 100644
index 0000000..2c936c4
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/hints
@@ -0,0 +1,5 @@
+relations (source): redundant-installation-prerequisite (in section for relations-multiple-libs) Recommends -> Depends ${shlibs:Depends} [debian/control:37]
+relations (source): redundant-installation-prerequisite (in section for relations) Suggests -> Recommends some-other-package [debian/control:26]
+relations (source): redundant-installation-prerequisite (in section for relations) Recommends -> Depends null [debian/control:20]
+relations (source): redundant-installation-prerequisite (in section for relations) Recommends -> Depends dpkg [debian/control:20]
+relations (source): redundant-installation-prerequisite (in section for relations) Depends -> Pre-Depends gawk | awk [debian/control:19]
diff --git a/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/post-test b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/control/prerequisite/redundant/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/copyright
new file mode 100644
index 0000000..61e14af
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/copyright
@@ -0,0 +1,23 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: © 2011 J. Random Hacker <j.r.hacker@example.com>
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install
new file mode 100644
index 0000000..4268786
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/debian/source-copyright-missing-notice-file-for-apache-license-unrel.install
@@ -0,0 +1 @@
+NOTICE usr/share/doc/foo
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/fill-values b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/fill-values
new file mode 100644
index 0000000..f38f171
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-missing-notice-file-for-apache-license-unrel
+Description: Test for no packages missing Apache NOTICE files (false-positive)
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/orig/NOTICE b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/orig/NOTICE
new file mode 100644
index 0000000..2a74156
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/build-spec/orig/NOTICE
@@ -0,0 +1 @@
+This file is installed to the binary package.
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/desc b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/desc
new file mode 100644
index 0000000..ddbf70f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: source-copyright-missing-notice-file-for-apache-license-unrel
+Test-Against:
+ missing-notice-file-for-apache-license
+Check: debian/copyright/apache-notice
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/hints b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license-unrel/eval/hints
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/debian/copyright
new file mode 100644
index 0000000..61e14af
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/debian/copyright
@@ -0,0 +1,23 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: © 2011 J. Random Hacker <j.r.hacker@example.com>
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/fill-values b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/fill-values
new file mode 100644
index 0000000..482a07b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-missing-notice-file-for-apache-license
+Description: Test for no packages missing Apache NOTICE files
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE
new file mode 100644
index 0000000..6c64526
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE
@@ -0,0 +1 @@
+This Apache 2.0 license NOTICE is not installed to any binary package.
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE.txt b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE.txt
new file mode 100644
index 0000000..6c64526
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/NOTICE.txt
@@ -0,0 +1 @@
+This Apache 2.0 license NOTICE is not installed to any binary package.
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/subdir/NOTICE b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/subdir/NOTICE
new file mode 100644
index 0000000..6c64526
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/subdir/NOTICE
@@ -0,0 +1 @@
+This Apache 2.0 license NOTICE is not installed to any binary package.
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/unrel/NOTICE b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/unrel/NOTICE
new file mode 100644
index 0000000..bdc5a71
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/build-spec/orig/unrel/NOTICE
@@ -0,0 +1 @@
+This file is not installed but is not a A_pache license NOTICE file anyway.
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/desc b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/desc
new file mode 100644
index 0000000..97324bb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-missing-notice-file-for-apache-license
+Check: debian/copyright/apache-notice
diff --git a/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints
new file mode 100644
index 0000000..0f6d607
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/apache-notice/source-copyright-missing-notice-file-for-apache-license/eval/hints
@@ -0,0 +1,3 @@
+source-copyright-missing-notice-file-for-apache-license (source): missing-notice-file-for-apache-license [subdir/NOTICE]
+source-copyright-missing-notice-file-for-apache-license (source): missing-notice-file-for-apache-license [NOTICE]
+source-copyright-missing-notice-file-for-apache-license (source): missing-notice-file-for-apache-license [NOTICE.txt]
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..324f170
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/control.in
@@ -0,0 +1,39 @@
+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: ${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.
+
+Package: [% $source %]-helper
+Architecture: [% $package_architecture %]
+Depends: [% $source %] (= [% $version %]), ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (symlink)
+ Helper package with a legitimate /usr/share/doc symlink.
+ .
+ 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.
+
+Package: [% $source %]-weak
+Architecture: [% $package_architecture %]
+Depends: [% $source %], ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (weak)
+ Helper package with a /usr/share/doc symlink but an insufficiently
+ strong dependency. Lintian intentionally doesn't diagnose this.
+ .
+ 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/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules
new file mode 100755
index 0000000..32f23a0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+pkg := copyright-file-doc-symlink
+
+%:
+ dh $@
+
+override_dh_prep:
+ mkdir -p debian/$(pkg)-helper/usr/share/doc
+ ln -s $(pkg) debian/$(pkg)-helper/usr/share/doc/$(pkg)-helper
+ mkdir -p debian/$(pkg)-weak/usr/share/doc
+ ln -s $(pkg) debian/$(pkg)-weak/usr/share/doc/$(pkg)-weak
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values
new file mode 100644
index 0000000..77a06bf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-doc-symlink
+Description: Test a symlinked /usr/share/doc
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc
new file mode 100644
index 0000000..d56438f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/desc
@@ -0,0 +1,3 @@
+Testname: copyright-file-doc-symlink
+Test-Against: usr-share-doc-symlink-without-dependency
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-doc-symlink/eval/hints
diff --git a/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/DEBIAN/control.in b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/DEBIAN/control.in
new file mode 100644
index 0000000..e70b359
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/DEBIAN/control.in
@@ -0,0 +1,12 @@
+Package: [% $source %]
+Version: [% $version %]
+Architecture: [% $package_architecture %]
+Maintainer: [% $author %]
+Section: [% $section %]
+Priority: optional
+Depends: other-package
+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/debian/copyright/copyright-file-foreign-package/build-spec/control-members b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/control-members
new file mode 100644
index 0000000..4db28ac
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/control-members
@@ -0,0 +1 @@
+control
diff --git a/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/fill-values
new file mode 100644
index 0000000..caef6c4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: copyright-file-foreign-package
+Description: Test for foreign symlink in package
diff --git a/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-control b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-control
new file mode 100755
index 0000000..0f99335
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-control
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+builddir="$1"
+
+rm -f "$builddir/md5sums"
diff --git a/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-data b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-data
new file mode 100755
index 0000000..5794ed0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/build-spec/pre-data
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+rootdir="$1"
+name="$2"
+
+docdir="$rootdir/usr/share/doc"
+
+rm -rf "$docdir"
+
+mkdir -p "$docdir"
+ln -sf other-package "$docdir/$name"
diff --git a/t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/desc
new file mode 100644
index 0000000..1ad0379
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/desc
@@ -0,0 +1,2 @@
+Testname: copyright-file-foreign-package
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/hints
new file mode 100644
index 0000000..d4bd58a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-foreign-package/eval/hints
@@ -0,0 +1 @@
+copyright-file-foreign-package (binary): cannot-check-whether-usr-share-doc-symlink-points-to-foreign-package
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..d347ec7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/control.in
@@ -0,0 +1,243 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: copyright-iso-8859-1
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks for non-utf-8-encodings
+ Tests non-UTF-8 encodings.
+ .
+ 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.
+
+Package: copyright-full-gpl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GPL in full text
+ Tests the tag for including all of the GPL.
+ .
+ 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.
+
+Package: copyright-full-lgpl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of LGPL in full text
+ Tests the tag for including all of the LGPL.
+ .
+ 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.
+
+Package: copyright-full-gfdl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GFDL in full text
+ Tests the tag for including all of the GFDL.
+ .
+ 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.
+
+Package: copyright-full-apache-2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of Apache 2.0 in full text
+ Tests the tag for including all of the Apache 2.0 license.
+ .
+ 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.
+
+Package: copyright-misc-errors
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks various errors in copyright files
+ Tests various random errors in copyright files.
+ .
+ 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.
+
+Package: copyright-symlink
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: just use a symlink for the copyright file
+ Tests the check for a symlinked copyright file.
+ .
+ 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.
+
+Package: copyright-compressed
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: include a valid copyright file and compress it
+ Tests the check for a compressed copyright file.
+ .
+ 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.
+
+Package: copyright-old-style
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: use an old-style directory structure
+ Tests a copyright file using an old-style directory structure.
+ .
+ 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.
+
+Package: copyright-full-gpl-1
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GPL1
+ This should trigger errors as GPL1 is in the common license dir.
+ .
+ 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.
+
+Package: copyright-full-gpl-2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GPL2
+ This should trigger errors as GPL2 is in the common license dir.
+ .
+ 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.
+
+Package: copyright-php
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks problematic PHP licenses
+ The PHP licenses are problematic for any software that isn't PHP.
+ .
+ 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.
+
+Package: copyright-w3c
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of the W3C license
+ The W3C license text claims to be "GPL compatible", which shouldn't
+ trigger warnings.
+ .
+ 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.
+
+Package: copyright-no-errors
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: this should not emit any error
+ This copyright file should be fine.
+ .
+ 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.
+
+Package: copyright-versionless
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks a valid versionless GPL reference
+ Refers to the GPL and truly doesn't mention any version.
+ .
+ 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.
+
+Package: copyright-missing-perl-license-pointer
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks for perl packages not pointing to common-licenses
+ Packages under the "same terms as Perl itself" should reference a
+ license in common-licenses.
+ .
+ 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.
+
+Package: copyright-missing-apache2-license-pointer
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks for apache2 packages not pointing to common-licenses
+ Packages under the apache2-license should reference a
+ license in common-licenses.
+ .
+ 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.
+
+Package: copyright-poor-common-licenses
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks not referring to common licenses
+ Packages should refer to common licenses with full path if they
+ use a common license.
+ .
+ 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.
+
+Package: copyright-crln
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: check for Windows newlines
+ This package should trigger a tag for having Windows newlines in
+ the copyright file.
+ .
+ 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.
+
+Package: copyright-full-agpl-3
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of AGPL-3 in full text
+ This should not trigger a tag as AGPL-3 is not in common-licenses.
+ .
+ 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.
+
+Package: copyright-old-fsf
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks use of old FSF address
+ This should trigger a tag for using old FSF address.
+ .
+ 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/debian/copyright/copyright-file-general/build-spec/debian/copyright-crln.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-crln.copyright
new file mode 100644
index 0000000..43b49cf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-crln.copyright
@@ -0,0 +1,36 @@
+This package was debianized by Tobias Toedter <t.toedter@gmx.net> on
+Thu, 20 Mar 2008 23:48:15 +0100
+
+It was downloaded from <http://www.example.org/>
+
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184
+
+Upstream Authors:
+
+ Tobias Toedter <t.toedter@gmx.net>
+
+Copyright:
+
+ Copyright (C) 2008 Tobias Toedter
+
+License:
+
+ This package 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 package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is Copyright 2008, Tobias Toedter <t.toedter@gmx.net>
+and is licensed under the GPL, see above.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright
new file mode 100644
index 0000000..dba13ed
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<http://www.gnu.org/licenses/>.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright
new file mode 100644
index 0000000..4a0fe1c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright
@@ -0,0 +1,397 @@
+ GNU Free Documentation License
+ Version 1.2, November 2002
+
+
+ Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+0. PREAMBLE
+
+The purpose of this License is to make a manual, textbook, or other
+functional and useful document "free" in the sense of freedom: to
+assure everyone the effective freedom to copy and redistribute it,
+with or without modifying it, either commercially or noncommercially.
+Secondarily, this License preserves for the author and publisher a way
+to get credit for their work, while not being considered responsible
+for modifications made by others.
+
+This License is a kind of "copyleft", which means that derivative
+works of the document must themselves be free in the same sense. It
+complements the GNU General Public License, which is a copyleft
+license designed for free software.
+
+We have designed this License in order to use it for manuals for free
+software, because free software needs free documentation: a free
+program should come with manuals providing the same freedoms that the
+software does. But this License is not limited to software manuals;
+it can be used for any textual work, regardless of subject matter or
+whether it is published as a printed book. We recommend this License
+principally for works whose purpose is instruction or reference.
+
+
+1. APPLICABILITY AND DEFINITIONS
+
+This License applies to any manual or other work, in any medium, that
+contains a notice placed by the copyright holder saying it can be
+distributed under the terms of this License. Such a notice grants a
+world-wide, royalty-free license, unlimited in duration, to use that
+work under the conditions stated herein. The "Document", below,
+refers to any such manual or work. Any member of the public is a
+licensee, and is addressed as "you". You accept the license if you
+copy, modify or distribute the work in a way requiring permission
+under copyright law.
+
+A "Modified Version" of the Document means any work containing the
+Document or a portion of it, either copied verbatim, or with
+modifications and/or translated into another language.
+
+A "Secondary Section" is a named appendix or a front-matter section of
+the Document that deals exclusively with the relationship of the
+publishers or authors of the Document to the Document's overall subject
+(or to related matters) and contains nothing that could fall directly
+within that overall subject. (Thus, if the Document is in part a
+textbook of mathematics, a Secondary Section may not explain any
+mathematics.) The relationship could be a matter of historical
+connection with the subject or with related matters, or of legal,
+commercial, philosophical, ethical or political position regarding
+them.
+
+The "Invariant Sections" are certain Secondary Sections whose titles
+are designated, as being those of Invariant Sections, in the notice
+that says that the Document is released under this License. If a
+section does not fit the above definition of Secondary then it is not
+allowed to be designated as Invariant. The Document may contain zero
+Invariant Sections. If the Document does not identify any Invariant
+Sections then there are none.
+
+The "Cover Texts" are certain short passages of text that are listed,
+as Front-Cover Texts or Back-Cover Texts, in the notice that says that
+the Document is released under this License. A Front-Cover Text may
+be at most 5 words, and a Back-Cover Text may be at most 25 words.
+
+A "Transparent" copy of the Document means a machine-readable copy,
+represented in a format whose specification is available to the
+general public, that is suitable for revising the document
+straightforwardly with generic text editors or (for images composed of
+pixels) generic paint programs or (for drawings) some widely available
+drawing editor, and that is suitable for input to text formatters or
+for automatic translation to a variety of formats suitable for input
+to text formatters. A copy made in an otherwise Transparent file
+format whose markup, or absence of markup, has been arranged to thwart
+or discourage subsequent modification by readers is not Transparent.
+An image format is not Transparent if used for any substantial amount
+of text. A copy that is not "Transparent" is called "Opaque".
+
+Examples of suitable formats for Transparent copies include plain
+ASCII without markup, Texinfo input format, LaTeX input format, SGML
+or XML using a publicly available DTD, and standard-conforming simple
+HTML, PostScript or PDF designed for human modification. Examples of
+transparent image formats include PNG, XCF and JPG. Opaque formats
+include proprietary formats that can be read and edited only by
+proprietary word processors, SGML or XML for which the DTD and/or
+processing tools are not generally available, and the
+machine-generated HTML, PostScript or PDF produced by some word
+processors for output purposes only.
+
+The "Title Page" means, for a printed book, the title page itself,
+plus such following pages as are needed to hold, legibly, the material
+this License requires to appear in the title page. For works in
+formats which do not have any title page as such, "Title Page" means
+the text near the most prominent appearance of the work's title,
+preceding the beginning of the body of the text.
+
+A section "Entitled XYZ" means a named subunit of the Document whose
+title either is precisely XYZ or contains XYZ in parentheses following
+text that translates XYZ in another language. (Here XYZ stands for a
+specific section name mentioned below, such as "Acknowledgements",
+"Dedications", "Endorsements", or "History".) To "Preserve the Title"
+of such a section when you modify the Document means that it remains a
+section "Entitled XYZ" according to this definition.
+
+The Document may include Warranty Disclaimers next to the notice which
+states that this License applies to the Document. These Warranty
+Disclaimers are considered to be included by reference in this
+License, but only as regards disclaiming warranties: any other
+implication that these Warranty Disclaimers may have is void and has
+no effect on the meaning of this License.
+
+
+2. VERBATIM COPYING
+
+You may copy and distribute the Document in any medium, either
+commercially or noncommercially, provided that this License, the
+copyright notices, and the license notice saying this License applies
+to the Document are reproduced in all copies, and that you add no other
+conditions whatsoever to those of this License. You may not use
+technical measures to obstruct or control the reading or further
+copying of the copies you make or distribute. However, you may accept
+compensation in exchange for copies. If you distribute a large enough
+number of copies you must also follow the conditions in section 3.
+
+You may also lend copies, under the same conditions stated above, and
+you may publicly display copies.
+
+
+3. COPYING IN QUANTITY
+
+If you publish printed copies (or copies in media that commonly have
+printed covers) of the Document, numbering more than 100, and the
+Document's license notice requires Cover Texts, you must enclose the
+copies in covers that carry, clearly and legibly, all these Cover
+Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
+the back cover. Both covers must also clearly and legibly identify
+you as the publisher of these copies. The front cover must present
+the full title with all words of the title equally prominent and
+visible. You may add other material on the covers in addition.
+Copying with changes limited to the covers, as long as they preserve
+the title of the Document and satisfy these conditions, can be treated
+as verbatim copying in other respects.
+
+If the required texts for either cover are too voluminous to fit
+legibly, you should put the first ones listed (as many as fit
+reasonably) on the actual cover, and continue the rest onto adjacent
+pages.
+
+If you publish or distribute Opaque copies of the Document numbering
+more than 100, you must either include a machine-readable Transparent
+copy along with each Opaque copy, or state in or with each Opaque copy
+a computer-network location from which the general network-using
+public has access to download using public-standard network protocols
+a complete Transparent copy of the Document, free of added material.
+If you use the latter option, you must take reasonably prudent steps,
+when you begin distribution of Opaque copies in quantity, to ensure
+that this Transparent copy will remain thus accessible at the stated
+location until at least one year after the last time you distribute an
+Opaque copy (directly or through your agents or retailers) of that
+edition to the public.
+
+It is requested, but not required, that you contact the authors of the
+Document well before redistributing any large number of copies, to give
+them a chance to provide you with an updated version of the Document.
+
+
+4. MODIFICATIONS
+
+You may copy and distribute a Modified Version of the Document under
+the conditions of sections 2 and 3 above, provided that you release
+the Modified Version under precisely this License, with the Modified
+Version filling the role of the Document, thus licensing distribution
+and modification of the Modified Version to whoever possesses a copy
+of it. In addition, you must do these things in the Modified Version:
+
+A. Use in the Title Page (and on the covers, if any) a title distinct
+ from that of the Document, and from those of previous versions
+ (which should, if there were any, be listed in the History section
+ of the Document). You may use the same title as a previous version
+ if the original publisher of that version gives permission.
+B. List on the Title Page, as authors, one or more persons or entities
+ responsible for authorship of the modifications in the Modified
+ Version, together with at least five of the principal authors of the
+ Document (all of its principal authors, if it has fewer than five),
+ unless they release you from this requirement.
+C. State on the Title page the name of the publisher of the
+ Modified Version, as the publisher.
+D. Preserve all the copyright notices of the Document.
+E. Add an appropriate copyright notice for your modifications
+ adjacent to the other copyright notices.
+F. Include, immediately after the copyright notices, a license notice
+ giving the public permission to use the Modified Version under the
+ terms of this License, in the form shown in the Addendum below.
+G. Preserve in that license notice the full lists of Invariant Sections
+ and required Cover Texts given in the Document's license notice.
+H. Include an unaltered copy of this License.
+I. Preserve the section Entitled "History", Preserve its Title, and add
+ to it an item stating at least the title, year, new authors, and
+ publisher of the Modified Version as given on the Title Page. If
+ there is no section Entitled "History" in the Document, create one
+ stating the title, year, authors, and publisher of the Document as
+ given on its Title Page, then add an item describing the Modified
+ Version as stated in the previous sentence.
+J. Preserve the network location, if any, given in the Document for
+ public access to a Transparent copy of the Document, and likewise
+ the network locations given in the Document for previous versions
+ it was based on. These may be placed in the "History" section.
+ You may omit a network location for a work that was published at
+ least four years before the Document itself, or if the original
+ publisher of the version it refers to gives permission.
+K. For any section Entitled "Acknowledgements" or "Dedications",
+ Preserve the Title of the section, and preserve in the section all
+ the substance and tone of each of the contributor acknowledgements
+ and/or dedications given therein.
+L. Preserve all the Invariant Sections of the Document,
+ unaltered in their text and in their titles. Section numbers
+ or the equivalent are not considered part of the section titles.
+M. Delete any section Entitled "Endorsements". Such a section
+ may not be included in the Modified Version.
+N. Do not retitle any existing section to be Entitled "Endorsements"
+ or to conflict in title with any Invariant Section.
+O. Preserve any Warranty Disclaimers.
+
+If the Modified Version includes new front-matter sections or
+appendices that qualify as Secondary Sections and contain no material
+copied from the Document, you may at your option designate some or all
+of these sections as invariant. To do this, add their titles to the
+list of Invariant Sections in the Modified Version's license notice.
+These titles must be distinct from any other section titles.
+
+You may add a section Entitled "Endorsements", provided it contains
+nothing but endorsements of your Modified Version by various
+parties--for example, statements of peer review or that the text has
+been approved by an organization as the authoritative definition of a
+standard.
+
+You may add a passage of up to five words as a Front-Cover Text, and a
+passage of up to 25 words as a Back-Cover Text, to the end of the list
+of Cover Texts in the Modified Version. Only one passage of
+Front-Cover Text and one of Back-Cover Text may be added by (or
+through arrangements made by) any one entity. If the Document already
+includes a cover text for the same cover, previously added by you or
+by arrangement made by the same entity you are acting on behalf of,
+you may not add another; but you may replace the old one, on explicit
+permission from the previous publisher that added the old one.
+
+The author(s) and publisher(s) of the Document do not by this License
+give permission to use their names for publicity for or to assert or
+imply endorsement of any Modified Version.
+
+
+5. COMBINING DOCUMENTS
+
+You may combine the Document with other documents released under this
+License, under the terms defined in section 4 above for modified
+versions, provided that you include in the combination all of the
+Invariant Sections of all of the original documents, unmodified, and
+list them all as Invariant Sections of your combined work in its
+license notice, and that you preserve all their Warranty Disclaimers.
+
+The combined work need only contain one copy of this License, and
+multiple identical Invariant Sections may be replaced with a single
+copy. If there are multiple Invariant Sections with the same name but
+different contents, make the title of each such section unique by
+adding at the end of it, in parentheses, the name of the original
+author or publisher of that section if known, or else a unique number.
+Make the same adjustment to the section titles in the list of
+Invariant Sections in the license notice of the combined work.
+
+In the combination, you must combine any sections Entitled "History"
+in the various original documents, forming one section Entitled
+"History"; likewise combine any sections Entitled "Acknowledgements",
+and any sections Entitled "Dedications". You must delete all sections
+Entitled "Endorsements".
+
+
+6. COLLECTIONS OF DOCUMENTS
+
+You may make a collection consisting of the Document and other documents
+released under this License, and replace the individual copies of this
+License in the various documents with a single copy that is included in
+the collection, provided that you follow the rules of this License for
+verbatim copying of each of the documents in all other respects.
+
+You may extract a single document from such a collection, and distribute
+it individually under this License, provided you insert a copy of this
+License into the extracted document, and follow this License in all
+other respects regarding verbatim copying of that document.
+
+
+7. AGGREGATION WITH INDEPENDENT WORKS
+
+A compilation of the Document or its derivatives with other separate
+and independent documents or works, in or on a volume of a storage or
+distribution medium, is called an "aggregate" if the copyright
+resulting from the compilation is not used to limit the legal rights
+of the compilation's users beyond what the individual works permit.
+When the Document is included in an aggregate, this License does not
+apply to the other works in the aggregate which are not themselves
+derivative works of the Document.
+
+If the Cover Text requirement of section 3 is applicable to these
+copies of the Document, then if the Document is less than one half of
+the entire aggregate, the Document's Cover Texts may be placed on
+covers that bracket the Document within the aggregate, or the
+electronic equivalent of covers if the Document is in electronic form.
+Otherwise they must appear on printed covers that bracket the whole
+aggregate.
+
+
+8. TRANSLATION
+
+Translation is considered a kind of modification, so you may
+distribute translations of the Document under the terms of section 4.
+Replacing Invariant Sections with translations requires special
+permission from their copyright holders, but you may include
+translations of some or all Invariant Sections in addition to the
+original versions of these Invariant Sections. You may include a
+translation of this License, and all the license notices in the
+Document, and any Warranty Disclaimers, provided that you also include
+the original English version of this License and the original versions
+of those notices and disclaimers. In case of a disagreement between
+the translation and the original version of this License or a notice
+or disclaimer, the original version will prevail.
+
+If a section in the Document is Entitled "Acknowledgements",
+"Dedications", or "History", the requirement (section 4) to Preserve
+its Title (section 1) will typically require changing the actual
+title.
+
+
+9. TERMINATION
+
+You may not copy, modify, sublicense, or distribute the Document except
+as expressly provided for under this License. Any other attempt to
+copy, modify, sublicense or distribute the Document is void, and will
+automatically terminate your rights under this License. However,
+parties who have received copies, or rights, from you under this
+License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+
+10. FUTURE REVISIONS OF THIS LICENSE
+
+The Free Software Foundation may publish new, revised versions
+of the GNU Free Documentation License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns. See
+http://www.gnu.org/copyleft/.
+
+Each version of the License is given a distinguishing version number.
+If the Document specifies that a particular numbered version of this
+License "or any later version" applies to it, you have the option of
+following the terms and conditions either of that specified version or
+of any later version that has been published (not as a draft) by the
+Free Software Foundation. If the Document does not specify a version
+number of this License, you may choose any version ever published (not
+as a draft) by the Free Software Foundation.
+
+
+ADDENDUM: How to use this License for your documents
+
+To use this License in a document you have written, include a copy of
+the License in the document and put the following copyright and
+license notices just after the title page:
+
+ Copyright (c) YEAR YOUR NAME.
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.2
+ or any later version published by the Free Software Foundation;
+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+ A copy of the license is included in the section entitled "GNU
+ Free Documentation License".
+
+If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
+replace the "with...Texts." line with this:
+
+ with the Invariant Sections being LIST THEIR TITLES, with the
+ Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
+
+If you have Invariant Sections without Cover Texts, or some other
+combination of the three, merge those two alternatives to suit the
+situation.
+
+If your document contains nontrivial examples of program code, we
+recommend releasing these examples in parallel under your choice of
+free software license, such as the GNU General Public License,
+to permit their use in free software.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright
new file mode 100644
index 0000000..1facebe
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright
@@ -0,0 +1,206 @@
+A copy of the GNU General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ THE COPYRIGHT HOLDER DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The license agreements of most software companies try to keep users
+at the mercy of those companies. By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must tell them their rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License. The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications. Each
+licensee is addressed as "you".
+
+ 1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program. You may charge a fee for the physical act of
+transferring a copy.
+
+ 2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+ a) cause the modified files to carry prominent notices stating that
+ you changed the files and the date of any change; and
+
+ b) cause the whole of any work that you distribute or publish, that
+ in whole or in part contains the Program or any part thereof, either
+ with or without modifications, to be licensed at no charge to all
+ third parties under the terms of this General Public License (except
+ that you may choose to grant warranty protection to some or all
+ third parties, at your option).
+
+ c) If the modified program normally reads commands interactively when
+ run, you must cause it, when started running for such interactive use
+ in the simplest and most usual way, to print or display an
+ announcement including an appropriate copyright notice and a notice
+ that there is no warranty (or else, saying that you provide a
+ warranty) and that users may redistribute the program under these
+ conditions, and telling the user how to view a copy of this General
+ Public License.
+
+ d) You may charge a fee for the physical act of transferring a
+ copy, and you may at your option offer warranty protection in
+ exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+ 3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+ a) accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ b) accompany it with a written offer, valid for at least three
+ years, to give any third party free (except for a nominal charge
+ for the cost of distribution) a complete machine-readable copy of the
+ corresponding source code, to be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ c) accompany it with the information you received as to where the
+ corresponding source code may be obtained. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it. For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+ 4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License. However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+ 5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions. You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+ 7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+ 8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright
new file mode 100644
index 0000000..f94bb0d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright
@@ -0,0 +1,344 @@
+A copy of the GNU General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/gpl-2.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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 3 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, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright
new file mode 100644
index 0000000..5dabe34
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright
@@ -0,0 +1,171 @@
+A copy of the GNU Lesser General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/lgpl-3.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright
new file mode 100644
index 0000000..78a493a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright
@@ -0,0 +1,3 @@
+Copyright (C) 2008 Author
+
+Äußerst ärgerlich, falls nicht UTF-8 benutzt würde.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright
new file mode 100644
index 0000000..dceee0e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright
@@ -0,0 +1,22 @@
+This copyright file contains several errors.
+
+Downloaded from <url://example.com>
+
+You should not use the template for
+Upstream Author(s): Tobias
+Copyright 2008 Tobias
+
+The path /usr/share/common-licences/GPL contains a spelling error.
+
+It's wrong to reference a compressed license, like this:
+/usr/share/common-licenses/BSD.gz
+
+This path /usr/share/doc/copyright is obsolete.
+
+The path /usr/share/common-licenses/GPL2 is missing a hyphen.
+
+This copyright info was automatically extracted from the perl module.
+It may not be accurate, so you better check the module sources
+if you don't want to get into legal troubles.
+
+References to /usr/share/common-licenses/BSD are deprecated.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright
new file mode 100644
index 0000000..e71e0f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Midnight Commander
+Source: http://www.midnight-commander.org/downloads
+Copyright: 1996-2013 Free Software Foundation
+License: Apache-2.0
+
+Files: *
+Copyright: 2004,2007 Oren Ben-Kiki
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright
new file mode 100644
index 0000000..97f8cda
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright
@@ -0,0 +1,5 @@
+This copyright file is for libmythical-perl. The module is licenses under
+the same terms as Perl itself but we've forgotten to add a reference to the
+copy of the Perl license in common-licenses.
+
+Copyright 2010 The Mythical Perl Module Team
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-no-errors.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-no-errors.copyright
new file mode 100644
index 0000000..d31a720
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-no-errors.copyright
@@ -0,0 +1,36 @@
+This package was debianized by Tobias Toedter <t.toedter@gmx.net> on
+Thu, 20 Mar 2008 23:48:15 +0100
+
+It was downloaded from <http://www.example.org/>
+
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184
+
+Upstream Authors:
+
+ Tobias Toedter <t.toedter@gmx.net>
+
+Copyright:
+
+ Copyright (C) 2008 Tobias Toedter
+
+License:
+
+ This package 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 package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is Copyright 2008, Tobias Toedter <t.toedter@gmx.net>
+and is licensed under the GPL, see above.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright
new file mode 100644
index 0000000..00946fc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright
@@ -0,0 +1,19 @@
+To the extend this is copyrightable (if at all), it is:
+ Copyright 2012 Niels Thykier <niels@thykier.net>.
+
+This program is free software; you may 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, or (at your option)
+any later version.
+
+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. See the GNU General Public License
+for more details.
+
+A copy of the GNU General Public License version 2 is available as
+/usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+You can also obtain it by writing to the Free Software Foundation, Inc.,
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-php.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-php.copyright
new file mode 100644
index 0000000..338cf09
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-php.copyright
@@ -0,0 +1,151 @@
+A copyright file referring to two problematic PHP licenses.
+
+Copyright 2008 Some Guy.
+
+--------------------------------------------------------------------
+ The PHP License, version 2.02
+Copyright (c) 1999 - 2002 The PHP Group. All rights reserved.
+--------------------------------------------------------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ 3. The name "PHP" must not be used to endorse or promote products
+ derived from this software without prior permission from the
+ PHP Group. This does not apply to add-on libraries or tools
+ that work in conjunction with PHP. In such a case the PHP
+ name may be used to indicate that the product supports PHP.
+
+ 4. The PHP Group may publish revised and/or new versions of the
+ license from time to time. Each version will be given a
+ distinguishing version number.
+ Once covered code has been published under a particular version
+ of the license, you may always continue to use it under the
+ terms of that version. You may also choose to use such covered
+ code under the terms of any subsequent version of the license
+ published by the PHP Group. No one other than the PHP Group has
+ the right to modify the terms applicable to covered code created
+ under this License.
+
+ 5. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes PHP, freely available from
+ http://www.php.net/".
+
+ 6. The software incorporates the Zend Engine, a product of Zend
+ Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the
+ PHP Association (pursuant to a grant from Zend that can be
+ found at http://www.php.net/license/ZendGrant/) for
+ distribution to you under this license agreement, only as a
+ part of PHP. In the event that you separate the Zend Engine
+ (or any portion thereof) from the rest of the software, or
+ modify the Zend Engine, or any portion thereof, your use of the
+ separated or modified Zend Engine software shall not be governed
+ by this license, and instead shall be governed by the license
+ set forth at http://www.zend.com/license/ZendLicense/.
+
+
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------------------------------------------------------------
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group@php.net.
+
+For more information on the PHP Group and the PHP project,
+please see <http://www.php.net>.
+
+
+
+
+--------------------------------------------------------------------
+ The PHP License, version 3.0
+Copyright (c) 1999 - 2003 The PHP Group. All rights reserved.
+--------------------------------------------------------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ 3. The name "PHP" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact group@php.net.
+
+ 4. Products derived from this software may not be called "PHP", nor
+ may "PHP" appear in their name, without prior written permission
+ from group@php.net. You may indicate that your software works in
+ conjunction with PHP by saying "Foo for PHP" instead of calling
+ it "PHP Foo" or "phpfoo"
+
+ 5. The PHP Group may publish revised and/or new versions of the
+ license from time to time. Each version will be given a
+ distinguishing version number.
+ Once covered code has been published under a particular version
+ of the license, you may always continue to use it under the terms
+ of that version. You may also choose to use such covered code
+ under the terms of any subsequent version of the license
+ published by the PHP Group. No one other than the PHP Group has
+ the right to modify the terms applicable to covered code created
+ under this License.
+
+ 6. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes PHP, freely available from
+ <http://www.php.net/>".
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------------------------------------------------------------
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group@php.net.
+
+For more information on the PHP Group and the PHP project,
+please see <http://www.php.net>.
+
+This product includes the Zend Engine, freely available at
+<http://www.zend.com>.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright
new file mode 100644
index 0000000..5a24980
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright
@@ -0,0 +1,24 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ 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 3 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, see <http://www.gnu.org/licenses/>
+
+The full text of this license is in common-licenses/GPL-3
+
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-versionless.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-versionless.copyright
new file mode 100644
index 0000000..c08f501
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-versionless.copyright
@@ -0,0 +1,2 @@
+This package is copyright (c) 2009, Some Name <example@example.org> and is
+licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-w3c.copyright b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-w3c.copyright
new file mode 100644
index 0000000..95c3f40
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/copyright-w3c.copyright
@@ -0,0 +1,95 @@
+This package was debianized by J Random Developer <j.random@example.org> on
+Tue, 8 Nov 2005 00:27:44 +0100.
+
+It was downloaded from http://search.cpan.org/dist/W3C-LinkChecker/
+
+Copyright Holder: the software was developed by following people for the
+ W3C:
+ The W3C Link Checker Team <www-validator@w3.org>
+
+License: according to the README file, the source code of the W3C linkchecker
+is available under the terms of the W3C Software Copyright (compatible with
+the GNU GPL), which can be found at
+
+ http://www.w3.org/Consortium/Legal/copyright-software
+
+and is reproduced below:
+
+
+ W3C � SOFTWARE NOTICE AND LICENSE
+
+ [1]http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ This work (and included software, documentation such as READMEs, or
+ other related items) is being provided by the copyright holders under
+ the following license. By obtaining, using and/or copying this work,
+ you (the licensee) agree that you have read, understood, and will
+ comply with the following terms and conditions.
+
+ Permission to copy, modify, and distribute this software and its
+ documentation, with or without modification, for any purpose and
+ without fee or royalty is hereby granted, provided that you include
+ the following on ALL copies of the software and documentation or
+ portions thereof, including modifications:
+ 1. The full text of this NOTICE in a location viewable to users of
+ the redistributed or derivative work.
+ 2. Any pre-existing intellectual property disclaimers, notices, or
+ terms and conditions. If none exist, the [2]W3C Software Short
+ Notice should be included (hypertext is preferred, text is
+ permitted) within the body of any redistributed or derivative
+ code.
+ 3. Notice of any changes or modifications to the files, including the
+ date changes were made. (We recommend you provide URIs to the
+ location from which the code is derived.)
+
+ THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
+ HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
+ DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
+ TRADEMARKS OR OTHER RIGHTS.
+
+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
+ OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
+ DOCUMENTATION.
+
+ The name and trademarks of copyright holders may NOT be used in
+ advertising or publicity pertaining to the software without specific,
+ written prior permission. Title to copyright in this software and any
+ associated documentation will at all times remain with copyright
+ holders.
+
+ ____________________________________
+
+ This formulation of W3C's notice and license became active on December
+ 31 2002. This version removes the copyright ownership notice such that
+ this license can be used with materials other than those owned by the
+ W3C, reflects that ERCIM is now a host of the W3C, includes references
+ to this specific dated version of the license, and removes the
+ ambiguous grant of "use". Otherwise, this version is the same as the
+ [3]previous version and is written so as to preserve the [4]Free
+ Software Foundation's assessment of GPL compatibility and [5]OSI's
+ certification under the [6]Open Source Definition. Please see our
+ [7]Copyright FAQ for common questions about using materials from our
+ site, including specific terms and conditions for packages like
+ libwww, Amaya, and Jigsaw. Other questions about this notice can be
+ directed to [8]site-policy@w3.org.
+
+
+ Joseph Reagle <[9]site-policy@w3.org>
+
+ Last revised $Id: copyright-software-20021231.html,v 1.11 2004/07/06
+ 16:02:49 slesch Exp $
+
+References
+
+ 1. http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+ 2. http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html
+ 3. http://www.w3.org/Consortium/Legal/copyright-software-19980720
+ 4. http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses
+ 5. http://www.opensource.org/licenses/W3C.php
+ 6. http://www.opensource.org/docs/definition.php
+ 7. http://www.w3.org/Consortium/Legal/IPR-FAQ
+ 8. mailto:site-policy@w3.org
+ 9. mailto:site-policy@w3.org
+
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/rules b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/rules
new file mode 100755
index 0000000..50ff78f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_installdocs:
+ dh_installdocs
+ install -m 644 debian/copyright-no-errors.copyright debian/copyright-symlink/usr/share/doc/copyright-symlink/symlink
+ rm debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright
+ ln -s symlink debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright
+ gzip -n -9 debian/copyright-compressed/usr/share/doc/copyright-compressed/copyright
+ mkdir -p debian/copyright-old-style/usr/doc/copyright
+ # This should (now) trigger a no-copyright-file (as there is no copyright file
+ # in the right location).
+ mv debian/copyright-old-style/usr/share/doc/copyright-old-style/copyright debian/copyright-old-style/usr/doc/copyright/copyright-old-style
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/fill-values
new file mode 100644
index 0000000..1bf7f36
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-general
+Description: Test checking of copyright files
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-general/eval/desc
new file mode 100644
index 0000000..2c7e36a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: copyright-file-general
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-general/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-general/eval/hints
new file mode 100644
index 0000000..1b8bc03
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-general/eval/hints
@@ -0,0 +1,28 @@
+copyright-symlink (binary): copyright-file-is-symlink [usr/share/doc/copyright-symlink/copyright]
+copyright-poor-common-licenses (binary): copyright-not-using-common-license-for-gpl
+copyright-poor-common-licenses (binary): copyright-does-not-refer-to-common-license-file /GPL-3
+copyright-old-style (binary): no-copyright-file
+copyright-old-fsf (binary): old-fsf-address-in-copyright-file
+copyright-missing-perl-license-pointer (binary): copyright-file-lacks-pointer-to-perl-license
+copyright-missing-apache2-license-pointer (binary): copyright-not-using-common-license-for-apache2
+copyright-misc-errors (binary): helper-templates-in-copyright
+copyright-misc-errors (binary): copyright-refers-to-old-directory
+copyright-misc-errors (binary): copyright-refers-to-nonexistent-license-file usr/share/common-licenses/GPL2
+copyright-misc-errors (binary): copyright-refers-to-incorrect-directory usr/share/common-licences
+copyright-misc-errors (binary): copyright-refers-to-deprecated-bsd-license-file
+copyright-misc-errors (binary): copyright-refers-to-compressed-license usr/share/common-licenses/BSD.gz
+copyright-misc-errors (binary): copyright-has-url-from-dh_make-boilerplate
+copyright-misc-errors (binary): copyright-contains-automatically-extracted-boilerplate
+copyright-full-lgpl (binary): copyright-not-using-common-license-for-lgpl
+copyright-full-gpl-2 (binary): copyright-not-using-common-license-for-lgpl
+copyright-full-gpl-2 (binary): copyright-file-contains-full-gpl-license
+copyright-full-gpl-1 (binary): copyright-not-using-common-license-for-gpl
+copyright-full-gpl (binary): copyright-not-using-common-license-for-gpl
+copyright-full-gpl (binary): copyright-file-contains-full-gpl-license
+copyright-full-gfdl (binary): copyright-not-using-common-license-for-gfdl
+copyright-full-gfdl (binary): copyright-file-contains-full-gfdl-license
+copyright-full-apache-2 (binary): copyright-without-copyright-notice
+copyright-full-apache-2 (binary): copyright-not-using-common-license-for-apache2
+copyright-full-apache-2 (binary): copyright-file-contains-full-apache-2-license
+copyright-crln (binary): copyright-has-crs
+copyright-compressed (binary): copyright-file-compressed [usr/share/doc/copyright-compressed/copyright.gz]
diff --git a/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..c41fc78
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/control.in
@@ -0,0 +1,28 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: https://lintian.debian.org/
+
+Package: [% $source %]-bad
+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.
+
+Package: [% $source %]-pedantic
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] -- pedantic edition :)
+ Checks the pedantic version of the versionless copyright file check.
+ .
+ This is a test package designed to exercise some check 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/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright
new file mode 100644
index 0000000..b59cb92
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright
@@ -0,0 +1,20 @@
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+So far as it is copyrightable at all, this template is
+ Copyright (C) 2008 Frank Lichtenheld <djpig@debian.org>
+
+This program is free software; you may redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation in its version 3.
+
+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. See the GNU General Public License
+for more details.
+
+A copy of the GNU General Public License version 3 is available as
+/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution
+or at http://www.gnu.org/licenses/old-licenses/gpl-3.0.html.
+You can also obtain it by writing to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright
new file mode 100644
index 0000000..2591c9b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright
@@ -0,0 +1,21 @@
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+So far as it is copyrightable at all, this template is
+ Copyright (C) 2008 Frank Lichtenheld <djpig@debian.org>
+
+This program is free software; you may 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, or (at your option)
+any later version.
+
+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. See the GNU General Public License
+for more details.
+
+A copy of the GNU General Public License version 2 is available as
+/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution
+or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+You can also obtain it by writing to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/fill-values
new file mode 100644
index 0000000..1a3cd35
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-license-symlink
+Description: Test the versionless license files checks
diff --git a/t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/desc
new file mode 100644
index 0000000..17cc2f4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: copyright-file-license-symlink
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/hints
new file mode 100644
index 0000000..39f1b25
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-license-symlink/eval/hints
@@ -0,0 +1,2 @@
+copyright-file-license-symlink-pedantic (binary): copyright-refers-to-symlink-license usr/share/common-licenses/GPL
+copyright-file-license-symlink-bad (binary): copyright-refers-to-versionless-license-file usr/share/common-licenses/GPL
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/control.in
new file mode 100644
index 0000000..00c2ba8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/control.in
@@ -0,0 +1,95 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: copyright-mentions-apache
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for Apache
+ Tests against common license false positive for Apache.
+ .
+ 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.
+
+Package: copyright-mentions-apache2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for Apache (2)
+ Tests against common license false positive for Apache (2).
+ .
+ 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.
+
+Package: copyright-mentions-apache3
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for Apache (3)
+ Tests against common license false positive for Apache (3).
+ .
+ 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.
+
+Package: copyright-mentions-gfdl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for gfdl
+ Tests against common license false positive for gfdl.
+ .
+ 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.
+
+Package: copyright-mentions-gpl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for gpl
+ Tests against common license false positive for gpl.
+ .
+ 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.
+
+Package: copyright-mentions-lgpl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for lgpl
+ Tests against common license false positive for lgpl.
+ .
+ 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.
+
+Package: copyright-mentions-lgpl2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for lgpl (2)
+ Tests against common license false positive for lgpl (2).
+ .
+ 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.
+
+Package: copyright-mentions-perl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks against common license false positive for perl
+ Tests against common license false positive for perl.
+ .
+ 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/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache.copyright
new file mode 100644
index 0000000..627f564
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum Apache License , Version 2.0 lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache2.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache2.copyright
new file mode 100644
index 0000000..493add3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache2.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum Apache License Version 2.0 lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache3.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache3.copyright
new file mode 100644
index 0000000..28de0e9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-apache3.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum Apache-2 License lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gfdl.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gfdl.copyright
new file mode 100644
index 0000000..75ac1cb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gfdl.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum GNU Free Documentation License (GFDL) lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gpl.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gpl.copyright
new file mode 100644
index 0000000..a33353a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-gpl.copyright
@@ -0,0 +1,14 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum GNU General Public License (GPL) applies to the changes,
+ .
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl.copyright
new file mode 100644
index 0000000..93a0925
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum GNU Lesser General Public License (LGPL) lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl2.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl2.copyright
new file mode 100644
index 0000000..74632b5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-lgpl2.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum GNU Library General Public License (LGPL) lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-perl.copyright b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-perl.copyright
new file mode 100644
index 0000000..8a757ce
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/debian/copyright-mentions-perl.copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: *
+Copyright: 2015 Lintian Maintainers <debian-lint-maint@lists.debian.org>
+License: Mentions-Other-License
+
+License: Mentions-Other-License
+ lorem ipsum
+ lorem ipsum under the same terms as Perl itself lorem ipsum
+ lorem ipsum
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/fill-values
new file mode 100644
index 0000000..efe9ba6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-non-common-license
+Description: Test for false positive for a common license
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/desc
new file mode 100644
index 0000000..07eb186
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/desc
@@ -0,0 +1,8 @@
+Testname: copyright-file-non-common-license
+Test-Against:
+ copyright-not-using-common-license-for-gpl
+ copyright-not-using-common-license-for-gfdl
+ copyright-not-using-common-license-for-lgpl
+ copyright-not-using-common-license-for-apache2
+ copyright-file-lacks-pointer-to-perl-license
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-non-common-license/eval/hints
diff --git a/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..fb4666c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/control.in
@@ -0,0 +1,40 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: symlink-to-foreign
+Architecture: all
+Depends: ${misc:Depends}, foreign-package
+Description: [% $description %] (foreign)
+ 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.
+ .
+ Foreign.
+
+Package: symlink-outside-usd
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (usd)
+ 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.
+ .
+ USD.
+
+Package: symlink-without-depends
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (no-deepnds)
+ 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.
+ .
+ Symlinks without dependency.
diff --git a/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/rules b/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/rules
new file mode 100644
index 0000000..d48f723
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+USD:=usr/share/doc
+%:
+ dh $@
+
+
+override_dh_md5sums:
+ rm -fr debian/symlink-to-foreign/$(USD)/symlink-to-foreign
+ ln -sf foreign-package \
+ debian/symlink-to-foreign/$(USD)/symlink-to-foreign
+ rm -fr debian/symlink-without-depends/$(USD)/symlink-without-depends
+ ln -sf foreign-package \
+ debian/symlink-without-depends/$(USD)/symlink-without-depends
+ # Move all of it to usr/lib/<package>/
+ mkdir -p debian/symlink-outside-usd/usr/lib/
+ mv debian/symlink-outside-usd/$(USD)/symlink-outside-usd \
+ debian/symlink-outside-usd/usr/lib/symlink-outside-usd/
+ # with symlink of course :)
+ ln -s ../../lib/symlink-outside-usd/copyright \
+ debian/symlink-outside-usd/$(USD)/symlink-outside-usd
+ dh_md5sums
diff --git a/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/fill-values b/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/fill-values
new file mode 100644
index 0000000..f286c24
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-symlink
+Description: Test for symlinked doc directories
diff --git a/t/recipes/checks/debian/copyright/copyright-file-symlink/eval/desc b/t/recipes/checks/debian/copyright/copyright-file-symlink/eval/desc
new file mode 100644
index 0000000..4f60c40
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: copyright-file-symlink
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/copyright-file-symlink/eval/hints b/t/recipes/checks/debian/copyright/copyright-file-symlink/eval/hints
new file mode 100644
index 0000000..785fbc3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/copyright-file-symlink/eval/hints
@@ -0,0 +1,3 @@
+symlink-without-depends (binary): usr-share-doc-symlink-without-dependency foreign-package
+symlink-to-foreign (binary): usr-share-doc-symlink-to-foreign-package foreign-package
+symlink-outside-usd (binary): usr-share-doc-symlink-points-outside-of-usr-share-doc ../../lib/symlink-outside-usd/copyright [usr/share/doc/symlink-outside-usd]
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml
new file mode 100644
index 0000000..a823b8d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml
@@ -0,0 +1 @@
+This is not a valid XML document.
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml
new file mode 100644
index 0000000..31d281e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application/>
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop
new file mode 100644
index 0000000..4c91430
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=appstream-udev-data
+Terminal=true
+Exec=true
+Categories=ConsoleOnly;Game;
+Keywords=Text;
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs
new file mode 100644
index 0000000..402f5d5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs
@@ -0,0 +1,2 @@
+usr/share/metainfo
+usr/share/appdata
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml
new file mode 100644
index 0000000..82294c1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+ <id>appstream-udev-data</id>
+ <metadata_license>MIT</metadata_license>
+ <name>lintian appstream-udev-data</name>
+ <summary>Test AppStream and udev related checks in lintian</summary>
+ <description>
+ <p>
+ 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.
+ </p>
+ </description>
+ <provides>
+ <modalias>usb:v0000p0001d*</modalias>
+ <modalias>usb:v0000p0002d*</modalias>
+ <modalias>usb:v0000p0003d*</modalias>
+ <modalias>usb:v0000p0004d*</modalias>
+ <modalias>usb:v0000p000ad*</modalias>
+ </provides>
+</component>
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev
new file mode 100644
index 0000000..e2f2841
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev
@@ -0,0 +1,14 @@
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \
+ MODE="0666"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \
+ MODE="0660", GROUP="plugdev"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \
+ TAG+="uaccess"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \
+ MODE="0660", GROUP="plugdev", TAG+="uaccess"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \
+ ID_TEST_DEVICE="1"
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules
new file mode 100644
index 0000000..5fb0c35
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+DESTDIR = debian/$(shell dh_listpackages)
+APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/
+OBSOLETE_APPSYNC_DIR=$(DESTDIR)/usr/share/appdata/
+UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/
+
+%:
+ dh $@
+
+override_dh_install:
+ dh_install
+ install -m 0644 debian/appstream-metadata.metadata.xml $(APPSYNC_DIR)
+ install -m 0644 debian/appstream-metadata-invalid.metadata.xml $(APPSYNC_DIR)
+ install -m 0644 debian/appstream-metadata-obsolete.metadata.xml $(OBSOLETE_APPSYNC_DIR)
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values
new file mode 100644
index 0000000..cfd5595
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: appstream-metadata
+Description: Test AppStream and udev metadata in binary package
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/desc b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/desc
new file mode 100644
index 0000000..4d651da
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/desc
@@ -0,0 +1,2 @@
+Testname: appstream-metadata
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/hints b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/hints
new file mode 100644
index 0000000..446654b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/eval/hints
@@ -0,0 +1 @@
+appstream-metadata (source): inconsistent-appstream-metadata-license debian/appstream-metadata.metadata.xml (mit != gpl-2+) [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..bd03c4e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1 @@
+Too lazy to fake this file
diff --git a/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/fill-values
new file mode 100644
index 0000000..05147bb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: control-file-upstream-signature-missing
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: No upstream signature included but package contains a signing key
+Extra-Build-Depends: dpkg (>= 1.18.5)
+# dpkg 1.18.5 required in order to create multiple tarballs with detached signatures
diff --git a/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/pre-build b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/pre-build
new file mode 100755
index 0000000..93d6006
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/build-spec/pre-build
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+DIR="$1"
+NAME="control-file-upstream-signature-missing"
+VERSION="1.0"
+
+# Check all components
+cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-component.tar.gz
+
+# Don't emit if we have a signature
+cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-signed.tar.gz
+touch ${DIR}/../${NAME}_${VERSION}.orig-signed.tar.gz.asc
+
+# Don't emit if we have .tar.asc (NB. not a .tar.gz.asc)
+cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-noext.tar.gz
+touch ${DIR}/../${NAME}_${VERSION}.orig-noext.tar.gz.asc
diff --git a/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/desc b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/desc
new file mode 100644
index 0000000..22a5236
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/desc
@@ -0,0 +1,3 @@
+Testname: control-file-upstream-signature-missing
+Check: debian/copyright/dep5/components
+# dpkg 1.18.5 required in order to create multiple tarballs with detached signatures
diff --git a/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints
new file mode 100644
index 0000000..a4ea69b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/components/control-file-upstream-signature-missing/eval/hints
@@ -0,0 +1,3 @@
+control-file-upstream-signature-missing (source): add-component-copyright signed [debian/copyright]
+control-file-upstream-signature-missing (source): add-component-copyright noext [debian/copyright]
+control-file-upstream-signature-missing (source): add-component-copyright component [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/debian/copyright
new file mode 100644
index 0000000..3c3b46f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801182#8
+# except completed where needed, and with a secure URL
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+Copyright: (C) 2004-2012 NVIDIA Corporation
+License: MooPL
+
+Files: XF86Config-parser/Generate.c
+Copyright: (C) 2005 NVIDIA Corporation
+License: GPL-2+ and other-GPL
+
+Files: debian/*
+Copyright: © 2005 Randall Donald <rdonald@debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ Please call the Free Software Foundation for this license.
+
+License: other-GPL
+ Please call the Free Software Foundation for this license.
diff --git a/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/fill-values
new file mode 100644
index 0000000..f8fe653
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: conjunction-vs-alone
+Description: Uses the same license in a conjuntion and alone (false positive)
diff --git a/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/desc b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/desc
new file mode 100644
index 0000000..bd5b807
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/desc
@@ -0,0 +1,5 @@
+Testname: conjunction-vs-alone
+Check: debian/copyright/dep5
+Test-Against:
+ dep5-copyright-license-name-not-unique
+See-Also: Bug#801182
diff --git a/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/conjunction-vs-alone/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/control.in
new file mode 100644
index 0000000..d347ec7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/control.in
@@ -0,0 +1,243 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: copyright-iso-8859-1
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks for non-utf-8-encodings
+ Tests non-UTF-8 encodings.
+ .
+ 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.
+
+Package: copyright-full-gpl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GPL in full text
+ Tests the tag for including all of the GPL.
+ .
+ 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.
+
+Package: copyright-full-lgpl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of LGPL in full text
+ Tests the tag for including all of the LGPL.
+ .
+ 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.
+
+Package: copyright-full-gfdl
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GFDL in full text
+ Tests the tag for including all of the GFDL.
+ .
+ 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.
+
+Package: copyright-full-apache-2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of Apache 2.0 in full text
+ Tests the tag for including all of the Apache 2.0 license.
+ .
+ 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.
+
+Package: copyright-misc-errors
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks various errors in copyright files
+ Tests various random errors in copyright files.
+ .
+ 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.
+
+Package: copyright-symlink
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: just use a symlink for the copyright file
+ Tests the check for a symlinked copyright file.
+ .
+ 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.
+
+Package: copyright-compressed
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: include a valid copyright file and compress it
+ Tests the check for a compressed copyright file.
+ .
+ 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.
+
+Package: copyright-old-style
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: use an old-style directory structure
+ Tests a copyright file using an old-style directory structure.
+ .
+ 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.
+
+Package: copyright-full-gpl-1
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GPL1
+ This should trigger errors as GPL1 is in the common license dir.
+ .
+ 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.
+
+Package: copyright-full-gpl-2
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of GPL2
+ This should trigger errors as GPL2 is in the common license dir.
+ .
+ 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.
+
+Package: copyright-php
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks problematic PHP licenses
+ The PHP licenses are problematic for any software that isn't PHP.
+ .
+ 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.
+
+Package: copyright-w3c
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of the W3C license
+ The W3C license text claims to be "GPL compatible", which shouldn't
+ trigger warnings.
+ .
+ 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.
+
+Package: copyright-no-errors
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: this should not emit any error
+ This copyright file should be fine.
+ .
+ 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.
+
+Package: copyright-versionless
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks a valid versionless GPL reference
+ Refers to the GPL and truly doesn't mention any version.
+ .
+ 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.
+
+Package: copyright-missing-perl-license-pointer
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks for perl packages not pointing to common-licenses
+ Packages under the "same terms as Perl itself" should reference a
+ license in common-licenses.
+ .
+ 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.
+
+Package: copyright-missing-apache2-license-pointer
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks for apache2 packages not pointing to common-licenses
+ Packages under the apache2-license should reference a
+ license in common-licenses.
+ .
+ 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.
+
+Package: copyright-poor-common-licenses
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks not referring to common licenses
+ Packages should refer to common licenses with full path if they
+ use a common license.
+ .
+ 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.
+
+Package: copyright-crln
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: check for Windows newlines
+ This package should trigger a tag for having Windows newlines in
+ the copyright file.
+ .
+ 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.
+
+Package: copyright-full-agpl-3
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks inclusion of AGPL-3 in full text
+ This should not trigger a tag as AGPL-3 is not in common-licenses.
+ .
+ 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.
+
+Package: copyright-old-fsf
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: checks use of old FSF address
+ This should trigger a tag for using old FSF address.
+ .
+ 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/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-crln.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-crln.copyright
new file mode 100644
index 0000000..43b49cf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-crln.copyright
@@ -0,0 +1,36 @@
+This package was debianized by Tobias Toedter <t.toedter@gmx.net> on
+Thu, 20 Mar 2008 23:48:15 +0100
+
+It was downloaded from <http://www.example.org/>
+
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184
+
+Upstream Authors:
+
+ Tobias Toedter <t.toedter@gmx.net>
+
+Copyright:
+
+ Copyright (C) 2008 Tobias Toedter
+
+License:
+
+ This package 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 package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is Copyright 2008, Tobias Toedter <t.toedter@gmx.net>
+and is licensed under the GPL, see above.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright
new file mode 100644
index 0000000..dba13ed
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-agpl-3.copyright
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 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 Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<http://www.gnu.org/licenses/>.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-apache-2.copyright
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright
new file mode 100644
index 0000000..4a0fe1c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gfdl.copyright
@@ -0,0 +1,397 @@
+ GNU Free Documentation License
+ Version 1.2, November 2002
+
+
+ Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+0. PREAMBLE
+
+The purpose of this License is to make a manual, textbook, or other
+functional and useful document "free" in the sense of freedom: to
+assure everyone the effective freedom to copy and redistribute it,
+with or without modifying it, either commercially or noncommercially.
+Secondarily, this License preserves for the author and publisher a way
+to get credit for their work, while not being considered responsible
+for modifications made by others.
+
+This License is a kind of "copyleft", which means that derivative
+works of the document must themselves be free in the same sense. It
+complements the GNU General Public License, which is a copyleft
+license designed for free software.
+
+We have designed this License in order to use it for manuals for free
+software, because free software needs free documentation: a free
+program should come with manuals providing the same freedoms that the
+software does. But this License is not limited to software manuals;
+it can be used for any textual work, regardless of subject matter or
+whether it is published as a printed book. We recommend this License
+principally for works whose purpose is instruction or reference.
+
+
+1. APPLICABILITY AND DEFINITIONS
+
+This License applies to any manual or other work, in any medium, that
+contains a notice placed by the copyright holder saying it can be
+distributed under the terms of this License. Such a notice grants a
+world-wide, royalty-free license, unlimited in duration, to use that
+work under the conditions stated herein. The "Document", below,
+refers to any such manual or work. Any member of the public is a
+licensee, and is addressed as "you". You accept the license if you
+copy, modify or distribute the work in a way requiring permission
+under copyright law.
+
+A "Modified Version" of the Document means any work containing the
+Document or a portion of it, either copied verbatim, or with
+modifications and/or translated into another language.
+
+A "Secondary Section" is a named appendix or a front-matter section of
+the Document that deals exclusively with the relationship of the
+publishers or authors of the Document to the Document's overall subject
+(or to related matters) and contains nothing that could fall directly
+within that overall subject. (Thus, if the Document is in part a
+textbook of mathematics, a Secondary Section may not explain any
+mathematics.) The relationship could be a matter of historical
+connection with the subject or with related matters, or of legal,
+commercial, philosophical, ethical or political position regarding
+them.
+
+The "Invariant Sections" are certain Secondary Sections whose titles
+are designated, as being those of Invariant Sections, in the notice
+that says that the Document is released under this License. If a
+section does not fit the above definition of Secondary then it is not
+allowed to be designated as Invariant. The Document may contain zero
+Invariant Sections. If the Document does not identify any Invariant
+Sections then there are none.
+
+The "Cover Texts" are certain short passages of text that are listed,
+as Front-Cover Texts or Back-Cover Texts, in the notice that says that
+the Document is released under this License. A Front-Cover Text may
+be at most 5 words, and a Back-Cover Text may be at most 25 words.
+
+A "Transparent" copy of the Document means a machine-readable copy,
+represented in a format whose specification is available to the
+general public, that is suitable for revising the document
+straightforwardly with generic text editors or (for images composed of
+pixels) generic paint programs or (for drawings) some widely available
+drawing editor, and that is suitable for input to text formatters or
+for automatic translation to a variety of formats suitable for input
+to text formatters. A copy made in an otherwise Transparent file
+format whose markup, or absence of markup, has been arranged to thwart
+or discourage subsequent modification by readers is not Transparent.
+An image format is not Transparent if used for any substantial amount
+of text. A copy that is not "Transparent" is called "Opaque".
+
+Examples of suitable formats for Transparent copies include plain
+ASCII without markup, Texinfo input format, LaTeX input format, SGML
+or XML using a publicly available DTD, and standard-conforming simple
+HTML, PostScript or PDF designed for human modification. Examples of
+transparent image formats include PNG, XCF and JPG. Opaque formats
+include proprietary formats that can be read and edited only by
+proprietary word processors, SGML or XML for which the DTD and/or
+processing tools are not generally available, and the
+machine-generated HTML, PostScript or PDF produced by some word
+processors for output purposes only.
+
+The "Title Page" means, for a printed book, the title page itself,
+plus such following pages as are needed to hold, legibly, the material
+this License requires to appear in the title page. For works in
+formats which do not have any title page as such, "Title Page" means
+the text near the most prominent appearance of the work's title,
+preceding the beginning of the body of the text.
+
+A section "Entitled XYZ" means a named subunit of the Document whose
+title either is precisely XYZ or contains XYZ in parentheses following
+text that translates XYZ in another language. (Here XYZ stands for a
+specific section name mentioned below, such as "Acknowledgements",
+"Dedications", "Endorsements", or "History".) To "Preserve the Title"
+of such a section when you modify the Document means that it remains a
+section "Entitled XYZ" according to this definition.
+
+The Document may include Warranty Disclaimers next to the notice which
+states that this License applies to the Document. These Warranty
+Disclaimers are considered to be included by reference in this
+License, but only as regards disclaiming warranties: any other
+implication that these Warranty Disclaimers may have is void and has
+no effect on the meaning of this License.
+
+
+2. VERBATIM COPYING
+
+You may copy and distribute the Document in any medium, either
+commercially or noncommercially, provided that this License, the
+copyright notices, and the license notice saying this License applies
+to the Document are reproduced in all copies, and that you add no other
+conditions whatsoever to those of this License. You may not use
+technical measures to obstruct or control the reading or further
+copying of the copies you make or distribute. However, you may accept
+compensation in exchange for copies. If you distribute a large enough
+number of copies you must also follow the conditions in section 3.
+
+You may also lend copies, under the same conditions stated above, and
+you may publicly display copies.
+
+
+3. COPYING IN QUANTITY
+
+If you publish printed copies (or copies in media that commonly have
+printed covers) of the Document, numbering more than 100, and the
+Document's license notice requires Cover Texts, you must enclose the
+copies in covers that carry, clearly and legibly, all these Cover
+Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
+the back cover. Both covers must also clearly and legibly identify
+you as the publisher of these copies. The front cover must present
+the full title with all words of the title equally prominent and
+visible. You may add other material on the covers in addition.
+Copying with changes limited to the covers, as long as they preserve
+the title of the Document and satisfy these conditions, can be treated
+as verbatim copying in other respects.
+
+If the required texts for either cover are too voluminous to fit
+legibly, you should put the first ones listed (as many as fit
+reasonably) on the actual cover, and continue the rest onto adjacent
+pages.
+
+If you publish or distribute Opaque copies of the Document numbering
+more than 100, you must either include a machine-readable Transparent
+copy along with each Opaque copy, or state in or with each Opaque copy
+a computer-network location from which the general network-using
+public has access to download using public-standard network protocols
+a complete Transparent copy of the Document, free of added material.
+If you use the latter option, you must take reasonably prudent steps,
+when you begin distribution of Opaque copies in quantity, to ensure
+that this Transparent copy will remain thus accessible at the stated
+location until at least one year after the last time you distribute an
+Opaque copy (directly or through your agents or retailers) of that
+edition to the public.
+
+It is requested, but not required, that you contact the authors of the
+Document well before redistributing any large number of copies, to give
+them a chance to provide you with an updated version of the Document.
+
+
+4. MODIFICATIONS
+
+You may copy and distribute a Modified Version of the Document under
+the conditions of sections 2 and 3 above, provided that you release
+the Modified Version under precisely this License, with the Modified
+Version filling the role of the Document, thus licensing distribution
+and modification of the Modified Version to whoever possesses a copy
+of it. In addition, you must do these things in the Modified Version:
+
+A. Use in the Title Page (and on the covers, if any) a title distinct
+ from that of the Document, and from those of previous versions
+ (which should, if there were any, be listed in the History section
+ of the Document). You may use the same title as a previous version
+ if the original publisher of that version gives permission.
+B. List on the Title Page, as authors, one or more persons or entities
+ responsible for authorship of the modifications in the Modified
+ Version, together with at least five of the principal authors of the
+ Document (all of its principal authors, if it has fewer than five),
+ unless they release you from this requirement.
+C. State on the Title page the name of the publisher of the
+ Modified Version, as the publisher.
+D. Preserve all the copyright notices of the Document.
+E. Add an appropriate copyright notice for your modifications
+ adjacent to the other copyright notices.
+F. Include, immediately after the copyright notices, a license notice
+ giving the public permission to use the Modified Version under the
+ terms of this License, in the form shown in the Addendum below.
+G. Preserve in that license notice the full lists of Invariant Sections
+ and required Cover Texts given in the Document's license notice.
+H. Include an unaltered copy of this License.
+I. Preserve the section Entitled "History", Preserve its Title, and add
+ to it an item stating at least the title, year, new authors, and
+ publisher of the Modified Version as given on the Title Page. If
+ there is no section Entitled "History" in the Document, create one
+ stating the title, year, authors, and publisher of the Document as
+ given on its Title Page, then add an item describing the Modified
+ Version as stated in the previous sentence.
+J. Preserve the network location, if any, given in the Document for
+ public access to a Transparent copy of the Document, and likewise
+ the network locations given in the Document for previous versions
+ it was based on. These may be placed in the "History" section.
+ You may omit a network location for a work that was published at
+ least four years before the Document itself, or if the original
+ publisher of the version it refers to gives permission.
+K. For any section Entitled "Acknowledgements" or "Dedications",
+ Preserve the Title of the section, and preserve in the section all
+ the substance and tone of each of the contributor acknowledgements
+ and/or dedications given therein.
+L. Preserve all the Invariant Sections of the Document,
+ unaltered in their text and in their titles. Section numbers
+ or the equivalent are not considered part of the section titles.
+M. Delete any section Entitled "Endorsements". Such a section
+ may not be included in the Modified Version.
+N. Do not retitle any existing section to be Entitled "Endorsements"
+ or to conflict in title with any Invariant Section.
+O. Preserve any Warranty Disclaimers.
+
+If the Modified Version includes new front-matter sections or
+appendices that qualify as Secondary Sections and contain no material
+copied from the Document, you may at your option designate some or all
+of these sections as invariant. To do this, add their titles to the
+list of Invariant Sections in the Modified Version's license notice.
+These titles must be distinct from any other section titles.
+
+You may add a section Entitled "Endorsements", provided it contains
+nothing but endorsements of your Modified Version by various
+parties--for example, statements of peer review or that the text has
+been approved by an organization as the authoritative definition of a
+standard.
+
+You may add a passage of up to five words as a Front-Cover Text, and a
+passage of up to 25 words as a Back-Cover Text, to the end of the list
+of Cover Texts in the Modified Version. Only one passage of
+Front-Cover Text and one of Back-Cover Text may be added by (or
+through arrangements made by) any one entity. If the Document already
+includes a cover text for the same cover, previously added by you or
+by arrangement made by the same entity you are acting on behalf of,
+you may not add another; but you may replace the old one, on explicit
+permission from the previous publisher that added the old one.
+
+The author(s) and publisher(s) of the Document do not by this License
+give permission to use their names for publicity for or to assert or
+imply endorsement of any Modified Version.
+
+
+5. COMBINING DOCUMENTS
+
+You may combine the Document with other documents released under this
+License, under the terms defined in section 4 above for modified
+versions, provided that you include in the combination all of the
+Invariant Sections of all of the original documents, unmodified, and
+list them all as Invariant Sections of your combined work in its
+license notice, and that you preserve all their Warranty Disclaimers.
+
+The combined work need only contain one copy of this License, and
+multiple identical Invariant Sections may be replaced with a single
+copy. If there are multiple Invariant Sections with the same name but
+different contents, make the title of each such section unique by
+adding at the end of it, in parentheses, the name of the original
+author or publisher of that section if known, or else a unique number.
+Make the same adjustment to the section titles in the list of
+Invariant Sections in the license notice of the combined work.
+
+In the combination, you must combine any sections Entitled "History"
+in the various original documents, forming one section Entitled
+"History"; likewise combine any sections Entitled "Acknowledgements",
+and any sections Entitled "Dedications". You must delete all sections
+Entitled "Endorsements".
+
+
+6. COLLECTIONS OF DOCUMENTS
+
+You may make a collection consisting of the Document and other documents
+released under this License, and replace the individual copies of this
+License in the various documents with a single copy that is included in
+the collection, provided that you follow the rules of this License for
+verbatim copying of each of the documents in all other respects.
+
+You may extract a single document from such a collection, and distribute
+it individually under this License, provided you insert a copy of this
+License into the extracted document, and follow this License in all
+other respects regarding verbatim copying of that document.
+
+
+7. AGGREGATION WITH INDEPENDENT WORKS
+
+A compilation of the Document or its derivatives with other separate
+and independent documents or works, in or on a volume of a storage or
+distribution medium, is called an "aggregate" if the copyright
+resulting from the compilation is not used to limit the legal rights
+of the compilation's users beyond what the individual works permit.
+When the Document is included in an aggregate, this License does not
+apply to the other works in the aggregate which are not themselves
+derivative works of the Document.
+
+If the Cover Text requirement of section 3 is applicable to these
+copies of the Document, then if the Document is less than one half of
+the entire aggregate, the Document's Cover Texts may be placed on
+covers that bracket the Document within the aggregate, or the
+electronic equivalent of covers if the Document is in electronic form.
+Otherwise they must appear on printed covers that bracket the whole
+aggregate.
+
+
+8. TRANSLATION
+
+Translation is considered a kind of modification, so you may
+distribute translations of the Document under the terms of section 4.
+Replacing Invariant Sections with translations requires special
+permission from their copyright holders, but you may include
+translations of some or all Invariant Sections in addition to the
+original versions of these Invariant Sections. You may include a
+translation of this License, and all the license notices in the
+Document, and any Warranty Disclaimers, provided that you also include
+the original English version of this License and the original versions
+of those notices and disclaimers. In case of a disagreement between
+the translation and the original version of this License or a notice
+or disclaimer, the original version will prevail.
+
+If a section in the Document is Entitled "Acknowledgements",
+"Dedications", or "History", the requirement (section 4) to Preserve
+its Title (section 1) will typically require changing the actual
+title.
+
+
+9. TERMINATION
+
+You may not copy, modify, sublicense, or distribute the Document except
+as expressly provided for under this License. Any other attempt to
+copy, modify, sublicense or distribute the Document is void, and will
+automatically terminate your rights under this License. However,
+parties who have received copies, or rights, from you under this
+License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+
+10. FUTURE REVISIONS OF THIS LICENSE
+
+The Free Software Foundation may publish new, revised versions
+of the GNU Free Documentation License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns. See
+http://www.gnu.org/copyleft/.
+
+Each version of the License is given a distinguishing version number.
+If the Document specifies that a particular numbered version of this
+License "or any later version" applies to it, you have the option of
+following the terms and conditions either of that specified version or
+of any later version that has been published (not as a draft) by the
+Free Software Foundation. If the Document does not specify a version
+number of this License, you may choose any version ever published (not
+as a draft) by the Free Software Foundation.
+
+
+ADDENDUM: How to use this License for your documents
+
+To use this License in a document you have written, include a copy of
+the License in the document and put the following copyright and
+license notices just after the title page:
+
+ Copyright (c) YEAR YOUR NAME.
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.2
+ or any later version published by the Free Software Foundation;
+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+ A copy of the license is included in the section entitled "GNU
+ Free Documentation License".
+
+If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
+replace the "with...Texts." line with this:
+
+ with the Invariant Sections being LIST THEIR TITLES, with the
+ Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
+
+If you have Invariant Sections without Cover Texts, or some other
+combination of the three, merge those two alternatives to suit the
+situation.
+
+If your document contains nontrivial examples of program code, we
+recommend releasing these examples in parallel under your choice of
+free software license, such as the GNU General Public License,
+to permit their use in free software.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright
new file mode 100644
index 0000000..1facebe
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-1.copyright
@@ -0,0 +1,206 @@
+A copy of the GNU General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ THE COPYRIGHT HOLDER DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The license agreements of most software companies try to keep users
+at the mercy of those companies. By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must tell them their rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License. The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications. Each
+licensee is addressed as "you".
+
+ 1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program. You may charge a fee for the physical act of
+transferring a copy.
+
+ 2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+ a) cause the modified files to carry prominent notices stating that
+ you changed the files and the date of any change; and
+
+ b) cause the whole of any work that you distribute or publish, that
+ in whole or in part contains the Program or any part thereof, either
+ with or without modifications, to be licensed at no charge to all
+ third parties under the terms of this General Public License (except
+ that you may choose to grant warranty protection to some or all
+ third parties, at your option).
+
+ c) If the modified program normally reads commands interactively when
+ run, you must cause it, when started running for such interactive use
+ in the simplest and most usual way, to print or display an
+ announcement including an appropriate copyright notice and a notice
+ that there is no warranty (or else, saying that you provide a
+ warranty) and that users may redistribute the program under these
+ conditions, and telling the user how to view a copy of this General
+ Public License.
+
+ d) You may charge a fee for the physical act of transferring a
+ copy, and you may at your option offer warranty protection in
+ exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+ 3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+ a) accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ b) accompany it with a written offer, valid for at least three
+ years, to give any third party free (except for a nominal charge
+ for the cost of distribution) a complete machine-readable copy of the
+ corresponding source code, to be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ c) accompany it with the information you received as to where the
+ corresponding source code may be obtained. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it. For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+ 4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License. However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+ 5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions. You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+ 7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+ 8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright
new file mode 100644
index 0000000..f94bb0d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl-2.copyright
@@ -0,0 +1,344 @@
+A copy of the GNU General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/gpl-2.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-gpl.copyright
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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 3 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, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright
new file mode 100644
index 0000000..5dabe34
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-full-lgpl.copyright
@@ -0,0 +1,171 @@
+A copy of the GNU Lesser General Public License is available on
+the World Wide Web at `http://www.gnu.org/licenses/lgpl-3.0.txt'. You can
+also obtain it by writing to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright
new file mode 100644
index 0000000..78a493a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-iso-8859-1.copyright
@@ -0,0 +1,3 @@
+Copyright (C) 2008 Author
+
+Äußerst ärgerlich, falls nicht UTF-8 benutzt würde.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright
new file mode 100644
index 0000000..dceee0e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-misc-errors.copyright
@@ -0,0 +1,22 @@
+This copyright file contains several errors.
+
+Downloaded from <url://example.com>
+
+You should not use the template for
+Upstream Author(s): Tobias
+Copyright 2008 Tobias
+
+The path /usr/share/common-licences/GPL contains a spelling error.
+
+It's wrong to reference a compressed license, like this:
+/usr/share/common-licenses/BSD.gz
+
+This path /usr/share/doc/copyright is obsolete.
+
+The path /usr/share/common-licenses/GPL2 is missing a hyphen.
+
+This copyright info was automatically extracted from the perl module.
+It may not be accurate, so you better check the module sources
+if you don't want to get into legal troubles.
+
+References to /usr/share/common-licenses/BSD are deprecated.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright
new file mode 100644
index 0000000..e71e0f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-apache2-license-pointer.copyright
@@ -0,0 +1,25 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Midnight Commander
+Source: http://www.midnight-commander.org/downloads
+Copyright: 1996-2013 Free Software Foundation
+License: Apache-2.0
+
+Files: *
+Copyright: 2004,2007 Oren Ben-Kiki
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright
new file mode 100644
index 0000000..97f8cda
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-missing-perl-license-pointer.copyright
@@ -0,0 +1,5 @@
+This copyright file is for libmythical-perl. The module is licenses under
+the same terms as Perl itself but we've forgotten to add a reference to the
+copy of the Perl license in common-licenses.
+
+Copyright 2010 The Mythical Perl Module Team
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-no-errors.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-no-errors.copyright
new file mode 100644
index 0000000..d31a720
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-no-errors.copyright
@@ -0,0 +1,36 @@
+This package was debianized by Tobias Toedter <t.toedter@gmx.net> on
+Thu, 20 Mar 2008 23:48:15 +0100
+
+It was downloaded from <http://www.example.org/>
+
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?recall=184
+
+Upstream Authors:
+
+ Tobias Toedter <t.toedter@gmx.net>
+
+Copyright:
+
+ Copyright (C) 2008 Tobias Toedter
+
+License:
+
+ This package 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 package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is Copyright 2008, Tobias Toedter <t.toedter@gmx.net>
+and is licensed under the GPL, see above.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright
new file mode 100644
index 0000000..00946fc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-old-fsf.copyright
@@ -0,0 +1,19 @@
+To the extend this is copyrightable (if at all), it is:
+ Copyright 2012 Niels Thykier <niels@thykier.net>.
+
+This program is free software; you may 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, or (at your option)
+any later version.
+
+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. See the GNU General Public License
+for more details.
+
+A copy of the GNU General Public License version 2 is available as
+/usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+You can also obtain it by writing to the Free Software Foundation, Inc.,
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-php.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-php.copyright
new file mode 100644
index 0000000..338cf09
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-php.copyright
@@ -0,0 +1,151 @@
+A copyright file referring to two problematic PHP licenses.
+
+Copyright 2008 Some Guy.
+
+--------------------------------------------------------------------
+ The PHP License, version 2.02
+Copyright (c) 1999 - 2002 The PHP Group. All rights reserved.
+--------------------------------------------------------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ 3. The name "PHP" must not be used to endorse or promote products
+ derived from this software without prior permission from the
+ PHP Group. This does not apply to add-on libraries or tools
+ that work in conjunction with PHP. In such a case the PHP
+ name may be used to indicate that the product supports PHP.
+
+ 4. The PHP Group may publish revised and/or new versions of the
+ license from time to time. Each version will be given a
+ distinguishing version number.
+ Once covered code has been published under a particular version
+ of the license, you may always continue to use it under the
+ terms of that version. You may also choose to use such covered
+ code under the terms of any subsequent version of the license
+ published by the PHP Group. No one other than the PHP Group has
+ the right to modify the terms applicable to covered code created
+ under this License.
+
+ 5. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes PHP, freely available from
+ http://www.php.net/".
+
+ 6. The software incorporates the Zend Engine, a product of Zend
+ Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the
+ PHP Association (pursuant to a grant from Zend that can be
+ found at http://www.php.net/license/ZendGrant/) for
+ distribution to you under this license agreement, only as a
+ part of PHP. In the event that you separate the Zend Engine
+ (or any portion thereof) from the rest of the software, or
+ modify the Zend Engine, or any portion thereof, your use of the
+ separated or modified Zend Engine software shall not be governed
+ by this license, and instead shall be governed by the license
+ set forth at http://www.zend.com/license/ZendLicense/.
+
+
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------------------------------------------------------------
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group@php.net.
+
+For more information on the PHP Group and the PHP project,
+please see <http://www.php.net>.
+
+
+
+
+--------------------------------------------------------------------
+ The PHP License, version 3.0
+Copyright (c) 1999 - 2003 The PHP Group. All rights reserved.
+--------------------------------------------------------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ 3. The name "PHP" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact group@php.net.
+
+ 4. Products derived from this software may not be called "PHP", nor
+ may "PHP" appear in their name, without prior written permission
+ from group@php.net. You may indicate that your software works in
+ conjunction with PHP by saying "Foo for PHP" instead of calling
+ it "PHP Foo" or "phpfoo"
+
+ 5. The PHP Group may publish revised and/or new versions of the
+ license from time to time. Each version will be given a
+ distinguishing version number.
+ Once covered code has been published under a particular version
+ of the license, you may always continue to use it under the terms
+ of that version. You may also choose to use such covered code
+ under the terms of any subsequent version of the license
+ published by the PHP Group. No one other than the PHP Group has
+ the right to modify the terms applicable to covered code created
+ under this License.
+
+ 6. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes PHP, freely available from
+ <http://www.php.net/>".
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------------------------------------------------------------
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group@php.net.
+
+For more information on the PHP Group and the PHP project,
+please see <http://www.php.net>.
+
+This product includes the Zend Engine, freely available at
+<http://www.zend.com>.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright
new file mode 100644
index 0000000..5a24980
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-poor-common-licenses.copyright
@@ -0,0 +1,24 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ 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 3 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, see <http://www.gnu.org/licenses/>
+
+The full text of this license is in common-licenses/GPL-3
+
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-versionless.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-versionless.copyright
new file mode 100644
index 0000000..c08f501
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-versionless.copyright
@@ -0,0 +1,2 @@
+This package is copyright (c) 2009, Some Name <example@example.org> and is
+licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-w3c.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-w3c.copyright
new file mode 100644
index 0000000..95c3f40
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/copyright-w3c.copyright
@@ -0,0 +1,95 @@
+This package was debianized by J Random Developer <j.random@example.org> on
+Tue, 8 Nov 2005 00:27:44 +0100.
+
+It was downloaded from http://search.cpan.org/dist/W3C-LinkChecker/
+
+Copyright Holder: the software was developed by following people for the
+ W3C:
+ The W3C Link Checker Team <www-validator@w3.org>
+
+License: according to the README file, the source code of the W3C linkchecker
+is available under the terms of the W3C Software Copyright (compatible with
+the GNU GPL), which can be found at
+
+ http://www.w3.org/Consortium/Legal/copyright-software
+
+and is reproduced below:
+
+
+ W3C � SOFTWARE NOTICE AND LICENSE
+
+ [1]http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ This work (and included software, documentation such as READMEs, or
+ other related items) is being provided by the copyright holders under
+ the following license. By obtaining, using and/or copying this work,
+ you (the licensee) agree that you have read, understood, and will
+ comply with the following terms and conditions.
+
+ Permission to copy, modify, and distribute this software and its
+ documentation, with or without modification, for any purpose and
+ without fee or royalty is hereby granted, provided that you include
+ the following on ALL copies of the software and documentation or
+ portions thereof, including modifications:
+ 1. The full text of this NOTICE in a location viewable to users of
+ the redistributed or derivative work.
+ 2. Any pre-existing intellectual property disclaimers, notices, or
+ terms and conditions. If none exist, the [2]W3C Software Short
+ Notice should be included (hypertext is preferred, text is
+ permitted) within the body of any redistributed or derivative
+ code.
+ 3. Notice of any changes or modifications to the files, including the
+ date changes were made. (We recommend you provide URIs to the
+ location from which the code is derived.)
+
+ THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
+ HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
+ DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
+ TRADEMARKS OR OTHER RIGHTS.
+
+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
+ OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
+ DOCUMENTATION.
+
+ The name and trademarks of copyright holders may NOT be used in
+ advertising or publicity pertaining to the software without specific,
+ written prior permission. Title to copyright in this software and any
+ associated documentation will at all times remain with copyright
+ holders.
+
+ ____________________________________
+
+ This formulation of W3C's notice and license became active on December
+ 31 2002. This version removes the copyright ownership notice such that
+ this license can be used with materials other than those owned by the
+ W3C, reflects that ERCIM is now a host of the W3C, includes references
+ to this specific dated version of the license, and removes the
+ ambiguous grant of "use". Otherwise, this version is the same as the
+ [3]previous version and is written so as to preserve the [4]Free
+ Software Foundation's assessment of GPL compatibility and [5]OSI's
+ certification under the [6]Open Source Definition. Please see our
+ [7]Copyright FAQ for common questions about using materials from our
+ site, including specific terms and conditions for packages like
+ libwww, Amaya, and Jigsaw. Other questions about this notice can be
+ directed to [8]site-policy@w3.org.
+
+
+ Joseph Reagle <[9]site-policy@w3.org>
+
+ Last revised $Id: copyright-software-20021231.html,v 1.11 2004/07/06
+ 16:02:49 slesch Exp $
+
+References
+
+ 1. http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+ 2. http://www.w3.org/Consortium/Legal/2002/copyright-software-short-notice-20021231.html
+ 3. http://www.w3.org/Consortium/Legal/copyright-software-19980720
+ 4. http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses
+ 5. http://www.opensource.org/licenses/W3C.php
+ 6. http://www.opensource.org/docs/definition.php
+ 7. http://www.w3.org/Consortium/Legal/IPR-FAQ
+ 8. mailto:site-policy@w3.org
+ 9. mailto:site-policy@w3.org
+
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/rules
new file mode 100755
index 0000000..50ff78f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_installdocs:
+ dh_installdocs
+ install -m 644 debian/copyright-no-errors.copyright debian/copyright-symlink/usr/share/doc/copyright-symlink/symlink
+ rm debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright
+ ln -s symlink debian/copyright-symlink/usr/share/doc/copyright-symlink/copyright
+ gzip -n -9 debian/copyright-compressed/usr/share/doc/copyright-compressed/copyright
+ mkdir -p debian/copyright-old-style/usr/doc/copyright
+ # This should (now) trigger a no-copyright-file (as there is no copyright file
+ # in the right location).
+ mv debian/copyright-old-style/usr/share/doc/copyright-old-style/copyright debian/copyright-old-style/usr/doc/copyright/copyright-old-style
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/fill-values
new file mode 100644
index 0000000..1bf7f36
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-general
+Description: Test checking of copyright files
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/desc b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/desc
new file mode 100644
index 0000000..aeb8c23
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: copyright-file-general
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/hints b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/hints
new file mode 100644
index 0000000..1247240
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-general/eval/hints
@@ -0,0 +1,16 @@
+copyright-file-general (source): wiki-copyright-format-uri http://wiki.debian.org/Proposals/CopyrightFormat?recall=184 [debian/copyright-crln.copyright]
+copyright-file-general (source): unknown-copyright-format-uri [debian/copyright-no-errors.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-w3c.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-versionless.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-poor-common-licenses.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-php.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-old-fsf.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-missing-perl-license-pointer.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-misc-errors.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-lgpl.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gpl.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gpl-2.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gpl-1.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-gfdl.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-apache-2.copyright]
+copyright-file-general (source): no-dep5-copyright [debian/copyright-full-agpl-3.copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..c41fc78
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/control.in
@@ -0,0 +1,28 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: https://lintian.debian.org/
+
+Package: [% $source %]-bad
+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.
+
+Package: [% $source %]-pedantic
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] -- pedantic edition :)
+ Checks the pedantic version of the versionless copyright file check.
+ .
+ This is a test package designed to exercise some check 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/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright
new file mode 100644
index 0000000..b59cb92
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-bad.copyright
@@ -0,0 +1,20 @@
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+So far as it is copyrightable at all, this template is
+ Copyright (C) 2008 Frank Lichtenheld <djpig@debian.org>
+
+This program is free software; you may redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation in its version 3.
+
+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. See the GNU General Public License
+for more details.
+
+A copy of the GNU General Public License version 3 is available as
+/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution
+or at http://www.gnu.org/licenses/old-licenses/gpl-3.0.html.
+You can also obtain it by writing to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright
new file mode 100644
index 0000000..2591c9b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/debian/copyright-file-license-symlink-pedantic.copyright
@@ -0,0 +1,21 @@
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+So far as it is copyrightable at all, this template is
+ Copyright (C) 2008 Frank Lichtenheld <djpig@debian.org>
+
+This program is free software; you may 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, or (at your option)
+any later version.
+
+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. See the GNU General Public License
+for more details.
+
+A copy of the GNU General Public License version 2 is available as
+/usr/share/common-licenses/GPL in the Debian GNU/Linux distribution
+or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+You can also obtain it by writing to the Free Software Foundation, Inc.,
+51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/fill-values
new file mode 100644
index 0000000..1a3cd35
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: copyright-file-license-symlink
+Description: Test the versionless license files checks
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/desc b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/desc
new file mode 100644
index 0000000..dc6fefb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: copyright-file-license-symlink
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints
new file mode 100644
index 0000000..dff3886
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/copyright-file-license-symlink/eval/hints
@@ -0,0 +1,2 @@
+copyright-file-license-symlink (source): no-dep5-copyright [debian/copyright-file-license-symlink-pedantic.copyright]
+copyright-file-license-symlink (source): no-dep5-copyright [debian/copyright-file-license-symlink-bad.copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/fill-values
new file mode 100644
index 0000000..2c57a2a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: cruft-gfdl-invariants
+Description: Check for GFDL invariants sections
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/autoconf.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/autoconf.texi
new file mode 100644
index 0000000..ba8175d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/autoconf.texi
@@ -0,0 +1,12 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the @acronym{GNU} Free Documentation License,
+Version 1.3 or any later version published by the Free Software
+Foundation; with no Invariant Sections, with the Front-Cover texts
+being ``A @acronym{GNU} Manual,'' and with the Back-Cover Texts as in
+(a) below. A copy of the license is included in the section entitled
+``@acronym{GNU} Free Documentation License.''
+
+(a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
+modify this @acronym{GNU} manual. Buying copies from the @acronym{FSF}
+supports it in developing @acronym{GNU} and promoting software
+freedom.''
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/dvipdfmx.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/dvipdfmx.tex
new file mode 100644
index 0000000..a0a6634
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/dvipdfmx.tex
@@ -0,0 +1,6 @@
+\section*{GNU Free Documentation License}\label{SEC:FDL}
+\subsection*{GNU Free Documentation License}\label{SEC:FDL}
+ \subsubsection{GNU Free Documentation License}\label{SEC:FDL}
+
+This document is distributed under the term of the GNU Free Documentation
+License. See, the attached file for copying conditions.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/empty.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/empty.texi
new file mode 100644
index 0000000..8e87b5f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/empty.texi
@@ -0,0 +1,5 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.3 or any later version published by the Free Software
+Foundation. A copy of the license is included in the
+section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/emptybis.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/emptybis.texi
new file mode 100644
index 0000000..7ad0640
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/emptybis.texi
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.3 or any later version published by the Free Software
+Foundation.
+
+A copy of the license is included in the
+section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/false-positive.rtf b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/false-positive.rtf
new file mode 100644
index 0000000..19560b4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/false-positive.rtf
@@ -0,0 +1,125 @@
+{\rtf1\ansi\ansicpg1252\cocoartf102{\fonttbl\f2\fnil Bitstream Charter;\f0\fnil Droid Sans Mono;\f1\fnil FreeSans;}
+{\colortbl;\red0\green0\blue200;\red0\green0\blue0;\red255\green0\blue0;}
+{{\NeXTGraphic iconoGimp3.tif \width1816 \height1309}\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\f0\fs24 \'AC}\f1\fs48 \b\cf1 \'A1Welcome to FisicaLab!\cf0\fs24\b0\cf2 \par
+\par
+\fs20\i Copyright (C) 2009, 2010, 2012 German A. Arias.\par
+ Permission is granted to copy, distribute and/or modify this document\par
+ under the terms of the GNU Free Documentation License, Version 1.3\par
+ or any later version published by the Free Software Foundation;\par
+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.\par
+ A copy of the license is included in the section entitled "GNU\par
+ Free Documentation License".\fs24\i0 \par
+\par
+\par
+FisicaLab is an educational application to solve physics problems. Its main objective is let the user to focus in physics concepts, leaving aside the mathematical details (FisicaLab take care of them). This allows the user to become familiar with the physical concepts without running the risk of getting lost in mathematical details. And so, when the user gain confidence in applying physical concepts, will be better prepared to solve the problems by hand (with pen and paper). FisicaLab is easy to use and very intuitive. However, in order to take advantage of all its features, we recommend you read first these help files.\par
+\par
+FisicaLab display to two windows, one named \b Modules and elements\b0 and other named \b Chalkboard\b0 . The first of these windows, contain all modules that can be used to solve problems. These modules are grouped by: kinematics, static, dynamics, ... (see image below). You can select one of these groups with the buttons at the top of the window, marked with (1) in the image. When you leave the mouse\rquote s cursor above one of these buttons, a label with the group name is displayed. The buttons marked with (2) let you select the system of units, SI or English. You can see the modules of the selected group inside the box marked with (3). The tabs marked with (4) let you select one of the available modules. The elements of the selected module are displayed inside the box marked with (5). This elements let you set the problems. Inside the box marked with (6) you can write the element\rquote s data (if any element is selected, this box will be empty).\f2 \par
+\par
+ \cf0\f0{{\NeXTGraphic FisicaLabPanel.jpg \width7680 \height10760}\'AC}\f2\cf2 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+\f1 The window named \b Chalkboard\b0 (see image below), have at the top two buttons, marked with (7). The button at the left let you solve the problem, and the other is to clean the chalkboard. The black box marked with (8) is the chalkboard, where you add the elements to set the problems. You need keep in mind, although you can\rquote t see, that the chalkboard is a grid formed with cells of 50x50 pixels. By default the chalkboard size is 26x18 cells. In \b Preferences\b0 panel you can change the size to a maximum of 100x100 cells (A greater size than the default could be useful for trusses problems). The text view marked with (9) is where FisicaLab show the answer and messages. The checkbox marked with (10) erase the content of the text view before show the next answer or message. If you want keep the previous content, unselect this checkbox. In this case you can add notes to identify the results of the different problems.\f2 \par
+\par
+\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic FisicaLabPizarra.jpg \width8540 \height6680}\'AC}\f2\cf2 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+\par
+\f1\fs28\b Handling the elements\f2\fs24\b0 \par
+ \par
+\f1 To add elements at the chalkboard, do a click above the desired element. The mouse\rquote s cursor will become in an open hand, meaning this that we will add an element. Do a click above the chalkboard in the position where you want the element, the mouse\rquote s cursor will back at its original shape. Each time you add a new element, or select one different, a yellow square will be drawn around the current element. The data of the current element are displayed, for its edition, at panel \b Modules and elements\b0 . When you leave the mouse\rquote s cursor above one element in the chalkboard, a label with the element\rquote s data is displayed. In \b Preferences\b0 panel you can configure the font size of these labels.\par
+\par
+\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic chalkboardProperties.jpg \width9020 \height4600}\'AC}\f1\cf2 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+If you want move an element, click above it with the \b Control\b0 key pressed, the mouse\rquote s cursor will become in a close hand, meaning this that we are moving an element. Do click in the new position and the mouse\rquote s cursor will back at its original shape. In other hand, if you want delete an element, do click above it with the \b Shift\b0 key pressed.\par
+\par
+Keep in mind that FisicaLab don\rquote t let you combine elements from different modules. The elements in each module are enough to set a wide variety of problems.\f2 \par
+\par
+\par
+\f1\fs28\b Element data\f2\fs24\b0 \par
+\par
+\f1 When you select an element in the chalkboard, or add a new element, you will see a table at the bottom of the window \b Modules and elements\b0 . With a double click above any field of the second column, you can write the data. FisicaLab supports scientific notation, to use this use the letter E. For example, to write the number 3.45x10-5, write:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 3.45E-5\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+All numerical data must be without spaces. For example, the following numbers are wrong:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc - 5.3\par
+7.8E - 8\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+Also, FisicaLab can use many conversion factors. To use these, add the character @ before the conversion. If you have selected the SI system, FisicaLab assumes that all data are in meters, kg, seconds, etc. With the English system, FisicaLab assumes that all data are in feet, pounds, slugs, seconds, etc. (in the English system the mass must be in slugs). For example, if you want write an speed of 75 km/h, use:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 75 @ km/h\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+Here, we have one space before and after the character @, but these are for clarity, and are not required. Each module has its how conversion factors, as you can see in the sections that deal about these. \par
+\par
+You can use letters or words to represent the unknown data. If, for example, the final velocity is an unknown data, you can represent this like:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc fv\par
+finalv\par
+fvel\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql or any other combination. But, we recommend you use letters or words that are related with the unknown data. Also, the conversion factors can be used with the unknown data. For example, if the time is unknown, and you want this in minutes, write something like:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc t @ min\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql The scientific notation can be used with the unknowns, adding the characters #E at the end of the name. For example, for a coefficient of thermal expansion, that is a small value:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc coefficient#E\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+Also, this can be used with a conversion factor. For example, for a very long distance that we want in kilometers:\par
+\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc distance#E @ km\par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+All the conversion factors are available in a contextual menu. After select the row of data where want add the factor, a right mouse click open a context menu with all available factors.\par
+\par
+\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic menuContextual.jpg \width6120 \height5320}\'AC}\f1\cf2 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+FisicaLab allows mathematical operations directly on the fields where you enter data. Can be carried out operations of addition (+), subtraction (-), multiplication (*) and division (/). Although not allowed to group operations by parentheses. It also provides some useful functions for certain calculations. These are listed below with its description:\par
+\par
+\b cos(ang)\tab \tab Calculates the cosine of the sexagesimal angle "ang".\par
+sin(ang)\tab \tab Calculates the sine of the sexagesimal angle "ang".\par
+tan(ang)\tab \tab Calculates the tangent of the sexagesimal angle "ang".\par
+sqrt(x)\tab \tab Calculates the square root of the number "x".\par
+hypot(a,b)\tab Calculates the hypotenuse of a right triangle whose legs are "a" and "b".\par
+leg(c,a)\tab \tab Calculates the leg of the right triangle whose hypotenuse is "c" and the\par
+\tab \tab \tab other leg is "a".\par
+rd(m1,m2,d)\tab Calculates the distance of the mass "m1" to the center of mass of the\par
+\tab \tab \tab system consisting of the masses "m1" and "m2", which are spaced a\par
+\tab \tab \tab distance "d".\b0 \par
+\par
+The numbers that are passed as parameters to these functions must have consistent units. For example, in the \b hypot()\b0 function both legs must be in the same units, whether centimeters, meters, inches, etc. These functions can be used in operations of addition, subtraction, multiplication and division. In these operations blank spaces are not allowed. Here are some examples:\par
+\par
+\pard\ql\b\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\qc 8*cos(34)\par
+hypot(4,3)-2\par
+rd(3,6,40)*sin(30) @ cm\par
+15*8/hypot(13,8)\b0 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+Once entered the operation, FisicaLab will do the calculation and will write the result in the entry. Note that is possible to apply conversion factors. Although these can also be applied after carrying out the calculation.\par
+\par
+The fields where you enter angles do not allow the operations and functions described above. This is because these fields have their own operations and functions. For example, FisicaLab allows write the angles as slopes (a/b), and automatically convert this to sexagesimal angles. What is very useful for problems of trusses.\par
+\par
+\pard\ql\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0\f0{{\NeXTGraphic angulos.jpg \width5080 \height2660}\'AC}\f1\cf2 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+For these fields are available two functions that calculates an angle from other relationships. These functions are:\par
+\par
+\b acos(a/c)\tab Calculates the sexagesimal angle whose cosine is the ratio "a/c".\par
+asin(b/c)\tab \tab Calculates the sexagesimal angle whose sine is the ratio "b/c".\b0 \par
+\par
+If an operation is entered incorrectly, for example if it contains spaces or contains a function with an incorrect number of parameters, FisicaLab will do nothing and will take that string as an unknown.\par
+\par
+\par
+\b Caution:\b0 \cf0\cf3 If, for example, you add a mass conversion factor in a time data, this will cause an error in the solution. And you will not get a message about this error.\cf0\f2\cf2 \par
+\par
+\par
+\f1\fs28\b How it works\f2\fs24\b0 \par
+\par
+\f1 FisicaLab work over the base of \i number of equations = number of unknown data\i0 . In general you don\rquote t need worry about this. But in some cases you will see the error \b "The system is undetermined"\b0 . This occurs when you write numeric data in a field that must be an unknown data. The examples show this cases.\f2 \par
+\par
+\par
+\f1\fs28\b Messages\f2\fs24\b0 \par
+\par
+\f1 FisicaLab write a wide variety of messages in the text view when a problem is wrong. However, you always will see a message about the calculation\rquote s status, as you can see in the following image:\par
+\par
+\pard\ql\f0\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql \cf0{{\NeXTGraphic cinema44.tif \width4760 \height800}\'AC}\f1\cf2 \par
+\pard\ql\pard\tx0\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\ql \par
+The last line say \b "State = success"\b0 , meaning that the calculation was successful. Any other status different as \i success\i0 , mean that or the set problem don\rquote t have a solution, or an unexpected error occurred.\par
+\par
+} \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.html
new file mode 100644
index 0000000..b8e14bc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.html
@@ -0,0 +1,56 @@
+<html lang="en">
+<head>
+<title>Some title</title>
+<!--
+Some verbatim test
+Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
+1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+2010, 2011, 2012
+
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being "Funding Free Software", the Front-Cover
+Texts being (a) (see below), and with the Back-Cover Texts being (b)
+(see below). A copy of the license is included in the section entitled
+"GNU Free Documentation License".
+
+(a) The Front-Cover Text is:
+
+ A GNU Manual
+
+(b) The Back-Cover Text is:
+
+ You have freedom to copy and modify this GNU Manual, like GNU
+ software. Copies published by the Free Software Foundation raise
+ funds.-->
+</head>
+<body>
+This is
+ <pre class="sp">
+</pre>
+Copyright &copy; 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
+1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
+2010, 2011, 2012
+
+ <p>Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being &ldquo;Funding Free Software&rdquo;, the Front-Cover
+Texts being (a) (see below), and with the Back-Cover Texts being (b)
+(see below). A copy of the license is included in the section entitled
+&ldquo;GNU Free Documentation License&rdquo;.
+
+ <p>(a) The Front-Cover Text is:
+
+ <p>A GNU Manual
+
+ <p>(b) The Back-Cover Text is:
+
+ <p>You have freedom to copy and modify this GNU Manual, like GNU
+ software. Copies published raises funds.
+ <pre class="sp">
+
+</pre>
+</body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.texi
new file mode 100644
index 0000000..aa1d8e0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/frontback.texi
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, with the Front-Cover Texts being ``A Debian Manual'',
+and with the Back-Cover Texts as in (a) below. A copy of the license
+is included in the section entitled ``GNU Free Documentation
+License''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/invariant.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/invariant.txt
new file mode 100644
index 0000000..e649d17
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/invariant.txt
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+Version 1.3 or any later version published by the Free Software
+Foundation; with the Invariant Sections being just "GNU
+Manifesto", with no Front-Cover Texts, and with no Back-Cover
+Texts. A copy of the license is included in the section
+entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/appendix.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/appendix.txt
new file mode 100644
index 0000000..8883cac
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/appendix.txt
@@ -0,0 +1,25 @@
+ADDENDUM: How to use this License for your documents
+====================================================
+
+To use this License in a document you have written, include a copy of
+the License in the document and put the following copyright and license
+notices just after the title page:
+
+ Copyright (C) YEAR YOUR NAME.
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.3
+ or any later version published by the Free Software Foundation;
+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
+ Texts. A copy of the license is included in the section entitled ``GNU
+ Free Documentation License''.
+
+ If you have Invariant Sections, Front-Cover Texts and Back-Cover
+Texts, replace the "with...Texts." line with this:
+
+ with the Invariant Sections being LIST THEIR TITLES, with
+ the Front-Cover Texts being LIST, and with the Back-Cover Texts
+ being LIST.
+
+ If you have Invariant Sections without Cover Texts, or some other
+combination of the three, merge those two alternatives to suit the
+situation.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/badpunctuation.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/badpunctuation.txt
new file mode 100644
index 0000000..fd6ed32
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/badpunctuation.txt
@@ -0,0 +1,8 @@
+No ;after version
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.1
+with no Invariant Sections, no Front-Cover Texts and
+no Back-Cover Texts;
+A copy of the license is included in the section entitled
+license GNU Free Documentation License
+
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/cflow.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/cflow.texi
new file mode 100644
index 0000000..2be8767
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/cflow.texi
@@ -0,0 +1,12 @@
+Published by the Free Software Foundation,
+51 Franklin Street, Fifth Floor
+Boston, MA 02110-1301, USA
+
+Copyright @copyright{} 2005, 2010, 2014-2016 Sergey Poznyakoff
+
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.2 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, no Front-Cover and Back-Cover texts. A copy of
+the license is included in the section entitled ``GNU Free Documentation
+License''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/citetitle.po b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/citetitle.po
new file mode 100644
index 0000000..73f9c3a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/citetitle.po
@@ -0,0 +1,16 @@
+#: C/index.docbook:65(legalnotice/para)
+msgid ""
+"Permission is granted to copy, distribute and/or modify this document under "
+"the terms of the <citetitle>GNU Free Documentation License</citetitle>, "
+"Version 1.1 or any later version published by the Free Software Foundation "
+"with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A "
+"copy of the license is <link linkend=\"fdl\">included</link>."
+msgstr ""
+"Das vorliegende Dokument kann gemäß den Bedingungen der GNU Free "
+"Documentation License (GFDL), Version 1.1 oder jeder späteren, von der Free "
+"Software Foundation veröffentlichten Version ohne unveränderbare Abschnitte "
+"sowie ohne Texte auf dem vorderen und hinteren Buchdeckel kopiert, verteilt "
+"und/oder modifiziert werden. Eine Kopie der GFDL finden Sie unter diesem "
+"<ulink type=\"help\" url=\"ghelp:fdl\">Link</ulink> oder in der mit diesem "
+"Handbuch gelieferten Datei COPYING-DOCS."
+
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.txt
new file mode 100644
index 0000000..d3490c4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.txt
@@ -0,0 +1,9 @@
+
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License
+(FDL), either version 1.2 of the license,
+or (at your option) any later version published by the free software
+foundation (FSF); with no invariant sections,
+with no front-cover text, and with no back-cover texts
+A copy of the license is included in the
+section entitled "GNU Free Documentation License". \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.xml b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.xml
new file mode 100644
index 0000000..37449fb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/clisp.xml
@@ -0,0 +1,6 @@
+ <para>This document documents free software; you can redistribute it
+ and/or modify it under the terms of the GNU General Public License
+ (&gpl;), either version 2 of the License, or (at your option) any
+ later version published by the &fsf;.
+ A copy of the license is included in <xref linkend="gpl"/>.
+ </para>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/comments.po b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/comments.po
new file mode 100644
index 0000000..d11e67b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/comments.po
@@ -0,0 +1,9 @@
+# French translation for SANE backend options
+#
+# Permission is granted to copy, distribute and/or modify this document
+# under the terms of the GNU Free Documentation License, Version 1.1
+# or any later version published by the Free Software Foundation;
+# with no Invariant Sections, with no Front-Cover Texts, and with
+# no Back-Cover.
+# A copy of the license is included in the section entitled "GNU
+# Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/diveintopythonok.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/diveintopythonok.html
new file mode 100644
index 0000000..6ace5df
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/diveintopythonok.html
@@ -0,0 +1,12 @@
+<html>
+<!--- This is a old false positive -->
+<body>
+ <div class="legalnotice">
+ <p>Permission is granted to copy, distribute, and/or modify this document under the terms of the <span class="acronym">GNU</span> Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant
+ Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in <a href="../appendix/fdl.html" title="Appendix&nbsp;G.&nbsp;GNU Free Documentation License">Appendix&nbsp;G, <i>GNU Free Documentation License</i></a>.
+ </p>
+ <p>The example programs in this book are free software; you can redistribute and/or modify them under the terms of the <span class="application">Python</span> license as published by the <span class="application">Python</span> Software Foundation. A copy of the license is included in <a href="../appendix/license.html" title="Appendix&nbsp;H.&nbsp;Python license">Appendix&nbsp;H, <i>Python license</i></a>.
+ </p>
+ </div>
+</body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findsutilsokinlinenewline.c b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findsutilsokinlinenewline.c
new file mode 100644
index 0000000..5291fd3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findsutilsokinlinenewline.c
@@ -0,0 +1,15 @@
+/* false positive from some package */
+ static const char *copy_para[]=
+ {
+ "Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006,"
+ ,"2007, 2009, 2010, 2011 Free Software Foundation, Inc."
+ ,""
+ ,"Permission is granted to copy, distribute and/or modify this document"
+ ,"under the terms of the GNU Free Documentation License, Version 1.3 or"
+ ,"any later version published by the Free Software Foundation; with no"
+ ,"Invariant\nSections, with no\nFront-Cover Texts,\nand with no Back-Cover"
+ ,"Texts. A copy of the license is included in the ``GNU Free"
+ ,"Documentation License'' file as part of this distribution."
+ ""
+ ,NULL
+ };
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findutilsok.c b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findutilsok.c
new file mode 100644
index 0000000..23aa0af
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/findutilsok.c
@@ -0,0 +1,15 @@
+/* false positive from findutils */
+ static const char *copy_para[]=
+ {
+ "Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006,"
+ ,"2007, 2009, 2010, 2011 Free Software Foundation, Inc."
+ ,""
+ ,"Permission is granted to copy, distribute and/or modify this document"
+ ,"under the terms of the GNU Free Documentation License, Version 1.3 or"
+ ,"any later version published by the Free Software Foundation; with no"
+ ,"Invariant Sections, with no Front-Cover Texts, and with no Back-Cover"
+ ,"Texts. A copy of the license is included in the ``GNU Free"
+ ,"Documentation License'' file as part of this distribution."
+ ""
+ ,NULL
+ };
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fonts.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fonts.html
new file mode 100644
index 0000000..ee27a4f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fonts.html
@@ -0,0 +1,9 @@
+<P align="JUSTIFY" style="margin-bottom: 0cm"><FONT face="tahoma"><FONT size="2">
+Permission is granted to copy, distribute
+and/or modify this document under the terms
+of the GNU Free Documentation License, Version
+1.1 or any later version published by the
+Free Software Foundation; with the Invariant
+Sections being LIST THEIR TITLES, with the
+Front-Cover Texts being LIST, and with the
+Back-Cover Texts being LIST.</FONT></FONT></P> \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fontsMX.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fontsMX.html
new file mode 100644
index 0000000..426c273
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/fontsMX.html
@@ -0,0 +1 @@
+<td>Permission is granted to copy, distribute and/or modify this document under the terms of the <b><a href="https://en.wikipedia.org/wiki/en:GNU_Free_Documentation_License" class="extiw" title="w:en:GNU Free Documentation License">GNU Free Documentation License</a></b>, Version 1.2 or any later version published by the <a href="https://en.wikipedia.org/wiki/en:Free_Software_Foundation" class="extiw" title="w:en:Free Software Foundation">Free Software Foundation</a>; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled <i><a href="/wiki/Commons:GNU_Free_Documentation_License,_version_1.2" title="Commons:GNU Free Documentation License, version 1.2">GNU Free Documentation License</a></i>.<span class="licensetpl_link" style="display:none;">http://www.gnu.org/copyleft/fdl.html</span><span class="licensetpl_short" style="display:none;">GFDL</span><span class="licensetpl_long" style="display:none;">GNU Free Documentation License</span><span class="licensetpl_link_req" style="display:none;">true</span><span class="licensetpl_attr_req" style="display:none;">true</span></td> \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.html
new file mode 100644
index 0000000..fffca61
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+false positive found in license text:
+<pre>
+Copyright (C) year your name.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the Invariant Sections being <var>list their titles</var>, with
+the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
+being <var>list</var>.
+A copy of the license is included in the section entitled ``GNU Free Documentation License''.
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.texi
new file mode 100644
index 0000000..fc52ba9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexample.texi
@@ -0,0 +1,13 @@
+false positive found in license text:
+@smallexample
+@group
+ Copyright (C) @var{year} @var{your name}.
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.3
+ or any later version published by the Free Software Foundation;
+ with the Invariant Sections being @var{list their titles}, with the
+ Front-Cover Texts being @var{list}, and with the Back-Cover Texts being @var{list}.
+ A copy of the license is included in the section entitled ``GNU
+ Free Documentation License''.
+@end group
+@end smallexample
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexamplesbr.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexamplesbr.html
new file mode 100644
index 0000000..46cbd2f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdllicenseexamplesbr.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+false positive found in license text:
+<pre>
+Copyright (C) year your name.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the<br/> Invariant Sections<br /> being <var>list their titles</var>, with
+the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
+being <var>list</var>.
+A copy of the license is included in the section entitled ``GNU Free Documentation License''.
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdltexcomments.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdltexcomments.tex
new file mode 100644
index 0000000..00e496c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gfdltexcomments.tex
@@ -0,0 +1,7 @@
+% Permission is granted to copy, distribute and/or modify this document
+% under the terms of the GNU Free Documentation License, Version 1.1 or
+% any later version published by the Free Software Foundation; with no
+% Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
+% Texts. A copy of the license is included in the section entitled
+% ``GNU Free Documentation License.''
+%
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.html
new file mode 100644
index 0000000..f01cd4c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<div class="blockquote"><blockquote class="blockquote"><p>
+ Copyright 2008, Free Software Foundation.
+ </p><p>
+ Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU Free Documentation
+ License, Version 1.1 or any later version published by the
+ Free Software Foundation; with no<a class="link" href="#fdl-invariant">Invariant Sections</link>, with no <a class="link" href="#fdl-cover-texts">Front-Cover Texts</link>,
+ and with no <a class="link" href="#fdl-cover-texts">Back-Cover
+ Texts</a>. A copy of the license is included in
+ the section entitled "GNU Free Documentation License".
+</p></blockquote></div>
+</body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.info b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.info
new file mode 100644
index 0000000..cc7a754
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.info
@@ -0,0 +1,14 @@
+To use this License in a document you have written, include a copy of
+the License in the document and put the following copyright and license
+notices just after the title page:
+
+Copyright 2008, Free Software Foundation.
+
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.1 or any later version published by the Free Software
+Foundation; with noInvariant Sections (*note fdl-invariant::),
+with no Front-Cover Texts (*note fdl-cover-texts::), and with no
+Back-Cover Texts (*note fdl-cover-texts::). A copy of the license
+is included in the section entitled "GNU Free Documentation
+License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.xml b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.xml
new file mode 100644
index 0000000..9e77873
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gnashfalsepositive.xml
@@ -0,0 +1,15 @@
+<html>
+<body>
+<div class="blockquote"><blockquote class="blockquote"><p>
+ Copyright 2008, Free Software Foundation.
+ </p><p>
+ Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU Free Documentation
+ License, Version 1.1 or any later version published by the
+ Free Software Foundation; with no<link class="link" href="#fdl-invariant">Invariant Sections</link>, with no <link class="link" href="#fdl-cover-texts">Front-Cover Texts</link>,
+ and with no <link class="link" href="#fdl-cover-texts">Back-Cover
+ Texts</link>. A copy of the license is included in
+ the section entitled "GNU Free Documentation License".
+</p></blockquote></div>
+</body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gtk-doc.po b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gtk-doc.po
new file mode 100644
index 0000000..07b3003
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/gtk-doc.po
@@ -0,0 +1,42 @@
+#: C/fdl-appendix.xml:79(sect1/para)
+msgid ""
+"A <_:quote-1/> is a named appendix or a front-matter section of the <_:"
+"link-2/> that deals exclusively with the relationship of the publishers or "
+"authors of the Document to the Document's overall subject (or to related "
+"matters) and contains nothing that could fall directly within that overall "
+"subject. (For example, if the Document is in part a textbook of mathematics, "
+"a Secondary Section may not explain any mathematics.) The relationship could "
+"be a matter of historical connection with the subject or with related "
+"matters, or of legal, commercial, philosophical, ethical or political "
+"position regarding them."
+msgstr ""
+"Une <_:quote-1/> désigne une annexe au <_:link-2/>, ou toute information "
+"indiquant les rapports entre l'auteur ou l'éditeur et le sujet (ou tout "
+"autre sujet connexe) du Document, sans toutefois être en rapport direct avec "
+"le sujet lui-même (par exemple, si le Document est un manuel de "
+"mathématiques, une Section secondaire ne traitera d'aucune notion "
+"mathématique). Cette section peut contenir des informations relatives à "
+"l'historique du Document, des sources documentaires, des dispositions "
+"légales, commerciales, philosophiques, ou des positions éthiques ou "
+"politiques susceptibles de concerner le sujet traité."
+
+
+#: C/fdl-appendix.xml:632(blockquote/para)
+#, fuzzy
+msgid ""
+"Permission is granted to copy, distribute and/or modify this document under "
+"the terms of the GNU Free Documentation License, Version 1.1 or any later "
+"version published by the Free Software Foundation; with the <_:link-1/> being "
+"LIST THEIR TITLES, with the <_:link-2/> being LIST, and with the <_:link-3/> "
+"being LIST. A copy of the license is included in the section entitled <_:"
+"quote-4/>."
+msgstr ""
+"Es wird die Erlaubnis gegeben, dieses Dokument zu kopieren, verteilen und/"
+"oder zu verändern unter den Bedingungen der GNU Free Documentation License, "
+"Version 1.1 oder einer späteren, von der Free Software Foundation "
+"veröffentlichten Version; mit den <link linkend=\"fdl-invariant"
+"\">Unveränderlichen Abschnitten</link>. DEREN TITEL AUFGEZÄHLT sind, mit den "
+"<link linkend=\"fdl-cover-texts\">Vorderseitentexten</link>, die AUFGEZÄHLT "
+"sind, und mit den <link linkend=\"fdl-cover-texts\">Rückseitentexten</link>, "
+"die AUFGEZÄHLT sind. Eine Kopie dieser Lizenz ist in dem Abschnitt enthalten, "
+"der mit <quote>GNU Free Documentation License</quote> betitelt ist."
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/hyphen-used-as-minus-sign.diff b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/hyphen-used-as-minus-sign.diff
new file mode 100644
index 0000000..ae8c973
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/hyphen-used-as-minus-sign.diff
@@ -0,0 +1,102 @@
+Description: hyphen-used-as-minus-sign
+ This manual page seems to contain a hyphen where a minus sign was
+ intended.
+Author: Ruben Molina <rmolina@udea.edu.co>
+Forwarded: no
+Last-Update: 2011-06-25
+
+Index: kst-2.0.3/src/kst/kst.1.txt
+===================================================================
+--- kst-2.0.3.orig/src/kst/kst.1.txt
++++ kst-2.0.3/src/kst/kst.1.txt
+@@ -47,7 +47,7 @@ kst may be run entirely from within its
+ command line arguments are needed. kst has a powerful wizard for
+ easily setting up new plots.
+
+-In the second invocation, kst loads pre-saved plot specifications from the
++In the second invocation, kst loads pre\-saved plot specifications from the
+ file
+ .I kstfile
+ and optionally may override some of the settings in that file.
+@@ -64,7 +64,7 @@ plot all curves in separate plots
+ .TP
+ .B \-a\fR
+ average frames (simple mean) when plotting with
+-.B -s\fR.
++.B \-s\fR.
+ .TP
+ .B \-\-A4\fR
+ use A4 sized paper for printing. Requires
+@@ -90,7 +90,7 @@ and instead use
+ .B \-f\ STARTFRAME\fR
+ begin plotting at
+ .I STARTFRAME
+-frames into the data. Set to -1 to start at
++frames into the data. Set to \-1 to start at
+ .I NUMFRAMES
+ from the end of the data.
+ .TP
+@@ -112,7 +112,7 @@ use US Letter sized paper for printing.
+ .B \-n\ NUMFRAMES\fR
+ plot at most
+ .I NUMFRAMES
+-frames of data. Set to -1 to indicate all of the data.
++frames of data. Set to \-1 to indicate all of the data.
+ .TP
+ .B \-P\ PLOTNAME\fR
+ plot all plots in the plot named
+@@ -145,7 +145,7 @@ frames when plotting.
+ .B \-x\ FIELD\fR
+ use
+ .I FIELD
+-as the X-axis vector.
++as the X\-axis vector.
+ .TP
+ .B \-y\ FIELD\fR
+ plot
+@@ -158,30 +158,30 @@ plot
+ as an image.
+ .SH EXAMPLES
+ Plot all data in column 2 from data.dat.
+- kst data.dat -y 2
++ kst data.dat \-y 2
+
+ Same as above, except only read 20 lines, starting at line 10.
+- kst data.dat -f 10 -n 20 -y 2
++ kst data.dat \-f 10 \-n 20 \-y 2
+
+ also read col 1. One plot per curve.
+- kst data.dat -f 10 -n 20 -y 1 -y 2
++ kst data.dat \-f 10 \-n 20 \-y 1 \-y 2
+
+ Read col 1 from data2.dat and col 1 from data.dat
+- kst data.dat -f 10 -n 20 -y 2 data2.dat -y 1
++ kst data.dat \-f 10 \-n 20 \-y 2 data2.dat \-y 1
+
+ Same as above, except read 40 lines starting at 30 in data2.dat
+- kst data.dat -f 10 -n 20 -y 2 data2.dat -f 30 -n 40 -y 1
++ kst data.dat \-f 10 \-n 20 \-y 2 data2.dat \-f 30 \-n 40 \-y 1
+
+ Specify the X vector and error bars:
+ Plot x = col 1 and Y = col 2 and error flags = col 3 from data.dat
+- kst data.dat -x 1 -e 3 -y 2
++ kst data.dat \-x 1 \-e 3 \-y 2
+
+ Get the X vector from data1.dat, and the Y vector from data2.dat.
+- kst data1.dat -x 1 data2.dat -y 1
++ kst data1.dat \-x 1 data2.dat \-y 1
+
+ Placement:
+ Plot column 2 and column 3 in plot P1 and column 4 in plot P2
+- kst data.dat -P P1 -y 2 -y 3 -P P2 -y 4
++ kst data.dat \-P P1 \-y 2 \-y 3 \-P P2 \-y 4
+ .SH BUGS
+ Please report bugs to either the kst mailing list at
+ .I kst@kde.org
+@@ -198,6 +198,6 @@ Matthew Truch <matt@truch.net>
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.2 or
+ any later version published by the Free Software Foundation; with no
++Invariant Sections, with no Front\-Cover Texts, and with no Back\-Cover
+ Texts. A copy of the license is included in the `COPYING.DOC' file
+ as part of the kst distribution.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook
new file mode 100644
index 0000000..0168da6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/kdoctools/customization/ru/entities/fdl-notice.docbook
@@ -0,0 +1,6 @@
+<para>Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+Version 1.2 or any later version published by the Free Software
+Foundation; with &FDLInvariantSections;, with &FDLFrontCoverText;, and
+with &FDLBackCoverText;. A copy of the license is included in <xref linkend="gnu-fdl"/>.</para>
+
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/krusader b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/krusader
new file mode 100644
index 0000000..96f3be3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/krusader
@@ -0,0 +1,20 @@
+<!-- **********************************************************************
+ 4 more.docbook
+ 5 +++++++++++++++++++++++++++
+ 6 copyright : (C) 2000 - 2010
+ 7 XXXXXX
+ 8 XXXX
+ 9 e-mail : XXXX@XXXX
+ 10 web site : YYYYYY
+ 11 description : something
+ 12
+ 13 ***************************************************************************
+ 14 * Permission is granted to copy, distribute and/or modify this *
+ 15 * document under the terms of the GNU Free Documentation License, *
+ 16 * Version 1.1 or any later version published by the Free Software *
+ 17 * Foundation; with no Invariant Sections, no Front-Cover Texts and *
+ 18 * no Back-Cover Texts. A copy of the license is available on the *
+ 19 * GNU site http://www.gnu.org/licenses/fdl.html or by writing to: *
+ 20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, *
+ 21 * MA 02111-1307, USA. *
+ 22 *********************************************************************** --> \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhref.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhref.tex
new file mode 100644
index 0000000..d082bfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhref.tex
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.2
+or any later version published by the
+\href{http://www.fsf.org}{Free Software Foundation};
+with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+A copy of the license is included in the section entitled
+``\hyperlink{GFDL_GFDL}{GNU Free Documentation License}''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyperlink.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyperlink.tex
new file mode 100644
index 0000000..e193a16
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyperlink.tex
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.2
+or any later version published by the
+\hyperlink{http://www.fsf.org}{Free Software Foundation};
+with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+A copy of the license is included in the section entitled
+``\hyperlink{GFDL_GFDL}{GNU Free Documentation License}''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyphenslash.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyphenslash.tex
new file mode 100644
index 0000000..370ea73
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexhyphenslash.tex
@@ -0,0 +1,2 @@
+Copyright @sx(c) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-\/Cover Texts, and no Back-\/Cover Texts. A copy of the license is included in the section entitled \char`\"{}GNU
+Free Documentation License\char`\"{}. \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexurl.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexurl.tex
new file mode 100644
index 0000000..107d9fb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/latexurl.tex
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation
+License\url{http://www.gnu.org/copyleft/fdl.html}, Version 1.1 or any
+later version published by the Free Software Foundation; with no
+Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
+Texts. A copy of the license is included in the chapter entitled "GNU
+Free Documentation License". \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/libnss-pgsql.xml b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/libnss-pgsql.xml
new file mode 100644
index 0000000..8a5eb6e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/libnss-pgsql.xml
@@ -0,0 +1,7 @@
+ <para>
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License, Version 1.1 or
+ any later version published by the Free Software Foundation. There
+ are no invariant sections. A copy of the license is included in the
+ section entitled "GNU Free Documentation License".
+ </para>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond.texi
new file mode 100644
index 0000000..56939ee
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond.texi
@@ -0,0 +1,6 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.1
+or any later version published by the Free Software Foundation;
+with no Invariant Sections.
+A copy of the license is included in the section entitled ``GNU
+Free Documentation License''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond2.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond2.txt
new file mode 100644
index 0000000..4e66d64
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/lilypond2.txt
@@ -0,0 +1,19 @@
+Permission is granted to copy, distribute and/or modify the
+documentation for GNU LilyPond under the terms of the GNU Free
+Documentation License as published by the Free Software Foundation,
+either version 1.3, or (at your option) any later version; with no
+Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
+
+A copy of the license is contained in the file COPYING.FDL.
+
+The following exceptions apply:
+
+ * It does not apply to input files (contained in the
+ directory tree Documentation/snippets/); these are in
+ the public domain.
+
+ * It does not apply to any manual which explicitly states
+ another license.
+
+ * It does not apply to the MusicXML unit test suite,
+ which is licensed under the MIT license.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/mailutils.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/mailutils.texi
new file mode 100644
index 0000000..dffaccc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/mailutils.texi
@@ -0,0 +1,6 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.2 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, no Front-Cover, and no Back-Cover texts.
+A copy of the license is included in the section entitled ``GNU Free
+Documentation License''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.html
new file mode 100644
index 0000000..e1fd5a2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.html
@@ -0,0 +1,28 @@
+<html>
+<body>
+<p>Documentation files should have license notices also. Manuals should
+use the GNU Free Documentation License. Following is an example of the
+license notice to use after the copyright line(s) using all the
+features of the GFDL.
+</p>
+<div class="smallexample">
+<pre class="smallexample">Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'', with the
+Front-Cover Texts being ``A GNU Manual'', and with the Back-Cover Texts
+as in (a) below. A copy of the license is included in the section
+entitled ``GNU Free Documentation License''.
+
+(a) The FSF's Back-Cover Text is: ``You have the freedom to
+copy and modify this GNU manual. Buying copies from the FSF
+supports it in developing GNU and promoting software freedom.''
+</pre></div>
+
+<p>If the FSF does not publish this manual on paper, then omit the last
+sentence in (a) that talks about copies from GNU Press. If the FSF is
+not the copyright holder, then replace &lsquo;<samp>FSF</samp>&rsquo; with the appropriate
+name.
+</p>
+</body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.texi
new file mode 100644
index 0000000..633e758
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/maintain.texi
@@ -0,0 +1,13 @@
+Documentation files should have license notices also. Manuals should
+use the GNU Free Documentation License. Following is an example of the
+license notice to use after the copyright line(s) using all the
+features of the GFDL.
+
+@smallexample
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'', with the
+Front-Cover Texts being ``A GNU Manual'', and with the Back-Cover Texts
+as in (a) below. A copy of the license is included in the section
+entitled ``GNU Free Documentation License''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/make-stds.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/make-stds.texi
new file mode 100644
index 0000000..b5c2685
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/make-stds.texi
@@ -0,0 +1,7 @@
+@c Permission is granted to copy, distribute and/or modify this document
+@c under the terms of the GNU Free Documentation License, Version 1.1
+@c or any later version published by the Free Software Foundation;
+@c with no Invariant Sections, with no
+@c Front-Cover Texts, and with no Back-Cover Texts.
+@c A copy of the license is included in the section entitled ``GNU
+@c Free Documentation License''.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.c b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.c
new file mode 100644
index 0000000..a58e927
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.c
@@ -0,0 +1,13 @@
+ /*****************************************************************************/
+/** \mainpage Cal3D API Reference
+ * <center>
+ * <p>
+ * Permission is granted to copy, distribute and/or modify this document
+ * under the terms of the GNU Free Documentation License, Version 1.1 or
+ * any later version published by the Free Software Foundation;
+ * with no Invariant Sections, no Front-Cover Texts and
+ * no Back-Cover Texts;
+ * A copy of the license is included in the section entitled
+ * \link license "GNU Free Documentation License" \endlink .
+ * </center>
+ *****************************************************************************/
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.texi
new file mode 100644
index 0000000..d9c1b54
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normal.texi
@@ -0,0 +1,6 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.3 or any later version published by the Free Software
+Foundation; with no Invariant Sections, no Front-Cover Texts and
+no Back-Cover Texts. A copy of the license is included in the
+section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalbkchem.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalbkchem.texi
new file mode 100644
index 0000000..dd888e2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalbkchem.texi
@@ -0,0 +1,6 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.3 or any later version published by the Free Software
+Foundation; no Invariant Sections, no Front-Cover Texts,
+no Back-Cover Texts. A copy of the license is included in the
+section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalhtmlcomment.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalhtmlcomment.html
new file mode 100644
index 0000000..747d2e0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalhtmlcomment.html
@@ -0,0 +1,9 @@
+<html>
+<body>
+<!-- Permission is granted to copy, distribute and/or modify this document -->
+<!-- under the terms of the GNU Free Documentation License, Version 1.3 or -->
+<!-- any later version published by the Free Software Foundation; with no -->
+<!-- Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. -->
+<!-- a copy of the license is included under /home -->
+</body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalmancomment.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalmancomment.txt
new file mode 100644
index 0000000..f33dfcd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalmancomment.txt
@@ -0,0 +1,7 @@
+.\" manual page for blaze, a command wrapper for BlazeBlogger
+.\"
+.\" Permission is granted to copy, distribute and/or modify this document
+.\" under the terms of the GNU Free Documentation License, Version 1.3 or
+.\" any later version published by the Free Software Foundation; with no
+.\" Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+.\" A copy of the license is included below. \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalwithbreakathyphen.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalwithbreakathyphen.texi
new file mode 100644
index 0000000..22ae575
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/normalwithbreakathyphen.texi
@@ -0,0 +1,8 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.3 or any later version published by the Free Software
+Foundation; with no Invariant Sections, no Front-
+Cover Texts and
+no Back-
+Cover Texts. A copy of the license is included in the
+section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/oidentd.8 b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/oidentd.8
new file mode 100644
index 0000000..5a4df93
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/oidentd.8
@@ -0,0 +1,9 @@
+.\" Copyright (C) XXX
+.\"
+.\" Permission is granted to copy, distribute and/or modify this document
+.\" under the terms of the GNU Free Documentation License, Version 1.1
+.\" or any later version published by the Free Software Foundation;
+.\" with the Invariant Sections being no invariant sections, with the
+.\" Front-Cover Texts being no front-cover texts, and with the Back-Cover
+.\" Texts being no back-cover texts. A copy of the license is included with
+.\" this package in the file "COPYING.DOC." \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/opentoken.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/opentoken.txt
new file mode 100644
index 0000000..3241276
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/opentoken.txt
@@ -0,0 +1,5 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, Front-Cover or Back-Cover texts. A copy of the license
+is included in the section entitled ``GNU Free Documentation License''. \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/parsewiki.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/parsewiki.txt
new file mode 100644
index 0000000..950d936
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/parsewiki.txt
@@ -0,0 +1,4 @@
+Permission is granted to copy, distribute and/or modify this document under \
+the terms of the GNU Free Documentation License, Version 1.1 or any later \
+version published by the Free Software Foundation; without any Invariant \
+Sections. A copy of the license is included in the file GFDL.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partedvariant.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partedvariant.txt
new file mode 100644
index 0000000..96037ac
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partedvariant.txt
@@ -0,0 +1,8 @@
+Parted 2.13 version with strange grammar.
+
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the no Invariant Sections, with the no Front-Cover Texts, and
+with no Back-Cover Texts. A copy of the license is included in the
+file, COPYING.DOC.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partialtranslation.po b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partialtranslation.po
new file mode 100644
index 0000000..f1d17a5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/partialtranslation.po
@@ -0,0 +1,15 @@
+<para>För att använda GNU Free Documentation License för ett dokument du har skrivit, inkludera en kopia av licensen [det engelska originalet] i dokumentet och placera följande copyrightklausul omedelbart efter titelsidan:</para>
+
+<blockquote>
+ <para>
+ Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU Free Documentation
+ License, Version 1.1 or any later version published by the
+ Free Software Foundation; with the <link linkend="fdl-invariant">Invariant Sections</link> being LIST
+ THEIR TITLES, with the <link linkend="fdl-cover-texts">Front-Cover Texts</link> being LIST,
+ and with the <link linkend="fdl-cover-texts">Back-Cover
+ Texts</link> being LIST. A copy of the license is included in
+ the section entitled <quote>GNU Free Documentation
+ License</quote>.
+ </para>
+</blockquote>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-R.diff b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-R.diff
new file mode 100644
index 0000000..73e379b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-R.diff
@@ -0,0 +1,7 @@
+1,6d0
+< Permission is granted to copy, distribute and/or modify this
+< document under the terms of the GNU Free Documentation License,
+< version 1.3 or any later version published by the Free Software
+< Foundation; with no Invariant Sections, no Front-Cover Texts and
+< no Back-Cover Texts. A copy of the license is included in the
+< section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-c0.diff b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-c0.diff
new file mode 100644
index 0000000..600653e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-c0.diff
@@ -0,0 +1,18 @@
+*** make-stds.texi 2013-02-17 21:44:05.485250349 +0100
+--- normal.texi 2012-12-20 21:23:22.829397718 +0100
+***************
+*** 1,7 ****
+! @c Permission is granted to copy, distribute and/or modify this document
+! @c under the terms of the GNU Free Documentation License, Version 1.1
+! @c or any later version published by the Free Software Foundation;
+! @c with no Invariant Sections, with no
+! @c Front-Cover Texts, and with no Back-Cover Texts.
+! @c A copy of the license is included in the section entitled ``GNU
+! @c Free Documentation License''.
+--- 1,6 ----
+! Permission is granted to copy, distribute and/or modify this
+! document under the terms of the GNU Free Documentation License,
+! version 1.3 or any later version published by the Free Software
+! Foundation; with no Invariant Sections, no Front-Cover Texts and
+! no Back-Cover Texts. A copy of the license is included in the
+! section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-u.diff b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-u.diff
new file mode 100644
index 0000000..db6e4f9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-u.diff
@@ -0,0 +1,9 @@
+--- /dev/null 2013-05-15 23:18:30.206386135 +0200
++++ normal.texi 2012-12-20 21:23:22.829397718 +0100
+@@ -0,0 +1,6 @@
++Permission is granted to copy, distribute and/or modify this
++document under the terms of the GNU Free Documentation License,
++version 1.3 or any later version published by the Free Software
++Foundation; with no Invariant Sections, no Front-Cover Texts and
++no Back-Cover Texts. A copy of the license is included in the
++section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-uR.diff b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-uR.diff
new file mode 100644
index 0000000..347adff
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch-uR.diff
@@ -0,0 +1,9 @@
+--- normal.texi 2012-12-20 21:23:22.829397718 +0100
++++ /dev/null 2013-05-15 23:18:30.206386135 +0200
+@@ -1,6 +0,0 @@
+-Permission is granted to copy, distribute and/or modify this
+-document under the terms of the GNU Free Documentation License,
+-version 1.3 or any later version published by the Free Software
+-Foundation; with no Invariant Sections, no Front-Cover Texts and
+-no Back-Cover Texts. A copy of the license is included in the
+-section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch.diff b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch.diff
new file mode 100644
index 0000000..f64bfaf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/patch.diff
@@ -0,0 +1,7 @@
+0a1,6
+> Permission is granted to copy, distribute and/or modify this
+> document under the terms of the GNU Free Documentation License,
+> version 1.3 or any later version published by the Free Software
+> Foundation; with no Invariant Sections, no Front-Cover Texts and
+> no Back-Cover Texts. A copy of the license is included in the
+> section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/php-elisp.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/php-elisp.texi
new file mode 100644
index 0000000..2ab3103
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/php-elisp.texi
@@ -0,0 +1,19 @@
+@copying
+This manual documents PHP mode version @value{version} for
+use with GNU Emacs.
+
+Copyright @copyright{} 2008 Aaron S. Hawley
+
+@quotation
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation
+License, Version 1.2 or any later version published by the
+Free Software Foundation; with no Invariant Sections, and no
+Cover Texts. A copy of the license is included in the
+section entitled ``Copying This Manual.''
+
+A copy of the license is also available from the Free
+Software Foundation Web site at
+@url{http://www.gnu.org/licenses/fdl.html}.
+
+@end quotation \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/pipeindent.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/pipeindent.txt
new file mode 100644
index 0000000..8a0594a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/pipeindent.txt
@@ -0,0 +1,7 @@
+Some user ident with pipe (|)
+ | Permission is granted to copy, distribute and/or modify this
+ | document under the terms of the GNU Free Documentation License,
+ | version 1.3 or any later version published by the Free Software
+ | Foundation; with no Invariant Sections, no Front-Cover Texts and
+ | no Back-Cover Texts. A copy of the license is included in the
+ | section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quotes.xml b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quotes.xml
new file mode 100644
index 0000000..58edd5b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quotes.xml
@@ -0,0 +1,8 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation
+License, Version 1.2 or any later version published by the
+Free Software Foundation; with no Invariant Sections, no
+Front-Cover Texts, and no <quote>Back-Cover Texts</quote>.
+A copy of the license
+is included in the section entitled "GNU Free Documentation
+License". \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quoteswithasdefined.xml b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quoteswithasdefined.xml
new file mode 100644
index 0000000..112c734
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/quoteswithasdefined.xml
@@ -0,0 +1,9 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation
+License, Version 1.2 or any later version published by the
+Free Software Foundation;
+with no <quote>invariant sections</quote>, <quote>front-cover texts</quote> or <quote>back-cover texts</quote>,
+each as defined in the license.
+A copy of the license
+is included in the section entitled "GNU Free Documentation
+License". \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/sdlbasic.html b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/sdlbasic.html
new file mode 100644
index 0000000..ff31741
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/sdlbasic.html
@@ -0,0 +1,11 @@
+<div style="text-align: justify;"><span class="text">
+Permission is granted to copy, distribute
+and/or modify this document under the terms of the GNU Free
+Documentation License, Version 1.2 or any later version published by
+the Free Software Foundation; with no Invariant Sections Texts.</span><br>
+
+
+<span class="text">A copy of the license is included here below.</span><br>
+
+
+</div>
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/smbc.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/smbc.texi
new file mode 100644
index 0000000..c803dc5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/smbc.texi
@@ -0,0 +1,9 @@
+@quotation
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.1 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'' and ``GNU Free
+Documentation License'', with no Front-Cover Texts, and with no
+Back-Cover Texts. A copy of the license is included in the section
+entitled ``GNU Free Documentation License''.
+@end quotation \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/soundjuicer.po b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/soundjuicer.po
new file mode 100644
index 0000000..e0a41a6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/soundjuicer.po
@@ -0,0 +1,8 @@
+#~ "Permission is granted to copy, distribute and/or modify this document "
+#~ "under the terms of the GNU Free Documentation License, Version 1.1 or any "
+#~ "later version published by the Free Software Foundation; with the <link "
+#~ "linkend=\"fdl-invariant\">Invariant Sections</link> being LIST THEIR "
+#~ "TITLES, with the <link linkend=\"fdl-cover-texts\">Front-Cover Texts</"
+#~ "link> being LIST, and with the <link linkend=\"fdl-cover-texts\">Back-"
+#~ "Cover Texts</link> being LIST. A copy of the license is included in the "
+#~ "section entitled <quote>GNU Free Documentation License</quote>." \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texignu.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texignu.texi
new file mode 100644
index 0000000..9327024
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texignu.texi
@@ -0,0 +1,6 @@
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the @acronym{GNU} Free Documentation License,
+Version 1.3 or any later version published by the Free Software
+Foundation; with no Invariant Sections, with no Front-Cover texts
+and with no Back-Cover Texts. A copy of the license is included in the section entitled
+``@acronym{GNU} Free Documentation License.''
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlive.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlive.tex
new file mode 100644
index 0000000..b6e1240
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlive.tex
@@ -0,0 +1,8 @@
+% note the end is not classical...
+% Copyright (c) 2002--2004 Philipp Lehman
+% Permission is granted to copy, distribute and/or modify this document under
+% the terms of the GNU Free Documentation License, version 1.2, with no
+% invariant sections, with no front-cover texts, and no back-cover texts. This
+% document 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.
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlivefont.tex b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlivefont.tex
new file mode 100644
index 0000000..d4b872c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/texlivefont.tex
@@ -0,0 +1,6 @@
+Copyright © 2002--2004 Philipp Lehman
+
+Permission is granted to copy, distribute and\slash or modify this document under the terms of the GNU Free Documentation License, version 1.2, with no invariant sections, no front-cover texts, and no back-cover texts.
+
+A copy of the license is included in the appendix.
+
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/tla.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/tla.txt
new file mode 100644
index 0000000..2043b26
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/tla.txt
@@ -0,0 +1,21 @@
+/*
+ * :permissions ("Permission is granted to copy, distribute and/or modify this document"
+ * "under the terms of the GNU Free Documentation License, Version 1.1"
+ * "or any later version published by the Free Software Foundation;"
+ * "with the Invariant Sections being:"
+ * ""
+ * " The GNU General Public License"
+ * " The GNU Free Documentation License"
+ * ""
+ * "with the Front-Cover Texts being"
+ * ""
+ * " (none),"
+ * ""
+ * "and with the Back-Cover Texts being"
+ * ""
+ * " (none)."
+ * ""
+ * "A copy of the license is included in the section entitled \"GNU"
+ * "Free Documentation License\"."))
+ *
+ */ \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/ulink.xml b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/ulink.xml
new file mode 100644
index 0000000..6f634a6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/ulink.xml
@@ -0,0 +1,7 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the <ulink url="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
+License</ulink>, Version 1.2 or any later version published by the
+Free Software Foundation; with no Invariant Sections, no
+Front-Cover Texts, and no Back-Cover Texts. A copy of the license
+is included in the section entitled "GNU Free Documentation
+License". \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/variantdictfold.txt b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/variantdictfold.txt
new file mode 100644
index 0000000..8463a59
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/variantdictfold.txt
@@ -0,0 +1,7 @@
+This is ok
+ Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU Free Documentation
+ License, Version 1.1 or any later version published by the
+ Free Software Foundation; with no Invariant Sections, Front-
+ or Back-Cover Texts. A copy of the license is included in the
+ section entitled "{GNU Free Documentation License}".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/zeroisnotplural.texi b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/zeroisnotplural.texi
new file mode 100644
index 0000000..8782eed
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldfalsepositive/zeroisnotplural.texi
@@ -0,0 +1,6 @@
+Permission is granted to copy, distribute and/or modify this
+document under the terms of the GNU Free Documentation License,
+version 1.3 or any later version published by the Free Software
+Foundation; with no Invariant Section, no Front-Cover Text and
+no Back-Cover Text. A copy of the license is included in the
+section entitled "GNU Free Documentation License".
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldmanpagesgfdlproblem.1 b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldmanpagesgfdlproblem.1
new file mode 100644
index 0000000..83a4acf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/build-spec/orig/src/oldmanpagesgfdlproblem.1
@@ -0,0 +1,12 @@
+.\"
+.\" Manpage example
+.\"
+.PP
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.2 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
+Free Software\*(R", the Front-Cover texts being (a) (see below), and with
+the Back-Cover Texts being (b) (see below). A copy of the license is
+included in the \fIgfdl\fR\|(7) man page.
+.PP
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/desc b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/desc
new file mode 100644
index 0000000..4120bab
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/desc
@@ -0,0 +1,3 @@
+Testname: cruft-gfdl-invariants
+Test-Against: inconsistent-appstream-metadata-license
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/cruft-gfdl-invariants/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/debian/copyright
new file mode 100644
index 0000000..4d23981
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/debian/copyright
@@ -0,0 +1,30 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+Comment: This is part of the testsuite of lintian.
+ See the file debian/copyright
+ in the lintian source directory for more details.
+Files-Excluded: some-file
+
+Files: *
+Copyright:
+ 2008 Frank Lichtenheld <djpig@debian.org>
+ 2009 Russ Allbery <rra@debian.org>
+ 2018 Felix Lechner <felix.lechner@lease-up.com>
+License: GPL-2+
+ This program is free software; you may 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, or (at your option)
+ any later version.
+ .
+ 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. See the GNU General Public License
+ for more details.
+ .
+ A copy of the GNU General Public License version 2 is available as
+ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+ or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+ You can also obtain it by writing to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/fill-values
new file mode 100644
index 0000000..d8608d8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: excluded-files-in-native
+Description: Field Excluded-Files is present in native package.
+Version: 1.7+ds
diff --git a/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/orig/some-file b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/orig/some-file
new file mode 100644
index 0000000..c3f1f94
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/build-spec/orig/some-file
@@ -0,0 +1 @@
+SOME CONTENTS.
diff --git a/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/desc b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/desc
new file mode 100644
index 0000000..275bc5e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/desc
@@ -0,0 +1,2 @@
+Testname: excluded-files-in-native
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints
new file mode 100644
index 0000000..7c683c1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/excluded-files-in-native/eval/hints
@@ -0,0 +1 @@
+excluded-files-in-native (source): source-ships-excluded-file some-file [debian/copyright:8]
diff --git a/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/debian/copyright
new file mode 100644
index 0000000..fa106e9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/debian/copyright
@@ -0,0 +1,13 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Comment: Test case from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888001#33
+
+Files: *
+License: GPL-3
+Copyright: © 2014 Mattia Rizzolo <mattia@mapreri.org>
+
+Files: file-does-not-exist
+License: GPL-3
+Copyright: © 2014 Mattia Rizzolo <mattia@mapreri.org>
+
+License: GPL-3
+ Please call the Free Software Foundation for a copy of the license.
diff --git a/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/fill-values
new file mode 100644
index 0000000..7072fa8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: file-does-not-exist
+Description: Files paragraph references a file that does not exist.
diff --git a/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/desc b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/desc
new file mode 100644
index 0000000..dc5290f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/desc
@@ -0,0 +1,3 @@
+Testname: file-does-not-exist
+Check: debian/copyright/dep5
+See-Also: Bug#888001
diff --git a/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/hints b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/hints
new file mode 100644
index 0000000..71b2f98
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/file-does-not-exist/eval/hints
@@ -0,0 +1 @@
+file-does-not-exist (source): superfluous-file-pattern file-does-not-exist [debian/copyright:8]
diff --git a/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/debian/copyright
new file mode 100644
index 0000000..7935e5d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Files-Included:
+ include-this
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/fill-values
new file mode 100644
index 0000000..1e3bf97
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: lone-files-included
+Skeleton: upload-non-native
+Description: Filex-Included without Files-Excluded
diff --git a/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/desc b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/desc
new file mode 100644
index 0000000..bc56f04
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/desc
@@ -0,0 +1,2 @@
+Testname: files-included-covers-none
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/hints b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/hints
new file mode 100644
index 0000000..51d4974
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/files-included-covers-none/eval/hints
@@ -0,0 +1 @@
+lone-files-included (source): superfluous-file-pattern (Files-Included) include-this [debian/copyright:2]
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..4546c62
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/copyright/dep5/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-binary/eval/desc b/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/desc
new file mode 100644
index 0000000..03b128e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/hints b/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/hints
new file mode 100644
index 0000000..ecc0a09
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/hints
@@ -0,0 +1 @@
+binary (source): no-dep5-copyright [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/post-test b/t/recipes/checks/debian/copyright/dep5/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/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/debian/copyright/dep5/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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.
+
+Package: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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.
+
+Package: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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.
+
+Package: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/desc b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/desc
new file mode 100644
index 0000000..639a1ff
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/hints b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/hints
new file mode 100644
index 0000000..a925398
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/hints
@@ -0,0 +1 @@
+debconf (source): no-dep5-copyright [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/post-test b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..3e86b96
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description also uses non-UTF8 high bytes chars: ÄÖÜß
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/desc b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/desc
new file mode 100644
index 0000000..97216a4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/hints b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/hints
new file mode 100644
index 0000000..07ecb25
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (source): no-dep5-copyright [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/post-test b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/desc b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/desc
new file mode 100644
index 0000000..3dbe0ee
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/hints b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/hints
new file mode 100644
index 0000000..6140e09
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/hints
@@ -0,0 +1 @@
+scripts (source): no-dep5-copyright [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/post-test b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/debian/copyright
new file mode 100644
index 0000000..7c7783e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: wolfssl
+Upstream-Contact: David Garske <david@wolfssl.com>
+Source: https://github.com/wolfssl/wolfssl/releases
+
+Files:
+ COPYING
+Copyright:
+ 1989, 1991 Free Software Foundation, Inc.
+License: No-Modify
+
+Files:
+ debian/*
+Copyright:
+ 2014-2019 Felix Lechner <felix.lechner@lease-up.com>
+License: GPL-2+
+
+
+License: No-Modify
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+License: GPL-2+
+ This package 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 package 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, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/fill-values
new file mode 100644
index 0000000..5874162
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: license-file-listed-in-debian-copyright
+Description: License files do not need entries in d/copyright.
diff --git a/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/orig/COPYING b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/orig/COPYING
new file mode 100644
index 0000000..c1e7ac7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/build-spec/orig/COPYING
@@ -0,0 +1 @@
+TERMS OF SOFTWARE LICENSE
diff --git a/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/desc b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/desc
new file mode 100644
index 0000000..6cb134b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/desc
@@ -0,0 +1,2 @@
+Testname: license-file-listed-in-debian-copyright
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints
new file mode 100644
index 0000000..fc2d25f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/hints
@@ -0,0 +1,2 @@
+license-file-listed-in-debian-copyright (source): update-debian-copyright 2019 vs CHANGELOG-YEAR [debian/copyright:14]
+license-file-listed-in-debian-copyright (source): license-file-listed-in-debian-copyright COPYING [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/post-test b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/license-file-listed-in-debian-copyright/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/debian/copyright
new file mode 100644
index 0000000..7935e5d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Files-Included:
+ include-this
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/fill-values
new file mode 100644
index 0000000..00de540
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: lone-files-included
+Skeleton: upload-non-native
+Description: File-Included without Files-Excluded
diff --git a/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/.matches b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/.matches
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/.matches
diff --git a/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/include-this b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/include-this
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/lone-files-included/build-spec/orig/include-this
diff --git a/t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/desc b/t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/desc
new file mode 100644
index 0000000..26325ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/desc
@@ -0,0 +1,2 @@
+Testname: lone-files-included
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/hints b/t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/hints
new file mode 100644
index 0000000..e6e0778
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/lone-files-included/eval/hints
@@ -0,0 +1 @@
+lone-files-included (source): file-included-already include-this [debian/copyright:2]
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright
new file mode 100644
index 0000000..5dd52d9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+Comment: This is part of the testsuite of lintian.
+ See the file debian/copyright
+ in the lintian source directory for more details.
+
+Files: *
+Copyright:
+ 2019 Felix Lechner <felix.lechner@lease-up.com>
+License: GPL-2+
+
+Files: will-be-empty/*
+Copyright:
+ 2019 Felix Lechner <felix.lechner@lease-up.com>
+License: GPL-2+
+
+License: GPL-2+
+ This program is free software; you may 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, or (at your option)
+ any later version.
+ .
+ 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. See the GNU General Public License
+ for more details.
+ .
+ A copy of the GNU General Public License version 2 is available as
+ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+ or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+ You can also obtain it by writing to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch
new file mode 100644
index 0000000..e572221
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/remove-file.patch
@@ -0,0 +1,10 @@
+Description: Remove the sole file in a directory
+ Should not trigger wildcard-matches-nothing-in-dep5-copyright.
+ For more information, please see Bug#844274.
+Author: Felix Lechner <felix.lechner@lease-up.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/will-be-empty/removed-by-patch
++++ /dev/null
+@@ -1 +0,0 @@
+-SOME CONTENT
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series
new file mode 100644
index 0000000..56b4ebb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/debian/patches/series
@@ -0,0 +1 @@
+remove-file.patch
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values
new file mode 100644
index 0000000..43ae87c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: patch-empties-directory
+Description: False positive for wildcard-matches-nothing-in-dep5-copyright
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch
new file mode 100644
index 0000000..2517541
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/build-spec/orig/will-be-empty/removed-by-patch
@@ -0,0 +1 @@
+SOME CONTENT
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc
new file mode 100644
index 0000000..d1935af
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/desc
@@ -0,0 +1,5 @@
+Testname: patch-empties-directory
+Check: debian/copyright/dep5
+Test-Against:
+ superfluous-file-pattern
+See-Also: Bug#844274
diff --git a/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/patch-empties-directory/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/copyright
new file mode 100644
index 0000000..3ff770b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/copyright
@@ -0,0 +1,11 @@
+# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905747#5
+# but split up for each of the two conditions
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+ debian/patches/*
+Copyright: (C) 2018 Niels Thykier
+License: License1
+
+License: License1
+ Please call the author for this license.
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/patches/a.patch b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/patches/a.patch
new file mode 100644
index 0000000..294a68c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/debian/patches/a.patch
@@ -0,0 +1 @@
+A PATCH
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/fill-values
new file mode 100644
index 0000000..412ba3e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: redundant-wildcard
+Description: Two wildcards matching the same file in the same section
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/orig/a-file b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/orig/a-file
new file mode 100644
index 0000000..fadb157
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/build-spec/orig/a-file
@@ -0,0 +1 @@
+A FILE
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/desc b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/desc
new file mode 100644
index 0000000..dd15714
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/desc
@@ -0,0 +1,3 @@
+Testname: redundant-wildcard
+Check: debian/copyright/dep5
+See-Also: Bug#905747
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/hints b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/hints
new file mode 100644
index 0000000..21912fa
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/hints
@@ -0,0 +1,2 @@
+redundant-wildcard (source): update-debian-copyright 2018 vs CHANGELOG-YEAR [debian/copyright:7]
+redundant-wildcard (source): redundant-globbing-patterns (* debian/patches/*) for debian/patches/a.patch [debian/copyright:5]
diff --git a/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/post-test b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/redundant-wildcard/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/debian/copyright
new file mode 100644
index 0000000..e6d13df
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/debian/copyright
@@ -0,0 +1,23 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+Files-Excluded: gone
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/fill-values
new file mode 100644
index 0000000..3ccc5e1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: repackaged-upstream-sources-not-advertised
+Skeleton: upload-non-native
+Description: Sources indicate they have been repacked
diff --git a/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/desc b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/desc
new file mode 100644
index 0000000..e233fa0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/desc
@@ -0,0 +1,2 @@
+Testname: repackaged-upstream-sources-not-advertised
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints
new file mode 100644
index 0000000..e4baeb6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/repackaged-upstream-sources-not-advertised/eval/hints
@@ -0,0 +1 @@
+repackaged-upstream-sources-not-advertised (source): repackaged-source-not-advertised [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/debian/copyright
new file mode 100644
index 0000000..6cd1530
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/debian/copyright
@@ -0,0 +1,47 @@
+# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779676#30
+# except for secure URL immediately below and block comment further down
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ipe-tools
+Upstream-Contact: Otfried Cheong <otfried@ipe.airpost.net>
+Source: https://github.com/otfried/ipe-tools
+
+Files: figtoipe/*
+Copyright: 1993-2008, Otfried Cheong <otfried@ipe.airpost.net>
+ 2007-2015, Alexander Bürger <acfb@users.sf.net>
+License: GPL-2+
+ See /usr/share/common-licenses/GPL-2
+
+Files: ipe5toxml/*
+Copyright: 2005, Otfried Cheong <otfried@ipe.airpost.net>
+ 2015, Alexander Bürger <acfb@users.sf.net>
+License: public-domain
+ While the source code of svgtoipe does not include any licensing
+ information, the homepage of the ipe tool,
+ http://ipe7.sourceforge.net/, includes a hyperlink to the ipe-tools
+ github repository and says:
+ ``The source to ipe5toxml is in the public domain.''
+
+Files: pdftoipe/*
+Copyright: 2003-2014, Otfried Cheong <otfried@ipe.airpost.net>
+License: GPL-2
+ See /usr/share/common-licenses/GPL-2
+Comment:
+ the pdftoipe source code itself is GPL-2+, but it is linked
+ to GPL-2 only libpoppler so it must be GPL-2, too
+
+Files: svgtoipe/*
+Copyright: 2009-2014, Otfried Cheong <otfried@ipe.airpost.net>
+License: GPL-3+
+ See /usr/share/common-licenses/GPL-3
+
+#Files: matplotlib/*
+#Copyright: 2014, Otfried Cheong <otfried@ipe.airpost.net>
+# 2014, Soyeon Baek
+#Comment:
+# not included in debian package
+
+Files: debian/*
+Copyright: 2005-2011 Steve Robbins <smr@debian.org>
+ 2008-2015, Alexander Bürger <acfb@users.sf.net>
+License: GPL-2+
+ See /usr/share/common-licenses/GPL-2
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/fill-values
new file mode 100644
index 0000000..dc39a8e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-native
+Testname: reuse-identifier-in-files
+Description: Reuse a license idenfifier in another Files paragraph (false positive)
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/figtoipe/a-file b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/figtoipe/a-file
new file mode 100644
index 0000000..01d2c17
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/figtoipe/a-file
@@ -0,0 +1 @@
+SOME TEXT
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/ipe5toxml/a-file b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/ipe5toxml/a-file
new file mode 100644
index 0000000..01d2c17
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/ipe5toxml/a-file
@@ -0,0 +1 @@
+SOME TEXT
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/pdftoipe/a-file b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/pdftoipe/a-file
new file mode 100644
index 0000000..01d2c17
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/pdftoipe/a-file
@@ -0,0 +1 @@
+SOME TEXT
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/svgtoipe/a-file b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/svgtoipe/a-file
new file mode 100644
index 0000000..01d2c17
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/build-spec/orig/svgtoipe/a-file
@@ -0,0 +1 @@
+SOME TEXT
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/desc b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/desc
new file mode 100644
index 0000000..155b1fd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/desc
@@ -0,0 +1,5 @@
+Testname: reuse-identifier-in-files
+Check: debian/copyright/dep5
+Test-Against:
+ dep5-copyright-license-name-not-unique
+See-Also: Bug#779676
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/hints b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/hints
new file mode 100644
index 0000000..f7d27de
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/hints
@@ -0,0 +1 @@
+reuse-identifier-in-files (source): update-debian-copyright 2015 vs CHANGELOG-YEAR [debian/copyright:44]
diff --git a/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/post-test b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reuse-identifier-in-files/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/debian/copyright
new file mode 100644
index 0000000..1c5f619
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/debian/copyright
@@ -0,0 +1,19 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+Copyright: (C) 2018 Niels Thykier
+License: License1
+
+Files: debian/*
+Copyright: (C) 2018 Niels Thykier
+License: License1
+
+Files: debian/*
+Copyright: (C) 2019 Niels Thykier
+License: License2
+
+License: License1
+ Please call the author for this license.
+
+License: License2
+ Please call the author for this license.
diff --git a/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/fill-values
new file mode 100644
index 0000000..6c5f8e6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: reused-wildcard
+Description: Same globbing pattern appears twice
diff --git a/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/orig/a-file b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/orig/a-file
new file mode 100644
index 0000000..fadb157
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/build-spec/orig/a-file
@@ -0,0 +1 @@
+A FILE
diff --git a/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/desc b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/desc
new file mode 100644
index 0000000..e3f0551
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/desc
@@ -0,0 +1,3 @@
+Testname: reused-wildcard
+Check: debian/copyright/dep5
+See-Also: Bug#905747
diff --git a/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/hints b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/hints
new file mode 100644
index 0000000..0b4a3c5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/hints
@@ -0,0 +1,2 @@
+reused-wildcard (source): update-debian-copyright 2019 vs CHANGELOG-YEAR [debian/copyright:12]
+reused-wildcard (source): duplicate-globbing-patterns debian/* (lines 7 11) [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/post-test b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/reused-wildcard/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/debian/copyright
new file mode 100644
index 0000000..0c826f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/debian/copyright
@@ -0,0 +1,20 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2014, somebody1
+License: gplv1
+ something
+
+Files: space
+Copyright: 2014, somebody1
+License: some space license
+ something
+
+Files: debian/*
+Copyright: 2014, somebody1
+License: bsd
+ this is a valid license short name
+
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/fill-values
new file mode 100644
index 0000000..105eb13
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-bad-short-name
+Description: Test for bad short name
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/README b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/README
new file mode 100644
index 0000000..1a9d2ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/README
@@ -0,0 +1 @@
+trivial
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/space b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/space
new file mode 100644
index 0000000..82cbe04
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/build-spec/orig/space
@@ -0,0 +1 @@
+space \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/desc
new file mode 100644
index 0000000..2f2c957
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-bad-short-name
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints
new file mode 100644
index 0000000..2c8bb8a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/hints
@@ -0,0 +1,4 @@
+source-copyright-bad-short-name (source): update-debian-copyright 2014 vs CHANGELOG-YEAR [debian/copyright:17]
+source-copyright-bad-short-name (source): space-in-std-shortname-in-dep5-copyright some space license [debian/copyright:13]
+source-copyright-bad-short-name (source): invalid-short-name-in-dep5-copyright gplv1 [debian/copyright:8]
+source-copyright-bad-short-name (source): invalid-short-name-in-dep5-copyright bsd [debian/copyright:18]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-bad-short-name/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/debian/copyright
new file mode 100644
index 0000000..d890aa5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/debian/copyright
@@ -0,0 +1,22 @@
+Format: <VERSIONED_FORMAT_URL>
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/fill-values
new file mode 100644
index 0000000..e23273f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-boilerplate-uri
+Description: Test for boilerplate DEP 5-like URI
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/desc
new file mode 100644
index 0000000..d581f76
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-boilerplate-uri
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints
new file mode 100644
index 0000000..81f7b8c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-boilerplate-uri/eval/hints
@@ -0,0 +1 @@
+source-copyright-boilerplate-uri (source): boilerplate-copyright-format-uri <VERSIONED_FORMAT_URL> [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/debian/copyright
new file mode 100644
index 0000000..eadfebd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/debian/copyright
@@ -0,0 +1,113 @@
+Format: https://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174
+Upstream-Name: Doohickey
+Upstream-Maintainer: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Comment: I'm a bogus paragraph.
+
+Files: a/*, b/*
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+
+Files: c
+Copyright: 2010 J. Random Hacker <j.r.hacker@example.com>
+
+Files: d
+License: GPL-3
+
+Files: 5
+License: MIT
+Copyright: 2010 J. Random Hacker <j.r.hacker@example.com>
+
+Comment: Oops, missing a Files for this paragraph.
+License: BSD-3
+Copyright: 2010 J. Random Hacker <j.r.hacker@example.com>
+
+Files: debian/*
+License: GPL-2 or GPL-3 with Font
+Copyright: 2010 J. Random Hacker <j.r.hacker@example.com>
+
+Files: debian/copyright
+License: GPL-2 or GPL-3 with Font exception
+Copyright: 2012 J. Random Hacker <j.r.hacker@example.com>
+
+Files: debian/control
+License: GPL-2 and custom
+Copyright: 2010 J. Random Hacker <j.r.hacker@example.com>
+
+License: custom
+ Custom test license
+
+
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-3 with Font
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+ .
+ A fake font exception.
+
+License: GPL-3 with Font exception
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+ .
+ Fake font exception.
+
+License: GPL-3
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the “Softwareâ€), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED “AS ISâ€, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/fill-values
new file mode 100644
index 0000000..e433ff8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-dep5-general
+Description: Test for various errors in DEP 5 copyright files
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/desc
new file mode 100644
index 0000000..677c43f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/desc
@@ -0,0 +1,4 @@
+Testname: source-copyright-dep5-general
+Test-Against:
+ incomplete-creative-commons-license
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints
new file mode 100644
index 0000000..341af85
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/hints
@@ -0,0 +1,14 @@
+source-copyright-dep5-general (source): update-debian-copyright 2012 vs CHANGELOG-YEAR [debian/copyright:32]
+source-copyright-dep5-general (source): unused-license-paragraph-in-dep5-copyright expat [debian/copyright:96]
+source-copyright-dep5-general (source): unknown-paragraph-in-dep5-copyright [debian/copyright:6]
+source-copyright-dep5-general (source): obsolete-field-in-dep5-copyright Upstream-Maintainer Upstream-Contact [debian/copyright:3]
+source-copyright-dep5-general (source): missing-license-text-in-dep5-copyright GPL-3 [debian/copyright:94]
+source-copyright-dep5-general (source): missing-license-text-in-dep5-copyright BSD-3 [debian/copyright:23]
+source-copyright-dep5-general (source): missing-license-paragraph-in-dep5-copyright mit [debian/copyright:19]
+source-copyright-dep5-general (source): missing-license-paragraph-in-dep5-copyright gpl-3 [debian/copyright:16]
+source-copyright-dep5-general (source): missing-field-in-dep5-copyright License [debian/copyright:12]
+source-copyright-dep5-general (source): missing-field-in-dep5-copyright Copyright [debian/copyright:15]
+source-copyright-dep5-general (source): comma-separated-files-in-dep5-copyright [debian/copyright:8]
+source-copyright-dep5-general (source): bad-exception-format-in-dep5-copyright gpl-3 with font [debian/copyright:58]
+source-copyright-dep5-general (source): bad-exception-format-in-dep5-copyright gpl-3 with font [debian/copyright:27]
+source-copyright-dep5-general (source): ambiguous-paragraph-in-dep5-copyright [debian/copyright:22]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-general/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/debian/copyright
new file mode 100644
index 0000000..30c307c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/debian/copyright
@@ -0,0 +1,22 @@
+Format: https://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/fill-values
new file mode 100644
index 0000000..1b5f611
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-dep5-syntax-error
+Description: Test for DEP 5 syntax error
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/desc
new file mode 100644
index 0000000..f6cc383
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-dep5-syntax-error
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints
new file mode 100644
index 0000000..0f97785
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-dep5-syntax-error/eval/hints
@@ -0,0 +1 @@
+source-copyright-dep5-syntax-error (source): syntax-error-in-dep5-copyright Continuation line not in paragraph (line 13). Missing a dot on the previous line? [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/debian/copyright
new file mode 100644
index 0000000..f9d5a2a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/debian/copyright
@@ -0,0 +1,97 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+License:
+
+Files: *
+Copyright:
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+Files: debian/*
+Copyright: 2014, somebodydebian
+License:
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+Files:
+Copyright: 2014, somebody
+License: GPL-2+
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+License:
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+Files: m4/
+Copyright: 2014, somebodym4
+License:
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
+
+License:
+
+License: GPL-2+
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/fill-values
new file mode 100644
index 0000000..2fe94f7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-empty-field
+Description: Test for empty required field
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/desc
new file mode 100644
index 0000000..d43f068
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-empty-field
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints
new file mode 100644
index 0000000..e826004
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/hints
@@ -0,0 +1,12 @@
+source-copyright-empty-field (source): update-debian-copyright 2014 vs CHANGELOG-YEAR [debian/copyright:26]
+source-copyright-empty-field (source): superfluous-file-pattern m4/ [debian/copyright:77]
+source-copyright-empty-field (source): superfluous-file-pattern * [debian/copyright:7]
+source-copyright-empty-field (source): missing-license-text-in-dep5-copyright [debian/copyright:95]
+source-copyright-empty-field (source): missing-license-text-in-dep5-copyright GPL-2+ [debian/copyright:97]
+source-copyright-empty-field (source): missing-field-in-dep5-copyright (empty field) Files [debian/copyright:43]
+source-copyright-empty-field (source): missing-field-in-dep5-copyright (empty field) Copyright [debian/copyright:8]
+source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:95]
+source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:79]
+source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:61]
+source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:5]
+source-copyright-empty-field (source): empty-short-license-in-dep5-copyright [debian/copyright:27]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-empty-field/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/debian/copyright
new file mode 100644
index 0000000..fa0be7c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/debian/copyright
@@ -0,0 +1,19 @@
+Files-Excluded: foo
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/fill-values
new file mode 100644
index 0000000..c5f012e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: source-copyright-files-excluded-without-copyright-format-1.0
+Skeleton: upload-non-native
+Description: Test for files listed in Files-Excluded
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/desc
new file mode 100644
index 0000000..0956e4c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-files-excluded-without-copyright-format-1.0
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints
new file mode 100644
index 0000000..2ca5e41
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-files-excluded-without-copyright-format-1.0/eval/hints
@@ -0,0 +1,2 @@
+source-copyright-files-excluded-without-copyright-format-1.0 (source): no-dep5-copyright [debian/copyright]
+source-copyright-files-excluded-without-copyright-format-1.0 (source): files-excluded-without-copyright-format-1.0 [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/debian/copyright
new file mode 100644
index 0000000..b8340bc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/debian/copyright
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lintian
+Upstream-Contact: Lintian Maintainers <debian-lint-maint@lists.debian.org>
+Source: http://git.debian.org/?p=lintian/lintian.git
+
+Files: filea
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/fill-values
new file mode 100644
index 0000000..fad1ab9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-global-files-wildcard-not-first-paragraph
+Description: Test for Files: * not being the first paragraph
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/orig/filea b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/orig/filea
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/build-spec/orig/filea
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/desc
new file mode 100644
index 0000000..6cdbf3c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-global-files-wildcard-not-first-paragraph
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints
new file mode 100644
index 0000000..9ec205d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-global-files-wildcard-not-first-paragraph/eval/hints
@@ -0,0 +1,2 @@
+source-copyright-global-files-wildcard-not-first-paragraph (source): superfluous-file-pattern filea [debian/copyright:6]
+source-copyright-global-files-wildcard-not-first-paragraph (source): global-files-wildcard-not-first-paragraph-in-dep5-copyright [debian/copyright:10]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/debian/copyright
new file mode 100644
index 0000000..9102490
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/debian/copyright
@@ -0,0 +1,81 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: opensesame
+Upstream-Contact: Sebastiaan Mathot <s.mathot@cogsci.nl>
+Source: http://www.cogsci.nl/software/opensesame
+
+Files: *
+Copyright: 2010-2012, Sebastiaan Mathot
+License: GPL-3
+ On Debian systems, the full text of the GNU General Public License version 3
+ can be found in the file `/usr/share/common-licenses/GPL-3'.
+
+Files: resources/*.ttf
+Copyright: 2006, 2007, 2008, 2009, 2010 Google Corp.
+ Droid is a trademark of Google Corp.
+License: Apache-2.0
+ On Debian systems, the complete text of the Apache License Version 2.0
+ can be found in `/usr/share/common-licenses/Apache-2.0'.
+
+Files: sounds/*
+Copyright: 1996-2011, The K Desktop Environment project http://www.kde.org
+ Marc-Andre Lureau <marcandre.lureau@gmail.com>
+ Bastien Nocera <hadess@hadess.net>
+ Andreas Hyden <a.hyden@cyberpoint.se>
+ Seth Nickell <snickell@stanford.edu>
+ Ronald Bultje <rbultje@ronald.bitfreak.net>
+ Thomas Vander Stichele <thomas at apestaart dot org>
+ William Jon McCann <jmccann@redhat.com>
+License: GPL-2+
+ The full text of the GNU General Public License version 2 is available on
+ Debian systems in /usr/share/common-licenses/GPL-2.
+
+Files: resources/theme/default/os-custom-icons/*
+Copyright: 2010-2011, Matthieu James <matthieu.james@gmail.com>
+ 2012, Daniel Fore <Daniel.p.Fore@gmail.com>
+ 2012, Sebastiaan Mathot <s.mathot@cogsci.nl>
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: debian/*
+Copyright: 2010-2012, Sebastiaan Mathot <s.mathot@cogsci.nl>
+ 2011, Michael Hanke <mih@debian.org>
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/ts/it_IT.ts
+Copyright: 2012, Andrea Epifani <andreaepifani@gmail.com>
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/ts/fr_FR.ts
+Copyright: 2013, Romain Monfollet
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/ts/zh_CN.ts
+Copyright: 2013, Gabriel Chan
+ 2013, Jerry Li
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/templates/eco_alt_template.opensesame.tar.gz
+Copyright: 2012, Francisco Javier Moreno-Martinez
+ 2012, Pedro R. Montoro
+ 2012, Sebastiaan Mathot <s.mathot@cogsci.nl>
+License: CC-BY-3.0
+
+License: CC-BY-3.0
+ You are free:
+ to Share (to copy, distribute and transmit the work) and
+ to Remix (to adapt the work) under the following conditions:
+ .
+ Attribution — You must attribute the work in the manner specified by the
+ author or licensor (but not in any way that suggests that they endorse you
+ or your use of the work).
+ .
+ For more information, see http://creativecommons.org/licenses/by/3.0/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/fill-values
new file mode 100644
index 0000000..444f75c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-incomplete-creative-commons-b
+Description: Test for incomplete Creative Commons licenses (b)
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/desc
new file mode 100644
index 0000000..b65de32
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-incomplete-creative-commons-b
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints
new file mode 100644
index 0000000..6abf857
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/hints
@@ -0,0 +1,11 @@
+source-copyright-incomplete-creative-commons-b (source): update-debian-copyright 2012 vs CHANGELOG-YEAR [debian/copyright:41]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern sounds/* [debian/copyright:19]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/ts/zh_CN.ts [debian/copyright:59]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/ts/it_IT.ts [debian/copyright:47]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/ts/fr_FR.ts [debian/copyright:53]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/theme/default/os-custom-icons/* [debian/copyright:32]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/templates/eco_alt_template.opensesame.tar.gz [debian/copyright:66]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern resources/*.ttf [debian/copyright:12]
+source-copyright-incomplete-creative-commons-b (source): superfluous-file-pattern * [debian/copyright:6]
+source-copyright-incomplete-creative-commons-b (source): insecure-copyright-format-uri http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ [debian/copyright]
+source-copyright-incomplete-creative-commons-b (source): incomplete-creative-commons-license cc-by-3.0 [debian/copyright:72]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/post-test
new file mode 100644
index 0000000..daec1dd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-b/eval/post-test
@@ -0,0 +1,4 @@
+/: dep5-copyright-license-name-not-unique .*/ d
+/: unused-file-paragraph-in-dep5-copyright .*/ d
+/: wildcard-matches-nothing-in-dep5-copyright .*/ d
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/debian/copyright
new file mode 100644
index 0000000..9a5bb1d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/debian/copyright
@@ -0,0 +1,379 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: flycheck
+Source: https://github.com/flycheck/flycheck
+
+Files: *
+Copyright: (C) 2012-2015, 2016, 2017 Sebastian Wiesner and Flycheck contributors
+ (C) 2013, 2014 Free Software Foundation, Inc.
+License: GPL-3+
+
+Files: doc/*
+Copyright: (C) 2012-2015, 2017 Sebastian Wiesner and Flycheck contributors
+License: CC-BY-SA-4.0
+
+Files: doc/*.py
+Copyright: (C) 2012-2015 Sebastian Wiesner and Flycheck contributors
+License: GPL-3+
+
+Files: flycheck.svg
+Copyright: (C) 2014-2015 Sebastian Wiesner
+License: CC-BY-SA-4.0
+
+Files: debian/*
+Copyright: (C) 2016, 2017 Sean Whitton <spwhitton@spwhitton.name>
+License: GPL-3+
+
+License: GPL-3+
+ 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 3 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, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3
+
+License: CC-BY-SA-4.0
+ By exercising the Licensed Rights (defined below), You accept and agree
+ to be bound by the terms and conditions of this Creative Commons
+ Attribution-ShareAlike 4.0 International Public License ("Public
+ License"). To the extent this Public License may be interpreted as a
+ contract, You are granted the Licensed Rights in consideration of Your
+ acceptance of these terms and conditions, and the Licensor grants You
+ such rights in consideration of benefits the Licensor receives from
+ making the Licensed Material available under these terms and
+ conditions.
+ .
+ Section 1 – Definitions.
+ .
+ a. Adapted Material means material subject to Copyright and Similar
+ Rights that is derived from or based upon the Licensed Material and in
+ which the Licensed Material is translated, altered, arranged,
+ transformed, or otherwise modified in a manner requiring permission
+ under the Copyright and Similar Rights held by the Licensor. For
+ purposes of this Public License, where the Licensed Material is a
+ musical work, performance, or sound recording, Adapted Material is
+ always produced where the Licensed Material is synched in timed
+ relation with a moving image.
+ .
+ b. Adapter's License means the license You apply to Your Copyright and
+ Similar Rights in Your contributions to Adapted Material in accordance
+ with the terms and conditions of this Public License.
+ .
+ c. BY-SA Compatible License means a license listed at
+ creativecommons.org/compatiblelicenses, approved by Creative Commons
+ as essentially the equivalent of this Public License.
+ .
+ d. Copyright and Similar Rights means copyright and/or similar rights
+ closely related to copyright including, without limitation,
+ performance, broadcast, sound recording, and Sui Generis Database
+ Rights, without regard to how the rights are labeled or
+ categorized. For purposes of this Public License, the rights specified
+ in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
+ .
+ e. Effective Technological Measures means those measures that, in the
+ absence of proper authority, may not be circumvented under laws
+ fulfilling obligations under Article 11 of the WIPO Copyright Treaty
+ adopted on December 20, 1996, and/or similar international agreements.
+ .
+ f. Exceptions and Limitations means fair use, fair dealing, and/or any
+ other exception or limitation to Copyright and Similar Rights that
+ applies to Your use of the Licensed Material.
+ .
+ g. License Elements means the license attributes listed in the name of
+ a Creative Commons Public License. The License Elements of this Public
+ License are Attribution and ShareAlike.
+ .
+ h. Licensed Material means the artistic or literary work, database, or
+ other material to which the Licensor applied this Public License.
+ .
+ i. Licensed Rights means the rights granted to You subject to the
+ terms and conditions of this Public License, which are limited to all
+ Copyright and Similar Rights that apply to Your use of the Licensed
+ Material and that the Licensor has authority to license.
+ .
+ j. Licensor means the individual(s) or entity(ies) granting rights
+ under this Public License.
+ .
+ k. Share means to provide material to the public by any means or
+ process that requires permission under the Licensed Rights, such as
+ reproduction, public display, public performance, distribution,
+ dissemination, communication, or importation, and to make material
+ available to the public including in ways that members of the public
+ may access the material from a place and at a time individually chosen
+ by them.
+ .
+ l. Sui Generis Database Rights means rights other than copyright
+ resulting from Directive 96/9/EC of the European Parliament and of the
+ Council of 11 March 1996 on the legal protection of databases, as
+ amended and/or succeeded, as well as other essentially equivalent
+ rights anywhere in the world.
+ .
+ m. You means the individual or entity exercising the Licensed Rights
+ under this Public License. Your has a corresponding meaning.
+ .
+ Section 2 – Scope.
+ .
+ a. License grant.
+ .
+ 1. Subject to the terms and conditions of this Public License, the
+ Licensor hereby grants You a worldwide, royalty-free,
+ non-sublicensable, non-exclusive, irrevocable license to exercise the
+ Licensed Rights in the Licensed Material to:
+ .
+ A. reproduce and Share the Licensed Material, in whole or in part; and
+ .
+ B. produce, reproduce, and Share Adapted Material.
+ .
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
+ Exceptions and Limitations apply to Your use, this Public License does
+ not apply, and You do not need to comply with its terms and
+ conditions.
+ .
+ 3. Term. The term of this Public License is specified in Section 6(a).
+ .
+ 4. Media and formats; technical modifications allowed. The Licensor
+ authorizes You to exercise the Licensed Rights in all media and
+ formats whether now known or hereafter created, and to make technical
+ modifications necessary to do so. The Licensor waives and/or agrees
+ not to assert any right or authority to forbid You from making
+ technical modifications necessary to exercise the Licensed Rights,
+ including technical modifications necessary to circumvent Effective
+ Technological Measures. For purposes of this Public License, simply
+ making modifications authorized by this Section 2(a)(4) never produces
+ Adapted Material.
+ .
+ 5. Downstream recipients.
+ .
+ A. Offer from the Licensor – Licensed Material. Every recipient of the
+ Licensed Material automatically receives an offer from the Licensor to
+ exercise the Licensed Rights under the terms and conditions of this
+ Public License.
+ .
+ B. Additional offer from the Licensor – Adapted Material. Every
+ recipient of Adapted Material from You automatically receives an offer
+ from the Licensor to exercise the Licensed Rights in the Adapted
+ Material under the conditions of the Adapter’s License You apply.
+ .
+ C. No downstream restrictions. You may not offer or impose any
+ additional or different terms or conditions on, or apply any Effective
+ Technological Measures to, the Licensed Material if doing so restricts
+ exercise of the Licensed Rights by any recipient of the Licensed
+ Material.
+ .
+ 6. No endorsement. Nothing in this Public License constitutes or may
+ be construed as permission to assert or imply that You are, or that
+ Your use of the Licensed Material is, connected with, or sponsored,
+ endorsed, or granted official status by, the Licensor or others
+ designated to receive attribution as provided in Section
+ 3(a)(1)(A)(i).
+ .
+ b. Other rights.
+ .
+ 1. Moral rights, such as the right of integrity, are not licensed
+ under this Public License, nor are publicity, privacy, and/or other
+ similar personality rights; however, to the extent possible, the
+ Licensor waives and/or agrees not to assert any such rights held by
+ the Licensor to the limited extent necessary to allow You to exercise
+ the Licensed Rights, but not otherwise.
+ .
+ 2. Patent and trademark rights are not licensed under this Public
+ License.
+ .
+ 3. To the extent possible, the Licensor waives any right to collect
+ royalties from You for the exercise of the Licensed Rights, whether
+ directly or through a collecting society under any voluntary or
+ waivable statutory or compulsory licensing scheme. In all other cases
+ the Licensor expressly reserves any right to collect such royalties.
+ .
+ Section 3 – License Conditions.
+ .
+ Your exercise of the Licensed Rights is expressly made subject to the
+ following conditions.
+ .
+ a. Attribution.
+ .
+ 1. If You Share the Licensed Material (including in modified form),
+ You must:
+ .
+ A. retain the following if it is supplied by the Licensor with the
+ Licensed Material:
+ .
+ i. identification of the creator(s) of the Licensed Material and any
+ others designated to receive attribution, in any reasonable manner
+ requested by the Licensor (including by pseudonym if designated);
+ .
+ ii. a copyright notice;
+ .
+ iii. a notice that refers to this Public License;
+ .
+ iv. a notice that refers to the disclaimer of warranties;
+ .
+ v. a URI or hyperlink to the Licensed Material to the extent
+ reasonably practicable;
+ .
+ B. indicate if You modified the Licensed Material and retain an
+ indication of any previous modifications; and
+ .
+ C. indicate the Licensed Material is licensed under this Public
+ License, and include the text of, or the URI or hyperlink to, this
+ Public License.
+ .
+ 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable
+ manner based on the medium, means, and context in which You Share the
+ Licensed Material. For example, it may be reasonable to satisfy the
+ conditions by providing a URI or hyperlink to a resource that includes
+ the required information.
+ .
+ 3. If requested by the Licensor, You must remove any of the
+ information required by Section 3(a)(1)(A) to the extent reasonably
+ practicable.
+ .
+ b. ShareAlike.In addition to the conditions in Section 3(a), if You
+ Share Adapted Material You produce, the following conditions also
+ apply.
+ .
+ 1. The Adapter’s License You apply must be a Creative Commons license
+ with the same License Elements, this version or later, or a BY-SA
+ Compatible License.
+ .
+ 2. You must include the text of, or the URI or hyperlink to, the
+ Adapter's License You apply. You may satisfy this condition in any
+ reasonable manner based on the medium, means, and context in which You
+ Share Adapted Material.
+ .
+ 3. You may not offer or impose any additional or different terms or
+ conditions on, or apply any Effective Technological Measures to,
+ Adapted Material that restrict exercise of the rights granted under
+ the Adapter's License You apply.
+ .
+ Section 4 – Sui Generis Database Rights.
+ .
+ Where the Licensed Rights include Sui Generis Database Rights that
+ apply to Your use of the Licensed Material:
+ .
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right to
+ extract, reuse, reproduce, and Share all or a substantial portion of
+ the contents of the database;
+ .
+ b. if You include all or a substantial portion of the database
+ contents in a database in which You have Sui Generis Database Rights,
+ then the database in which You have Sui Generis Database Rights (but
+ not its individual contents) is Adapted Material, including for
+ purposes of Section 3(b); and
+ .
+ c. You must comply with the conditions in Section 3(a) if You Share
+ all or a substantial portion of the contents of the database. For the
+ avoidance of doubt, this Section 4 supplements and does not replace
+ Your obligations under this Public License where the Licensed Rights
+ include other Copyright and Similar Rights.
+ .
+ Section 5 – Disclaimer of Warranties and Limitation of Liability.
+ .
+ a. Unless otherwise separately undertaken by the Licensor, to the
+ extent possible, the Licensor offers the Licensed Material as-is and
+ as-available, and makes no representations or warranties of any kind
+ concerning the Licensed Material, whether express, implied, statutory,
+ or other. This includes, without limitation, warranties of title,
+ merchantability, fitness for a particular purpose, non-infringement,
+ absence of latent or other defects, accuracy, or the presence or
+ absence of errors, whether or not known or discoverable. Where
+ disclaimers of warranties are not allowed in full or in part, this
+ disclaimer may not apply to You.
+ .
+ b. To the extent possible, in no event will the Licensor be liable to
+ You on any legal theory (including, without limitation, negligence) or
+ otherwise for any direct, special, indirect, incidental,
+ consequential, punitive, exemplary, or other losses, costs, expenses,
+ or damages arising out of this Public License or use of the Licensed
+ Material, even if the Licensor has been advised of the possibility of
+ such losses, costs, expenses, or damages. Where a limitation of
+ liability is not allowed in full or in part, this limitation may not
+ apply to You.
+ .
+ c. The disclaimer of warranties and limitation of liability provided
+ above shall be interpreted in a manner that, to the extent possible,
+ most closely approximates an absolute disclaimer and waiver of all
+ liability.
+ .
+ Section 6 – Term and Termination.
+ .
+ a. This Public License applies for the term of the Copyright and
+ Similar Rights licensed here. However, if You fail to comply with this
+ Public License, then Your rights under this Public License terminate
+ automatically.
+ .
+ b. Where Your right to use the Licensed Material has terminated under
+ Section 6(a), it reinstates:
+ .
+ 1. automatically as of the date the violation is cured, provided it is
+ cured within 30 days of Your discovery of the violation; or
+ .
+ 2. upon express reinstatement by the Licensor.
+ .
+ c. For the avoidance of doubt, this Section 6(b) does not affect any
+ right the Licensor may have to seek remedies for Your violations of
+ this Public License.
+ .
+ d. For the avoidance of doubt, the Licensor may also offer the
+ Licensed Material under separate terms or conditions or stop
+ distributing the Licensed Material at any time; however, doing so will
+ not terminate this Public License.
+ .
+ e. Sections 1, 5, 6, 7, and 8 survive termination of this Public
+ License.
+ .
+ Section 7 – Other Terms and Conditions.
+ .
+ a. The Licensor shall not be bound by any additional or different
+ terms or conditions communicated by You unless expressly agreed.
+ .
+ b. Any arrangements, understandings, or agreements regarding the
+ Licensed Material not stated herein are separate from and independent
+ of the terms and conditions of this Public License.
+ .
+ Section 8 – Interpretation.
+ .
+ a. For the avoidance of doubt, this Public License does not, and shall
+ not be interpreted to, reduce, limit, restrict, or impose conditions
+ on any use of the Licensed Material that could lawfully be made
+ without permission under this Public License.
+ .
+ b. To the extent possible, if any provision of this Public License is
+ deemed unenforceable, it shall be automatically reformed to the
+ minimum extent necessary to make it enforceable. If the provision
+ cannot be reformed, it shall be severed from this Public License
+ without affecting the enforceability of the remaining terms and
+ conditions.
+ .
+ c. No term or condition of this Public License will be waived and no
+ failure to comply consented to unless expressly agreed to by the
+ Licensor.
+ .
+ d. Nothing in this Public License constitutes or may be interpreted as
+ a limitation upon, or waiver of, any privileges and immunities that
+ apply to the Licensor or You, including from the legal processes of
+ any jurisdiction or authority.
+ .
+ Creative Commons is not a party to its public
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
+ its public licenses to material it publishes and in those instances
+ will be considered the “Licensor.†Except for the limited purpose of
+ indicating that material is shared under a Creative Commons public
+ license or as otherwise permitted by the Creative Commons policies
+ published at creativecommons.org/policies, Creative Commons does not
+ authorize the use of the trademark “Creative Commons†or any other
+ trademark or logo of Creative Commons without its prior written
+ consent including, without limitation, in connection with any
+ unauthorized modifications to any of its public licenses or any other
+ arrangements, understandings, or agreements concerning use of licensed
+ material. For the avoidance of doubt, this paragraph does not form
+ part of the public licenses. Creative Commons may be contacted at
+ creativecommons.org.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/fill-values
new file mode 100644
index 0000000..7f24052
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-incomplete-creative-commons-unrel
+Description: Test for incomplete Creative Commons licenses (good)
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/desc
new file mode 100644
index 0000000..7d96eef
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: source-copyright-incomplete-creative-commons-unrel
+Test-Against:
+ incomplete-creative-commons-license
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints
new file mode 100644
index 0000000..3669c43
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/hints
@@ -0,0 +1,5 @@
+source-copyright-incomplete-creative-commons-unrel (source): update-debian-copyright 2017 vs CHANGELOG-YEAR [debian/copyright:23]
+source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern flycheck.svg [debian/copyright:18]
+source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern doc/*.py [debian/copyright:14]
+source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern doc/* [debian/copyright:10]
+source-copyright-incomplete-creative-commons-unrel (source): superfluous-file-pattern * [debian/copyright:5]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/post-test
new file mode 100644
index 0000000..279aa2e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons-unrel/eval/post-test
@@ -0,0 +1,3 @@
+/: unused-file-paragraph-in-dep5-copyright .*/ d
+/: wildcard-matches-nothing-in-dep5-copyright .*/ d
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/debian/copyright
new file mode 100644
index 0000000..641bb23
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/debian/copyright
@@ -0,0 +1,79 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: opensesame
+Upstream-Contact: Sebastiaan Mathot <s.mathot@cogsci.nl>
+Source: http://www.cogsci.nl/software/opensesame
+
+Files: *
+Copyright: 2010-2012, Sebastiaan Mathot
+License: GPL-3
+ On Debian systems, the full text of the GNU General Public License version 3
+ can be found in the file `/usr/share/common-licenses/GPL-3'.
+
+Files: resources/*.ttf
+Copyright: 2006, 2007, 2008, 2009, 2010 Google Corp.
+ Droid is a trademark of Google Corp.
+License: Apache-2.0
+ On Debian systems, the complete text of the Apache License Version 2.0
+ can be found in `/usr/share/common-licenses/Apache-2.0'.
+
+Files: sounds/*
+Copyright: 1996-2011, The K Desktop Environment project http://www.kde.org
+ Marc-Andre Lureau <marcandre.lureau@gmail.com>
+ Bastien Nocera <hadess@hadess.net>
+ Andreas Hyden <a.hyden@cyberpoint.se>
+ Seth Nickell <snickell@stanford.edu>
+ Ronald Bultje <rbultje@ronald.bitfreak.net>
+ Thomas Vander Stichele <thomas at apestaart dot org>
+ William Jon McCann <jmccann@redhat.com>
+License: GPL-2+
+ The full text of the GNU General Public License version 2 is available on
+ Debian systems in /usr/share/common-licenses/GPL-2.
+
+Files: resources/theme/default/os-custom-icons/*
+Copyright: 2010-2011, Matthieu James <matthieu.james@gmail.com>
+ 2012, Daniel Fore <Daniel.p.Fore@gmail.com>
+ 2012, Sebastiaan Mathot <s.mathot@cogsci.nl>
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: debian/*
+Copyright: 2010-2012, Sebastiaan Mathot <s.mathot@cogsci.nl>
+ 2011, Michael Hanke <mih@debian.org>
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/ts/it_IT.ts
+Copyright: 2012, Andrea Epifani <andreaepifani@gmail.com>
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/ts/fr_FR.ts
+Copyright: 2013, Romain Monfollet
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/ts/zh_CN.ts
+Copyright: 2013, Gabriel Chan
+ 2013, Jerry Li
+License: GPL-3
+ The full text of the GNU General Public License version 3 is available on
+ Debian systems in /usr/share/common-licenses/GPL-3.
+
+Files: resources/templates/eco_alt_template.opensesame.tar.gz
+Copyright: 2012, Francisco Javier Moreno-Martinez
+ 2012, Pedro R. Montoro
+ 2012, Sebastiaan Mathot <s.mathot@cogsci.nl>
+License: CC-BY-3.0
+ You are free:
+ to Share (to copy, distribute and transmit the work) and
+ to Remix (to adapt the work) under the following conditions:
+ .
+ Attribution — You must attribute the work in the manner specified by the
+ author or licensor (but not in any way that suggests that they endorse you
+ or your use of the work).
+ .
+ For more information, see http://creativecommons.org/licenses/by/3.0/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/fill-values
new file mode 100644
index 0000000..83a1c12
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-incomplete-creative-commons
+Description: Test for incomplete Creative Commons licenses
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/desc
new file mode 100644
index 0000000..58178db
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-incomplete-creative-commons
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints
new file mode 100644
index 0000000..2ffb3e6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/hints
@@ -0,0 +1,11 @@
+source-copyright-incomplete-creative-commons (source): update-debian-copyright 2012 vs CHANGELOG-YEAR [debian/copyright:41]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern sounds/* [debian/copyright:19]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/ts/zh_CN.ts [debian/copyright:59]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/ts/it_IT.ts [debian/copyright:47]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/ts/fr_FR.ts [debian/copyright:53]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/theme/default/os-custom-icons/* [debian/copyright:32]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/templates/eco_alt_template.opensesame.tar.gz [debian/copyright:66]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern resources/*.ttf [debian/copyright:12]
+source-copyright-incomplete-creative-commons (source): superfluous-file-pattern * [debian/copyright:6]
+source-copyright-incomplete-creative-commons (source): insecure-copyright-format-uri http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ [debian/copyright]
+source-copyright-incomplete-creative-commons (source): incomplete-creative-commons-license cc-by-3.0 [debian/copyright:70]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/post-test
new file mode 100644
index 0000000..daec1dd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-incomplete-creative-commons/eval/post-test
@@ -0,0 +1,4 @@
+/: dep5-copyright-license-name-not-unique .*/ d
+/: unused-file-paragraph-in-dep5-copyright .*/ d
+/: wildcard-matches-nothing-in-dep5-copyright .*/ d
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/debian/copyright
new file mode 100644
index 0000000..22d390a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/debian/copyright
@@ -0,0 +1,16 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2014, somebody1
+License: CC0-1.0
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tortor
+ dolor, laoreet et laoreet non, pretium in nunc. Sed dapibus quis lorem
+ quis gravida. Cras sed purus consequat, dictum purus nec, venenatis sem.
+ Nullam placerat et lacus at bibendum. Maecenas varius sapien ut aliquet
+ elementum. Vestibulum vel rutrum ligula, quis pellentesque velit. Duis
+ molestie velit eget aliquet sollicitudin. Nunc eget metus nec nibh
+ maximus iaculis in non urna. Cras maximus dui ac mauris maximus
+ porttitor.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/fill-values
new file mode 100644
index 0000000..7f31358
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/fill-values
@@ -0,0 +1,2 @@
+Testname: source-copyright-inconsistent-appstream-metadata-license
+Skeleton: upload-native
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/bad.xml b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/bad.xml
new file mode 100644
index 0000000..bb4f84c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/bad.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+ <id>org.gnupg.scdaemon</id>
+ <metadata_license>does-not-match-anything</metadata_license>
+ <name>scdaemon</name>
+ <summary>USB SmartCard Readers</summary>
+ <description>
+ <p>
+ GnuPG's scdaemon provides access to USB tokens and smartcard
+ readers that provide cryptographic functionality (e.g. use of
+ protected secret keys).
+ </p>
+ </description>
+ <provides>
+ <modalias>usb:v046Ap0005d*</modalias>
+ <modalias>usb:v0BF8p1006d*</modalias>
+ </provides>
+</component>
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/good.xml b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/good.xml
new file mode 100644
index 0000000..b316fd5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/build-spec/orig/good.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+ <id>org.gnupg.scdaemon</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>scdaemon</name>
+ <summary>USB SmartCard Readers</summary>
+ <description>
+ <p>
+ GnuPG's scdaemon provides access to USB tokens and smartcard
+ readers that provide cryptographic functionality (e.g. use of
+ protected secret keys).
+ </p>
+ </description>
+ <provides>
+ <modalias>usb:v046Ap0005d*</modalias>
+ <modalias>usb:v046Ap0010d*</modalias>
+ </provides>
+</component>
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/desc
new file mode 100644
index 0000000..da84972
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-inconsistent-appstream-metadata-license
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints
new file mode 100644
index 0000000..5471a72
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-inconsistent-appstream-metadata-license/eval/hints
@@ -0,0 +1 @@
+source-copyright-inconsistent-appstream-metadata-license (source): inconsistent-appstream-metadata-license bad.xml (does-not-match-anything != cc0-1.0) [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/debian/copyright
new file mode 100644
index 0000000..082beb1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/debian/copyright
@@ -0,0 +1,23 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: © 2011 J. Random Hacker <j.r.hacker@example.com>
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/fill-values
new file mode 100644
index 0000000..c7f18be
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-insecure-uri
+Description: Test for insecure Format: URIs
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/desc
new file mode 100644
index 0000000..7673493
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-insecure-uri
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints
new file mode 100644
index 0000000..be71ba9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-insecure-uri/eval/hints
@@ -0,0 +1 @@
+source-copyright-insecure-uri (source): insecure-copyright-format-uri http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/build-spec/fill-values
new file mode 100644
index 0000000..63a3f72
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: source-copyright-missing-non-free-explanation-unrel
+Description: Test for missing contrib/non-free explanations
+Section: contrib/doc
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/desc
new file mode 100644
index 0000000..1d6ed08
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: source-copyright-missing-non-free-explanation-unrel
+Test-Against:
+ missing-explanation-for-contrib-or-non-free-package
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation-unrel/eval/hints
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/debian/copyright
new file mode 100644
index 0000000..5c38963
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/debian/copyright
@@ -0,0 +1,23 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+
+Files: *
+Copyright: 2009, Russ Allbery <rra@debian.org>
+License: GPL-2+
+ This program is free software; you may 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, or (at your option)
+ any later version.
+ .
+ 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. See the GNU General Public License
+ for more details.
+ .
+ A copy of the GNU General Public License version 2 is available as
+ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+ or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+ You can also obtain it by writing to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/fill-values
new file mode 100644
index 0000000..0ebd510
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: source-copyright-missing-non-free-explanation
+Description: Test for missing contrib/non-free explanations
+Section: contrib/doc
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/desc
new file mode 100644
index 0000000..e9487f9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-missing-non-free-explanation
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints
new file mode 100644
index 0000000..4767345
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-non-free-explanation/eval/hints
@@ -0,0 +1 @@
+source-copyright-missing-non-free-explanation (source): missing-explanation-for-contrib-or-non-free-package [debian/copyright:1]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/debian/copyright
new file mode 100644
index 0000000..6a3aeb6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/debian/copyright
@@ -0,0 +1,24 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+Files-Excluded: dummy
+
+Files: *
+Copyright: 2009, Russ Allbery <rra@debian.org>
+License: GPL-2+
+ This program is free software; you may 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, or (at your option)
+ any later version.
+ .
+ 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. See the GNU General Public License
+ for more details.
+ .
+ A copy of the GNU General Public License version 2 is available as
+ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+ or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+ You can also obtain it by writing to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/fill-values
new file mode 100644
index 0000000..24f64b0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: source-copyright-missing-repack-explanation-unrel
+Skeleton: upload-non-native
+Version: 1+dfsg-1
+Description: Test for missing repack explanations (false-positive)
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/desc
new file mode 100644
index 0000000..1e95830
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: source-copyright-missing-repack-explanation-unrel
+Test-Against:
+ missing-explanation-for-repacked-upstream-tarball
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation-unrel/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/debian/copyright
new file mode 100644
index 0000000..5c38963
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/debian/copyright
@@ -0,0 +1,23 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+
+Files: *
+Copyright: 2009, Russ Allbery <rra@debian.org>
+License: GPL-2+
+ This program is free software; you may 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, or (at your option)
+ any later version.
+ .
+ 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. See the GNU General Public License
+ for more details.
+ .
+ A copy of the GNU General Public License version 2 is available as
+ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+ or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+ You can also obtain it by writing to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/fill-values
new file mode 100644
index 0000000..9137106
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: source-copyright-missing-repack-explanation
+Skeleton: upload-non-native
+Version: 1+dfsg-1
+Description: Test for missing repack explanations
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/desc
new file mode 100644
index 0000000..4721a46
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-missing-repack-explanation
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints
new file mode 100644
index 0000000..94889c1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-missing-repack-explanation/eval/hints
@@ -0,0 +1 @@
+source-copyright-missing-repack-explanation (source): missing-explanation-for-repacked-upstream-tarball [debian/copyright:1]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/debian/copyright
new file mode 100644
index 0000000..3fcbad9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+This is not a dep5 copyright file
+
+Copyright (c) 2013
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the “Softwareâ€), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED “AS ISâ€, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/fill-values
new file mode 100644
index 0000000..6d211ea
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-nodep5
+Description: Test for no dep5 source copyright
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/desc
new file mode 100644
index 0000000..9701b2b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-nodep5
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints
new file mode 100644
index 0000000..23dbe21
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-nodep5/eval/hints
@@ -0,0 +1 @@
+source-copyright-nodep5 (source): no-dep5-copyright [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/debian/copyright
new file mode 100644
index 0000000..f73439f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: Doohickey
+Maintainer: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/fill-values
new file mode 100644
index 0000000..b13e28f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-ood-uri
+Description: Test for out-of-date DEP 5-like URI
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/desc
new file mode 100644
index 0000000..030b769
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-ood-uri
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints
new file mode 100644
index 0000000..3907382
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-ood-uri/eval/hints
@@ -0,0 +1 @@
+source-copyright-ood-uri (source): out-of-date-copyright-format-uri http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/debian/copyright
new file mode 100644
index 0000000..31e3563
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/debian/copyright
@@ -0,0 +1,16 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2014, somebody1
+License: this | that
+
+Files: debian/*
+Copyright: 2014, somebody1
+License: this|that
+ this is a valid license short name
+
+License: this | that
+ should be "this or that"
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/fill-values
new file mode 100644
index 0000000..a5bfa60
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-pipe-as-or
+Description: Test for the pipe symbol being used as an "or"
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/orig/README b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/orig/README
new file mode 100644
index 0000000..1a9d2ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/build-spec/orig/README
@@ -0,0 +1 @@
+trivial
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/desc
new file mode 100644
index 0000000..2ddc75d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-pipe-as-or
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints
new file mode 100644
index 0000000..7ecd5b0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/hints
@@ -0,0 +1,5 @@
+source-copyright-pipe-as-or (source): update-debian-copyright 2014 vs CHANGELOG-YEAR [debian/copyright:11]
+source-copyright-pipe-as-or (source): space-in-std-shortname-in-dep5-copyright this | that [debian/copyright:8]
+source-copyright-pipe-as-or (source): space-in-std-shortname-in-dep5-copyright this | that [debian/copyright:15]
+source-copyright-pipe-as-or (source): pipe-symbol-used-as-license-disjunction this | that [debian/copyright:8]
+source-copyright-pipe-as-or (source): pipe-symbol-used-as-license-disjunction this | that [debian/copyright:15]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-pipe-as-or/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/copyright
new file mode 100644
index 0000000..82dfe2c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Files-Excluded: exclude-this
+ exclude-dir
+ */exclude-dir
+ exclude-dir-2/*
+ .*
+ */js/jquery.js
+ lib/*
+ debian/*
+ debian/copyright
+ recreated-file
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/0001-recreate-file.diff b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/0001-recreate-file.diff
new file mode 100644
index 0000000..a40e2b1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/0001-recreate-file.diff
@@ -0,0 +1,6 @@
+Re-create a file.
+
+--- /dev/null
++++ debian/recreated-file
+@@ -0,0 +1 @@
++This file was created via a patch system and should be ignored.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/series b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/series
new file mode 100644
index 0000000..ab898ca
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/debian/patches/series
@@ -0,0 +1 @@
+0001-recreate-file.diff
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/fill-values
new file mode 100644
index 0000000..6cef61f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: source-copyright-source-files-excluded
+Skeleton: upload-non-native
+Version: 1.0+dfsg-1
+Description: Test for files listed in Files-Excluded
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/.matches b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/.matches
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/.matches
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir-2/filename b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir-2/filename
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir-2/filename
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename-2 b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename-2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-dir/filename-2
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-this b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-this
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/exclude-this
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/foolib/false-positive b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/foolib/false-positive
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/build-spec/orig/foolib/false-positive
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/desc
new file mode 100644
index 0000000..2605614
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/desc
@@ -0,0 +1,4 @@
+Testname: source-copyright-source-files-excluded
+Test-Against:
+ files-excluded-without-copyright-format-1.0
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints
new file mode 100644
index 0000000..2f9d869
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-source-files-excluded/eval/hints
@@ -0,0 +1,5 @@
+source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-this [debian/copyright:2]
+source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-dir/filename-2 [debian/copyright:2]
+source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-dir/filename [debian/copyright:2]
+source-copyright-source-files-excluded (source): source-ships-excluded-file exclude-dir-2/filename [debian/copyright:2]
+source-copyright-source-files-excluded (source): source-ships-excluded-file .matches [debian/copyright:2]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/copyright
new file mode 100644
index 0000000..8ff4ab0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/copyright
@@ -0,0 +1,56 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2014, somebody1
+License: Fixme
+ Fixme-license text
+
+
+Files: debian/*
+Copyright: 2015, somebody2
+License: unknown
+ Fixme
+
+Files: debian/a
+Copyright: 2016, somebody2
+License: unknow
+ Fixme
+
+Files: debian/b
+Copyright: 2014, somebody2
+License: todo
+ Fixme
+
+Files: debian/c
+comment: some spacing
+Copyright: 2017, somebody2
+License: -
+ Fixme
+
+Files: debian/d
+comment: some spacing
+Copyright: 2014, somebody2
+License: -
+ Fixme
+
+Files: debian/e
+Comment: too many false positive with space
+Copyright: 2014, somebody2
+License: undefined license
+ Fixme
+
+Files: debian/f
+comment: some spacing
+Copyright: 2014, somebody2
+License: undefined
+ Fixme
+
+Files: debian/g
+comment: false positive
+Copyright: 2014, somebody2
+License: common public license - v 1.0
+ Fixme
+
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/plus+file b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/plus+file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/debian/plus+file
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/fill-values
new file mode 100644
index 0000000..9588707
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-undefined
+Description: Test for fixme/todo/unknown
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/desc
new file mode 100644
index 0000000..f0c691e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-undefined
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints
new file mode 100644
index 0000000..eb13a9f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/hints
@@ -0,0 +1,19 @@
+source-copyright-undefined (source): update-debian-copyright 2017 vs CHANGELOG-YEAR [debian/copyright:29]
+source-copyright-undefined (source): superfluous-file-pattern debian/g [debian/copyright:51]
+source-copyright-undefined (source): superfluous-file-pattern debian/f [debian/copyright:45]
+source-copyright-undefined (source): superfluous-file-pattern debian/e [debian/copyright:39]
+source-copyright-undefined (source): superfluous-file-pattern debian/d [debian/copyright:33]
+source-copyright-undefined (source): superfluous-file-pattern debian/c [debian/copyright:27]
+source-copyright-undefined (source): superfluous-file-pattern debian/b [debian/copyright:22]
+source-copyright-undefined (source): superfluous-file-pattern debian/a [debian/copyright:17]
+source-copyright-undefined (source): superfluous-file-pattern * [debian/copyright:6]
+source-copyright-undefined (source): space-in-std-shortname-in-dep5-copyright undefined license [debian/copyright:42]
+source-copyright-undefined (source): space-in-std-shortname-in-dep5-copyright common public license - v 1.0 [debian/copyright:54]
+source-copyright-undefined (source): license-problem-undefined-license unknown [debian/copyright:14]
+source-copyright-undefined (source): license-problem-undefined-license unknow [debian/copyright:19]
+source-copyright-undefined (source): license-problem-undefined-license undefined license [debian/copyright:42]
+source-copyright-undefined (source): license-problem-undefined-license undefined [debian/copyright:48]
+source-copyright-undefined (source): license-problem-undefined-license todo [debian/copyright:24]
+source-copyright-undefined (source): license-problem-undefined-license fixme [debian/copyright:8]
+source-copyright-undefined (source): license-problem-undefined-license - [debian/copyright:36]
+source-copyright-undefined (source): license-problem-undefined-license - [debian/copyright:30]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-undefined/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/debian/copyright
new file mode 100644
index 0000000..1f88946
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/debian/copyright
@@ -0,0 +1,36 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+License: some-license
+ some license
+
+Files: *
+Copyright: 2014, somebody1
+License: some-license
+
+Files: code
+Copyright: none
+License: public-domain
+ this work is PD because I say so
+
+Files: code2
+Copyright: none
+License: public-domain
+ this work is also in the public domain
+
+Files: debian/*
+Copyright: 2014, somebody1
+License: other-license
+ this is a valid license short name
+
+Files: NEWS
+Copyright: 2014, somebody1
+License: other-license
+ this is a valid license short name 3
+
+License: other-license
+ other-license
+
+License: other-license
+ other-license 2
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/fill-values
new file mode 100644
index 0000000..f730d09
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-unique
+Description: Test if standalone paragraph name are unique
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/NEWS b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/NEWS
new file mode 100644
index 0000000..8a7f3d9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/NEWS
@@ -0,0 +1 @@
+no news \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/README b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/README
new file mode 100644
index 0000000..1a9d2ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/README
@@ -0,0 +1 @@
+trivial
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code
new file mode 100644
index 0000000..1e2b25a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code
@@ -0,0 +1 @@
+simple 3rd party code
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code2 b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code2
new file mode 100644
index 0000000..31d7114
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/build-spec/orig/code2
@@ -0,0 +1 @@
+another simple 3rd party code
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/desc
new file mode 100644
index 0000000..68f492a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-unique
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/hints
new file mode 100644
index 0000000..9474fab
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/hints
@@ -0,0 +1,6 @@
+source-copyright-unique (source): update-debian-copyright 2014 vs CHANGELOG-YEAR [debian/copyright:23]
+source-copyright-unique (source): unused-license-paragraph-in-dep5-copyright other-license [debian/copyright:35]
+source-copyright-unique (source): unused-license-paragraph-in-dep5-copyright other-license [debian/copyright:32]
+source-copyright-unique (source): dep5-file-paragraph-references-header-paragraph some-license [debian/copyright:8]
+source-copyright-unique (source): dep5-copyright-license-name-not-unique other-license [debian/copyright:35]
+source-copyright-unique (source): dep5-copyright-license-name-not-unique other-license [debian/copyright:32]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unique/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/debian/copyright
new file mode 100644
index 0000000..63e0f4b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://bzr.debian.org/loggerhead/dep/dep5/trunk/annotate/110/dep5.mdwn
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/fill-values
new file mode 100644
index 0000000..a8c3d18
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-unknown-uri
+Description: Test for unknown DEP 5-like URI
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/desc
new file mode 100644
index 0000000..19eb061
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-unknown-uri
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints
new file mode 100644
index 0000000..eb7e817
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unknown-uri/eval/hints
@@ -0,0 +1 @@
+source-copyright-unknown-uri (source): unknown-copyright-format-uri http://bzr.debian.org/loggerhead/dep/dep5/trunk/annotate/110/dep5.mdwn [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/debian/copyright
new file mode 100644
index 0000000..cf66541
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/debian/copyright
@@ -0,0 +1,22 @@
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/fill-values
new file mode 100644
index 0000000..d6c7346
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-unversioned-uri
+Description: Test for unversioned DEP 5-like URI
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/desc
new file mode 100644
index 0000000..0ac0fed
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-unversioned-uri
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints
new file mode 100644
index 0000000..24233ca
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-unversioned-uri/eval/hints
@@ -0,0 +1 @@
+source-copyright-unversioned-uri (source): unversioned-copyright-format-uri http://dep.debian.net/deps/dep5/ [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/debian/copyright
new file mode 100644
index 0000000..4b8947c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Name: Doohickey
+Upstream-Maintainer: J. Random Hacker <j.r.hacker@example.com>
+Upstream-Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2011 J. Random Hacker <j.r.hacker@example.com>
+License: GPL-2
+ This package 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; version 2 dated June, 1991.
+ .
+ This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the full text of the GNU General Public License version 2
+ can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/fill-values
new file mode 100644
index 0000000..c25663d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-wiki-uri
+Description: Test for wiki.debian.org DEP 5-like URI
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/desc
new file mode 100644
index 0000000..62b154c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-wiki-uri
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints
new file mode 100644
index 0000000..11c2375
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wiki-uri/eval/hints
@@ -0,0 +1 @@
+source-copyright-wiki-uri (source): wiki-copyright-format-uri http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/debian/copyright
new file mode 100644
index 0000000..e9828d4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/debian/copyright
@@ -0,0 +1,43 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: file?with?commas
+ deb*
+Copyright: 2014, somebody1
+Comment: this paragraph is superfluous because all files are matched
+ by the following paragraphs
+License: mylicense
+ Fixme
+
+Files: i-do-not-exist
+Copyright: 2014, somebody1
+License: mylicense-1
+ Fixme
+
+Files: invalid-escape\n
+Copyright: 2014, somebody1
+License: mylicense-2
+ Fixme
+
+Files: debian/*
+Copyright: 2014, somebody1
+License: mylicense-3
+ Fixme
+
+Files:
+ file,with,commas
+Copyright: 2014, somebody1
+Comment: this paragraph starts with a newline and ends with a space
+License: mylicense-4
+ Fixme
+
+Files: rare-filenames/01-file-with-(something-in-parenthesis).png
+ rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png
+ rare-filenames/03-even-]-is-not-safe.png
+ rare-filenames/04-Perhaps-even-|-will-cause-problems.png
+ rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png
+Copyright: 2014, somebody1
+License: mylicense-5
+ Fixme
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/fill-values
new file mode 100644
index 0000000..4861b6c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-wildcard-matching
+Description: Test whether the Files wildcards match all files in the source
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING
new file mode 100644
index 0000000..421376d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING
@@ -0,0 +1 @@
+dummy
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING.CC-BY-SA-3.0 b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING.CC-BY-SA-3.0
new file mode 100644
index 0000000..421376d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/COPYING.CC-BY-SA-3.0
@@ -0,0 +1 @@
+dummy
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/LICENSE b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/LICENSE
new file mode 100644
index 0000000..421376d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/LICENSE
@@ -0,0 +1 @@
+dummy
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/file,with,commas b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/file,with,commas
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/file,with,commas
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/i-have-no-copyright-information b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/i-have-no-copyright-information
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/i-have-no-copyright-information
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/01-file-with-(something-in-parenthesis).png b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/01-file-with-(something-in-parenthesis).png
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/01-file-with-(something-in-parenthesis).png
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/02-or-perhaps-only-one-{-which-causes-a-compile-failure.png
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/03-even-]-is-not-safe.png b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/03-even-]-is-not-safe.png
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/03-even-]-is-not-safe.png
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/04-Perhaps-even-|-will-cause-problems.png b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/04-Perhaps-even-|-will-cause-problems.png
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/04-Perhaps-even-|-will-cause-problems.png
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/build-spec/orig/rare-filenames/05-Lets-not-forget-^-and-$-for-added-fun.png
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/desc b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/desc
new file mode 100644
index 0000000..660d288
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-wildcard-matching
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints
new file mode 100644
index 0000000..2fc8b34
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/hints
@@ -0,0 +1,7 @@
+source-copyright-wildcard-matching (source): update-debian-copyright 2014 vs CHANGELOG-YEAR [debian/copyright:25]
+source-copyright-wildcard-matching (source): superfluous-file-pattern invalid-escape\n [debian/copyright:19]
+source-copyright-wildcard-matching (source): superfluous-file-pattern i-do-not-exist [debian/copyright:14]
+source-copyright-wildcard-matching (source): superfluous-file-pattern file?with?commas [debian/copyright:6]
+source-copyright-wildcard-matching (source): superfluous-file-pattern deb* [debian/copyright:6]
+source-copyright-wildcard-matching (source): invalid-escape-sequence-in-dep5-copyright \n [debian/copyright:19]
+source-copyright-wildcard-matching (source): file-without-copyright-information i-have-no-copyright-information [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/post-test b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/source-copyright-wildcard-matching/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2d380f5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+ * This line has a speling error.
+ - This line has the same speling error, but we should only
+ get one tag for it.
+ * Corrected spelling: abov -> above.
+ * Corrected typo: abov -> above.
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/copyright
new file mode 100644
index 0000000..30cbe5c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+This duplicate duplicate word should not trigger. (re. #897402)
+
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+Insofar as this is copyrightable, it is:
+
+ Copyright 2010 Russ Allbery <rra@debian.org>
+
+This text should not generate a spelling error for "ment":
+
+ computer software documentation," as such terms are used in
+ 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern-
+ ment only as a commercial end item. Consistent with 48 C.F.R.
+ 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995),
+
+But deafult is still a spelling error.
+
+This text should not generate a spelling error for the duplicate "a" (re. #844166)
+
+ following Attribution Information: (a) a copyright notice including the name
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/doc-base
new file mode 100644
index 0000000..3839a9b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/doc-base
@@ -0,0 +1,9 @@
+Document: spelling-general
+Title: Check for debian doc-base spelling errors
+Author: Russ Allbery
+Abstract: This control file exercises, picky, speling error checks for
+ Debian doc-base files, such as meta-package.
+Section: Programming
+
+Format: text
+Files: /usr/share/doc/spelling-general/copyright
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/add-readme
new file mode 100644
index 0000000..b1647ba
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/add-readme
@@ -0,0 +1,8 @@
+This is a deliberate speling error. duplicate
+
+duplicate
+
+--- upstream.orig/README
++++ upstream/README
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/nonrel
new file mode 100644
index 0000000..48e7740
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/nonrel
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; description mentions typo)
+
+--- upstream.orig/nonrel
++++ upstream/nonrel
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..0bfb03d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/series
@@ -0,0 +1,3 @@
+add-readme
+spelling
+nonrel
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/spelling
new file mode 100644
index 0000000..29b9cfd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/debian/patches/spelling
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; filename match)
+
+--- upstream.orig/spelling
++++ upstream/spelling
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/fill-values
new file mode 100644
index 0000000..1c8c790
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: spelling-general
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: General checks for spelling errors
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/eval/desc b/t/recipes/checks/debian/copyright/dep5/spelling-general/eval/desc
new file mode 100644
index 0000000..bb19368
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: spelling-general
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/spelling-general/eval/hints b/t/recipes/checks/debian/copyright/dep5/spelling-general/eval/hints
new file mode 100644
index 0000000..6ec43c5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/spelling-general/eval/hints
@@ -0,0 +1 @@
+spelling-general (source): no-dep5-copyright [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/debian/copyright
new file mode 100644
index 0000000..b6f6c00
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/debian/copyright
@@ -0,0 +1,35 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Lintian
+Upstream-Contact: <debian-lint-maint@lists.debian.org>
+Source: http://lintian.debian.org
+Comment: This is part of the testsuite of lintian.
+ See the file debian/copyright
+ in the lintian source directory for more details.
+
+Files: *
+Copyright:
+ 2008 Frank Lichtenheld <djpig@debian.org>
+ 2009 Russ Allbery <rra@debian.org>
+ 2018 Felix Lechner <felix.lechner@lease-up.com>
+License: GPL-2+
+ This program is free software; you may 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, or (at your option)
+ any later version.
+ .
+ TAB FOLLOWS.
+ .
+ PARAGRAPH INDENTED WITH TAB.
+ .
+ TAB PRECEDES.
+ .
+ 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. See the GNU General Public License
+ for more details.
+ .
+ A copy of the GNU General Public License version 2 is available as
+ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux distribution
+ or at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
+ You can also obtain it by writing to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
diff --git a/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/fill-values
new file mode 100644
index 0000000..c815b61
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: tab-in-license-text
+Description: Test for disallowed tab character in DEP-5 long license text
diff --git a/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/desc b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/desc
new file mode 100644
index 0000000..be68783
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/desc
@@ -0,0 +1,2 @@
+Testname: tab-in-license-text
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/hints b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/hints
new file mode 100644
index 0000000..b3655d2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/tab-in-license-text/eval/hints
@@ -0,0 +1 @@
+tab-in-license-text (source): tab-in-license-text [debian/copyright:14]
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/rules
new file mode 100644
index 0000000..1ecb975
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+DESTDIR = debian/$(shell dh_listpackages)
+APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/
+UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/
+
+%:
+ dh $@
+
+override_dh_install:
+ dh_install
+ install -m 0644 debian/udev-rules.metadata.xml $(APPSYNC_DIR)
+ ln -s dangling $(UDEV_DIR)/60-dangling-symlink.rules
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.dirs b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.dirs
new file mode 100644
index 0000000..d0cd146
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.dirs
@@ -0,0 +1,2 @@
+lib/udev/rules.d
+usr/share/metainfo
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.metadata.xml b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.metadata.xml
new file mode 100644
index 0000000..2564e98
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+ <id>udev-rules</id>
+ <metadata_license>MIT</metadata_license>
+ <name>lintian udev-rules test</name>
+ <summary>Test udev related checks in lintian</summary>
+ <description>
+ <p>
+ 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.
+ </p>
+ </description>
+ <provides>
+ <modalias>usb:v0000p0001d*</modalias>
+ <modalias>usb:v0000p0002d*</modalias>
+ <modalias>usb:v0000p0003d*</modalias>
+ <modalias>usb:v0000p0004d*</modalias>
+ <modalias>usb:v0000p000Ad*</modalias>
+ </provides>
+</component>
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.udev b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.udev
new file mode 100644
index 0000000..e35482d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/debian/udev-rules.udev
@@ -0,0 +1,25 @@
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \
+ MODE="0666"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \
+ MODE="0660", GROUP="plugdev"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \
+ TAG+="uaccess"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \
+ MODE="0660", GROUP="plugdev", TAG+="uaccess"
+
+ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0005", \
+ MODE="0660", GROUP="plugdev", TAG+="uaccess"
+
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \
+ ID_TEST_DEVICE="1"
+
+SUBSYSTEM!="usb", GOTO="target"
+ENV{DEVTYPE}!="usb_device", GOTO="target"
+ATTR{idVendor}=="0000", ATTR{idProduct}=="0000", RUN+="missing-subsystem-false-positive"
+LABEL="target"
+
+# Ensure we trigger this one after a GOTO
+ATTR{idVendor}=="0000", ATTR{idProduct}=="0000", RUN+="missing-subsystem"
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/fill-values
new file mode 100644
index 0000000..6463c54
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: udev-rules
+Description: Check udev rules for mistakes
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/eval/desc b/t/recipes/checks/debian/copyright/dep5/udev-rules/eval/desc
new file mode 100644
index 0000000..3d6a92e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/eval/desc
@@ -0,0 +1,2 @@
+Testname: udev-rules
+Check: debian/copyright/dep5
diff --git a/t/recipes/checks/debian/copyright/dep5/udev-rules/eval/hints b/t/recipes/checks/debian/copyright/dep5/udev-rules/eval/hints
new file mode 100644
index 0000000..291b20d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/udev-rules/eval/hints
@@ -0,0 +1 @@
+udev-rules (source): inconsistent-appstream-metadata-license debian/udev-rules.metadata.xml (mit != gpl-2+) [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/copyright
new file mode 100644
index 0000000..4fd9937
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+# taken from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905747#5
+# but split up for each of the two conditions
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: *
+Copyright: (C) 2018 Niels Thykier
+License: License1
+
+Files: debian/patches/*
+Copyright: (C) 2019 Niels Thykier
+License: License1
+
+Files: debian/*
+Copyright: (C) 2018 Niels Thykier
+License: License2
+
+License: License1
+ Please call the author for this license.
+
+License: License2
+ Please call the author for this license.
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/patches/a.patch b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/patches/a.patch
new file mode 100644
index 0000000..294a68c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/debian/patches/a.patch
@@ -0,0 +1 @@
+A PATCH
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/fill-values
new file mode 100644
index 0000000..79c5734
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: wildcard-out-of-order
+Description: Wildcards not ordered by depth in the directory tree
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/orig/a-file b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/orig/a-file
new file mode 100644
index 0000000..fadb157
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/build-spec/orig/a-file
@@ -0,0 +1 @@
+A FILE
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/desc b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/desc
new file mode 100644
index 0000000..ffd1a6d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/desc
@@ -0,0 +1,3 @@
+Testname: wildcard-out-of-order
+Check: debian/copyright/dep5
+See-Also: Bug#905747
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints
new file mode 100644
index 0000000..e2ec0eb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/hints
@@ -0,0 +1,3 @@
+wildcard-out-of-order (source): update-debian-copyright 2019 vs CHANGELOG-YEAR [debian/copyright:10]
+wildcard-out-of-order (source): superfluous-file-pattern debian/patches/* [debian/copyright:9]
+wildcard-out-of-order (source): globbing-patterns-out-of-order debian/patches/* debian/* debian/patches/a.patch [debian/copyright:13]
diff --git a/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/post-test b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/post-test
new file mode 100644
index 0000000..feeacfc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/dep5/wildcard-out-of-order/eval/post-test
@@ -0,0 +1 @@
+s/vs [0-9]+/vs CHANGELOG-YEAR/
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/README.Debian b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/README.Debian
new file mode 100644
index 0000000..69112e6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/README.Debian
@@ -0,0 +1,6 @@
+generic-dh-make-2008 for Debian
+-------------------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8d16a3d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/changelog.in
@@ -0,0 +1,5 @@
+generic-dh-make-2008 ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/compat.in b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/control.in
new file mode 100644
index 0000000..a668392
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/control.in
@@ -0,0 +1,13 @@
+Source: generic-dh-make-2008
+Section: unknown
+Priority: optional
+Maintainer: Russ Allbery <rra@debian.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.7.3
+Homepage: <insert the upstream URL, if relevant>
+
+Package: generic-dh-make-2008
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/copyright
new file mode 100644
index 0000000..31b796a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Russ Allbery <rra@debian.org> on
+Mon, 29 Dec 2008 17:33:59 -0800.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+ <put author's name and email here>
+ <likewise for another author>
+
+Copyright:
+
+ <Copyright (C) YYYY Name OfAuthor>
+ <likewise for another author>
+
+License:
+
+ <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2008, Russ Allbery <rra@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/cron.d.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/cron.d.ex
new file mode 100644
index 0000000..d00b7d0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/cron.d.ex
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the generic-dh-make-2008 package
+#
+0 4 * * * root [ -x /usr/bin/generic-dh-make-2008_maintenance ] && /usr/bin/generic-dh-make-2008_maintenance
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/dirs b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/docs b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-install.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
new file mode 100644
index 0000000..393594b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/generic-dh-make-2008
+
+# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+# SITEFLAG="-no-site-file"
+#else
+# SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
new file mode 100644
index 0000000..c48d194
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/generic-dh-make-2008
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/generic-dh-make-2008.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
new file mode 100644
index 0000000..b51657a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50generic-dh-make-2008.el
+;; for the Debian generic-dh-make-2008 package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
+
+;; The generic-dh-make-2008 package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...). The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+ (symbol-name flavor)
+ "/site-lisp/generic-dh-make-2008")))
+;; If package-dir does not exist, the generic-dh-make-2008 package must have
+;; removed but not purged, and we should skip the setup.
+ (when (file-directory-p package-dir)
+ (setq load-path (cons package-dir load-path))
+ (autoload 'generic-dh-make-2008-mode "generic-dh-make-2008-mode"
+ "Major mode for editing generic-dh-make-2008 files." t)
+ (add-to-list 'auto-mode-alist '("\\.generic-dh-make-2008$" . generic-dh-make-2008-mode))))
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
new file mode 100644
index 0000000..d770c6e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
@@ -0,0 +1,10 @@
+# Defaults for generic-dh-make-2008 initscript
+# sourced by /etc/init.d/generic-dh-make-2008
+# installed at /etc/default/generic-dh-make-2008 by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
new file mode 100644
index 0000000..3b966d1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
@@ -0,0 +1,22 @@
+Document: generic-dh-make-2008
+Title: Debian generic-dh-make-2008 Manual
+Author: <insert document author here>
+Abstract: This manual describes what generic-dh-make-2008 is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.ps.gz
+
+Format: text
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.text.gz
+
+Format: HTML
+Index: /usr/share/doc/generic-dh-make-2008/html/index.html
+Files: /usr/share/doc/generic-dh-make-2008/html/*.html
+
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.ex
new file mode 100644
index 0000000..b464594
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.ex
@@ -0,0 +1,157 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/generic-dh-make-2008
+NAME=generic-dh-make-2008
+DESC=generic-dh-make-2008
+
+test -x $DAEMON || exit 0
+
+LOGDIR=/var/log/generic-dh-make-2008
+PIDFILE=/var/run/$NAME.pid
+DODTIME=1 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+# Include generic-dh-make-2008 defaults if available
+if [ -f /etc/default/generic-dh-make-2008 ] ; then
+ . /etc/default/generic-dh-make-2008
+fi
+
+set -e
+
+running_pid()
+{
+ # Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected child?
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running()
+{
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ # Obtain the pid and check it against the binary name
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+force_stop() {
+# Forcefully kill the process
+ [ ! -f "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ kill -9 $pid
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ echo "Cannot kill $LABEL (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+ return 0
+}
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON -- $DAEMON_OPTS
+ if running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ force-stop)
+ echo -n "Forcefully stopping $DESC: "
+ force_stop
+ if ! running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+ force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart" except that it does nothing if the
+ # daemon isn't already running.
+ # check wether $DAEMON is running. If so, restart
+ start-stop-daemon --stop --test --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON \
+ && $0 restart \
+ || exit 0
+ ;;
+ restart)
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --stop --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON
+ [ -n "$DODTIME" ] && sleep $DODTIME
+ start-stop-daemon --start --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+ echo "$NAME."
+ ;;
+ status)
+ echo -n "$LABEL is "
+ if running ; then
+ echo "running"
+ else
+ echo " not running."
+ exit 1
+ fi
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
new file mode 100644
index 0000000..b3559de
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
@@ -0,0 +1,296 @@
+#!/bin/sh
+#
+# Example init.d script with LSB support.
+#
+# Please read this init.d carefully and modify the sections to
+# adjust it to the program you want to run.
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# This is free software; you may 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,
+# or (at your option) any later version.
+#
+# 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. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: generic-dh-make-2008
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Should-Start: $named
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: <Enter a short description of the sortware>
+# Description: <Enter a long description of the software>
+# <...>
+# <...>
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/generic-dh-make-2008 # Introduce the server's location here
+NAME=#PACKAGE # Introduce the short server's name here
+DESC=#PACKAGE # Introduce a short description here
+LOGDIR=/var/log/generic-dh-make-2008 # Log directory to use
+
+PIDFILE=/var/run/$NAME.pid
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/$NAME
+DAEMON_OPTS="" # Additional options given to the server
+
+DIETIME=10 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+#STARTTIME=2 # Time to wait for the server to start, in seconds
+ # If this value is set each time the server is
+ # started (on start or restart) the script will
+ # stall to try to determine if it is running
+ # If it is not set and the server takes time
+ # to setup a pid file the log message might
+ # be a false positive (says it did not start
+ # when it actually did)
+
+LOGFILE=$LOGDIR/$NAME.log # Server logfile
+#DAEMONUSER=generic-dh-make-2008 # Users to run the daemons as. If this value
+ # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+# Use this if you want the user to explicitly set 'RUN' in
+# /etc/default/
+#if [ "x$RUN" != "xyes" ] ; then
+# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
+# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
+# exit 1
+#fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected server
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running() {
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+start_server() {
+# Start the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ else
+# if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --chuid $DAEMONUSER \
+ --exec $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ fi
+ return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ killproc -p $PIDFILE $DAEMON
+ errcode=$?
+ else
+# if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --user $DAEMONUSER \
+ --exec $DAEMON
+ errcode=$?
+ fi
+
+ return $errcode
+}
+
+reload_server() {
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=pidofproc $PIDFILE # This is the daemon's pid
+ # Send a SIGHUP
+ kill -1 $pid
+ return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+ [ ! -e "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ sleep "$DIETIME"s
+ if running ; then
+ kill -9 $pid
+ sleep "$DIETIME"s
+ if running ; then
+ echo "Cannot kill $NAME (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+}
+
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_progress_msg "apparently already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server ; then
+ # NOTE: Some servers might die some time after they start,
+ # this code will detect this issue if STARTTIME is set
+ # to a reasonable value
+ [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
+ if running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # It is not running after we did start
+ log_end_msg 1
+ fi
+ else
+ # Either we could not start it
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ errcode=0
+ stop_server || errcode=$?
+ log_end_msg $errcode
+ else
+ # If it's not running don't do anything
+ log_progress_msg "apparently not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ force-stop)
+ # First try to stop gracefully the program
+ $0 stop
+ if running; then
+ # If it's still running try to kill it more forcefully
+ log_daemon_msg "Stopping (force) $DESC" "$NAME"
+ errcode=0
+ force_stop || errcode=$?
+ log_end_msg $errcode
+ fi
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ errcode=0
+ stop_server || errcode=$?
+ # Wait some sensible amount, some server need this
+ [ -n "$DIETIME" ] && sleep $DIETIME
+ start_server || errcode=$?
+ [ -n "$STARTTIME" ] && sleep $STARTTIME
+ running || errcode=$?
+ log_end_msg $errcode
+ ;;
+ status)
+
+ log_daemon_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_progress_msg "running"
+ log_end_msg 0
+ else
+ log_progress_msg "apparently not running"
+ log_end_msg 1
+ exit 1
+ fi
+ ;;
+ # Use this if the daemon cannot reload
+ reload)
+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+ log_warning_msg "cannot re-read the config file (use restart)."
+ ;;
+ # And this if it cann
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+ # if running ; then
+ # reload_server
+ # if ! running ; then
+ # Process died after we tried to reload
+ # log_progress_msg "died on reload"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ # else
+ # log_progress_msg "server is not running"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ #;;
+
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.1.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.1.ex
new file mode 100644
index 0000000..d67baa2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.1.ex
@@ -0,0 +1,59 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH GENERIC-DH-MAKE-2008 SECTION "December 29, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+generic-dh-make-2008 \- program to do something
+.SH SYNOPSIS
+.B generic-dh-make-2008
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B generic-dh-make-2008
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBgeneric-dh-make-2008\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+generic-dh-make-2008 was written by <upstream author>.
+.PP
+This manual page was written by Russ Allbery <rra@debian.org>,
+for the Debian project (but may be used by others).
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
new file mode 100644
index 0000000..26b3e0c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+ <!ENTITY dhsurname "<surname>SURNAME</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>December 29, 2008</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
+ <!ENTITY dhemail "<email>rra@debian.org</email>">
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhucpackage "<refentrytitle>GENERIC-DH-MAKE-2008</refentrytitle>">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2003</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+
+ <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+ <arg><option>--example <replaceable>that</replaceable></option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+
+ <para>This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the &gnu;
+ <application>Info</application> format; see below.</para>
+
+ <para><command>&dhpackage;</command> is a program that...</para>
+
+ </refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <para>These programs follow the usual &gnu; command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <application>Info</application> files.</para>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>-h</option>
+ <option>--help</option>
+ </term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option>
+ <option>--version</option>
+ </term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1>
+ <title>SEE ALSO</title>
+
+ <para>bar (1), baz (1).</para>
+
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the
+ <application>Info</application> system.</para>
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 any
+ later version published by the Free Software Foundation.
+ </para>
+ <para>
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+ </para>
+
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.xml.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
new file mode 100644
index 0000000..2d01c6f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
@@ -0,0 +1,291 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!--
+
+`xsltproc -''-nonet \
+ -''-param man.charmap.use.subset "0" \
+ -''-param make.year.ranges "1" \
+ -''-param make.single.year.ranges "1" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
+ manpage.xml'
+
+A manual page <package>.<section> will be generated. You may view the
+manual page with: nroff -man <package>.<section> | less'. A typical entry
+in a Makefile or Makefile.am is:
+
+DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
+
+manpage.1: manpage.xml
+ $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package. The XSL files are in
+docbook-xsl. A description of the parameters you can use can be found in the
+docbook-xsl-doc-* packages. Please remember that if you create the nroff
+version in one of the debian/rules file targets (such as build), you will need
+to include xsltproc and docbook-xsl in your Build-Depends control field.
+Alternatively use the xmlto command/package. That will also automatically
+pull in xsltproc and docbook-xsl.
+
+Notes for using docbook2x: docbook2x-man does not automatically create the
+AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
+<refsect1> ... </refsect1>.
+
+To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
+read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
+found in the docbook-xsl-doc-html package.
+
+Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
+
+General documentation about man-pages and man-page-formatting:
+man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
+
+-->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "FIRSTNAME">
+ <!ENTITY dhsurname "SURNAME">
+ <!-- dhusername could also be set to "&firstname; &surname;". -->
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhemail "rra@debian.org">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1) and
+ http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
+ <!ENTITY dhsection "SECTION">
+ <!-- TITLE should be something like "User commands" or similar (see
+ http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
+ <!ENTITY dhtitle "generic-dh-make-2008 User Manual">
+ <!ENTITY dhucpackage "GENERIC-DH-MAKE-2008">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+]>
+
+<refentry>
+ <refentryinfo>
+ <title>&dhtitle;</title>
+ <productname>&dhpackage;</productname>
+ <authorgroup>
+ <author>
+ <firstname>&dhfirstname;</firstname>
+ <surname>&dhsurname;</surname>
+ <contrib>Wrote this manpage for the Debian system.</contrib>
+ <address>
+ <email>&dhemail;</email>
+ </address>
+ </author>
+ </authorgroup>
+ <copyright>
+ <year>2007</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ <legalnotice>
+ <para>This manual page was written for the Debian system
+ (but may be used by others).</para>
+ <para>Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU General Public License,
+ Version 2 or (at your option) any later version published by
+ the Free Software Foundation.</para>
+ <para>On Debian systems, the complete text of the GNU General Public
+ License can be found in
+ <filename>/usr/share/common-licenses/GPL</filename>.</para>
+ </legalnotice>
+ </refentryinfo>
+ <refmeta>
+ <refentrytitle>&dhucpackage;</refentrytitle>
+ <manvolnum>&dhsection;</manvolnum>
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- These are several examples, how syntaxes could look -->
+ <arg choice="plain"><option>-e <replaceable>this</replaceable></option></arg>
+ <arg choice="opt"><option>--example=<parameter>that</parameter></option></arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <replaceable class="option">this</replaceable>
+ </arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <group choice="req">
+ <arg choice="plain"><replaceable>this</replaceable></arg>
+ <arg choice="plain"><replaceable>that</replaceable></arg>
+ </group>
+ </arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- Normally the help and version options make the programs stop
+ right after outputting the requested information. -->
+ <group choice="opt">
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-h</option></arg>
+ <arg choice="plain"><option>--help</option></arg>
+ </group>
+ </arg>
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-v</option></arg>
+ <arg choice="plain"><option>--version</option></arg>
+ </group>
+ </arg>
+ </group>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1 id="description">
+ <title>DESCRIPTION</title>
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+ <para>This manual page was written for the Debian distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the GNU <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> format; see below.</para>
+ <para><command>&dhpackage;</command> is a program that...</para>
+ </refsect1>
+ <refsect1 id="options">
+ <title>OPTIONS</title>
+ <para>The program follows the usual GNU command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> files.</para>
+ <variablelist>
+ <!-- Use the variablelist.term.separator and the
+ variablelist.term.break.after parameters to
+ control the term elements. -->
+ <varlistentry>
+ <term><option>-e <replaceable>this</replaceable></option></term>
+ <term><option>--example=<replaceable>that</replaceable></option></term>
+ <listitem>
+ <para>Does this and that.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h</option></term>
+ <term><option>--help</option></term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option></term>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="files">
+ <title>FILES</title>
+ <variablelist>
+ <varlistentry>
+ <term><filename>/etc/foo.conf</filename></term>
+ <listitem>
+ <para>The system-wide configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><filename>${HOME}/.foo.conf</filename></term>
+ <listitem>
+ <para>The per-user configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="environment">
+ <title>ENVIONMENT</title>
+ <variablelist>
+ <varlistentry>
+ <term><envar>FOO_CONF</envar></term>
+ <listitem>
+ <para>If used, the defined file is used as configuration
+ file (see also <xref linkend="files"/>).</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="diagnostics">
+ <title>DIAGNOSTICS</title>
+ <para>The following diagnostics may be issued
+ on <filename class="devicefile">stderr</filename>:</para>
+ <variablelist>
+ <varlistentry>
+ <term><errortext>Bad configuration file. Exiting.</errortext></term>
+ <listitem>
+ <para>The configuration file seems to contain a broken configuration
+ line. Use the <option>--verbose</option> option, to get more info.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para><command>&dhpackage;</command> provides some return codes, that can
+ be used in scripts:</para>
+ <segmentedlist>
+ <segtitle>Code</segtitle>
+ <segtitle>Diagnostic</segtitle>
+ <seglistitem>
+ <seg><errorcode>0</errorcode></seg>
+ <seg>Program exited successfully.</seg>
+ </seglistitem>
+ <seglistitem>
+ <seg><errorcode>1</errorcode></seg>
+ <seg>The configuration file seems to be broken.</seg>
+ </seglistitem>
+ </segmentedlist>
+ </refsect1>
+ <refsect1 id="bugs">
+ <!-- Or use this section to tell about upstream BTS. -->
+ <title>BUGS</title>
+ <para>The program is currently limited to only work
+ with the <package>foobar</package> library.</para>
+ <para>The upstreams <acronym>BTS</acronym> can be found
+ at <ulink url="http://bugzilla.foo.tld"/>.</para>
+ </refsect1>
+ <refsect1 id="see_also">
+ <title>SEE ALSO</title>
+ <!-- In alpabetical order. -->
+ <para><citerefentry>
+ <refentrytitle>bar</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>baz</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry></para>
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> system.</para>
+ </refsect1>
+</refentry>
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/menu.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/menu.ex
new file mode 100644
index 0000000..8a67e62
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/menu.ex
@@ -0,0 +1,2 @@
+?package(generic-dh-make-2008):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+ title="generic-dh-make-2008" command="/usr/bin/generic-dh-make-2008"
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postinst.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postinst.ex
new file mode 100644
index 0000000..b5f5ca7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postinst.ex
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postrm.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postrm.ex
new file mode 100644
index 0000000..1d8a18a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/postrm.ex
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/preinst.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/preinst.ex
new file mode 100644
index 0000000..3134ccf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/preinst.ex
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/prerm.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/prerm.ex
new file mode 100644
index 0000000..4e5dd3f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/prerm.ex
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/rules b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/rules
new file mode 100755
index 0000000..92aa2b1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/generic-dh-make-2008.sgml > generic-dh-make-2008.1
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/generic-dh-make-2008.
+ $(MAKE) DESTDIR=$(CURDIR)/debian/generic-dh-make-2008 install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/watch.ex b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/watch.ex
new file mode 100644
index 0000000..e62d18f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/debian/watch.ex
@@ -0,0 +1,23 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/generic-dh-make-2008/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to find new files on GooglePages
+# http://example.googlepages.com/foo.html generic-dh-make-2008-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/fill-values b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/fill-values
new file mode 100644
index 0000000..ef7a896
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/fill-values
@@ -0,0 +1,7 @@
+Testname: generic-dh-make-2008
+Skeleton: upload-builder-only
+Author: Russ Allbery <rra@debian.org>
+Package-Architecture: any
+Dh-Compat-Level: 7
+Description: Generic dh_make template generated in 2008
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/Makefile b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/Makefile
new file mode 100644
index 0000000..4f762d8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/Makefile
@@ -0,0 +1,4 @@
+# Stub Makefile that's just enough so that the default rules file doesn't
+# error out.
+
+clean install:
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/README b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/README
new file mode 100644
index 0000000..6a3c009
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/orig/README
@@ -0,0 +1,13 @@
+dh_make 0.46 test
+=================
+
+This is the results of running dh_make 0.46 on an upstream tarball
+containing only this file. It's a useful test for the various dh_make
+template and boilerplate tags, as well as many tags for ways of doing
+things dh_make used to promote but are now deprecated or old debhelper
+commands that are now deprecated.
+
+Please don't modify anything about the files in this package; instead, add
+new tags as needed when Lintian adds new checks. This test case is
+intended to continue to be a test of Lintian's handling of old and
+template packages.
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/pre-build.in b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/pre-build.in
new file mode 100755
index 0000000..bbdb5cb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/build-spec/pre-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# not using any templates, but dh_clean requires compat
+
+echo "[% $dh_compat_level %]" > "$1/debian/compat"
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/desc b/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/desc
new file mode 100644
index 0000000..35dfeaf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/desc
@@ -0,0 +1,4 @@
+Testname: generic-dh-make-2008
+Check: debian/copyright
+See-Also:
+ Bug#497347
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/hints b/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/hints
new file mode 100644
index 0000000..b5417b3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/hints
@@ -0,0 +1,5 @@
+generic-dh-make-2008 (binary): helper-templates-in-copyright
+generic-dh-make-2008 (binary): copyright-without-copyright-notice
+generic-dh-make-2008 (binary): copyright-with-old-dh-make-debian-copyright
+generic-dh-make-2008 (binary): copyright-has-url-from-dh_make-boilerplate
+generic-dh-make-2008 (binary): copyright-contains-dh_make-todo-boilerplate
diff --git a/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/post-test b/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-dh-make-2008/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/changelog.in
new file mode 100644
index 0000000..7a4298d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/changelog.in
@@ -0,0 +1,2 @@
+[% $source %] ([% $version %]) unstable;
+ -- a <> Tue, 30 Dec 2008 17:34:02 -0800
diff --git a/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/control.in
new file mode 100644
index 0000000..575773e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/control.in
@@ -0,0 +1,5 @@
+Source: [% $source %]
+Maintainer: a
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
diff --git a/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/rules b/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/rules
new file mode 100755
index 0000000..62da96d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+build:
+binary:
+ install -d debian/generic-empty debian/generic-empty/DEBIAN
+ dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty
+ dpkg --build debian/generic-empty ..
+
+clean:
+ rm -rf debian/generic-empty
diff --git a/t/recipes/checks/debian/copyright/generic-empty/build-spec/fill-values b/t/recipes/checks/debian/copyright/generic-empty/build-spec/fill-values
new file mode 100644
index 0000000..26d9bdc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: generic-empty
+Package-Architecture: all
+Description: Pathological empty package
diff --git a/t/recipes/checks/debian/copyright/generic-empty/build-spec/orig/README b/t/recipes/checks/debian/copyright/generic-empty/build-spec/orig/README
new file mode 100644
index 0000000..ed1b149
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/build-spec/orig/README
@@ -0,0 +1,4 @@
+This is the smallest possible Debian package that I can get
+dpkg-buildpackage to build (with the exception of this documentation).
+It tests Lintian handling of packages that are missing everything one
+would normally expect to have.
diff --git a/t/recipes/checks/debian/copyright/generic-empty/build-spec/pre-build b/t/recipes/checks/debian/copyright/generic-empty/build-spec/pre-build
new file mode 100755
index 0000000..1a3929a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/build-spec/pre-build
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# Remove as many files from the package as possible.
+
+rm -f "$1/debian/compat"
+rm -f "$1/debian/copyright"
diff --git a/t/recipes/checks/debian/copyright/generic-empty/eval/desc b/t/recipes/checks/debian/copyright/generic-empty/eval/desc
new file mode 100644
index 0000000..eee49bb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/eval/desc
@@ -0,0 +1,2 @@
+Testname: generic-empty
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/generic-empty/eval/hints b/t/recipes/checks/debian/copyright/generic-empty/eval/hints
new file mode 100644
index 0000000..4c97d8f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/generic-empty/eval/hints
@@ -0,0 +1,2 @@
+generic-empty (source): no-debian-copyright-in-source
+generic-empty (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..4546c62
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/copyright/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-binary/eval/desc b/t/recipes/checks/debian/copyright/legacy-binary/eval/desc
new file mode 100644
index 0000000..060c487
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-binary/eval/hints b/t/recipes/checks/debian/copyright/legacy-binary/eval/hints
new file mode 100644
index 0000000..aaada18
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-binary/eval/hints
@@ -0,0 +1,2 @@
+binary (binary): possible-gpl-code-linked-with-openssl
+binary (binary): old-fsf-address-in-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-binary/eval/post-test b/t/recipes/checks/debian/copyright/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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.
+
+Package: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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.
+
+Package: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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.
+
+Package: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/eval/desc b/t/recipes/checks/debian/copyright/legacy-debconf/eval/desc
new file mode 100644
index 0000000..6ea363a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/eval/hints b/t/recipes/checks/debian/copyright/legacy-debconf/eval/hints
new file mode 100644
index 0000000..bed3522
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/eval/hints
@@ -0,0 +1,8 @@
+debconf-test-preinst (binary): old-fsf-address-in-copyright-file
+debconf-test-preinst (binary): copyright-contains-dh_make-todo-boilerplate
+debconf-test-postinst (binary): old-fsf-address-in-copyright-file
+debconf-test-postinst (binary): copyright-contains-dh_make-todo-boilerplate
+debconf-test-noscripts (binary): old-fsf-address-in-copyright-file
+debconf-test-noscripts (binary): copyright-contains-dh_make-todo-boilerplate
+debconf-test (binary): old-fsf-address-in-copyright-file
+debconf-test (binary): copyright-contains-dh_make-todo-boilerplate
diff --git a/t/recipes/checks/debian/copyright/legacy-debconf/eval/post-test b/t/recipes/checks/debian/copyright/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/README.Debian
new file mode 100644
index 0000000..e289bfb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/README.Debian
@@ -0,0 +1,5 @@
+this is a package to test lintian's handling of files in /etc.
+Also, there's a random mention of /usr/doc here to prompt a warning.
+But /usr/documentation doesn't.
+
+ -- Russ Allbery <rra@debian.org>, Mon, 18 Feb 2008 16:40:55 -0800
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/changelog.in
new file mode 100644
index 0000000..00cdc77
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+etcfiles ([% $version %]) [% $distribution %]; urgency=low
+
+ * Acknowledge NMU (Closes: #123456).
+ * initial setup
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Fri, 21 Sep 2001 11:56:02 -0700
+
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles
new file mode 100644
index 0000000..76032b7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles
@@ -0,0 +1,5 @@
+/etc/proper
+/var/lib/foo
+/etc/cron.daily/cronfile-normal
+/etc/cron.daily/.cronfile-begins-with-fullstop
+/etc/cron.daily/cronfile-contains.fullstop
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles.only
new file mode 100644
index 0000000..a4b3895
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/conffiles.only
@@ -0,0 +1,2 @@
+/etc/etcfiles/foo
+/etc/etcfiles/bar
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/control
new file mode 100644
index 0000000..f3dbda7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/control
@@ -0,0 +1,20 @@
+Source: etcfiles
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.5.0
+
+Package: etcfiles
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: test handling of files in /etc
+ Regression test for lintian's handling of files in /etc.
+ .
+ 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.
+
+Package: only-etcfiles
+Architecture: all
+Depends: etcfiles (= ${source:Version})
+Description: test handling of conffile-only package
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/rules
new file mode 100755
index 0000000..97ff09f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+tmponly=debian/only-etcfiles
+
+clean:
+ rm -f debian/files debian/substvars
+ rm -rf debian/tmp
+ rm -rf debian/only-etcfiles
+
+build:
+build-arch:
+build-indep:
+binary-indep:
+ install -d $(tmp)/etc
+ install -m 644 proper $(tmp)/etc
+ install -m 644 improper $(tmp)/etc
+ mkdir $(tmp)/etc/cron.daily
+ touch $(tmp)/etc/cron.daily/cronfile-normal
+ touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop
+ touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop
+ ln $(tmp)/etc/improper $(tmp)/etc/improper-link
+ install -d $(tmp)/usr/share/doc/etcfiles
+ install -d $(tmp)/var/lib
+ install -m 644 proper $(tmp)/var/lib/foo
+ install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles
+ #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog
+ install -d $(tmp)/DEBIAN
+ install -m 644 debian/conffiles $(tmp)/DEBIAN
+
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \
+ > debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '05c72cacce994208128b7d081116b04a ./etc/proper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce etc/improper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'this is a malformed line' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \
+ >> debian/tmp/DEBIAN/md5sums
+
+ install -d $(tmponly)/etc/etcfiles
+ touch $(tmponly)/etc/etcfiles/foo
+ touch $(tmponly)/etc/etcfiles/bar
+ install -d $(tmponly)/usr/share/doc
+ cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles
+ install -d $(tmponly)/DEBIAN
+ install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles
+
+ dpkg-gencontrol -isp -petcfiles
+ dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly)
+ dpkg --build $(tmp) ..
+ dpkg --build $(tmponly) ..
+
+binary: binary-indep
+
+.PHONY: binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/fill-values
new file mode 100644
index 0000000..86deb10
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-etcfiles
+Source: etcfiles
+Version: 1
+Description: Legacy test "etcfiles"
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/improper
new file mode 100644
index 0000000..23656f4
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/improper
@@ -0,0 +1,2 @@
+[config]
+ var = value \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/proper
new file mode 100644
index 0000000..f3dc68b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/build-spec/orig/proper
@@ -0,0 +1,2 @@
+# i am a config file
+foo = var \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/desc
new file mode 100644
index 0000000..1782fc0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-etcfiles
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/hints
new file mode 100644
index 0000000..2ebfa16
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/hints
@@ -0,0 +1 @@
+etcfiles (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-etcfiles/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in
new file mode 100644
index 0000000..38fc4e9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in
@@ -0,0 +1,10 @@
+fields ([% $version %]) [% $distribution %]; urgency=low
+
+ * This package adds tests for the following tags:
+ - debian-revision-not-well-formed
+ - depends-on-python-minimal
+ - essential-no-not-needed
+ - debian-revision-should-not-be-zero
+ - new-essential-package
+
+ -- Tobias Quathamer <toddy@debian.org> Sun, 10 Apr 2011 14:30:00 +0100
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control
new file mode 100644
index 0000000..d980a6e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control
@@ -0,0 +1,28 @@
+Source: fields
+Section: does-not-exist
+Priority: standard
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.9.2
+
+Package: fields
+Essential: no
+Architecture: all
+Depends: python-minimal
+Description: Generate some errors
+ 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.
+
+Package: another-version
+Essential: yes
+Section: admin
+Architecture: all
+Description: Also generate some errors
+ This package gets another version number and tries to sneak in a new
+ essential package.
+ .
+ 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/debian/copyright/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/rules
new file mode 100755
index 0000000..11ad4a7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d $(tmp)/usr/share/doc/fields
+ install -m 644 debian/changelog \
+ $(tmp)/usr/share/doc/fields/changelog
+ gzip -n -9 $(tmp)/usr/share/doc/fields/changelog
+ dh_md5sums -pfields -P$(tmp)
+ dpkg-gencontrol -pfields -P$(tmp)
+ dpkg --build $(tmp) ..
+ rm -rf $(tmp)
+
+ # Create another package with a different version
+ dh_md5sums -panother-version -P$(tmp)
+ dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp)
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values
new file mode 100644
index 0000000..fe90eb0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-non-native
+Testname: legacy-fields
+Source: fields
+Version: 1.5-.3
+Description: Legacy test "fields"
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/eval/desc b/t/recipes/checks/debian/copyright/legacy-fields/eval/desc
new file mode 100644
index 0000000..10be13b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-fields
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/eval/hints b/t/recipes/checks/debian/copyright/legacy-fields/eval/hints
new file mode 100644
index 0000000..6ce7d6e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/eval/hints
@@ -0,0 +1,2 @@
+fields (binary): no-copyright-file
+another-version (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/eval/post-test b/t/recipes/checks/debian/copyright/legacy-fields/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-fields/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/changelog.in
new file mode 100644
index 0000000..b79c4ca
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/changelog.in
@@ -0,0 +1,78 @@
+filenames ([% $version %]) [% $distribution %]; urgency=low
+
+ * /me is doing a correct NMU of this package, bumping the epoch too.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:04:39 +0200
+
+filenames (11) unstable; urgency=low
+
+ * Add a README.macos.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Mon, 12 Apr 2004 23:35:24 +0200
+
+filenames (10) unstable; urgency=low
+
+ * Some new files to check the checks for the use of /usr/*/X11 and
+ /usr/X11R6/*.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Sun, 11 Apr 2004 17:35:20 +0200
+
+filenames (9) unstable; urgency=low
+
+ * Add a two *.ali files, one with the right permission, one with
+ the more common, but false one.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Sun, 11 Apr 2004 00:18:16 +0200
+
+filenames (8) unstable; urgency=low
+
+ * Add a real ancient file
+
+ -- Frank Lichtenheld <djpig@debian.org> Thu, 8 Apr 2004 22:22:40 +0200
+
+filenames (7) unstable; urgency=low
+
+ * Add a dozen symlinks, some correct, some not
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 27 Feb 2004 01:28:42 +0100
+
+filenames (6) unstable; urgency=low
+
+ * Add perl files to check if
+ package-installs-nonbinary-perl-in-usr-lib-perl5 is correctly
+ issued even after attempting to suppress it in some cases
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 27 Feb 2004 00:49:44 +0100
+
+filenames (5) unstable; urgency=low
+
+ * Added check for too long symlink
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 3 Jan 2001 13:20:31 -0800
+
+filenames (4) unstable; urgency=low
+
+ * Add /usr/lib/menu/menu file to test the bad-menu-file-name tag.
+ * Add /usr/lib/menu/README to test the new execption for it.
+
+ -- Richard Braakman <dark@xs4all.nl> Thu, 22 Oct 1998 15:42:52 +0200
+
+filenames (3) unstable; urgency=low
+
+ * Don't rely on the installer's umask.
+
+ -- Richard Braakman <dark@xs4all.nl> Thu, 20 Aug 1998 12:45:47 +0200
+
+filenames (2) unstable; urgency=low
+
+ * Noted more limitations on what filenames lintian handles.
+ * Added Changes.gz in /usr/doc/filenames and made a symlink from changelog.gz
+ to Changes.gz.
+
+ -- Richard Braakman <dark@xs4all.nl> Sat, 4 Jul 1998 15:46:11 +0200
+
+filenames (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Richard Braakman <dark@xs4all.nl> Sat, 4 Jul 1998 15:25:01 +0200
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/control
new file mode 100644
index 0000000..1ff9c50
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/control
@@ -0,0 +1,42 @@
+Source: filenames
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Standards-Version: 3.1.1
+Rules-Requires-Root: binary-targets
+
+Package: filenames
+Architecture: any
+Description: see how lintian reacts to weird filenames
+ This package contains files with the most evil names I could find,
+ except for ones that lintian is explicitly not designed to handle.
+ .
+ Lintian does not handle filenames containing newlines, or filenames
+ that contain the strings " link to ", " -> ", or ": ". The last one
+ is used as a separator by the file command, the others are used as
+ separators by tar.
+ .
+ Lintian also does not handle filenames that contain backslashes, or
+ other characters that are mangled by tar's -tv output.
+
+Package: filename-games
+Architecture: all
+Depends: filenames
+Section: games
+Description: Test game filename/location checks
+ This package contains files with slightly less evil names than
+ filenames.
+ .
+ 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.
+
+Package: more-filename-games
+Architecture: all
+Depends: filenames, filename-games
+Section: games
+Priority: optional
+Description: More test for game filename/location checks
+ This package contains no evil names, only evil locations.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/doc-base b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/doc-base
new file mode 100644
index 0000000..e5a611b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/doc-base
@@ -0,0 +1,11 @@
+Document: testing
+Title: Working doc-base control file
+Author: Russ Allbery
+Abstract: This control file ensures that we don't get false positives for
+ correct doc-base files.
+ .
+ There isn't anything wrong with this one.
+Section: Education
+
+Format: Text
+Files: /usr/share/doc/filenames/README.macosx
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/rules
new file mode 100755
index 0000000..0b9e87c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/debian/rules
@@ -0,0 +1,231 @@
+#!/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.
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+clean:
+ mkdir -p .svn CVS "{arch}" .arch-ids .bzr
+ touch data/.cvsignore data/svn-commit.tmp data/svk-commitsEr9P.tmp
+ touch data/.arch-inventory
+ touch 'data/.#Maelstrom Sound.1.1.1' 'data/Maelstrom Sounce.r121'
+ touch 'data/Maelstrom Sound.mine'
+ touch "data/'\\ "
+ touch filenames.c~
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+
+binary-arch:
+
+binary-indep:
+ install -d debian/tmp/DEBIAN
+ cp -a data debian/tmp/files
+ chmod -R go=rX debian/tmp/files
+
+ install -d debian/tmp/usr/lib/filenames
+ install -m 555 -d debian/tmp/usr/lib/filenames/readonly
+ touch debian/tmp/usr/lib/filenames/readonly/test
+
+ install -d debian/tmp/usr/lib/menu
+ install -d debian/tmp/usr/share/menu
+ touch debian/tmp/usr/lib/menu/README
+ touch debian/tmp/usr/share/menu/README
+ touch debian/tmp/usr/lib/menu/menu
+ touch debian/tmp/usr/share/menu/menu
+ chmod 644 debian/tmp/usr/lib/menu/*
+
+ install -d debian/tmp/$(VENDORARCH)/foo
+ mkdir debian/tmp/$(VENDORARCH)/.svn
+ mkdir debian/tmp/$(VENDORARCH)/CVS
+ mkdir "debian/tmp/$(VENDORARCH)/{arch}"
+ mkdir debian/tmp/$(VENDORARCH)/.arch-ids
+ mkdir debian/tmp/$(VENDORARCH)/.bzr
+ mkdir debian/tmp/$(VENDORARCH)/.be
+ mkdir debian/tmp/$(VENDORARCH)/.ditrack
+ install -d debian/tmp/usr/share/perl5
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.gitignore
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.hgignore
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.hgtags
+ echo foo > debian/tmp/$(VENDORARCH)/foo/.hg_archival.txt
+
+ touch debian/tmp/$(VENDORARCH)/foo/.packlist
+ chmod 644 debian/tmp/$(VENDORARCH)/foo/.packlist
+ touch debian/tmp/$(VENDORARCH)/foo/bar.pm
+ TZ=UTC touch -t 197501010101 debian/tmp/$(VENDORARCH)/foo/ancient.pm
+ chmod 644 debian/tmp/$(VENDORARCH)/foo/bar.pm
+
+ install -d debian/tmp/usr/share/pixmaps
+ install -d debian/tmp/usr/share/pixmaps/foo
+ touch debian/tmp/usr/share/pixmaps/license.jpeg
+ touch debian/tmp/usr/share/pixmaps/licence.jpg
+ touch debian/tmp/usr/share/pixmaps/copying.xpm
+ touch debian/tmp/usr/share/pixmaps/foo/COPYING.svg
+ touch debian/tmp/usr/share/pixmaps/foo/copying.png
+ touch debian/tmp/usr/share/pixmaps/license.txt
+ touch debian/tmp/usr/share/pixmaps/license.foo
+ touch debian/tmp/usr/share/pixmaps/COPYING
+
+ install -d debian/tmp/usr/share/linda/overrides
+ echo 'foo' > debian/tmp/usr/share/linda/overrides/filenames
+
+ install -d debian/tmp/usr/share/doc/filenames
+ touch debian/tmp/usr/share/doc/filenames/README.macosx
+
+ echo foo > debian/tmp/usr/share/doc/filenames/bokmål
+ echo foo > debian/tmp/usr/share/doc/filenames/bokm\\Ã¥l
+ echo foo > debian/tmp/usr/share/doc/filenames/bokmål
+ echo foo > debian/tmp/usr/share/doc/filenames/bokm\\ål
+
+ echo foo > debian/tmp/usr/share/doc/filenames/Thumbs.db
+ echo foo > debian/tmp/usr/share/doc/filenames/.DS_Store
+ echo foo > debian/tmp/usr/share/doc/filenames/._NEWS.Debian
+
+ touch debian/tmp/usr/share/doc/filenames/news.debian
+ gzip -n debian/tmp/usr/share/doc/filenames/news.debian
+ touch debian/tmp/usr/share/doc/filenames/NEWS.Debian
+
+ echo foo > debian/tmp/usr/share/doc/filenames/link-one
+ ln debian/tmp/usr/share/doc/filenames/link-one \
+ debian/tmp/usr/share/doc/filenames/link-two
+
+ install -d debian/tmp/usr/share/doc/filenames/examples
+ touch debian/tmp/usr/share/doc/filenames/examples/__init__.py
+ touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example
+ touch debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2
+ gzip -n debian/tmp/usr/share/doc/filenames/examples/very_interesting_example2
+
+ install -d debian/tmp/usr/lib/ada/adalib/
+ touch debian/tmp/usr/lib/ada/adalib/test.ali debian/tmp/usr/lib/ada/adalib/test2.ali
+ chmod 0644 debian/tmp/usr/lib/ada/adalib/test.ali
+ chmod 0444 debian/tmp/usr/lib/ada/adalib/test2.ali
+
+ install -d debian/tmp/usr/bin/X11/
+ touch debian/tmp/usr/bin/X11/testxbin
+ install -d debian/tmp/usr/X11R6/bin
+ touch debian/tmp/usr/X11R6/bin/testxbin2
+ install -d debian/tmp/usr/include/X11
+ touch debian/tmp/usr/include/X11/foo.h
+
+ install -d debian/tmp/usr/bin/mh
+ touch debian/tmp/usr/bin/mh/read
+ chmod 755 debian/tmp/usr/bin/mh/read
+ install -d debian/tmp/usr/bin/bin
+ touch debian/tmp/usr/bin/bin/bad
+ chmod 755 debian/tmp/usr/bin/bin/bad
+
+ install -m 644 debian/changelog debian/tmp/usr/share/doc/filenames/Changes
+ gzip -n -9 debian/tmp/usr/share/doc/filenames/Changes
+ ln -s Changes.gz debian/tmp/usr/share/doc/filenames/changelog.gz
+
+ install -d debian/tmp/var/www
+ echo foo > debian/tmp/var/www/foo
+
+ install -d debian/tmp/srv/foo
+ touch debian/tmp/srv/foo/bar
+ install -d debian/tmp/opt/foo
+ touch debian/tmp/opt/foo/bar
+
+ install -d debian/tmp/etc/gconf/schemas
+ touch debian/tmp/etc/gconf/schemas/test.schema
+
+ install -d debian/tmp/usr/lib/sgml
+ touch debian/tmp/usr/lib/sgml/package
+
+ install -d debian/tmp/usr/share/gnome/apps/System
+ touch debian/tmp/usr/share/gnome/apps/System/foo.desktop
+
+ install -d debian/tmp/usr/share/filenames
+ touch debian/tmp/usr/share/filenames/jquery.js
+ touch debian/tmp/usr/share/filenames/jquery.lite.js
+ touch debian/tmp/usr/share/filenames/jquery.min.js
+ touch debian/tmp/usr/share/filenames/jquery.pack.js
+ touch debian/tmp/usr/share/filenames/mochikit.js
+ touch debian/tmp/usr/share/filenames/prototype-1.2.3.4.js
+ touch debian/tmp/usr/share/filenames/prototype.js
+ touch debian/tmp/usr/share/filenames/prototype.js.gz
+ touch debian/tmp/usr/share/filenames/scriptaculous.js
+ touch debian/tmp/usr/share/filenames/yahoo-dom-event.js
+ touch debian/tmp/usr/share/filenames/yahoo-min.js
+
+ ln -s '../filenames/doc/version6.txt.gz' debian/tmp/usr/share/doc/filenames/version.txt.gz
+ ln -s ../../share/symlink debian/tmp/usr/lib/filenames/symlink1ok
+ ln -s ../../../etc/symlink debian/tmp/usr/lib/filenames/symlink1wrong
+ ln -s ../../../../etc/symlink debian/tmp/usr/lib/filenames/symlink2wrong
+ ln -s /etc/symlink debian/tmp/usr/lib/filenames/symlink2ok
+ ln -s /usr/lib/filenames/symlink2 debian/tmp/usr/lib/filenames/symlink3wrong
+ ln -s test debian/tmp/usr/lib/filenames/symlink3ok
+ ln -s ../filenames/symlink2 debian/tmp/usr/lib/filenames/symlink4wrong
+ ln -s ../menu/../somethingelse debian/tmp/usr/lib/filenames/symlink5wrong
+ ln -s ../menu/somethingelse debian/tmp/usr/lib/filenames/symlink4ok
+ ln -s ./file4 debian/tmp/usr/lib/filenames/symlink6wrong
+ ln -s ../menu/./something debian/tmp/usr/lib/filenames/symlink7wrong
+ ln -s ../menu//something debian/tmp/usr/lib/filenames/symlink8wrong
+ ln -s ../menu/something/ debian/tmp/usr/lib/filenames/symlink9wrong
+ ln -s .. debian/tmp/usr/lib/filenames/symlink5ok+warn
+ ln -s . debian/tmp/usr/lib/filenames/symlink6ok+warn
+ ln -s / debian/tmp/usr/lib/filenames/symlink7ok+warn
+ ln -s ../../.. debian/tmp/usr/lib/filenames/symlink10wrong
+
+# devhelp tests. Files in /usr/share/gtk-doc/html or /usr/share/devhelp/books
+# are okay. Files elsewhere are okay iff their parent path is symlinked into
+# one of those paths.
+ install -d debian/tmp/usr/share/devhelp/books/filenames
+ echo 'Not really XML' > debian/tmp/usr/share/devhelp/books/filenames/a.devhelp
+ echo 'Not really XML' > debian/tmp/usr/share/devhelp/books/filenames/.devhelp2
+ gzip -n -9 debian/tmp/usr/share/devhelp/books/filenames/.devhelp2
+ install -d debian/tmp/usr/share/gtk-doc/html/filenames
+ echo 'Not really XML' > debian/tmp/usr/share/gtk-doc/html/filenames/b.devhelp
+ gzip -n -9 debian/tmp/usr/share/gtk-doc/html/filenames/b.devhelp
+ install -d debian/tmp/usr/share/doc/filenames/good-devhelp
+ echo 'Not really XML' > debian/tmp/usr/share/doc/filenames/good-devhelp/.devhelp2
+ install -d debian/tmp/usr/share/doc/filenames/bad-devhelp
+ echo 'Not really XML' > debian/tmp/usr/share/doc/filenames/bad-devhelp/c.devhelp
+ gzip -n -9 debian/tmp/usr/share/doc/filenames/bad-devhelp/c.devhelp
+ ln -s ../../doc/filenames/good-devhelp debian/tmp/usr/share/gtk-doc/html/good
+ ln -s ../doc/filenames/bad-devhelp debian/tmp/usr/share/gtk-doc/html/bad
+
+ install -d debian/tmp/usr/share/doc-base
+ install -m 644 debian/doc-base debian/tmp/usr/share/doc-base/filenames
+
+ dpkg-gencontrol -pfilenames -Pdebian/tmp
+ dpkg --build debian/tmp ..
+
+ install -d debian/filename-games debian/filename-games/DEBIAN
+ install -d debian/filename-games/usr debian/filename-games/usr/games debian/filename-games/usr/bin
+ echo '#! /bin/sh' > debian/filename-games/usr/bin/test-game
+ chmod 755 debian/filename-games/usr/bin/test-game
+ dpkg-gencontrol -pfilename-games -Pdebian/filename-games
+ dpkg --build debian/filename-games ..
+
+ install -d debian/more-filename-games debian/more-filename-games/DEBIAN
+ install -d debian/more-filename-games/usr debian/more-filename-games/usr/games debian/more-filename-games/usr/bin
+ echo '#! /bin/sh' > debian/more-filename-games/usr/bin/another-test-game
+ echo '#! /bin/sh' > debian/more-filename-games/usr/games/yet-another-test-game
+ chmod 755 debian/more-filename-games/usr/bin/another-test-game debian/more-filename-games/usr/games/yet-another-test-game
+ dpkg-gencontrol -pmore-filename-games -Pdebian/more-filename-games
+ dpkg --build debian/more-filename-games ..
+
+binary: binary-arch binary-indep
+
+.PHONY: build-indep build-arch build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/fill-values
new file mode 100644
index 0000000..062a1ea
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-non-native
+Testname: legacy-filenames
+Source: filenames
+Version: 1:12-0.1
+Description: Legacy test "filenames"
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/ .tif b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/ .tif
new file mode 100644
index 0000000..07fd914
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/ .tif
@@ -0,0 +1,2 @@
+This filename was inspired by the ".tif used by fnlib. The real package
+uses space.tif.
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/".tif b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/".tif
new file mode 100644
index 0000000..e005775
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/".tif
@@ -0,0 +1 @@
+This filename is really used, by fnlib.
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/Maelstrom Sound b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/Maelstrom Sound
new file mode 100644
index 0000000..4110410
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/build-spec/orig/data/Maelstrom Sound
@@ -0,0 +1 @@
+This filename occurs in the maelstrom package.
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/eval/desc b/t/recipes/checks/debian/copyright/legacy-filenames/eval/desc
new file mode 100644
index 0000000..2f3ffb9
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-filenames
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/eval/hints b/t/recipes/checks/debian/copyright/legacy-filenames/eval/hints
new file mode 100644
index 0000000..577cfcf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/eval/hints
@@ -0,0 +1,3 @@
+more-filename-games (binary): no-copyright-file
+filenames (binary): no-copyright-file
+filename-games (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-filenames/eval/post-test b/t/recipes/checks/debian/copyright/legacy-filenames/eval/post-test
new file mode 100644
index 0000000..571e35d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-filenames/eval/post-test
@@ -0,0 +1,3 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/package-installs-packlist/ d
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..3e86b96
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description also uses non-UTF8 high bytes chars: ÄÖÜß
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/eval/desc b/t/recipes/checks/debian/copyright/legacy-foo++/eval/desc
new file mode 100644
index 0000000..0dc67a8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/eval/hints b/t/recipes/checks/debian/copyright/legacy-foo++/eval/hints
new file mode 100644
index 0000000..22a97cb
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-foo++/eval/post-test b/t/recipes/checks/debian/copyright/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..a12fc8c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,57 @@
+maintainer-scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * Doing an upload for QA but I fail to give it a correct version number,
+ have some uploaders, and also fail to mention it... Bad me ;)
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:05:29 +0200
+
+maintainer-scripts (6.1) unstable; urgency=low
+
+ * I made this entry on my local PC, oops ;)
+
+ -- Jeroen van Wolffelaar <jeroen@mordor> Sat, 21 Feb 2004 18:29:37 +0100
+
+maintainer-scripts (6) unstable; urgency=low
+
+ * added ldconfig calls to postrm to check test the postrm tests
+ from shared-libs
+
+ -- Frank Lichtenheld <djpig@debian.org> Sat, 21 Feb 2004 18:29:36 +0100
+
+maintainer-scripts (5) unstable; urgency=low
+
+ * added bash style arrays to postinst, this one is for you Torsten (-:
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 30 Mar 2001 23:27:06 -0800
+
+maintainer-scripts (4) unstable; urgency=low
+
+ * added a here document to the prerm, along with two more bashisms
+ * made postrm a bash script to check that bash scripts are not searched
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Mon, 26 Feb 2001 13:02:57 -0800
+
+maintainer-scripts (3) unstable; urgency=low
+
+ * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this
+ thinking the '||' was a argument.
+ * also added an invalid call to '. foo bar'
+ * postinst now has a space between the #! and /bin/sh to test the interpreter
+ checking code.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 9 Jan 2001 23:06:25 -0800
+
+maintainer-scripts (2) unstable; urgency=low
+
+ * Fix location of changelog.
+ * prerm and postrm do 'update-alternatives --remove'; should only complain
+ about postrm.
+
+ -- Colin Watson <cjw44@flatline.org.uk> Fri, 29 Dec 2000 06:01:24 +0000
+
+maintainer-scripts (1) unstable; urgency=low
+
+ * Initial version
+ * postinst and prerm set the usr/doc symlink
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..63dd2db
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/control.in
@@ -0,0 +1,18 @@
+Source: maintainer-scripts
+Section: misc
+Priority: optional
+Maintainer: QA group <packages@qa.debian.org>
+Uploaders: Anyone but Jeroen <jeroen@wolffelaar.nl>
+Build-Depends: [% $build_depends %]
+Standards-Version: 3.1.1
+Rules-Requires-Root: binary-targets
+XS-Dm-Upload-Allowed: Yes
+
+Package: maintainer-scripts
+Architecture: [% $package_architecture %]
+Depends: test
+Description: test lintian's maintainer script checks
+ 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/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..e56ed3b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postinst
@@ -0,0 +1,181 @@
+#! /bin/sh -e
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then
+ ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts
+ fi
+fi
+
+# valid
+. /usr/share/lintian/shell || exit 0
+. /usr/share/lintian/shell >/dev/null
+. /usr/share/lintian/shell 2>/dev/null
+. /usr/share/lintian/shell </dev/null
+. "$(dirname $0)/shell" ; bar
+# invalid
+. /usr/share/lintian/shell foo
+. "$(dirname $0)/shell" bar
+
+print "Hit enter to continue"
+read
+
+H[0]='this is a string'
+echo ${H[0]}
+echo "Index 0's length is ${#H[0]}"
+echo "All of the array is: ${H[@]}"
+
+install-info /usr/share/info/foo \
+ --quiet \ # make it so
+ --section foo
+
+echo Please use update-rc.d or invoke-rc.d to set up blah blah.
+
+chown root.root /usr/share/doc/maintainer-scripts/changelog
+chown root:root /usr/share/doc/maintainer-scripts/changelog
+
+$FOO=bar
+update-rc.d foo defaults >/dev/null
+update-rc.d $FOO defaults
+update-rc.d foo remove
+
+# valid
+FOO=/tmp
+FOO=/var/tmp
+: ${FOO:=/tmp}
+FOO=`mktemp /tmp/scripts.XXXXXX`
+rm "$FOO"
+FOO=`tempfile -n/tmp/scripts.tmp`
+mkdir /var/tmp/scripts
+FOO="/tmp/false.positive.XXXXXX"
+# invalid
+echo foo >>/tmp/scripts.tmp
+rm /tmp/scripts.tmp
+rmdir /var/tmp/scripts
+
+# invalid, maintainer-script-hides-init-failure
+invoke-rc.d foo start || exit 0
+
+# The right way to invoke an rc script
+if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d package start
+else
+ /etc/init.d/package start
+fi
+
+# Example ucf invocation.
+ucf /usr/share/foo/configuration /etc/foo.conf
+
+# Calling gconftool directly.
+gconftool-2 --makefile-install-rule foo.schema
+
+# Calling gconf-schemas with no dependency.
+gconf-schemas --register foo.schema
+
+# Calling update-xmlcatalog with no dependency.
+update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \
+ --package maintainer-scripts --root
+
+# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old
+# recipe from the dpkg wiki that should be replaced with dpkg-query.
+sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \
+ /var/lib/dpkg/status
+
+# Don't modify these files.
+echo 'broken 6714/tcp' >> /etc/services
+cp /nonexistent /etc/protocols
+mv /usr/share/doc/rpc /etc/rpc
+
+# But this is okay.
+cp /etc/protocols /etc/protocols.new
+
+# This is also wrong.
+echo 'broken' > /etc/inetd.conf
+cp /etc/inetd.conf.new /etc/inetd.conf
+
+# But this is fine.
+cp /etc/inetd.conf /srv/chroot/etc/inetd.conf
+
+# Deprecated
+install-sgmlcatalog --install package
+install-sgmlcatalog --remove package
+
+# This too is a heredoc.
+some-program > /etc/config-file <<'EOF'
+echo "All of the array is: ${H[@]}"
+EOF
+
+# But this isn't.
+cat '<<EOF'
+echo "All of the array is: ${H[@]}"
+EOF
+
+# This is a heredoc
+cat <<-EOF
+echo "All of the array is ${H[@]}"
+EOF
+
+# As is this
+cat <<';'
+echo "All of the array is ${H[@]}"
+;
+
+# and this
+cat <<foo
+echo "All of the array is ${H[@]}"
+foobar
+echo $HOSTNAME
+foo
+
+# and again
+cat <<\bar
+echo "All of the array is ${H[@]}"
+bar
+
+# yet another
+cat <<"x++"
+echo "All of the array is ${H[@]}"
+x++
+
+# Recognize single quotes even if they start at the beginning of a line.
+echo not a bashism \
+'/{ptex,tex}/{amstex,plain,generic,}'
+
+# More bashisms.
+echo -e 'foo\n'
+echo "${!foo}"
+cat $(\< file)
+select foo in a b ; do echo $foo ; done
+cnt=$((cnt + 1))
+if false ; then
+ exec -l /bin/sh
+ exec -c /bin/sh
+ exec -a foo /bin/sh
+fi
+let cnt++
+if test -a /etc/default ; then
+ echo "$RANDOM|stuff"
+fi
+
+# Calling start-stop-daemon directly in an init script.
+start-stop-daemon --start --quiet --name foo --startas /usr/bin/foo
+
+# But stopping it is fine -- we may be working around something else.
+start-stop-daemon --stop --quiet --name foo --startas /usr/bin/foo
+
+# Deprecated chown use with flags.
+chown -R root.root /usr/share/doc/maintainer-scripts
+
+case $mainscript in
+ /usr/bin/foo) foobarbaz;;
+esac
+
+/usr/bin/baz; echo bar
+
+# Some comment checking
+# This should flag $RANDOM
+test $# -gt 2 && echo $RANDOM
+# But these shouldn't
+test 1=1 # echo $RANDOM
+(test 1=1)# echo $RANDOM
+test 1=1;# echo $RANDOM
+backgroundtask &#echo $RA
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..c0aaf19
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/postrm
@@ -0,0 +1,47 @@
+#!/bin/bash
+#set -e
+
+update-alternatives --remove dummy /usr/bin/dummy-alternative
+
+# Normally read in a maintainer script is not kosher, but here we're going
+# to do it only if debconf doesn't exist.
+if ! test -f /usr/share/debconf/confmodule ; then
+ echo "Hit enter"
+ read
+fi
+
+# neither of the following should be detected as postrm-unsafe-ldconfig
+# intended, without quotes
+ if [ "$1" = remove ]; then
+ ldconfig
+ fi
+# reversed, many whitespace
+if [ 'remove' = "$1" ]
+then
+
+ ldconfig
+fi
+
+[ "remove" ="$1" ] && ldconfig
+
+update-rc.d bar remove
+
+# Shouldn't provoke an error despite no invoke-rc.d.
+echo "/etc/init.d/package stop to stop something"
+
+# Shouldn't require a ucf dependency. Unfortunately, right now that's
+# just because postrm isn't checked, not because we ensure that the
+# invocation is conditional.
+if which ucf >/dev/null; then
+ ucf --purge /etc/foo.conf
+fi
+
+# This isn't allowed.
+rm /tmp/foo /dev/device
+rm /dev/device1
+
+# But this is okay.
+rm /tmp/foo > /dev/null
+
+# Not allowed here even with remove.
+install-sgmlcatalog --remove package
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..6058978
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+update-rc.d foo remove
+update-rc.d bar defaults
+
+# Obsolete dpkg assertions.
+dpkg --assert-support-predepends || exit 1
+dpkg --assert-working-epoch || exit 1
+dpkg --assert-long-filenames || exit 1
+dpkg --assert-multi-conrep || exit 1
+
+/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status
+
+# continuation lines
+update-alternatives --install /usr/bin/fakeroot fakeroot \
+ /usr/bin/fakeroot-ng 5 \
+ --slave /usr/share/man/man1/fakeroot.1.gz \
+ fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/prerm
new file mode 100644
index 0000000..076ecaf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/prerm
@@ -0,0 +1,188 @@
+#!/bin/sh
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove dummy /usr/bin/dummy-alternative
+fi
+
+if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the
+n
+ rm -f /usr/doc/maintainer-scripts
+fi
+
+cat <<EOF
+This is all really bad bash specific code!!!
+read
+source /bar/baz/bat foo
+EOF
+
+# ok, back to checking
+if [ "$2" == "purge" ]; then
+ rm -r /bar/baz
+fi
+
+function foo( ) {
+ # but not here: local
+ local bar
+ echo "foo" &>/dev/null
+}
+
+source $FOO
+
+trap "echo hi" EXIT HUP 3
+
+if [[ "$2" = "purge" ]]; then
+ kill -HUP $$
+fi
+
+#this is ok though
+if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then
+ echo 1
+fi
+
+update-rc.d foo remove
+
+# More false positives for bashism checks. None of these are errors.
+echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//'
+echo "$line" | grep -q "${fonts},${foo}"
+echo '$[1+2]'
+printf "foo |& bar"
+perl -e "print q( kill -HUP $? )"
+
+# Still catch disallowed expansions in double-quotes, though.
+echo "${line:3:1}"
+
+# The wrong way to run an init script (no invoke-rc.d).
+/etc/init.d/package stop
+
+# This is the only install-sgmlcatalog call that's allowed.
+install-sgmlcatalog --quiet --remove package
+
+# More bashisms checks
+
+read -x foo
+read -x
+read -r foo
+read foo
+read
+
+echo "a\\b"
+echo 'a\nb'
+
+echo "${UID}"
+echo "$EUID"
+echo "$SHLVL"
+echo "$DIRSTACK"
+echo "$SECONDS"
+echo "$BASH"
+echo "$BASH_FOO"
+echo "$SHELLOPTS"
+echo "$PIPESTATUS"
+
+bar="$(cut '-d|' -f2 <<< "$foo")"
+
+VAR=1
+VAR+=a
+
+echos() {
+ echo -n -e "bar"
+ echo -e -n "bar"
+ echo -en "bar"
+ echo -ne "bar"
+ echo "bar"
+ echo "echo -e foo"
+}
+
+ech.os() {
+ echo foo >& 2
+ echo foo >&bar
+ echo foo >& bar
+}
+
+echoes() {
+ echo "abc\nxyz"
+ echo 'xyz\rabc'
+ echo foo\cbar
+
+ echo -e "abc\nxyz"
+ echo -net 'xyz\rabc'
+ echo -e foo\cbar
+}
+
+foobar.() {
+ suspend x
+ suspended x
+ caller x
+ complete x
+ compgen x
+ declare -a foo
+}
+
+.foobar() {
+ typeset -x bar
+ disown 1
+ builtin foo
+ set -B
+ alias -p
+ unalias -a
+}
+
+IFS="()"
+
+ulimit
+shopt
+type -v bar
+time ls
+dirs
+diff <(tac a) <(tac b)
+
+pushd
+
+local foo=bar
+local -x foo
+
+popd
+
+readonly -f
+
+echo bar > /dev/tcp
+export x
+export -x x
+export -p x
+
+sh -x
+sh -D
+sh --foo
+sh +O
+
+# Brace expansion checks
+echo {a,b}
+echo {abc},{bcd}
+
+foobar()
+{
+ # This is a function
+}
+
+ foo.bar()
+(
+ # This is a function with a bad name
+)
+
+foobar@()
+{
+ # As is this
+}
+
+# This is ok
+read -r foo
+# but these aren't
+read -r
+read -p "Would you like to restart the service?" foo bar
+read --fish
+
+set -e
+
+source "$BAR"
+source '$BAR'
+source ~/bar
+source a
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..5fcef00
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/tmp/DEBIAN
+ install -m 0755 debian/preinst debian/tmp/DEBIAN
+ install -m 0755 debian/postinst debian/tmp/DEBIAN
+ install -m 0755 debian/prerm debian/tmp/DEBIAN
+ install -m 0755 debian/postrm debian/tmp/DEBIAN
+ install -m 0644 debian/triggers debian/tmp/DEBIAN
+ install -d debian/tmp/usr/share/doc/maintainer-scripts
+ install -m 0644 debian/changelog \
+ debian/tmp/usr/share/doc/maintainer-scripts/changelog
+ gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog
+ dpkg-gencontrol -isp
+ dpkg --build debian/tmp ..
+
+binary: binary-arch binary-indep
+
+# Make sure we see dh_clean even in a rule clean depends on. Not the point of
+# this test suite, but a convenient place to put it.
+clean: clean1 clean2 clean3
+clean1:
+clean2:
+ dh_clean
+clean3:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/triggers
new file mode 100644
index 0000000..f627094
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/triggers
@@ -0,0 +1,4 @@
+# Example triggers file
+activate foo
+
+interest bar
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..430eea3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/debian/watch
@@ -0,0 +1,11 @@
+# A whitespace is fine for uscan:
+ version=5
+
+# Following line should not be matched:
+#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \
+# Following one is incorrect, there's a missing backslash at the end
+opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/
+
+# 'active' is useless here, but it works anyway
+options=active \
+http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/fill-values
new file mode 100644
index 0000000..c281e87
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-maintainer-scripts
+Source: maintainer-scripts
+Version: 7+dfsg-0.1
+Description: Legacy test "maintainer-scripts"
+Extra-Build-Depends: dash (>= 0.5.10.2)
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/desc
new file mode 100644
index 0000000..234d577
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-maintainer-scripts
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/hints
new file mode 100644
index 0000000..b0944ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/hints
@@ -0,0 +1 @@
+maintainer-scripts (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-maintainer-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/copyright/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/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/debian/copyright/legacy-relations/eval/desc b/t/recipes/checks/debian/copyright/legacy-relations/eval/desc
new file mode 100644
index 0000000..51af737
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-relations/eval/hints b/t/recipes/checks/debian/copyright/legacy-relations/eval/hints
new file mode 100644
index 0000000..ee30253
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-relations/eval/hints
@@ -0,0 +1,2 @@
+relations-multiple-libs (binary): usr-share-doc-symlink-without-dependency relations
+relations (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/legacy-relations/eval/post-test b/t/recipes/checks/debian/copyright/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/eval/desc b/t/recipes/checks/debian/copyright/legacy-scripts/eval/desc
new file mode 100644
index 0000000..10da391
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/eval/hints b/t/recipes/checks/debian/copyright/legacy-scripts/eval/hints
new file mode 100644
index 0000000..5ab0622
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/eval/hints
@@ -0,0 +1 @@
+scripts (binary): copyright-file-lacks-pointer-to-perl-license
diff --git a/t/recipes/checks/debian/copyright/legacy-scripts/eval/post-test b/t/recipes/checks/debian/copyright/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/fill-values b/t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/fill-values
new file mode 100644
index 0000000..da1fd11
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: named-copyright-in-source
+Description: Builds single package and uses d/$package.copyright as name
diff --git a/t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/pre-build b/t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/pre-build
new file mode 100755
index 0000000..90f1ee3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/named-copyright-in-source/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd "$1/debian"
+mv copyright named-copyright-in-source.copyright
diff --git a/t/recipes/checks/debian/copyright/named-copyright-in-source/eval/desc b/t/recipes/checks/debian/copyright/named-copyright-in-source/eval/desc
new file mode 100644
index 0000000..f3ddca1
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/named-copyright-in-source/eval/desc
@@ -0,0 +1,2 @@
+Testname: named-copyright-in-source
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/named-copyright-in-source/eval/hints b/t/recipes/checks/debian/copyright/named-copyright-in-source/eval/hints
new file mode 100644
index 0000000..4000c74
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/named-copyright-in-source/eval/hints
@@ -0,0 +1 @@
+named-copyright-in-source (source): named-copyright-for-single-installable [debian/named-copyright-in-source.copyright]
diff --git a/t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/fill-values b/t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/fill-values
new file mode 100644
index 0000000..013c23c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-missing
+Description: Test for missing copyright
diff --git a/t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/pre-build b/t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/pre-build
new file mode 100755
index 0000000..50ea07f
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-missing/build-spec/pre-build
@@ -0,0 +1,2 @@
+#!/bin/sh
+rm -f "$1/debian/copyright"
diff --git a/t/recipes/checks/debian/copyright/source-copyright-missing/eval/desc b/t/recipes/checks/debian/copyright/source-copyright-missing/eval/desc
new file mode 100644
index 0000000..0cf3873
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-missing
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/source-copyright-missing/eval/hints b/t/recipes/checks/debian/copyright/source-copyright-missing/eval/hints
new file mode 100644
index 0000000..73ace17
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-missing/eval/hints
@@ -0,0 +1,2 @@
+source-copyright-missing (source): no-debian-copyright-in-source
+source-copyright-missing (binary): no-copyright-file
diff --git a/t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/fill-values b/t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/fill-values
new file mode 100644
index 0000000..2b5fdb3
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-symlink
+Description: Test for symlinked debian/copyright
diff --git a/t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/pre-build b/t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/pre-build
new file mode 100755
index 0000000..0afeafe
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-symlink/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+cd "$1/debian"
+mv copyright source-copyright-symlink.copyright
+ln -sf source-copyright-symlink.copyright copyright
diff --git a/t/recipes/checks/debian/copyright/source-copyright-symlink/eval/desc b/t/recipes/checks/debian/copyright/source-copyright-symlink/eval/desc
new file mode 100644
index 0000000..8d47ecf
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-symlink
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/source-copyright-symlink/eval/hints b/t/recipes/checks/debian/copyright/source-copyright-symlink/eval/hints
new file mode 100644
index 0000000..27b032a
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-symlink/eval/hints
@@ -0,0 +1 @@
+source-copyright-symlink (source): debian-copyright-is-symlink [debian/copyright]
diff --git a/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/copyright
new file mode 100644
index 0000000..049fb78
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/copyright
@@ -0,0 +1,56 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Doohickey
+Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
+Source: http://examples.com/doohickey/source/
+
+Files: *
+Copyright: 2014, somebody1
+License: Fixme
+ Fixme-license text
+
+
+Files: debian/*
+Copyright: 2014, somebody2
+License: unknown
+ Fixme
+
+Files: debian/a
+Copyright: 2014, somebody2
+License: unknow
+ Fixme
+
+Files: debian/b
+Copyright: 2014, somebody2
+License: todo
+ Fixme
+
+Files: debian/c
+comment: some spacing
+Copyright: 2014, somebody2
+License: -
+ Fixme
+
+Files: debian/d
+comment: some spacing
+Copyright: 2014, somebody2
+License: -
+ Fixme
+
+Files: debian/e
+Comment: too many false positive with space
+Copyright: 2014, somebody2
+License: undefined license
+ Fixme
+
+Files: debian/f
+comment: some spacing
+Copyright: 2014, somebody2
+License: undefined
+ Fixme
+
+Files: debian/g
+comment: false positive
+Copyright: 2014, somebody2
+License: common public license - v 1.0
+ Fixme
+
diff --git a/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/plus+file b/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/plus+file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/debian/plus+file
diff --git a/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/fill-values b/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/fill-values
new file mode 100644
index 0000000..9588707
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-undefined/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: source-copyright-undefined
+Description: Test for fixme/todo/unknown
diff --git a/t/recipes/checks/debian/copyright/source-copyright-undefined/eval/desc b/t/recipes/checks/debian/copyright/source-copyright-undefined/eval/desc
new file mode 100644
index 0000000..7fa8574
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-undefined/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-copyright-undefined
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/source-copyright-undefined/eval/hints b/t/recipes/checks/debian/copyright/source-copyright-undefined/eval/hints
new file mode 100644
index 0000000..cff9e45
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/source-copyright-undefined/eval/hints
@@ -0,0 +1 @@
+source-copyright-undefined (binary): spelling-error-in-copyright unknow unknown
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2d380f5
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+ * This line has a speling error.
+ - This line has the same speling error, but we should only
+ get one tag for it.
+ * Corrected spelling: abov -> above.
+ * Corrected typo: abov -> above.
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/copyright
new file mode 100644
index 0000000..30cbe5c
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+This duplicate duplicate word should not trigger. (re. #897402)
+
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+Insofar as this is copyrightable, it is:
+
+ Copyright 2010 Russ Allbery <rra@debian.org>
+
+This text should not generate a spelling error for "ment":
+
+ computer software documentation," as such terms are used in
+ 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern-
+ ment only as a commercial end item. Consistent with 48 C.F.R.
+ 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995),
+
+But deafult is still a spelling error.
+
+This text should not generate a spelling error for the duplicate "a" (re. #844166)
+
+ following Attribution Information: (a) a copyright notice including the name
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/doc-base
new file mode 100644
index 0000000..3839a9b
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/doc-base
@@ -0,0 +1,9 @@
+Document: spelling-general
+Title: Check for debian doc-base spelling errors
+Author: Russ Allbery
+Abstract: This control file exercises, picky, speling error checks for
+ Debian doc-base files, such as meta-package.
+Section: Programming
+
+Format: text
+Files: /usr/share/doc/spelling-general/copyright
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/add-readme
new file mode 100644
index 0000000..b1647ba
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/add-readme
@@ -0,0 +1,8 @@
+This is a deliberate speling error. duplicate
+
+duplicate
+
+--- upstream.orig/README
++++ upstream/README
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/nonrel
new file mode 100644
index 0000000..48e7740
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/nonrel
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; description mentions typo)
+
+--- upstream.orig/nonrel
++++ upstream/nonrel
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..0bfb03d
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/series
@@ -0,0 +1,3 @@
+add-readme
+spelling
+nonrel
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/spelling
new file mode 100644
index 0000000..29b9cfd
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/debian/patches/spelling
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; filename match)
+
+--- upstream.orig/spelling
++++ upstream/spelling
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/copyright/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/copyright/spelling-general/build-spec/fill-values
new file mode 100644
index 0000000..1c8c790
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: spelling-general
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: General checks for spelling errors
diff --git a/t/recipes/checks/debian/copyright/spelling-general/eval/desc b/t/recipes/checks/debian/copyright/spelling-general/eval/desc
new file mode 100644
index 0000000..62005c6
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: spelling-general
+Check: debian/copyright
diff --git a/t/recipes/checks/debian/copyright/spelling-general/eval/hints b/t/recipes/checks/debian/copyright/spelling-general/eval/hints
new file mode 100644
index 0000000..66eb250
--- /dev/null
+++ b/t/recipes/checks/debian/copyright/spelling-general/eval/hints
@@ -0,0 +1 @@
+spelling-general (binary): spelling-error-in-copyright deafult default
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config
new file mode 100644
index 0000000..fdec12b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/config
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+# Forget to load the confmodule
+# . /usr/share/debconf/confmodule
+
+
+db_input low debconf/note-abuse
+db_go
+
+
+db_input unknown debconf/unknown-priority
+db_go
+
+db_fset debconf/deprecated-default isdefault true
+
+db_input low debconf/deprecated-default
+db_go
+
+db_input low debconf/translated
+db_go
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po
new file mode 100644
index 0000000..d659394
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/da.po
@@ -0,0 +1,42 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-10-01 22:49+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid "This is a note abuse"
+msgstr "Dette er et note misbrug"
+
+#. Type: error
+#. Description
+#: ../templates:3001
+msgid "Invoked with unknown debconf priority"
+msgstr "Kaldt med ukendt debconf prioritet"
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this use deprecated?"
+msgstr "Er denne brug forældet?"
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..2107421
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,42 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-10-01 22:49+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:2001
+msgid "This is a note abuse"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:3001
+msgid "Invoked with unknown debconf priority"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this use deprecated?"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates
new file mode 100644
index 0000000..5097b3a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/debian/templates
@@ -0,0 +1,15 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
+Template: debconf/note-abuse
+Type: note
+_Description: This is a note abuse
+
+Template: debconf/unknown-priority
+Type: error
+_Description: Invoked with unknown debconf priority
+
+Template: debconf/deprecated-default
+Type: boolean
+_Description: Is this use deprecated?
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values
new file mode 100644
index 0000000..bf494b1
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-config-general
+Description: Test for various debconf config issues
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/eval/desc b/t/recipes/checks/debian/debconf/debconf-config-general/eval/desc
new file mode 100644
index 0000000..e2a46b0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-config-general
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-config-general/eval/hints b/t/recipes/checks/debian/debconf/debconf-config-general/eval/hints
new file mode 100644
index 0000000..73b5290
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-general/eval/hints
@@ -0,0 +1,4 @@
+debconf-config-general (binary): unknown-debconf-priority unknown [config:12]
+debconf-config-general (binary): possible-debconf-note-abuse debconf/note-abuse [config:8]
+debconf-config-general (binary): isdefault-flag-is-deprecated [config:15]
+debconf-config-general (binary): config-does-not-load-confmodule [config]
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config
new file mode 100644
index 0000000..d429f9b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/config
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in
new file mode 100644
index 0000000..68a964d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+
+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/debian/debconf/debconf-config-not-executable/build-spec/debian/rules b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules
new file mode 100755
index 0000000..558750b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+TMP=debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ chmod 0644 "$(TMP)/DEBIAN/config"
+ dh_builddeb
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values
new file mode 100644
index 0000000..3ea2f84
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debconf-config-not-executable
+Description: Test for debian/config not being executable
+Extra-Build-Depends: dpkg (<< 1.19.0)
+# dpkg 1.19.0 will error out due to https://anonscm.debian.org/git/dpkg/dpkg.git/commit/?id=cd791ccf8117398ea765eda3a92db52a9cf04c23
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc
new file mode 100644
index 0000000..be30442
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/desc
@@ -0,0 +1,3 @@
+Testname: debconf-config-not-executable
+Check: debian/debconf
+# dpkg 1.19.0 will error out due to https://anonscm.debian.org/git/dpkg/dpkg.git/commit/?id=cd791ccf8117398ea765eda3a92db52a9cf04c23
diff --git a/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints
new file mode 100644
index 0000000..e5b6aaa
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-config-not-executable/eval/hints
@@ -0,0 +1,4 @@
+debconf-config-not-executable (binary): postinst-does-not-load-confmodule
+debconf-config-not-executable (binary): no-debconf-templates
+debconf-config-not-executable (binary): debconf-config-not-executable
+debconf-config-not-executable (binary): control-file-has-bad-permissions config 0644 != 0755
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install
new file mode 100644
index 0000000..28c8417
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/install
@@ -0,0 +1 @@
+script usr/share/lintian
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po
new file mode 100644
index 0000000..343c3e8
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/da.po
@@ -0,0 +1,25 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..fd4f94f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/po/templates.pot
@@ -0,0 +1,25 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates
new file mode 100644
index 0000000..a45cfa3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/debian/templates
@@ -0,0 +1,4 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values
new file mode 100644
index 0000000..98b6768
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-is-not-registry
+Description: Test for using debconf as a registry
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script
new file mode 100755
index 0000000..3a05d3a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/orig/script
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+db_get debconf/translated
+db_go
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc
new file mode 100644
index 0000000..c4cd0cd
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-is-not-registry
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints
new file mode 100644
index 0000000..117dfba
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-is-not-registry/eval/hints
@@ -0,0 +1 @@
+debconf-is-not-registry (binary): debconf-is-not-a-registry [usr/share/lintian/script:3]
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config
new file mode 100644
index 0000000..9659eb3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/config
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get debconf/translated
+db_go
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po
new file mode 100644
index 0000000..e7cceb3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/da.po
@@ -0,0 +1,24 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-23 23:07+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..3edd4a9
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/po/templates.pot
@@ -0,0 +1,24 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-23 23:07+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst
new file mode 100644
index 0000000..df9df64
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+db_input low debconf/translated
+db_go
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm
new file mode 100644
index 0000000..5169df8
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ -f /usr/share/debconf/confmodule.sh ] ; then
+ . /usr/share/debconf/confmodule.sh
+ # no debconf purging
+fi
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst
new file mode 100644
index 0000000..8d41696
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get debconf/translated || true
+db_go
+
+#DEBHELPER#
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules
new file mode 100644
index 0000000..e1f0e1b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+PKG=debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ # Manually copy the scripts - otherwise debhelper with insert
+ # the "correct magic" in each of them.
+ cp -a debian/preinst debian/postinst debian/postrm "$(PKG)/DEBIAN"
+ chmod 0755 "$(PKG)/DEBIAN/preinst" "$(PKG)/DEBIAN/postinst" \
+ "$(PKG)/DEBIAN/postrm"
+ sed -i '/#DEBHELPER#/ d' "$(PKG)/DEBIAN/preinst" \
+ "$(PKG)/DEBIAN/postinst" "$(PKG)/DEBIAN/postrm"
+ dh_builddeb
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates
new file mode 100644
index 0000000..a45cfa3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/debian/templates
@@ -0,0 +1,4 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values
new file mode 100644
index 0000000..6f558ec
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-maintscripts-deps
+Description: Test for various debconf maintscripts and dep issues
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc
new file mode 100644
index 0000000..aac2cc6
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-maintscripts-deps
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints
new file mode 100644
index 0000000..3c1fb67
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-maintscripts-deps/eval/hints
@@ -0,0 +1,5 @@
+debconf-maintscripts-deps (binary): postrm-does-not-purge-debconf [postrm]
+debconf-maintscripts-deps (binary): postinst-uses-db-input [postinst:5]
+debconf-maintscripts-deps (binary): postinst-does-not-load-confmodule [postinst]
+debconf-maintscripts-deps (binary): missing-debconf-dependency-for-preinst
+debconf-maintscripts-deps (binary): loads-obsolete-confmodule /usr/share/debconf/confmodule.sh [postrm:5]
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po
new file mode 100644
index 0000000..343c3e8
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/da.po
@@ -0,0 +1,25 @@
+# Danish translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: 2012-07-23 23:08+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: Danish\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Ubrugelig note"
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..fd4f94f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/po/templates.pot
@@ -0,0 +1,25 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-07-25 11:04+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules
new file mode 100644
index 0000000..f8e47a0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_gencontrol:
+ sed -i '/^misc:Depends=/ d' debian/*substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates
new file mode 100644
index 0000000..a45cfa3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/debian/templates
@@ -0,0 +1,4 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values
new file mode 100644
index 0000000..bc71e44
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-missing-dep
+Description: Test for missing debconf dependency
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc
new file mode 100644
index 0000000..baab935
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-missing-dep
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints
new file mode 100644
index 0000000..4f4dcf5
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-missing-dep/eval/hints
@@ -0,0 +1 @@
+debconf-missing-dep (binary): missing-debconf-dependency
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config
new file mode 100644
index 0000000..6f264ea
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/config
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/debian/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values
new file mode 100644
index 0000000..7075c56
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-no-templates
+Description: Test for missing debconf templates
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc
new file mode 100644
index 0000000..f1d7d8e
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-no-templates
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints
new file mode 100644
index 0000000..dac69aa
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-no-templates/eval/hints
@@ -0,0 +1 @@
+debconf-no-templates (binary): no-debconf-templates
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config
new file mode 100644
index 0000000..6f264ea
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/config
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates
new file mode 100644
index 0000000..adf2ece
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/debian/templates
@@ -0,0 +1,3 @@
+Template: debconf/syntax-error
+Type: note
+Description whoops, I forgot a colon
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values
new file mode 100644
index 0000000..2197de4
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-syntax-error
+Description: Test for syntax error in debconf files
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc
new file mode 100644
index 0000000..075c037
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-syntax-error
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints
new file mode 100644
index 0000000..d48999c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-syntax-error/eval/hints
@@ -0,0 +1,2 @@
+debconf-syntax-error (source): syntax-error-in-debconf-template Cannot parse line 3: Description whoops, I forgot a colon [debian/templates]
+debconf-syntax-error (binary): syntax-error-in-debconf-template Cannot parse line 3: Description whoops, I forgot a colon [templates]
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/control.in
new file mode 100644
index 0000000..1140f19
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/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: ${shlibs:Depends}, ${misc:Depends}, cdebconf
+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/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po
new file mode 100644
index 0000000..0734922
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en.po
@@ -0,0 +1,241 @@
+# English translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: 2012-10-01 22:54+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: English\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Useless note"
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr "left, right, up, down"
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr "Pick the odd one out"
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr "Missing template field."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr "Is this a bad template?"
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr "Missing type"
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr "Template with unknown type"
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr "How do you like the default?"
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr "On a scale of \"false\" to \"true\"."
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr "A boolean type would have been better"
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr "Preference"
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr "Missing a Choices field"
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr "Duplicate long description"
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr "Is the field below unknown?"
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr "What is the name of this package checker:"
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr "Select either x or y"
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr "Lintian is the best!"
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr "Do you like sakana?"
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr "Or do you prefer sake?"
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr "Aren't you tired of all these debconf prompts?"
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr "I think Lintian is the best"
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr "Do you like Lintian?"
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr "Pick \"yes\" if you do."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr "Name the title of this song:"
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+#| msgid "Template with unknown type"
+msgid "Template with entropy type"
+msgstr "Template with unknown type"
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po
new file mode 100644
index 0000000..450a03c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/en_US.po
@@ -0,0 +1,223 @@
+# English translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: 2012-10-01 22:54+0200\n"
+"Last-Translator: Russ Allbery <rra@debian.org>\n"
+"Language-Team: English <debian-i18n@lists.debian.org>\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr ""
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr ""
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr ""
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+msgid "Template with entropy type"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..b7f5a7b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,223 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr ""
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr ""
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr ""
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+msgid "Template with entropy type"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates
new file mode 100644
index 0000000..46ca184
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/debian/templates
@@ -0,0 +1,124 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
+Template: debconf/unsplit-choices
+Type: select
+_Choices: left, right, up, down
+_Description: Pick the odd one out
+
+Type: text
+_Description: Missing template field.
+
+Template: debconf-malformed-template
+Type: boolean
+_Description: Is this a bad template?
+
+Template: debconf/no-type
+_Description: Missing type
+
+Template: debconf/unknown-type
+Type: lintian
+_Description: Template with unknown type
+
+Template: debconf/boolean-bogus-default
+Type: boolean
+Default: lintian
+_Description: How do you like the default?
+ On a scale of "false" to "true".
+
+Template: debconf/select-boolean-choice
+Type: select
+Choices: yes, no
+_Description: A boolean type would have been better
+
+Template: debconf/select-empty-trans-choices
+Type: select
+Choices: sakana, sake
+Choices-Da:
+_Description: Preference
+
+Template: debconf/select-without-choices
+Type: select
+_Description: Missing a Choices field
+
+Template: debconf/no-description
+Type: error
+
+Template: debconf/duplicate-long-desc
+Type: error
+_Description: Duplicate long description
+ Duplicate long description
+
+Template: debconf/unknown-field
+Type: boolean
+_Description: Is the field below unknown?
+Unknown-field: yes, it is.
+
+Template: debconf/malformed-prompt
+Type: string
+_Description: What is the name of this package checker:
+
+Template: debconf/imperative-select
+Type: select
+Choices: x,y
+_Description: Select either x or y
+
+Template: debconf/malformed-question
+Type: boolean
+_Description: Lintian is the best!
+
+Template: debconf/question-in-extended
+Type: boolean
+_Description: Do you like sakana?
+ Or do you prefer sake?
+
+Template: debconf/malformed-note-title
+Type: note
+_Description: Aren't you tired of all these debconf prompts?
+
+Template: debconf/too-long-short-desc
+Type: boolean
+_Description: This template has a very long short description, is that what you call an oxymoron?
+
+Template: debconf/first-person
+Type: select
+Choices: lintian, no-lintian
+_Description: I think Lintian is the best
+
+Template: debconf/assumption
+Type: boolean
+_Description: Do you like Lintian?
+ Pick "yes" if you do.
+
+Template: debconf/5-green-bottles-on-the-wall
+Type: string
+_Description: Name the title of this song:
+ Five green bottles sitting on the wall,
+ Five green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be four green bottles sitting on the wall.
+ .
+ Four green bottles sitting on the wall,
+ Four green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be three green bottles sitting on the wall.
+ .
+ Three green bottles sitting on the wall,
+ Three green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be two green bottles sitting on the wall.
+ .
+ Two green bottles sitting on the wall,
+ Two green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be one green bottle sitting on the wall.
+ .
+ One green bottle sitting on the wall,
+ One green bottle sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be no green bottles sitting on the wall.
+
+Template: debconf/entropy-type
+Type: entropy
+_Description: Template with entropy type
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values
new file mode 100644
index 0000000..2018d2c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-templates-general
+Description: Test for various debconf template issues
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc
new file mode 100644
index 0000000..4e1bb81
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-templates-general
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints
new file mode 100644
index 0000000..908230a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-templates-general/eval/hints
@@ -0,0 +1,22 @@
+debconf-templates-general (source): template-uses-unsplit-choices debconf/unsplit-choices [debian/templates:7]
+debconf-templates-general (binary): using-question-in-extended-description-in-templates debconf/question-in-extended [templates:91]
+debconf-templates-general (binary): using-imperative-form-in-templates debconf/imperative-select [templates:81]
+debconf-templates-general (binary): using-first-person-in-templates debconf/first-person [templates:109]
+debconf-templates-general (binary): unknown-template-type lintian [templates:27]
+debconf-templates-general (binary): unknown-field-in-templates debconf/unknown-field Unknown-field [templates:71]
+debconf-templates-general (binary): too-long-short-description-in-templates debconf/too-long-short-desc [templates:103]
+debconf-templates-general (binary): too-long-extended-description-in-templates debconf/5-green-bottles-on-the-wall [templates:121]
+debconf-templates-general (binary): select-without-choices debconf/select-without-choices [templates:52]
+debconf-templates-general (binary): select-with-boolean-choices debconf/select-boolean-choice [templates:41]
+debconf-templates-general (binary): no-template-type debconf/no-type [templates:22]
+debconf-templates-general (binary): no-template-name [templates:13]
+debconf-templates-general (binary): no-template-description debconf/no-description [templates:57]
+debconf-templates-general (binary): mismatch-translated-choices debconf/select-empty-trans-choices Choices-Da [templates:47]
+debconf-templates-general (binary): malformed-title-in-templates debconf/malformed-note-title [templates:98]
+debconf-templates-general (binary): malformed-template-name debconf-malformed-template [templates:17]
+debconf-templates-general (binary): malformed-question-in-templates debconf/malformed-question [templates:86]
+debconf-templates-general (binary): malformed-prompt-in-templates debconf/malformed-prompt [templates:75]
+debconf-templates-general (binary): making-assumptions-about-interfaces-in-templates debconf/assumption [templates:114]
+debconf-templates-general (binary): empty-translated-choices debconf/select-empty-trans-choices Choices-Da [templates:47]
+debconf-templates-general (binary): duplicate-long-description-in-template debconf/duplicate-long-desc [templates:62]
+debconf-templates-general (binary): boolean-template-has-bogus-default debconf/boolean-bogus-default lintian [templates:33]
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides
new file mode 100644
index 0000000..250f0b6
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/dpkg-overrides
@@ -0,0 +1 @@
+-DBinary="../unpacked/debian/changelog@NULL@"
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values
new file mode 100644
index 0000000..f979196
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: debconf-traversal
+Version: 1
+Description: Test for traversal issues via debconf templates
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build
new file mode 100755
index 0000000..b419dc6
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/build-spec/post-build
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+product="$1"
+
+perl -pi -e 's/\@NULL\@/\0/g' "$product"
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/eval/desc b/t/recipes/checks/debian/debconf/debconf-traversal/eval/desc
new file mode 100644
index 0000000..e4e1548
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/eval/desc
@@ -0,0 +1,3 @@
+Testname: debconf-traversal
+Test-Against: syntax-error-in-debconf-template
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/debconf-traversal/eval/hints b/t/recipes/checks/debian/debconf/debconf-traversal/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/debconf-traversal/eval/hints
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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.
+
+Package: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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.
+
+Package: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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.
+
+Package: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/eval/desc b/t/recipes/checks/debian/debconf/legacy-debconf/eval/desc
new file mode 100644
index 0000000..d6e9b44
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/eval/hints b/t/recipes/checks/debian/debconf/legacy-debconf/eval/hints
new file mode 100644
index 0000000..688e979
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/eval/hints
@@ -0,0 +1,49 @@
+debconf-udeb (udeb): unknown-field-in-templates debian-installer/debconf-udeb/title description-de.UTF-8 [templates:4]
+debconf-udeb (udeb): unknown-field-in-templates debian-installer/debconf-udeb/title description [templates:3]
+debconf-udeb (udeb): missing-debconf-dependency
+debconf (source): template-uses-unsplit-choices debconf/testmulti-escape [debian/debconf-test.templates:12]
+debconf-test-preinst (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test-preinst (binary): possible-debconf-note-abuse debconf/test [preinst:8]
+debconf-test-preinst (binary): missing-debconf-dependency-for-preinst
+debconf-test-preinst (binary): loads-obsolete-confmodule /usr/share/debconf/confmodule.sh [preinst:4]
+debconf-test-postinst (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test-postinst (binary): postinst-uses-db-input [postinst:5]
+debconf-test-postinst (binary): possible-debconf-note-abuse debconf/test [postinst:5]
+debconf-test-postinst (binary): no-debconf-config
+debconf-test-noscripts (binary): unused-debconf-template debconf/test [templates:1]
+debconf-test-noscripts (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test-noscripts (binary): postrm-does-not-purge-debconf postrm
+debconf-test-noscripts (binary): no-debconf-config
+debconf-test (binary): using-question-in-extended-description-in-templates debconf/testboolean [templates:19]
+debconf-test (binary): using-imperative-form-in-templates debconf/should-be-boolean [templates:93]
+debconf-test (binary): using-imperative-form-in-templates debconf/1st-person [templates:54]
+debconf-test (binary): using-first-person-in-templates debconf/1st-person [templates:54]
+debconf-test (binary): unused-debconf-template debconf/translate [templates:67]
+debconf-test (binary): unused-debconf-template debconf/teststring [templates:22]
+debconf-test (binary): unused-debconf-template debconf/testnote [templates:47]
+debconf-test (binary): unused-debconf-template debconf/testmulti-escape [templates:11]
+debconf-test (binary): unused-debconf-template debconf/testmulti [templates:5]
+debconf-test (binary): unused-debconf-template debconf/testboolean [templates:17]
+debconf-test (binary): unused-debconf-template debconf/should-be-no-longer-a-problem [templates:96]
+debconf-test (binary): unused-debconf-template debconf/should-be-boolean [templates:90]
+debconf-test (binary): unused-debconf-template debconf/no-description [templates:64]
+debconf-test (binary): unused-debconf-template debconf/language [templates:79]
+debconf-test (binary): unused-debconf-template debconf/internal [templates:58]
+debconf-test (binary): unused-debconf-template debconf/error [templates:85]
+debconf-test (binary): unused-debconf-template debconf/1st-person [templates:51]
+debconf-test (binary): unknown-field-in-templates debconf/test description [templates:3]
+debconf-test (binary): unknown-debconf-priority normal [config:10]
+debconf-test (binary): unknown-debconf-priority LOW [config:9]
+debconf-test (binary): too-long-short-description-in-templates debconf/testnote [templates:49]
+debconf-test (binary): too-long-extended-description-in-templates debconf/teststring [templates:24]
+debconf-test (binary): select-with-boolean-choices debconf/should-be-boolean [templates:92]
+debconf-test (binary): possible-debconf-note-abuse debconf/test [postinst:7]
+debconf-test (binary): possible-debconf-note-abuse debconf/test [config:18]
+debconf-test (binary): no-template-type debconf/language [templates:79]
+debconf-test (binary): no-template-description debconf/no-description [templates:64]
+debconf-test (binary): mismatch-translated-choices debconf/testmulti-escape Choices-de.UTF-8 [templates:13]
+debconf-test (binary): malformed-title-in-templates debconf/testnote [templates:49]
+debconf-test (binary): malformed-question-in-templates debconf/testboolean [templates:19]
+debconf-test (binary): malformed-question-in-templates debconf/should-be-no-longer-a-problem [templates:98]
+debconf-test (binary): malformed-prompt-in-templates debconf/teststring [templates:24]
+debconf-test (binary): making-assumptions-about-interfaces-in-templates debconf/testboolean [templates:19]
diff --git a/t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test b/t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates b/t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates
new file mode 100644
index 0000000..9a2dfc1
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/build-spec/debian/templates
@@ -0,0 +1,3 @@
+Template: debconf/translated
+Type: error
+_Description: Nicht nützlich
diff --git a/t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values b/t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values
new file mode 100644
index 0000000..d6c7a70
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: national-encoding
+Description: National encoding in debconf template
diff --git a/t/recipes/checks/debian/debconf/national-encoding/eval/desc b/t/recipes/checks/debian/debconf/national-encoding/eval/desc
new file mode 100644
index 0000000..7350979
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/eval/desc
@@ -0,0 +1,2 @@
+Testname: national-encoding
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/national-encoding/eval/hints b/t/recipes/checks/debian/debconf/national-encoding/eval/hints
new file mode 100644
index 0000000..6869670
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/national-encoding/eval/hints
@@ -0,0 +1 @@
+national-encoding (binary): no-debconf-config
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po
new file mode 100644
index 0000000..e99b822
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/English.po
@@ -0,0 +1 @@
+Not a PO file or an English translation.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..da5857e
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,3 @@
+# This is a comment, which should be ignored.
+[type: gettext/rfc822deb] templates
+some-other-file
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po
new file mode 100644
index 0000000..545fd25
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/de.po
@@ -0,0 +1,2 @@
+This is just some random other file that isn't a German translation at
+all.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..420734f
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,30 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Lintian 2.4.3\n"
+"PO-Revision-Date: +2010-07-25 17:07 -0700\n"
+"Last-Translator: Russ Allbery <rra@debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Default
+#: ../templates:1001
+msgid "foo"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This is a string question used for testing:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This is a second string question:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This one ensures no 100% translation of the template."
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates
new file mode 100644
index 0000000..b626825
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates
@@ -0,0 +1,10 @@
+Template: po-debconf-general/test
+Type: string
+_Default: foo
+Description: This is a string question used for testing:
+
+Template: po-debconf-general/test-2
+Type: string
+Default: bar
+_Description: This is a second string question:
+ This one ensures no 100% translation of the template.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US
new file mode 100644
index 0000000..617a474
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/debian/templates.en_US
@@ -0,0 +1,5 @@
+Template: po-debconf-general/test
+Type: string
+Default: foo
+_Description: This is an English translation that shouldn't be in this
+ directory.
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values
new file mode 100644
index 0000000..bbcbc61
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: po-debconf-general
+Description: General tests for debconf translations
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/eval/desc b/t/recipes/checks/debian/debconf/po-debconf-general/eval/desc
new file mode 100644
index 0000000..c4ebe68
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: po-debconf-general
+Check: debian/debconf
diff --git a/t/recipes/checks/debian/debconf/po-debconf-general/eval/hints b/t/recipes/checks/debian/debconf/po-debconf-general/eval/hints
new file mode 100644
index 0000000..0d9bd21
--- /dev/null
+++ b/t/recipes/checks/debian/debconf/po-debconf-general/eval/hints
@@ -0,0 +1,3 @@
+po-debconf-general (binary): unused-debconf-template po-debconf-general/test-2 [templates:6]
+po-debconf-general (binary): unused-debconf-template po-debconf-general/test [templates:1]
+po-debconf-general (binary): no-debconf-config
diff --git a/t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/debian/not-forwarded.desktop b/t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/debian/not-forwarded.desktop
new file mode 100644
index 0000000..7d47ab9
--- /dev/null
+++ b/t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/debian/not-forwarded.desktop
@@ -0,0 +1 @@
+A MENU ENTRY ACCORDING FREEDESKTOP.ORG
diff --git a/t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/fill-values b/t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/fill-values
new file mode 100644
index 0000000..3cf49b9
--- /dev/null
+++ b/t/recipes/checks/debian/desktop-entries/desktop-file/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: desktop-file
+Skeleton: source-non-native
+Description: Maintainer keeps a *.desktop menu item in ./debian
diff --git a/t/recipes/checks/debian/desktop-entries/desktop-file/eval/desc b/t/recipes/checks/debian/desktop-entries/desktop-file/eval/desc
new file mode 100644
index 0000000..0e834a9
--- /dev/null
+++ b/t/recipes/checks/debian/desktop-entries/desktop-file/eval/desc
@@ -0,0 +1,3 @@
+Testname: desktop-file
+Check: debian/desktop-entries
+See-Also: social contract item 2, developer-reference 3.1.4, policy 4.3, Bug#755161
diff --git a/t/recipes/checks/debian/desktop-entries/desktop-file/eval/hints b/t/recipes/checks/debian/desktop-entries/desktop-file/eval/hints
new file mode 100644
index 0000000..2da647f
--- /dev/null
+++ b/t/recipes/checks/debian/desktop-entries/desktop-file/eval/hints
@@ -0,0 +1 @@
+desktop-file (source): maintainer-desktop-entry [debian/not-forwarded.desktop]
diff --git a/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS b/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS
new file mode 100644
index 0000000..da28de5
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS
@@ -0,0 +1,62 @@
+unison (2.48.4-3) unstable; urgency=medium
+
+ This version is compiled with a new version of OCaml (4.08.1) and
+ is incompatible with previous versions of unison shipped in Debian,
+ in particular the one in Debian 10 (buster).
+
+ -- Stéphane Glondu <glondu@debian.org> Tue, 03 Dec 2019 11:38:54 +0100
+
+unison (2.40.63-1) experimental; urgency=low
+
+ This new version uses a protocol incompatible with the precedent one
+ (2.32.52) which was the version available in Debian 6.0 (a.k.a.
+ "Squeeze"). If you want to synchronize with the previous version of
+ Unison, use the unison2.32.52 package.
+
+ -- Stéphane Glondu <glondu@debian.org> Sat, 14 Jan 2012 11:31:14 +0100
+
+unison (2.13.16-1) unstable; urgency=low
+
+ As of version 2.10.2, the package use an alternative to let the user
+ choose between unison and unison2.9.1 binaries for unison and
+ unison-gtk. The binaries used in unison and unison-gtk package were
+ versionned binaries (ie unison2.10.2 and unison2.10.2-gtk). This was a
+ mistake. When trying to upgrade to new upstream version, former
+ alternatives were not removed and you keep symlinks to non existent
+ binaries (ie you stay with unison pointing to unison2.10.2). This
+ behavior is corrected by using a stable name for unison binaries (ie
+ unison-latest-stable).
+
+ If you have configured alternatives, you may encounter some problem,
+ because during upgrade the symlink won't be updated, since it has been
+ user configured. In this case, you should run "update-alternatives
+ --auto unison && update-alternatives --auto unison-gtk" to restore the
+ good behavior.
+
+ -- Sylvain Le Gall <gildor@debian.org> Sat, 13 Aug 2005 20:17:11 +0200
+
+unison (2.10.2-2) unstable; urgency=low
+
+ Upgrading from version 2.9.1 to 2.10.2 involves a lot of changes. In
+ particular, most of the configuration of the former stable release
+ (2.9.1) is no longer valid. Archive format has changed: if you have any
+ unsynchronized changes when you upgrade to this new archive format, you
+ have to merge them all by hand. You can also use the new package
+ unison2.9.1 (which is the former stable release) to synchronise your
+ old archive before migrating.
+
+ Version 2.10.2 and 2.9.1 are not compatible. You will need to have the
+ same version of unison on both end of the synchronisation link (ie if
+ you need to synchronise two computers, you will need to have unison
+ 2.10.2 on both).
+
+ -- Sylvain Le Gall <gildor@debian.org> Mon, 25 Apr 2005 23:06:44 +0200
+
+unison (2.10.2-1) unstable; urgency=medium
+
+ With this new stable release, a package split has been made. Now the
+ package unison will always hold the latest stable release of unison.
+ If you need to use the former stable release, you will need to install
+ unison2.9.1, which is a new debian package.
+
+ -- Sylvain Le Gall <gildor@debian.org> Tue, 19 Apr 2005 00:08:05 +0200
diff --git a/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..da28de5
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/debian/NEWS.Debian
@@ -0,0 +1,62 @@
+unison (2.48.4-3) unstable; urgency=medium
+
+ This version is compiled with a new version of OCaml (4.08.1) and
+ is incompatible with previous versions of unison shipped in Debian,
+ in particular the one in Debian 10 (buster).
+
+ -- Stéphane Glondu <glondu@debian.org> Tue, 03 Dec 2019 11:38:54 +0100
+
+unison (2.40.63-1) experimental; urgency=low
+
+ This new version uses a protocol incompatible with the precedent one
+ (2.32.52) which was the version available in Debian 6.0 (a.k.a.
+ "Squeeze"). If you want to synchronize with the previous version of
+ Unison, use the unison2.32.52 package.
+
+ -- Stéphane Glondu <glondu@debian.org> Sat, 14 Jan 2012 11:31:14 +0100
+
+unison (2.13.16-1) unstable; urgency=low
+
+ As of version 2.10.2, the package use an alternative to let the user
+ choose between unison and unison2.9.1 binaries for unison and
+ unison-gtk. The binaries used in unison and unison-gtk package were
+ versionned binaries (ie unison2.10.2 and unison2.10.2-gtk). This was a
+ mistake. When trying to upgrade to new upstream version, former
+ alternatives were not removed and you keep symlinks to non existent
+ binaries (ie you stay with unison pointing to unison2.10.2). This
+ behavior is corrected by using a stable name for unison binaries (ie
+ unison-latest-stable).
+
+ If you have configured alternatives, you may encounter some problem,
+ because during upgrade the symlink won't be updated, since it has been
+ user configured. In this case, you should run "update-alternatives
+ --auto unison && update-alternatives --auto unison-gtk" to restore the
+ good behavior.
+
+ -- Sylvain Le Gall <gildor@debian.org> Sat, 13 Aug 2005 20:17:11 +0200
+
+unison (2.10.2-2) unstable; urgency=low
+
+ Upgrading from version 2.9.1 to 2.10.2 involves a lot of changes. In
+ particular, most of the configuration of the former stable release
+ (2.9.1) is no longer valid. Archive format has changed: if you have any
+ unsynchronized changes when you upgrade to this new archive format, you
+ have to merge them all by hand. You can also use the new package
+ unison2.9.1 (which is the former stable release) to synchronise your
+ old archive before migrating.
+
+ Version 2.10.2 and 2.9.1 are not compatible. You will need to have the
+ same version of unison on both end of the synchronisation link (ie if
+ you need to synchronise two computers, you will need to have unison
+ 2.10.2 on both).
+
+ -- Sylvain Le Gall <gildor@debian.org> Mon, 25 Apr 2005 23:06:44 +0200
+
+unison (2.10.2-1) unstable; urgency=medium
+
+ With this new stable release, a package split has been made. Now the
+ package unison will always hold the latest stable release of unison.
+ If you need to use the former stable release, you will need to install
+ unison2.9.1, which is a new debian package.
+
+ -- Sylvain Le Gall <gildor@debian.org> Tue, 19 Apr 2005 00:08:05 +0200
diff --git a/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/fill-values b/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/fill-values
new file mode 100644
index 0000000..630a0bb
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/duplicate-news-files/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-native
+Testname: duplicate-news-files
+Description: Contains both NEWS and NEWS.Debian files.
diff --git a/t/recipes/checks/debian/filenames/duplicate-news-files/eval/desc b/t/recipes/checks/debian/filenames/duplicate-news-files/eval/desc
new file mode 100644
index 0000000..32c4856
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/duplicate-news-files/eval/desc
@@ -0,0 +1,3 @@
+Testname: duplicate-news-files
+See-Also: #429510, #946126
+Check: debian/filenames
diff --git a/t/recipes/checks/debian/filenames/duplicate-news-files/eval/hints b/t/recipes/checks/debian/filenames/duplicate-news-files/eval/hints
new file mode 100644
index 0000000..a307101
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/duplicate-news-files/eval/hints
@@ -0,0 +1 @@
+duplicate-news-files (source): duplicate-packaging-file better: debian/NEWS [debian/NEWS.Debian]
diff --git a/t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..da28de5
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/debian/NEWS.Debian
@@ -0,0 +1,62 @@
+unison (2.48.4-3) unstable; urgency=medium
+
+ This version is compiled with a new version of OCaml (4.08.1) and
+ is incompatible with previous versions of unison shipped in Debian,
+ in particular the one in Debian 10 (buster).
+
+ -- Stéphane Glondu <glondu@debian.org> Tue, 03 Dec 2019 11:38:54 +0100
+
+unison (2.40.63-1) experimental; urgency=low
+
+ This new version uses a protocol incompatible with the precedent one
+ (2.32.52) which was the version available in Debian 6.0 (a.k.a.
+ "Squeeze"). If you want to synchronize with the previous version of
+ Unison, use the unison2.32.52 package.
+
+ -- Stéphane Glondu <glondu@debian.org> Sat, 14 Jan 2012 11:31:14 +0100
+
+unison (2.13.16-1) unstable; urgency=low
+
+ As of version 2.10.2, the package use an alternative to let the user
+ choose between unison and unison2.9.1 binaries for unison and
+ unison-gtk. The binaries used in unison and unison-gtk package were
+ versionned binaries (ie unison2.10.2 and unison2.10.2-gtk). This was a
+ mistake. When trying to upgrade to new upstream version, former
+ alternatives were not removed and you keep symlinks to non existent
+ binaries (ie you stay with unison pointing to unison2.10.2). This
+ behavior is corrected by using a stable name for unison binaries (ie
+ unison-latest-stable).
+
+ If you have configured alternatives, you may encounter some problem,
+ because during upgrade the symlink won't be updated, since it has been
+ user configured. In this case, you should run "update-alternatives
+ --auto unison && update-alternatives --auto unison-gtk" to restore the
+ good behavior.
+
+ -- Sylvain Le Gall <gildor@debian.org> Sat, 13 Aug 2005 20:17:11 +0200
+
+unison (2.10.2-2) unstable; urgency=low
+
+ Upgrading from version 2.9.1 to 2.10.2 involves a lot of changes. In
+ particular, most of the configuration of the former stable release
+ (2.9.1) is no longer valid. Archive format has changed: if you have any
+ unsynchronized changes when you upgrade to this new archive format, you
+ have to merge them all by hand. You can also use the new package
+ unison2.9.1 (which is the former stable release) to synchronise your
+ old archive before migrating.
+
+ Version 2.10.2 and 2.9.1 are not compatible. You will need to have the
+ same version of unison on both end of the synchronisation link (ie if
+ you need to synchronise two computers, you will need to have unison
+ 2.10.2 on both).
+
+ -- Sylvain Le Gall <gildor@debian.org> Mon, 25 Apr 2005 23:06:44 +0200
+
+unison (2.10.2-1) unstable; urgency=medium
+
+ With this new stable release, a package split has been made. Now the
+ package unison will always hold the latest stable release of unison.
+ If you need to use the former stable release, you will need to install
+ unison2.9.1, which is a new debian package.
+
+ -- Sylvain Le Gall <gildor@debian.org> Tue, 19 Apr 2005 00:08:05 +0200
diff --git a/t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/fill-values b/t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/fill-values
new file mode 100644
index 0000000..91ce21d
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/news-has-debian-extension/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-native
+Testname: news-has-debian-extension
+Description: Contains a NEWS.Debian file.
diff --git a/t/recipes/checks/debian/filenames/news-has-debian-extension/eval/desc b/t/recipes/checks/debian/filenames/news-has-debian-extension/eval/desc
new file mode 100644
index 0000000..bcecab7
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/news-has-debian-extension/eval/desc
@@ -0,0 +1,3 @@
+Testname: news-has-debian-extension
+See-Also: #429510, #946126, #946041
+Check: debian/filenames
diff --git a/t/recipes/checks/debian/filenames/news-has-debian-extension/eval/hints b/t/recipes/checks/debian/filenames/news-has-debian-extension/eval/hints
new file mode 100644
index 0000000..7227dd6
--- /dev/null
+++ b/t/recipes/checks/debian/filenames/news-has-debian-extension/eval/hints
@@ -0,0 +1 @@
+news-has-debian-extension (source): incorrect-packaging-filename better: debian/NEWS [debian/NEWS.Debian]
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/changelog.in b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/changelog.in
new file mode 100644
index 0000000..7174e69
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/changelog.in
@@ -0,0 +1,8 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/control.in b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/control.in
new file mode 100644
index 0000000..c4d5304
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+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: ${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.
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/install b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/install
new file mode 100644
index 0000000..47fc6a3
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/debian/install
@@ -0,0 +1 @@
+dummy usr/share/doc/foo/
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/fill-values b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/fill-values
new file mode 100644
index 0000000..faa216c
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: cruft-crlf-eols
+Package-Architecture: all
+Description: Check that control files with CRLF EOLs are reported
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/orig/dummy b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/orig/dummy
new file mode 100644
index 0000000..5c3118d
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/build-spec/orig/dummy
@@ -0,0 +1 @@
+dummy file
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/desc b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/desc
new file mode 100644
index 0000000..36a6eab
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-crlf-eols
+Check: debian/line-separators
diff --git a/t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/hints b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/hints
new file mode 100644
index 0000000..b1c59a6
--- /dev/null
+++ b/t/recipes/checks/debian/line-separators/cruft-crlf-eols/eval/hints
@@ -0,0 +1,2 @@
+cruft-crlf-eols (source): carriage-return-line-feed [debian/control]
+cruft-crlf-eols (source): carriage-return-line-feed [debian/changelog]
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/debian/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/debian/lintian-overrides
new file mode 100644
index 0000000..2bcfb95
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/debian/lintian-overrides
@@ -0,0 +1,6 @@
+# This comment will not appear in the output, also the last
+# tag should not have a comment due to the empty line between
+# it and the one before it.
+
+# absolutly no context
+cute-field
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/fill-values
new file mode 100644
index 0000000..2a6e91a
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: absolutely-misspelled
+Description: Absolutely misspelled in override comment
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/desc b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/desc
new file mode 100644
index 0000000..5978f59
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/desc
@@ -0,0 +1,2 @@
+Testname: absolutely-misspelled
+Check: debian/lintian-overrides/comments
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints
new file mode 100644
index 0000000..4aa816e
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/absolutely-misspelled/eval/hints
@@ -0,0 +1 @@
+absolutely-misspelled (binary): spelling-in-override-comment cute-field absolutly absolutely [usr/share/lintian/overrides/absolutely-misspelled:5]
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/debian/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/debian/lintian-overrides
new file mode 100644
index 0000000..050ab92
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/debian/lintian-overrides
@@ -0,0 +1,6 @@
+# This comment will not appear in the output, also the last
+# tag should not have a comment due to the empty line between
+# it and the one before it.
+
+# for postgresql
+cute-field
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/fill-values
new file mode 100644
index 0000000..8aa25ef
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: lowercase-sql
+Description: PostgreSQL not properly capitalized in override comment
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/desc b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/desc
new file mode 100644
index 0000000..3955372
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/desc
@@ -0,0 +1,2 @@
+Testname: lowercase-sql
+Check: debian/lintian-overrides/comments
diff --git a/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints
new file mode 100644
index 0000000..3ed46b3
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/comments/lowercase-sql/eval/hints
@@ -0,0 +1 @@
+lowercase-sql (binary): capitalization-in-override-comment cute-field postgresql PostgreSQL [usr/share/lintian/overrides/lowercase-sql:5]
diff --git a/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/debian/source/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/debian/source/lintian-overrides
new file mode 100644
index 0000000..c2811ff
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+cute-field duplicate-context-cute-field_1.0.dsc arch*
+cute-field duplicate-context-cute-field_1.0.dsc arch*
diff --git a/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/fill-values
new file mode 100644
index 0000000..474697d
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: duplicate-context-cute-field
+Skeleton: source-native
+Description: Same context used in two overrides
diff --git a/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/post-build b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/post-build
new file mode 100755
index 0000000..689ad67
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/build-spec/post-build
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+product="$1"
+
+perl -pi -e 's/^(Architecture:)/\L$1\E/' "$product"
diff --git a/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/desc b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/desc
new file mode 100644
index 0000000..6e79c37
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/desc
@@ -0,0 +1,2 @@
+Testname: duplicate-context-cute-field
+Check: debian/lintian-overrides/duplicate
diff --git a/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints
new file mode 100644
index 0000000..ceb0be1
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/duplicate/duplicate-context-cute-field/eval/hints
@@ -0,0 +1 @@
+duplicate-context-cute-field (source): duplicate-override-context cute-field (lines 1 2) [debian/source/lintian-overrides]
diff --git a/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/fill-values
new file mode 100644
index 0000000..7521c6c
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: files-override-misplaced
+Description: Check for misplaced override file detection
diff --git a/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/orig/Makefile b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/orig/Makefile
new file mode 100644
index 0000000..a4c0682
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/build-spec/orig/Makefile
@@ -0,0 +1,18 @@
+ROOT = $(DESTDIR)/usr/share/doc/files-override-misplaced
+
+default:
+ :
+
+install:
+ mkdir -p $(DESTDIR)/usr/share/doc/files-override-misplaced
+ echo 'files-override-misplaced: some-override' \
+ > $(DESTDIR)/usr/share/doc/files-override-misplaced/override.lintian
+ echo 'files-override-misplaced: some-override' \
+ > $(DESTDIR)/usr/share/doc/files-override-misplaced/override.Lintian
+ gzip -n -9 $(DESTDIR)/usr/share/doc/files-override-misplaced/override.Lintian
+ mkdir -p $(DESTDIR)/usr/share/lintian/overrides/files-override-misplaced
+ touch $(DESTDIR)/usr/share/lintian/overrides/files-override-misplaced/some-override
+ mkdir -p $(DESTDIR)/usr/share/lintian/overrides/wrong-package
+ touch $(DESTDIR)/usr/share/lintian/overrides/wrong-package/some-override
+
+.PHONY: clean distclean realclean install check test
diff --git a/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/desc b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/desc
new file mode 100644
index 0000000..2954af8
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/desc
@@ -0,0 +1,2 @@
+Testname: files-override-misplaced
+Check: debian/lintian-overrides
diff --git a/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/hints b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/hints
new file mode 100644
index 0000000..788993e
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/files-override-misplaced/eval/hints
@@ -0,0 +1,4 @@
+files-override-misplaced (binary): override-file-in-wrong-package wrong-package [usr/share/lintian/overrides/wrong-package/some-override]
+files-override-misplaced (binary): override-file-in-wrong-location [usr/share/lintian/overrides/files-override-misplaced/some-override]
+files-override-misplaced (binary): override-file-in-wrong-location [usr/share/doc/files-override-misplaced/override.lintian]
+files-override-misplaced (binary): override-file-in-wrong-location [usr/share/doc/files-override-misplaced/override.Lintian.gz]
diff --git a/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/debian/source/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/debian/source/lintian-overrides
new file mode 100644
index 0000000..19eebe6
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/debian/source/lintian-overrides
@@ -0,0 +1 @@
+missing-colon (source) cute-field duplicate-context-cute-field_1.0.dsc arch*
diff --git a/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/fill-values
new file mode 100644
index 0000000..425ec11
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: missing-colon
+Skeleton: source-native
+Description: Missing colon in a source override
diff --git a/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/desc b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/desc
new file mode 100644
index 0000000..2a5f4dc
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/desc
@@ -0,0 +1,2 @@
+Testname: missing-colon
+Check: debian/lintian-overrides/malformed
diff --git a/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints
new file mode 100644
index 0000000..81bace9
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/malformed/missing-colon/eval/hints
@@ -0,0 +1 @@
+missing-colon (source): malformed-override Expected a colon [debian/source/lintian-overrides:1]
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in
new file mode 100644
index 0000000..88afb0f
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in
@@ -0,0 +1,28 @@
+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 %]
+Multi-Arch: same
+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.
+
+Package: [% $source %]-nonrel
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] (false positive)
+ 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.
+ .
+ This is a false-positive.
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values
new file mode 100644
index 0000000..085fb2f
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: fields-multi-arch-same-package-has-arch-specific-overrides
+Description: Test for Multi-Arch: same package with arch-specific overrides
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc
new file mode 100644
index 0000000..dce7d2b
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-multi-arch-same-package-has-arch-specific-overrides
+Test-Architectures: amd64
+Check: debian/lintian-overrides/mystery
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints
new file mode 100644
index 0000000..a731e06
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints
@@ -0,0 +1,2 @@
+fields-multi-arch-same-package-has-arch-specific-overrides-nonrel (binary): alien-tag foo [usr/share/lintian/overrides/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel:1]
+fields-multi-arch-same-package-has-arch-specific-overrides (binary): alien-tag foo [usr/share/lintian/overrides/fields-multi-arch-same-package-has-arch-specific-overrides:1]
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/overrides b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/overrides
new file mode 100644
index 0000000..fcf6f7b
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/overrides
@@ -0,0 +1,2 @@
+lintian-override:
+lintian-overrides: copyright-contains-dh_make-todo-boilerplate foo-bar-extra
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/rules b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/rules
new file mode 100755
index 0000000..8685ec8
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+pkg=lintian-overrides
+
+%:
+ dh $@
+
+override_dh_fixperms:
+ install -D -m 0644 $(CURDIR)/debian/overrides \
+ $(CURDIR)/debian/$(pkg)/usr/share/lintian/overrides/$(pkg)
+ dh_fixperms
+
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/fill-values
new file mode 100644
index 0000000..b52ea67
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: lintian-overrides
+Description: Test the couple of overrides-related tags
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/desc b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/desc
new file mode 100644
index 0000000..e99d9d4
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/desc
@@ -0,0 +1,2 @@
+Testname: lintian-overrides
+Check: debian/lintian-overrides/mystery
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints
new file mode 100644
index 0000000..0b32d54
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/lintian-overrides/eval/hints
@@ -0,0 +1 @@
+lintian-overrides (binary): alien-tag lintian-override: [usr/share/lintian/overrides/lintian-overrides:1]
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/install b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/install
new file mode 100644
index 0000000..747a313
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/install
@@ -0,0 +1 @@
+foo.1 /etc/apt/sources.list.d \ No newline at end of file
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/lintian-overrides
new file mode 100644
index 0000000..04ae11b
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/lintian-overrides
@@ -0,0 +1,20 @@
+# This comment will not appear in the output, also the last
+# tag should not have a comment due to the empty line between
+# it and the one before it.
+
+# override without extra information
+manpage-has-bad-whatis-entry
+# Architecture specific override
+[i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/
+[!i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/
+# exact extra information
+FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:4 /usr/dict/
+# These are wildcard overrides
+FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:2*
+FSSTND-dir-in-manual-page */foo.1.gz:5 /usr/doc/
+FSSTND-dir-in-manual-page */foo.1.gz:3*
+
+# renamed tag
+package-install-apt-sources *
+
+#FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz * more occurrences not shown
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/manpages b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/manpages
new file mode 100644
index 0000000..efb5c57
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/debian/manpages
@@ -0,0 +1 @@
+foo.1
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/fill-values
new file mode 100644
index 0000000..0facd1c
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: mixed-overrides
+Package-Architecture: any
+Description: Test override handling
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/orig/foo.1 b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/orig/foo.1
new file mode 100644
index 0000000..233a578
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/build-spec/orig/foo.1
@@ -0,0 +1,32 @@
+.TH FOO 1 "Sep 13, 2008" "Debian GNU/Linux"
+
+.SH DESCRIPTION
+/usr/dict/
+/usr/doc/
+/usr/etc/
+
+
+
+
+
+/usr/info/
+/usr/man/
+/usr/adm/
+
+
+
+
+
+
+/var/adm/
+/var/catman/
+/var/named/
+
+
+
+
+
+
+/var/nis/
+/var/preserve/
+/usr/preserve/
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/desc b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/desc
new file mode 100644
index 0000000..618dacd
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/desc
@@ -0,0 +1,4 @@
+Testname: mixed-overrides
+Check: debian/lintian-overrides/mystery
+Test-Against:
+ alien-tag
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints
new file mode 100644
index 0000000..1a22602
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/mixed-overrides/eval/hints
@@ -0,0 +1,2 @@
+mixed-overrides (binary): renamed-tag package-install-apt-sources => package-installs-apt-sources [usr/share/lintian/overrides/mixed-overrides:18]
+mixed-overrides (binary): renamed-tag manpage-has-bad-whatis-entry => bad-whatis-entry [usr/share/lintian/overrides/mixed-overrides:6]
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/install b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/install
new file mode 100644
index 0000000..747a313
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/install
@@ -0,0 +1 @@
+foo.1 /etc/apt/sources.list.d \ No newline at end of file
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/manpages b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/manpages
new file mode 100644
index 0000000..efb5c57
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/manpages
@@ -0,0 +1 @@
+foo.1
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/overrides-shown.lintian-overrides b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/overrides-shown.lintian-overrides
new file mode 100644
index 0000000..bda39f8
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/debian/overrides-shown.lintian-overrides
@@ -0,0 +1,21 @@
+# This comment will not appear in the output, also the last
+# tag should not have a comment due to the empty line between
+# it and the one before it.
+
+# override without extra information
+manpage-has-bad-whatis-entry
+# Architecture specific override
+[i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/
+[!i386]: FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:6 /usr/etc/
+# exact extra information
+FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:4 /usr/dict/
+# These are wildcard overrides
+FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz:2*
+FSSTND-dir-in-manual-page */foo.1.gz:5 /usr/doc/
+# Comments in UTF-8: ✓ (☃)
+FSSTND-dir-in-manual-page */foo.1.gz:3*
+
+# renamed tag
+package-install-apt-sources *
+
+#FSSTND-dir-in-manual-page usr/share/man/man1/foo.1.gz * more occurrences not shown
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/fill-values
new file mode 100644
index 0000000..ce9e283
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: overrides-shown
+Package-Architecture: any
+Description: Test override handling
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/orig/foo.1 b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/orig/foo.1
new file mode 100644
index 0000000..233a578
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/build-spec/orig/foo.1
@@ -0,0 +1,32 @@
+.TH FOO 1 "Sep 13, 2008" "Debian GNU/Linux"
+
+.SH DESCRIPTION
+/usr/dict/
+/usr/doc/
+/usr/etc/
+
+
+
+
+
+/usr/info/
+/usr/man/
+/usr/adm/
+
+
+
+
+
+
+/var/adm/
+/var/catman/
+/var/named/
+
+
+
+
+
+
+/var/nis/
+/var/preserve/
+/usr/preserve/
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/desc b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/desc
new file mode 100644
index 0000000..3c82de2
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/desc
@@ -0,0 +1,5 @@
+Testname: overrides-shown
+Options: --show-overrides
+Check: debian/lintian-overrides/mystery
+Test-Against:
+ alien-tag
diff --git a/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints
new file mode 100644
index 0000000..d81abaf
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/mystery/overrides-shown/eval/hints
@@ -0,0 +1,2 @@
+overrides-shown (binary): renamed-tag package-install-apt-sources => package-installs-apt-sources [usr/share/lintian/overrides/overrides-shown:19]
+overrides-shown (binary): renamed-tag manpage-has-bad-whatis-entry => bad-whatis-entry [usr/share/lintian/overrides/overrides-shown:6]
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/debian/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/debian/lintian-overrides
new file mode 100644
index 0000000..deea577
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/debian/lintian-overrides
@@ -0,0 +1 @@
+[amd64]: cute-field
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/fill-values
new file mode 100644
index 0000000..886cd60
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: amd64-on-arch-all
+Skeleton: upload-native
+Description: Override with amd64 architecture restriction on an Arch: all installable.
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/desc b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/desc
new file mode 100644
index 0000000..a34c828
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/desc
@@ -0,0 +1,2 @@
+Testname: amd64-on-arch-all
+Check: debian/lintian-overrides/restricted
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints
new file mode 100644
index 0000000..d74e878
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/amd64-on-arch-all/eval/hints
@@ -0,0 +1 @@
+amd64-on-arch-all (binary): invalid-override-restriction Architecture list in Arch:all installable [usr/share/lintian/overrides/amd64-on-arch-all:1]
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/debian/lintian-overrides b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/debian/lintian-overrides
new file mode 100644
index 0000000..bb1c669
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/debian/lintian-overrides
@@ -0,0 +1 @@
+[bingo]: cute-field
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/fill-values
new file mode 100644
index 0000000..b30cb70
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: arch-bingo
+Skeleton: upload-native
+Description: Override with 'bingo' architecture restriction on an Arch: any installable
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/desc b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/desc
new file mode 100644
index 0000000..8dfe2b2
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/desc
@@ -0,0 +1,2 @@
+Testname: arch-bingo
+Check: debian/lintian-overrides/restricted
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints
new file mode 100644
index 0000000..667ea2f
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/arch-bingo/eval/hints
@@ -0,0 +1 @@
+arch-bingo (binary): invalid-override-restriction Unknown architecture wildcard bingo [usr/share/lintian/overrides/arch-bingo:1]
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in
new file mode 100644
index 0000000..88afb0f
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in
@@ -0,0 +1,28 @@
+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 %]
+Multi-Arch: same
+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.
+
+Package: [% $source %]-nonrel
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] (false positive)
+ 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.
+ .
+ This is a false-positive.
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values
new file mode 100644
index 0000000..085fb2f
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: fields-multi-arch-same-package-has-arch-specific-overrides
+Description: Test for Multi-Arch: same package with arch-specific overrides
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc
new file mode 100644
index 0000000..7aa72a6
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc
@@ -0,0 +1,5 @@
+Testname: fields-multi-arch-same-package-has-arch-specific-overrides
+Test-Architectures: amd64
+Check: debian/lintian-overrides/restricted
+Test-Against:
+ invalid-override-restriction
diff --git a/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/lintian-overrides/restricted/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/debian/maintscript b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/debian/maintscript
new file mode 100644
index 0000000..6a583d7
--- /dev/null
+++ b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/debian/maintscript
@@ -0,0 +1,4 @@
+rm_conffile /etc/correct.conf 0.2~ foo
+rm_conffile /etc/incorrect.conf 0.2~ foo -- "$@"
+rm_conffile /etc/incorrect.conf 0.2~ foo -- "${@}"
+rm_conffile /etc/incorrect.conf 0.2~ foo -- "$@"
diff --git a/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/fill-values b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/fill-values
new file mode 100644
index 0000000..c750dfe
--- /dev/null
+++ b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: maintscript-includes-maint-script-parameters
+Dh-Compat-Level: 11
+Description: Check dh_installdeb .maintscript files
diff --git a/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/desc b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/desc
new file mode 100644
index 0000000..453fab1
--- /dev/null
+++ b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/desc
@@ -0,0 +1,2 @@
+Testname: maintscript-includes-maint-script-parameters
+Check: debian/maintscript
diff --git a/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints
new file mode 100644
index 0000000..6fcf5bf
--- /dev/null
+++ b/t/recipes/checks/debian/maintscript/maintscript-includes-maint-script-parameters/eval/hints
@@ -0,0 +1,3 @@
+maintscript-includes-maint-script-parameters (source): maintscript-includes-maint-script-parameters [debian/maintscript:4]
+maintscript-includes-maint-script-parameters (source): maintscript-includes-maint-script-parameters [debian/maintscript:3]
+maintscript-includes-maint-script-parameters (source): maintscript-includes-maint-script-parameters [debian/maintscript:2]
diff --git a/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/bin/not-suitable-for-upstream b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/bin/not-suitable-for-upstream
new file mode 100755
index 0000000..e47f731
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/bin/not-suitable-for-upstream
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+# USER-FACING EXECUTABLE NOT SUITABLE FOR INCLUSION UPSTREAM
diff --git a/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/not-suitable-for-upstream.1 b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/not-suitable-for-upstream.1
new file mode 100644
index 0000000..1c0946b
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/debian/not-suitable-for-upstream.1
@@ -0,0 +1 @@
+A MANPAGE
diff --git a/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/fill-values b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/fill-values
new file mode 100644
index 0000000..763e8dd
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: maintainer-provided-executable
+Skeleton: source-non-native
+Description: Maintainer manual page with executable also so provided (false positive)
diff --git a/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/desc b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/desc
new file mode 100644
index 0000000..82cc179
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/desc
@@ -0,0 +1,9 @@
+Testname: maintainer-provided-executable
+Check: debian/manual-pages
+Test-Against:
+ maintainer-manual-page
+See-Also:
+ social contract item 2,
+ developer-reference 3.1.4,
+ policy 4.3,
+ Bug#755161
diff --git a/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/hints b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/maintainer-provided-executable/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/debian/not-forwarded.1 b/t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/debian/not-forwarded.1
new file mode 100644
index 0000000..1c0946b
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/debian/not-forwarded.1
@@ -0,0 +1 @@
+A MANPAGE
diff --git a/t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/fill-values b/t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/fill-values
new file mode 100644
index 0000000..e9cf9d4
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/manpage-in-1/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: manpage-in-1
+Skeleton: source-non-native
+Description: Maintainer keeps a manpage from section 1 in ./debian
diff --git a/t/recipes/checks/debian/manual-pages/manpage-in-1/eval/desc b/t/recipes/checks/debian/manual-pages/manpage-in-1/eval/desc
new file mode 100644
index 0000000..bcce654
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/manpage-in-1/eval/desc
@@ -0,0 +1,3 @@
+Testname: manpage-in-1
+Check: debian/manual-pages
+See-Also: social contract item 2, developer-reference 3.1.4, policy 4.3, Bug#755161
diff --git a/t/recipes/checks/debian/manual-pages/manpage-in-1/eval/hints b/t/recipes/checks/debian/manual-pages/manpage-in-1/eval/hints
new file mode 100644
index 0000000..818b90c
--- /dev/null
+++ b/t/recipes/checks/debian/manual-pages/manpage-in-1/eval/hints
@@ -0,0 +1 @@
+manpage-in-1 (source): maintainer-manual-page [debian/not-forwarded.1]
diff --git a/t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/debian/not-installed b/t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/debian/not-installed
new file mode 100644
index 0000000..3bb0456
--- /dev/null
+++ b/t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/debian/not-installed
@@ -0,0 +1 @@
+usr/lib/x86_64-linux-gnu/does-not-exist.a
diff --git a/t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/fill-values b/t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/fill-values
new file mode 100644
index 0000000..447697c
--- /dev/null
+++ b/t/recipes/checks/debian/not-installed/triplet-in-library-path/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: triplet-in-library-path
+Skeleton: source-native
+Description: Excludes a library from installation only on one architecture
diff --git a/t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/desc b/t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/desc
new file mode 100644
index 0000000..e46ecfc
--- /dev/null
+++ b/t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/desc
@@ -0,0 +1,3 @@
+Testname: triplet-in-library-path
+Check: debian/not-installed
+See-Also: Debian Bug#961973
diff --git a/t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/hints b/t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/hints
new file mode 100644
index 0000000..32b37b5
--- /dev/null
+++ b/t/recipes/checks/debian/not-installed/triplet-in-library-path/eval/hints
@@ -0,0 +1 @@
+triplet-in-library-path (source): unwanted-path-too-specific usr/lib/x86_64-linux-gnu/does-not-exist.a [debian/not-installed:1]
diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch1 b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch1
diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch2 b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/patch2
diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series
new file mode 100644
index 0000000..8c90984
--- /dev/null
+++ b/t/recipes/checks/debian/patches/count/two-patches/build-spec/debian/patches/series
@@ -0,0 +1,5 @@
+patch1
+# a comment
+patch2 # another comment
+ # yet another comment
+# patch3
diff --git a/t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values b/t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values
new file mode 100644
index 0000000..436ad89
--- /dev/null
+++ b/t/recipes/checks/debian/patches/count/two-patches/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: two-patches
+Description: Package with two Debian patches
diff --git a/t/recipes/checks/debian/patches/count/two-patches/eval/desc b/t/recipes/checks/debian/patches/count/two-patches/eval/desc
new file mode 100644
index 0000000..333ef3b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/count/two-patches/eval/desc
@@ -0,0 +1,2 @@
+Testname: two-patches
+Check: debian/patches/count
diff --git a/t/recipes/checks/debian/patches/count/two-patches/eval/hints b/t/recipes/checks/debian/patches/count/two-patches/eval/hints
new file mode 100644
index 0000000..e7e3e7d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/count/two-patches/eval/hints
@@ -0,0 +1 @@
+two-patches (source): number-of-patches 2 [debian/patches/series]
diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch
new file mode 100644
index 0000000..a1193df
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/debian/patches/applied-upstream.patch
@@ -0,0 +1,15 @@
+Description: Convert a source file to UTF-8 encoding.
+Author: Felix Lechner <felix.lechner@lease-up.com>
+Applied-Upstream: https://gitlab.gnome.org/World/lollypop/-/commit/4c1435ee22220c4a7f2ccaa05bce60a3e64cb912
+
+--- a/cyassl/ctaocrypt/tfm.h
++++ b/cyassl/ctaocrypt/tfm.h
+@@ -28,7 +28,7 @@
+
+
+ /**
+- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
+ * to fit CyaSSL's needs.
+ */
+
diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values
new file mode 100644
index 0000000..3017656
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: applied-upstream
+Description: Debian patch with Applied-Upstream (false positive)
diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc
new file mode 100644
index 0000000..7dbb942
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/desc
@@ -0,0 +1,5 @@
+Testname: applied-upstream
+Check: debian/patches/dep3
+Test-Against:
+ patch-not-forwarded-upstream
+See-Also: Bug#965119
diff --git a/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/applied-upstream/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch
new file mode 100644
index 0000000..f35f299
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/debian/patches/silent.patch
@@ -0,0 +1,14 @@
+Description: Convert a source file to UTF-8 encoding.
+Author: Felix Lechner <felix.lechner@lease-up.com>
+
+--- a/cyassl/ctaocrypt/tfm.h
++++ b/cyassl/ctaocrypt/tfm.h
+@@ -28,7 +28,7 @@
+
+
+ /**
+- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
+ * to fit CyaSSL's needs.
+ */
+
diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values
new file mode 100644
index 0000000..479f07d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: empty-forwarded-no-bug
+Description: Debian patch with empty Forwarded and no Bug
diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc
new file mode 100644
index 0000000..0fd262b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/desc
@@ -0,0 +1,3 @@
+Testname: empty-forwarded-no-bug
+Check: debian/patches/dep3
+See-Also: Bug#755153
diff --git a/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints
new file mode 100644
index 0000000..8a913be
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/empty-forwarded-no-bug/eval/hints
@@ -0,0 +1 @@
+empty-forwarded-no-bug (source): patch-not-forwarded-upstream [debian/patches/silent.patch]
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch
new file mode 100644
index 0000000..4b48b32
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/debian/patches/not-forwarded.patch
@@ -0,0 +1,15 @@
+Description: Convert a source file to UTF-8 encoding.
+Author: Felix Lechner <felix.lechner@lease-up.com>
+Forwarded: no
+
+--- a/cyassl/ctaocrypt/tfm.h
++++ b/cyassl/ctaocrypt/tfm.h
+@@ -28,7 +28,7 @@
+
+
+ /**
+- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
+ * to fit CyaSSL's needs.
+ */
+
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values
new file mode 100644
index 0000000..4cd9c11
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: forwarded-no
+Description: Debian patch with Forwarded: no
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc
new file mode 100644
index 0000000..edb980d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/desc
@@ -0,0 +1,3 @@
+Testname: forwarded-no
+Check: debian/patches/dep3
+See-Also: Bug#755153
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints
new file mode 100644
index 0000000..428ce9f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-no/eval/hints
@@ -0,0 +1 @@
+forwarded-no (source): patch-not-forwarded-upstream [debian/patches/not-forwarded.patch]
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch
new file mode 100644
index 0000000..65e7f54
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/debian/patches/no-forwarding-needed.patch
@@ -0,0 +1,15 @@
+Description: Convert a source file to UTF-8 encoding.
+Author: Felix Lechner <felix.lechner@lease-up.com>
+Forwarded: not-needed
+
+--- a/cyassl/ctaocrypt/tfm.h
++++ b/cyassl/ctaocrypt/tfm.h
+@@ -28,7 +28,7 @@
+
+
+ /**
+- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
+ * to fit CyaSSL's needs.
+ */
+
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values
new file mode 100644
index 0000000..aae5187
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: forwarded-not-needed
+Description: Debian patch with Forwarded: not-needed (false positive)
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc
new file mode 100644
index 0000000..b69011f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/desc
@@ -0,0 +1,5 @@
+Testname: forwarded-not-needed
+Check: debian/patches/dep3
+Test-Against:
+ patch-not-forwarded-upstream
+See-Also: Bug#755153
diff --git a/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/forwarded-not-needed/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff
new file mode 100644
index 0000000..76548ba
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/debian/patches/13_document_modifiers.diff
@@ -0,0 +1,41 @@
+Description: Better document modifiers
+Author: Emanuele Giaquinta
+Origin: upstream, https://github.com/exg/rxvt-unicode/commit/b881e3714ba253d08dc1b900d9333b73759db126
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839769
+Last-Update: 2017-10-16
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rxvt-unicode/doc/rxvt.1.pod
+===================================================================
+--- rxvt-unicode.orig/doc/rxvt.1.pod 2017-10-16 11:03:33.669407628 -0400
++++ rxvt-unicode/doc/rxvt.1.pod 2017-10-16 11:03:33.629407435 -0400
+@@ -1081,10 +1081,25 @@
+
+ (modifiers-)key
+
+-Where I<modifiers> can be any combination of B<ISOLevel3>, B<AppKeypad>,
+-B<Control>, B<NumLock>, B<Shift>, B<Meta>, B<Lock>, B<Mod1>, B<Mod2>,
+-B<Mod3>, B<Mod4>, B<Mod5>, and the abbreviated B<I>, B<K>, B<C>, B<N>,
+-B<S>, B<M>, B<A>, B<L>, B<1>, B<2>, B<3>, B<4>, B<5>.
++Where I<modifiers> can be any combination of the following full or
++abbreviated modifier names:
++
++=begin table
++
++ B<ISOLevel3> B<I>
++ B<AppKeypad> B<K>
++ B<Control> B<C>
++ B<NumLock> B<N>
++ B<Shift> B<S>
++ B<Meta> B<M> B<A>
++ B<Lock> B<L>
++ B<Mod1> B<1>
++ B<Mod2> B<2>
++ B<Mod3> B<3>
++ B<Mod4> B<4>
++ B<Mod5> B<5>
++
++=end table
+
+ The B<NumLock>, B<Meta> and B<ISOLevel3> modifiers are usually aliased to
+ whatever modifier the NumLock key, Meta/Alt keys or ISO Level3 Shift/AltGr
diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values
new file mode 100644
index 0000000..d086fa1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: origin-upstream
+Description: Debian patch with Origin: upstream, URL (taken from Bug#966140)
diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc
new file mode 100644
index 0000000..8dd636e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/desc
@@ -0,0 +1,5 @@
+Testname: origin-upstream
+Check: debian/patches/dep3
+Test-Against:
+ patch-not-forwarded-upstream
+See-Also: Bug#966140
diff --git a/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/origin-upstream/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch
new file mode 100644
index 0000000..2c51d06
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/debian/patches/no-forwarding-needed.patch
@@ -0,0 +1,17 @@
+Description: Convert a source file to UTF-8 encoding.
+Author: Felix Lechner <felix.lechner@lease-up.com>
+
+# second pseudo-header allowed by DEP-3, see Bug#966024
+Forwarded: not-needed
+
+--- a/cyassl/ctaocrypt/tfm.h
++++ b/cyassl/ctaocrypt/tfm.h
+@@ -28,7 +28,7 @@
+
+
+ /**
+- * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
++ * Edited by Moisés Guimarães (moises.guimaraes@phoebus.com.br)
+ * to fit CyaSSL's needs.
+ */
+
diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values
new file mode 100644
index 0000000..1e762d9
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: pseudo-header
+Description: Debian patch with Forwarded: not-needed in a pseudo-header (false positive)
diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc
new file mode 100644
index 0000000..18c9f9d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/desc
@@ -0,0 +1,5 @@
+Testname: pseudo-header
+Check: debian/patches/dep3
+Test-Against:
+ patch-not-forwarded-upstream
+See-Also: Bug#966024
diff --git a/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dep3/pseudo-header/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc
new file mode 100644
index 0000000..0dd0b1d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/patches/dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints
new file mode 100644
index 0000000..4a90e73
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/hints
@@ -0,0 +1,5 @@
+scripts (source): package-uses-deprecated-dpatch-patch-system
+scripts (source): dpatch-missing-description [debian/patches/04_i_dont_have_a_description_either.patch]
+scripts (source): dpatch-missing-description [debian/patches/02_i_dont_have_a_description.patch]
+scripts (source): dpatch-index-references-non-existent-patch 01_some_other_patch_thats_not_in_the_package.dpatch
+scripts (source): dpatch-index-references-non-existent-patch 01_not_here_right_now.dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source
new file mode 100644
index 0000000..4ff54b4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/README.source
@@ -0,0 +1 @@
+I am using dpatch.
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list
new file mode 100644
index 0000000..52ee366
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list
@@ -0,0 +1,12 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
+05_dep3.diff
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff
new file mode 100644
index 0000000..5cbb237
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_dep3.diff by Russ Allbery <rra@debian.org>
+#
+# Description: Patch using the DEP 3 patch header
+# Author: Russ Allbery <rra@debian.org>
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values
new file mode 100644
index 0000000..cb818e9
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-dpatch-description
+Description: Test patch-system tags for a dpatch package
+Extra-Build-Depends: dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc
new file mode 100644
index 0000000..7212807
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-dpatch-description
+Check: debian/patches/dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints
new file mode 100644
index 0000000..f617634
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-dpatch-description/eval/hints
@@ -0,0 +1,5 @@
+patch-systems-dpatch-description (source): package-uses-deprecated-dpatch-patch-system
+patch-systems-dpatch-description (source): dpatch-missing-description [debian/patches/04_i_dont_have_a_description_either.patch]
+patch-systems-dpatch-description (source): dpatch-missing-description [debian/patches/02_i_dont_have_a_description.patch]
+patch-systems-dpatch-description (source): dpatch-index-references-non-existent-patch 01_some_other_patch_thats_not_in_the_package.dpatch
+patch-systems-dpatch-description (source): dpatch-index-references-non-existent-patch 01_not_here_right_now.dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source
new file mode 100644
index 0000000..052084e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/README.source
@@ -0,0 +1 @@
+Some stuff about quilt here.
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/README.patches
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..040d7e8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/series
@@ -0,0 +1,6 @@
+# tries to create an existing file, which fails in dpkg-source
+# some-file
+some-other-file -p0
+# non-existent patches trigger error in dpkg-source
+# some-nonexistent-patch
+# file-commented-out
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file
new file mode 100644
index 0000000..7749d40
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-file
@@ -0,0 +1,11 @@
+Some regular patch creating a file.
+
+--- /dev/null
++++ debian/debian/some-file
+@@ -0,0 +1,6 @@
++Some
++file
++created
++in
++debian
++directory.
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file
new file mode 100644
index 0000000..ed24c8f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/some-other-file
@@ -0,0 +1,12 @@
+Some -p0 patch creating a file.
+
+--- /dev/null
++++ debian/some-other-file
+@@ -0,0 +1,7 @@
++Some
++other
++file
++created
++in
++debian
++directory.
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series
new file mode 100644
index 0000000..4232ed0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series
@@ -0,0 +1 @@
+file-mentioned-in-vendor-series
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README
new file mode 100644
index 0000000..55d9771
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/diff/README
@@ -0,0 +1 @@
+Debian README
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values
new file mode 100644
index 0000000..ced4b7a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: patch-systems-quilt-general
+Skeleton: upload-non-native
+Extra-Build-Depends: quilt, dpatch
+Description: General tests of a quilt patch system
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc
new file mode 100644
index 0000000..154b396
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-general
+Check: debian/patches/dpatch
diff --git a/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints
new file mode 100644
index 0000000..24b71da
--- /dev/null
+++ b/t/recipes/checks/debian/patches/dpatch/patch-systems-quilt-general/eval/hints
@@ -0,0 +1,2 @@
+patch-systems-quilt-general (source): package-uses-deprecated-dpatch-patch-system
+patch-systems-quilt-general (source): dpatch-build-dep-but-no-patch-list
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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.
+
+Package: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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.
+
+Package: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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.
+
+Package: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/eval/desc b/t/recipes/checks/debian/patches/legacy-debconf/eval/desc
new file mode 100644
index 0000000..3043d9c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/eval/hints b/t/recipes/checks/debian/patches/legacy-debconf/eval/hints
new file mode 100644
index 0000000..d46c37c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/eval/hints
@@ -0,0 +1,2 @@
+debconf (source): patch-system-but-no-source-readme
+debconf (source): patch-system dpatch
diff --git a/t/recipes/checks/debian/patches/legacy-debconf/eval/post-test b/t/recipes/checks/debian/patches/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/patches/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/debian/patches/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/patches/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/debian/patches/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/patches/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/debian/patches/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/patches/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/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/debian/patches/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/patches/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/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/debian/patches/legacy-relations/eval/desc b/t/recipes/checks/debian/patches/legacy-relations/eval/desc
new file mode 100644
index 0000000..adcbfe1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/legacy-relations/eval/hints b/t/recipes/checks/debian/patches/legacy-relations/eval/hints
new file mode 100644
index 0000000..e3cb73d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-relations/eval/hints
@@ -0,0 +1,2 @@
+relations (source): patch-system-but-no-source-readme
+relations (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/legacy-relations/eval/post-test b/t/recipes/checks/debian/patches/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/eval/desc b/t/recipes/checks/debian/patches/legacy-scripts/eval/desc
new file mode 100644
index 0000000..2f22144
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/eval/hints b/t/recipes/checks/debian/patches/legacy-scripts/eval/hints
new file mode 100644
index 0000000..672cda0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/eval/hints
@@ -0,0 +1,3 @@
+scripts (source): patch-system quilt
+scripts (source): patch-system dpatch
+scripts (source): more-than-one-patch-system
diff --git a/t/recipes/checks/debian/patches/legacy-scripts/eval/post-test b/t/recipes/checks/debian/patches/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source
new file mode 100644
index 0000000..4ff54b4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/README.source
@@ -0,0 +1 @@
+I am using dpatch.
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list
new file mode 100644
index 0000000..52ee366
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list
@@ -0,0 +1,12 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
+05_dep3.diff
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff
new file mode 100644
index 0000000..5cbb237
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/debian/patches/05_dep3.diff
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_dep3.diff by Russ Allbery <rra@debian.org>
+#
+# Description: Patch using the DEP 3 patch header
+# Author: Russ Allbery <rra@debian.org>
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values
new file mode 100644
index 0000000..cb818e9
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-dpatch-description
+Description: Test patch-system tags for a dpatch package
+Extra-Build-Depends: dpatch
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc
new file mode 100644
index 0000000..11ff095
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-dpatch-description
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints
new file mode 100644
index 0000000..646bd69
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-dpatch-description/eval/hints
@@ -0,0 +1 @@
+patch-systems-dpatch-description (source): patch-system dpatch
diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/debian/patches/series
diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values
new file mode 100644
index 0000000..7bfde22
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-empty-series
+Description: Test for quilt patches with empty series
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc
new file mode 100644
index 0000000..de141e2
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/desc
@@ -0,0 +1,3 @@
+Testname: patch-systems-empty-series
+See-Also: Debian Bug #525005
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints
new file mode 100644
index 0000000..c7f9fec
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-empty-series/eval/hints
@@ -0,0 +1 @@
+patch-systems-empty-series (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README
new file mode 100644
index 0000000..c2513f3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/diff/README
@@ -0,0 +1 @@
+README with some Debian change to create a diff
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values
new file mode 100644
index 0000000..0922b52
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: patch-systems-no-patch-system
+Skeleton: upload-non-native
+Source-Format: 1.0
+Description: Diagnose lack of a patch system
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc
new file mode 100644
index 0000000..a6feb2f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-no-patch-system
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints
new file mode 100644
index 0000000..7e66d4d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-patch-system/eval/hints
@@ -0,0 +1 @@
+patch-systems-no-patch-system (source): direct-changes-in-diff-but-no-patch-system README
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok
new file mode 100644
index 0000000..7eee707
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/01_this_patch_is_ok
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series
new file mode 100644
index 0000000..a342eb3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/debian/patches/series
@@ -0,0 +1 @@
+01_this_patch_is_ok
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values
new file mode 100644
index 0000000..d307faf
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-no-readme-source
+Description: Patch system with no README.source
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc
new file mode 100644
index 0000000..0d70fa3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/desc
@@ -0,0 +1,3 @@
+Testname: patch-systems-no-readme-source
+See-Also: Debian Bug #537969
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints
new file mode 100644
index 0000000..a53bbab
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-no-readme-source/eval/hints
@@ -0,0 +1,2 @@
+patch-systems-no-readme-source (source): patch-system-but-no-source-readme
+patch-systems-no-readme-source (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1
new file mode 100644
index 0000000..7d0132f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a/a 2008-11-11 19:38:12.000000000 +0000
++++ a/a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series
new file mode 100644
index 0000000..9ca2b60
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/debian/patches/series
@@ -0,0 +1 @@
+debian-changes-1.0-1
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values
new file mode 100644
index 0000000..69be6ed
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: patch-systems-quilt-debian-changes
+Description: Test a 3.0 (quilt) package which has a debian-changes-XXX patch
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a
new file mode 100644
index 0000000..c0acc64
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/build-spec/orig/a
@@ -0,0 +1 @@
+sample text
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc
new file mode 100644
index 0000000..db1fb19
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-debian-changes
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints
new file mode 100644
index 0000000..94bd4e2
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-debian-changes/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-debian-changes (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok
new file mode 100644
index 0000000..7eee707
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description
new file mode 100644
index 0000000..12128b8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description
@@ -0,0 +1,5 @@
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch
new file mode 100644
index 0000000..025656a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch
@@ -0,0 +1,8 @@
+diff --git a/a b/a
+index eb39593..7258d2f 100644
+--- a 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,3 @@
+ sample text
+ and some more sample text
++and yet another line
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description
new file mode 100644
index 0000000..09bfd88
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/04_template_description
@@ -0,0 +1,17 @@
+Description: <short summary of the patch>
+ This patch include a templated text for description
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+diff --git a/a b/a
+index eb39593..7258d2f 100644
+--- a 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,4 @@
+ sample text
+ and some more sample text
+ and yet another line
++and so on
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series
new file mode 100644
index 0000000..a7ab472
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/debian/patches/series
@@ -0,0 +1,4 @@
+01_this_patch_is_ok
+02_this_one_has_no_description
+03_a_git_patch
+04_template_description
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values
new file mode 100644
index 0000000..d957fdd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-quilt-description
+Description: Test for quilt patches which do not have accompanying descriptions
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc
new file mode 100644
index 0000000..bcfc987
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/desc
@@ -0,0 +1,3 @@
+Testname: patch-systems-quilt-description
+See-Also: Debian Bug #498892
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints
new file mode 100644
index 0000000..c79c3e1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-description/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-description (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source
new file mode 100644
index 0000000..052084e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/README.source
@@ -0,0 +1 @@
+Some stuff about quilt here.
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/README.patches
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..040d7e8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/series
@@ -0,0 +1,6 @@
+# tries to create an existing file, which fails in dpkg-source
+# some-file
+some-other-file -p0
+# non-existent patches trigger error in dpkg-source
+# some-nonexistent-patch
+# file-commented-out
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file
new file mode 100644
index 0000000..7749d40
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-file
@@ -0,0 +1,11 @@
+Some regular patch creating a file.
+
+--- /dev/null
++++ debian/debian/some-file
+@@ -0,0 +1,6 @@
++Some
++file
++created
++in
++debian
++directory.
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file
new file mode 100644
index 0000000..ed24c8f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/some-other-file
@@ -0,0 +1,12 @@
+Some -p0 patch creating a file.
+
+--- /dev/null
++++ debian/some-other-file
+@@ -0,0 +1,7 @@
++Some
++other
++file
++created
++in
++debian
++directory.
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series
new file mode 100644
index 0000000..4232ed0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series
@@ -0,0 +1 @@
+file-mentioned-in-vendor-series
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README
new file mode 100644
index 0000000..55d9771
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/diff/README
@@ -0,0 +1 @@
+Debian README
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values
new file mode 100644
index 0000000..ced4b7a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: patch-systems-quilt-general
+Skeleton: upload-non-native
+Extra-Build-Depends: quilt, dpatch
+Description: General tests of a quilt patch system
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc
new file mode 100644
index 0000000..f856f3e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-general
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints
new file mode 100644
index 0000000..a78e16f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-general/eval/hints
@@ -0,0 +1,3 @@
+patch-systems-quilt-general (source): patch-system quilt
+patch-systems-quilt-general (source): patch-system dpatch
+patch-systems-quilt-general (source): more-than-one-patch-system
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok
new file mode 100644
index 0000000..7eee707
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series
new file mode 100644
index 0000000..0ca9c9c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/debian/patches/series
@@ -0,0 +1 @@
+01_this_patch_is_ok \ No newline at end of file
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values
new file mode 100644
index 0000000..40b486d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-quilt-no-newline
+Description: Patch system with no debian/series that does not end with newline
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc
new file mode 100644
index 0000000..32a8f15
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-no-newline
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints
new file mode 100644
index 0000000..4e852b0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-newline/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-no-newline (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values
new file mode 100644
index 0000000..5234bfe
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: patch-systems-quilt-no-series
+Skeleton: upload-non-native
+Source-Format: 1.0
+Description: Test for quilt patches with no series
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README
new file mode 100644
index 0000000..336f590
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/build-spec/orig/README
@@ -0,0 +1 @@
+Hallo World
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc
new file mode 100644
index 0000000..e57d098
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-no-series
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints
new file mode 100644
index 0000000..5067cf1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/patch-systems-quilt-no-series/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-no-series (source): patch-system quilt
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen
new file mode 100644
index 0000000..a452b53
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/patches/wig-pen
@@ -0,0 +1,5 @@
+--- upstream/README
++++ debian/README
+@@ -1 +1 @@
+-README
++README for wig&pen
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules
new file mode 100755
index 0000000..413418b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_prep:
+ dh_prep -X~ -Xrej
+
+clean:
+ @echo 'Do nothing'
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/debian/substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values
new file mode 100644
index 0000000..edb39d9
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: cruft-general-wig-pen
+Skeleton: upload-non-native
+Source-Format: 2.0
+Description: Check for cruft added in a 2.0 package
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/orig/README
@@ -0,0 +1 @@
+README
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build
new file mode 100755
index 0000000..78f359c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/build-spec/pre-build
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# Create all the various junk that shouldn't exist in the diff so that we can
+# trigger all the tags.
+
+set -e
+dir="$1/debian"
+
+mkdir "${dir}/CVS"
+echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries"
+mkdir "${dir}/.svn"
+echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format"
+mkdir "${dir}/.bzr"
+echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo"
+mkdir "${dir}/{arch}"
+echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo"
+mkdir "${dir}/.git"
+echo 'diff-contains-git-control-dir' > "${dir}/.git/foo"
+mkdir "${dir}/.hg"
+echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo"
+mkdir "${dir}/.be"
+echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo"
+
+echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt"
+echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp"
+echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp"
+echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory"
+echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags"
+echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1"
+echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352"
+echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej"
+echo 'diff-contains-editor-backup-file' > "${dir}/foo~"
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc
new file mode 100644
index 0000000..9e824e6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/desc
@@ -0,0 +1,3 @@
+Testname: cruft-general-wig-pen
+Test-Against: patch-file-present-but-not-mentioned-in-series
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/cruft-general-wig-pen/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9a82ea7
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/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/debian/patches/quilt/legacy-relations/build-spec/debian/control b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/control
new file mode 100644
index 0000000..6cd1c04
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/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/debian/patches/quilt/legacy-relations/build-spec/debian/rules b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/rules
new file mode 100755
index 0000000..5027f33
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/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/debian/patches/quilt/legacy-relations/build-spec/debian/tmp/DEBIAN/control b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/debian/tmp/DEBIAN/control
new file mode 100644
index 0000000..87e7fe6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/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/debian/patches/quilt/legacy-relations/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/legacy-relations/build-spec/fill-values
new file mode 100644
index 0000000..7e4661b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/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/debian/patches/quilt/legacy-relations/eval/desc b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/desc
new file mode 100644
index 0000000..c70804e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-relations
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints
new file mode 100644
index 0000000..d8929ea
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/hints
@@ -0,0 +1 @@
+relations (source): quilt-build-dep-but-no-series-file
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-relations/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc
new file mode 100644
index 0000000..d5236c9
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints
new file mode 100644
index 0000000..71dee45
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/hints
@@ -0,0 +1,6 @@
+scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/04_i_dont_have_a_description_either.patch]
+scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/03_specified_without_dpatch.dpatch]
+scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/02_i_dont_have_a_description.patch]
+scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/00options]
+scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/00list]
+scripts (source): patch-file-present-but-not-mentioned-in-series [debian/patches/00list.sparc]
diff --git a/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/debian/patches/series
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values
new file mode 100644
index 0000000..7bfde22
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-empty-series
+Description: Test for quilt patches with empty series
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc
new file mode 100644
index 0000000..213374f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/desc
@@ -0,0 +1,4 @@
+Testname: patch-systems-empty-series
+Test-Against: quilt-build-dep-but-no-series-file
+See-Also: Debian Bug #525005
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-empty-series/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1 b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1
new file mode 100644
index 0000000..7d0132f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/debian-changes-1.0-1
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a/a 2008-11-11 19:38:12.000000000 +0000
++++ a/a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series
new file mode 100644
index 0000000..9ca2b60
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/debian/patches/series
@@ -0,0 +1 @@
+debian-changes-1.0-1
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values
new file mode 100644
index 0000000..69be6ed
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: patch-systems-quilt-debian-changes
+Description: Test a 3.0 (quilt) package which has a debian-changes-XXX patch
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a
new file mode 100644
index 0000000..c0acc64
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/build-spec/orig/a
@@ -0,0 +1 @@
+sample text
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc
new file mode 100644
index 0000000..2a5f21f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-debian-changes
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints
new file mode 100644
index 0000000..fd3a321
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-debian-changes/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-debian-changes (source): format-3.0-but-debian-changes-patch [debian/patches/debian-changes-1.0-1]
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok
new file mode 100644
index 0000000..7eee707
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/01_this_patch_is_ok
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description
new file mode 100644
index 0000000..12128b8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/02_this_one_has_no_description
@@ -0,0 +1,5 @@
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch
new file mode 100644
index 0000000..025656a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/03_a_git_patch
@@ -0,0 +1,8 @@
+diff --git a/a b/a
+index eb39593..7258d2f 100644
+--- a 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,3 @@
+ sample text
+ and some more sample text
++and yet another line
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description
new file mode 100644
index 0000000..09bfd88
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/04_template_description
@@ -0,0 +1,17 @@
+Description: <short summary of the patch>
+ This patch include a templated text for description
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+diff --git a/a b/a
+index eb39593..7258d2f 100644
+--- a 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,4 @@
+ sample text
+ and some more sample text
+ and yet another line
++and so on
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series
new file mode 100644
index 0000000..a7ab472
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/debian/patches/series
@@ -0,0 +1,4 @@
+01_this_patch_is_ok
+02_this_one_has_no_description
+03_a_git_patch
+04_template_description
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values
new file mode 100644
index 0000000..d957fdd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-quilt-description
+Description: Test for quilt patches which do not have accompanying descriptions
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc
new file mode 100644
index 0000000..90fcde3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/desc
@@ -0,0 +1,3 @@
+Testname: patch-systems-quilt-description
+See-Also: Debian Bug #498892
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints
new file mode 100644
index 0000000..dd7eb59
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-description/eval/hints
@@ -0,0 +1,3 @@
+patch-systems-quilt-description (source): quilt-patch-using-template-description [debian/patches/04_template_description]
+patch-systems-quilt-description (source): quilt-patch-missing-description [debian/patches/03_a_git_patch]
+patch-systems-quilt-description (source): quilt-patch-missing-description [debian/patches/02_this_one_has_no_description]
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source
new file mode 100644
index 0000000..052084e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/README.source
@@ -0,0 +1 @@
+Some stuff about quilt here.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/README.patches
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-commented-out
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-mentioned-in-vendor-series
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/file-not-referenced-in-series
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..040d7e8
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/series
@@ -0,0 +1,6 @@
+# tries to create an existing file, which fails in dpkg-source
+# some-file
+some-other-file -p0
+# non-existent patches trigger error in dpkg-source
+# some-nonexistent-patch
+# file-commented-out
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file
new file mode 100644
index 0000000..7749d40
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-file
@@ -0,0 +1,11 @@
+Some regular patch creating a file.
+
+--- /dev/null
++++ debian/debian/some-file
+@@ -0,0 +1,6 @@
++Some
++file
++created
++in
++debian
++directory.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file
new file mode 100644
index 0000000..ed24c8f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/some-other-file
@@ -0,0 +1,12 @@
+Some -p0 patch creating a file.
+
+--- /dev/null
++++ debian/some-other-file
+@@ -0,0 +1,7 @@
++Some
++other
++file
++created
++in
++debian
++directory.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2 b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/subdir/file-not-referenced-in-series-2
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series
new file mode 100644
index 0000000..4232ed0
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/debian/patches/vendorname.series
@@ -0,0 +1 @@
+file-mentioned-in-vendor-series
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README
new file mode 100644
index 0000000..55d9771
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/diff/README
@@ -0,0 +1 @@
+Debian README
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values
new file mode 100644
index 0000000..ced4b7a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: patch-systems-quilt-general
+Skeleton: upload-non-native
+Extra-Build-Depends: quilt, dpatch
+Description: General tests of a quilt patch system
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc
new file mode 100644
index 0000000..d60faca
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-general
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints
new file mode 100644
index 0000000..211bcbd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-general/eval/hints
@@ -0,0 +1,6 @@
+patch-systems-quilt-general (source): quilt-patch-with-non-standard-options some-other-file -p0 [debian/patches/series:3]
+patch-systems-quilt-general (source): quilt-patch-using-template-description [debian/patches/debian-changes-1.0-1]
+patch-systems-quilt-general (source): patch-file-present-but-not-mentioned-in-series [debian/patches/subdir/file-not-referenced-in-series-2]
+patch-systems-quilt-general (source): patch-file-present-but-not-mentioned-in-series [debian/patches/file-not-referenced-in-series]
+patch-systems-quilt-general (source): package-uses-vendor-specific-patch-series [debian/patches/vendorname.series]
+patch-systems-quilt-general (source): format-3.0-but-debian-changes-patch [debian/patches/debian-changes-1.0-1]
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series
new file mode 100644
index 0000000..a920a3a
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/series
@@ -0,0 +1 @@
+some-change.patch
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch
new file mode 100644
index 0000000..c34fd8f
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/debian/patches/some-change.patch
@@ -0,0 +1,6 @@
+Description: Does something very useful - it hides "empty-series" tag
+--- a/README 2010-12-27 14:09:55.025074505 +0100
++++ b/README 2010-12-27 14:10:09.656080199 +0100
+@@ -1 +1,2 @@
+ Hello World
++Goodbye world
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values
new file mode 100644
index 0000000..16086dc
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: patch-systems-quilt-no-depends
+Description: Test for quilt series but no B-D on quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README
new file mode 100644
index 0000000..557db03
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/build-spec/orig/README
@@ -0,0 +1 @@
+Hello World
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc
new file mode 100644
index 0000000..6b230a3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/desc
@@ -0,0 +1,4 @@
+Testname: patch-systems-quilt-no-depends
+Test-Against:
+ patch-file-present-but-not-mentioned-in-series
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints
new file mode 100644
index 0000000..b868327
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-depends/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-no-depends (source): quilt-series-but-no-build-dep [debian/patches/series]
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok
new file mode 100644
index 0000000..7eee707
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/01_this_patch_is_ok
@@ -0,0 +1,7 @@
+This is a description of the patch
+
+--- a.orig 2008-11-11 19:38:12.000000000 +0000
++++ a 2008-11-11 19:38:26.000000000 +0000
+@@ -1 +1,2 @@
+ sample text
++and some more sample text
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series
new file mode 100644
index 0000000..0ca9c9c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/debian/patches/series
@@ -0,0 +1 @@
+01_this_patch_is_ok \ No newline at end of file
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values
new file mode 100644
index 0000000..40b486d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: patch-systems-quilt-no-newline
+Description: Patch system with no debian/series that does not end with newline
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc
new file mode 100644
index 0000000..0cee74b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-no-newline
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints
new file mode 100644
index 0000000..5417fe3
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-newline/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-no-newline (source): quilt-series-without-trailing-newline [debian/patches/series]
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source
new file mode 100644
index 0000000..17250a4
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/debian/README.source
@@ -0,0 +1 @@
+This package uses quilt. See /usr/share/doc/quilt/README.source.
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values
new file mode 100644
index 0000000..5234bfe
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: patch-systems-quilt-no-series
+Skeleton: upload-non-native
+Source-Format: 1.0
+Description: Test for quilt patches with no series
+Extra-Build-Depends: quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README
new file mode 100644
index 0000000..336f590
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/build-spec/orig/README
@@ -0,0 +1 @@
+Hallo World
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc
new file mode 100644
index 0000000..db2e53d
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/desc
@@ -0,0 +1,2 @@
+Testname: patch-systems-quilt-no-series
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints
new file mode 100644
index 0000000..d9f628c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/patch-systems-quilt-no-series/eval/hints
@@ -0,0 +1 @@
+patch-systems-quilt-no-series (source): quilt-build-dep-but-no-series-file
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2d380f5
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+ * This line has a speling error.
+ - This line has the same speling error, but we should only
+ get one tag for it.
+ * Corrected spelling: abov -> above.
+ * Corrected typo: abov -> above.
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/copyright
new file mode 100644
index 0000000..30cbe5c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+This duplicate duplicate word should not trigger. (re. #897402)
+
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+Insofar as this is copyrightable, it is:
+
+ Copyright 2010 Russ Allbery <rra@debian.org>
+
+This text should not generate a spelling error for "ment":
+
+ computer software documentation," as such terms are used in
+ 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern-
+ ment only as a commercial end item. Consistent with 48 C.F.R.
+ 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995),
+
+But deafult is still a spelling error.
+
+This text should not generate a spelling error for the duplicate "a" (re. #844166)
+
+ following Attribution Information: (a) a copyright notice including the name
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/doc-base
new file mode 100644
index 0000000..3839a9b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/doc-base
@@ -0,0 +1,9 @@
+Document: spelling-general
+Title: Check for debian doc-base spelling errors
+Author: Russ Allbery
+Abstract: This control file exercises, picky, speling error checks for
+ Debian doc-base files, such as meta-package.
+Section: Programming
+
+Format: text
+Files: /usr/share/doc/spelling-general/copyright
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/add-readme
new file mode 100644
index 0000000..b1647ba
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/add-readme
@@ -0,0 +1,8 @@
+This is a deliberate speling error. duplicate
+
+duplicate
+
+--- upstream.orig/README
++++ upstream/README
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel
new file mode 100644
index 0000000..48e7740
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; description mentions typo)
+
+--- upstream.orig/nonrel
++++ upstream/nonrel
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2 b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2
new file mode 100644
index 0000000..e7dd209
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/nonrel2
@@ -0,0 +1,8 @@
+From: Speling Error <test@example.com>
+Date: Mon, 10 Sep 2018 05:16:45 +0200
+Subject: Foo bar
+
+--- upstream.orig/nonrel2
++++ upstream/nonrel2
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..d31f673
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/series
@@ -0,0 +1,4 @@
+add-readme
+spelling
+nonrel
+nonrel2
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling
new file mode 100644
index 0000000..29b9cfd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/debian/patches/spelling
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; filename match)
+
+--- upstream.orig/spelling
++++ upstream/spelling
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/fill-values
new file mode 100644
index 0000000..1c8c790
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: spelling-general
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: General checks for spelling errors
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc
new file mode 100644
index 0000000..6d9495e
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: spelling-general
+Check: debian/patches/quilt
diff --git a/t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints
new file mode 100644
index 0000000..05d7e24
--- /dev/null
+++ b/t/recipes/checks/debian/patches/quilt/spelling-general/eval/hints
@@ -0,0 +1 @@
+spelling-general (source): spelling-error-in-patch-description speling spelling [debian/patches/add-readme]
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2d380f5
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+ * This line has a speling error.
+ - This line has the same speling error, but we should only
+ get one tag for it.
+ * Corrected spelling: abov -> above.
+ * Corrected typo: abov -> above.
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/copyright b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/copyright
new file mode 100644
index 0000000..30cbe5c
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/copyright
@@ -0,0 +1,21 @@
+This duplicate duplicate word should not trigger. (re. #897402)
+
+This is part of the testsuite of lintian. See the file debian/copyright
+in the lintian source directory for more details.
+
+Insofar as this is copyrightable, it is:
+
+ Copyright 2010 Russ Allbery <rra@debian.org>
+
+This text should not generate a spelling error for "ment":
+
+ computer software documentation," as such terms are used in
+ 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Govern-
+ ment only as a commercial end item. Consistent with 48 C.F.R.
+ 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995),
+
+But deafult is still a spelling error.
+
+This text should not generate a spelling error for the duplicate "a" (re. #844166)
+
+ following Attribution Information: (a) a copyright notice including the name
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/doc-base b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/doc-base
new file mode 100644
index 0000000..3839a9b
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/doc-base
@@ -0,0 +1,9 @@
+Document: spelling-general
+Title: Check for debian doc-base spelling errors
+Author: Russ Allbery
+Abstract: This control file exercises, picky, speling error checks for
+ Debian doc-base files, such as meta-package.
+Section: Programming
+
+Format: text
+Files: /usr/share/doc/spelling-general/copyright
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/add-readme b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/add-readme
new file mode 100644
index 0000000..b1647ba
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/add-readme
@@ -0,0 +1,8 @@
+This is a deliberate speling error. duplicate
+
+duplicate
+
+--- upstream.orig/README
++++ upstream/README
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel
new file mode 100644
index 0000000..48e7740
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; description mentions typo)
+
+--- upstream.orig/nonrel
++++ upstream/nonrel
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel2 b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel2
new file mode 100644
index 0000000..e7dd209
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/nonrel2
@@ -0,0 +1,8 @@
+From: Speling Error <test@example.com>
+Date: Mon, 10 Sep 2018 05:16:45 +0200
+Subject: Foo bar
+
+--- upstream.orig/nonrel2
++++ upstream/nonrel2
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series
new file mode 100644
index 0000000..d31f673
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/series
@@ -0,0 +1,4 @@
+add-readme
+spelling
+nonrel
+nonrel2
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling
new file mode 100644
index 0000000..29b9cfd
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/debian/patches/spelling
@@ -0,0 +1,6 @@
+This is a deliberate speling error. (false positive; filename match)
+
+--- upstream.orig/spelling
++++ upstream/spelling
+@@ -0,0 +1 @@
++Added by patch system.
diff --git a/t/recipes/checks/debian/patches/spelling-general/build-spec/fill-values b/t/recipes/checks/debian/patches/spelling-general/build-spec/fill-values
new file mode 100644
index 0000000..1c8c790
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: spelling-general
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: General checks for spelling errors
diff --git a/t/recipes/checks/debian/patches/spelling-general/eval/desc b/t/recipes/checks/debian/patches/spelling-general/eval/desc
new file mode 100644
index 0000000..0af4036
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: spelling-general
+Check: debian/patches
diff --git a/t/recipes/checks/debian/patches/spelling-general/eval/hints b/t/recipes/checks/debian/patches/spelling-general/eval/hints
new file mode 100644
index 0000000..b86bb71
--- /dev/null
+++ b/t/recipes/checks/debian/patches/spelling-general/eval/hints
@@ -0,0 +1 @@
+spelling-general (source): patch-system quilt
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/control.in b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/control.in
new file mode 100644
index 0000000..1140f19
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/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: ${shlibs:Depends}, ${misc:Depends}, cdebconf
+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/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po
new file mode 100644
index 0000000..0734922
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en.po
@@ -0,0 +1,241 @@
+# English translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: 2012-10-01 22:54+0200\n"
+"Last-Translator: Niels Thykier <niels@thykier.net>\n"
+"Language-Team: English\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr "Useless note"
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr "left, right, up, down"
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr "Pick the odd one out"
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr "Missing template field."
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr "Is this a bad template?"
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr "Missing type"
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr "Template with unknown type"
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr "How do you like the default?"
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr "On a scale of \"false\" to \"true\"."
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr "A boolean type would have been better"
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr "Preference"
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr "Missing a Choices field"
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr "Duplicate long description"
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr "Is the field below unknown?"
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr "What is the name of this package checker:"
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr "Select either x or y"
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr "Lintian is the best!"
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr "Do you like sakana?"
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr "Or do you prefer sake?"
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr "Aren't you tired of all these debconf prompts?"
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr "I think Lintian is the best"
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr "Do you like Lintian?"
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr "Pick \"yes\" if you do."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr "Name the title of this song:"
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+#| msgid "Template with unknown type"
+msgid "Template with entropy type"
+msgstr "Template with unknown type"
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po
new file mode 100644
index 0000000..450a03c
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/en_US.po
@@ -0,0 +1,223 @@
+# English translations for PACKAGE package.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# Niels Thykier <niels@thykier.net>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: 2012-10-01 22:54+0200\n"
+"Last-Translator: Russ Allbery <rra@debian.org>\n"
+"Language-Team: English <debian-i18n@lists.debian.org>\n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ASCII\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr ""
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr ""
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr ""
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+msgid "Template with entropy type"
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..b7f5a7b
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,223 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-01-01 22:34+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "Useless note"
+msgstr ""
+
+#. Type: select
+#. Choices
+#: ../templates:2001
+msgid "left, right, up, down"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:2002
+msgid "Pick the odd one out"
+msgstr ""
+
+#. Type: text
+#. Description
+#: ../templates:3001
+msgid "Missing template field."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:4001
+msgid "Is this a bad template?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:5001
+msgid "Missing type"
+msgstr ""
+
+#. Type: lintian
+#. Description
+#: ../templates:6001
+msgid "Template with unknown type"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "How do you like the default?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:7001
+msgid "On a scale of \"false\" to \"true\"."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:8001
+msgid "A boolean type would have been better"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:9001
+msgid "Preference"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:10001
+msgid "Missing a Choices field"
+msgstr ""
+
+#. Type: error
+#. Description
+#. Type: error
+#. Description
+#: ../templates:12001
+msgid "Duplicate long description"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:13001
+msgid "Is the field below unknown?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:14001
+msgid "What is the name of this package checker:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:15001
+msgid "Select either x or y"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:16001
+msgid "Lintian is the best!"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Do you like sakana?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:17001
+msgid "Or do you prefer sake?"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../templates:18001
+msgid "Aren't you tired of all these debconf prompts?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:19001
+msgid ""
+"This template has a very long short description, is that what you call an "
+"oxymoron?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:20001
+msgid "I think Lintian is the best"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Do you like Lintian?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../templates:21001
+msgid "Pick \"yes\" if you do."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid "Name the title of this song:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Five green bottles sitting on the wall, Five green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be four "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Four green bottles sitting on the wall, Four green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be three "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Three green bottles sitting on the wall, Three green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be two "
+"green bottles sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"Two green bottles sitting on the wall, Two green bottles sitting on the "
+"wall, And if one green bottle should accidentally fall, There'll be one "
+"green bottle sitting on the wall."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:22001
+msgid ""
+"One green bottle sitting on the wall, One green bottle sitting on the wall, "
+"And if one green bottle should accidentally fall, There'll be no green "
+"bottles sitting on the wall."
+msgstr ""
+
+#. Type: entropy
+#. Description
+#: ../templates:23001
+msgid "Template with entropy type"
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates
new file mode 100644
index 0000000..46ca184
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/debian/templates
@@ -0,0 +1,124 @@
+Template: debconf/translated
+Type: error
+_Description: Useless note
+
+Template: debconf/unsplit-choices
+Type: select
+_Choices: left, right, up, down
+_Description: Pick the odd one out
+
+Type: text
+_Description: Missing template field.
+
+Template: debconf-malformed-template
+Type: boolean
+_Description: Is this a bad template?
+
+Template: debconf/no-type
+_Description: Missing type
+
+Template: debconf/unknown-type
+Type: lintian
+_Description: Template with unknown type
+
+Template: debconf/boolean-bogus-default
+Type: boolean
+Default: lintian
+_Description: How do you like the default?
+ On a scale of "false" to "true".
+
+Template: debconf/select-boolean-choice
+Type: select
+Choices: yes, no
+_Description: A boolean type would have been better
+
+Template: debconf/select-empty-trans-choices
+Type: select
+Choices: sakana, sake
+Choices-Da:
+_Description: Preference
+
+Template: debconf/select-without-choices
+Type: select
+_Description: Missing a Choices field
+
+Template: debconf/no-description
+Type: error
+
+Template: debconf/duplicate-long-desc
+Type: error
+_Description: Duplicate long description
+ Duplicate long description
+
+Template: debconf/unknown-field
+Type: boolean
+_Description: Is the field below unknown?
+Unknown-field: yes, it is.
+
+Template: debconf/malformed-prompt
+Type: string
+_Description: What is the name of this package checker:
+
+Template: debconf/imperative-select
+Type: select
+Choices: x,y
+_Description: Select either x or y
+
+Template: debconf/malformed-question
+Type: boolean
+_Description: Lintian is the best!
+
+Template: debconf/question-in-extended
+Type: boolean
+_Description: Do you like sakana?
+ Or do you prefer sake?
+
+Template: debconf/malformed-note-title
+Type: note
+_Description: Aren't you tired of all these debconf prompts?
+
+Template: debconf/too-long-short-desc
+Type: boolean
+_Description: This template has a very long short description, is that what you call an oxymoron?
+
+Template: debconf/first-person
+Type: select
+Choices: lintian, no-lintian
+_Description: I think Lintian is the best
+
+Template: debconf/assumption
+Type: boolean
+_Description: Do you like Lintian?
+ Pick "yes" if you do.
+
+Template: debconf/5-green-bottles-on-the-wall
+Type: string
+_Description: Name the title of this song:
+ Five green bottles sitting on the wall,
+ Five green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be four green bottles sitting on the wall.
+ .
+ Four green bottles sitting on the wall,
+ Four green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be three green bottles sitting on the wall.
+ .
+ Three green bottles sitting on the wall,
+ Three green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be two green bottles sitting on the wall.
+ .
+ Two green bottles sitting on the wall,
+ Two green bottles sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be one green bottle sitting on the wall.
+ .
+ One green bottle sitting on the wall,
+ One green bottle sitting on the wall,
+ And if one green bottle should accidentally fall,
+ There'll be no green bottles sitting on the wall.
+
+Template: debconf/entropy-type
+Type: entropy
+_Description: Template with entropy type
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values
new file mode 100644
index 0000000..2018d2c
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debconf-templates-general
+Description: Test for various debconf template issues
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl
new file mode 100644
index 0000000..e6588b7
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/config-gen.pl
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+# Helper script to generate d/config from d/templates.
+# It is just here to make sure all templates are "used".
+
+use strict;
+use warnings;
+
+print <<EOF ;
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+EOF
+
+for my $line ( <STDIN> ) {
+
+ if ($line =~ /^Template:\s*(\S+)\s*$/) {
+
+ my $template = $1;
+ next
+ unless defined $template;
+
+ print "db_input high $template || true\n";
+ print "db_go\n\n";
+ }
+}
+
+exit 0;
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk
new file mode 100755
index 0000000..f6f5975
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/orig/gen-source.mk
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all: debian/config
+
+debian/config: debian/templates
+ perl config-gen.pl < $< > $@
+
+
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build
new file mode 100755
index 0000000..bfcb477
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/build-spec/pre-build
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+DIR="$1"
+make --silent -C "$DIR" -f "$DIR/gen-source.mk" all
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc
new file mode 100644
index 0000000..ab9ee47
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: debconf-templates-general
+Check: debian/po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints
new file mode 100644
index 0000000..e225a5a
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/debconf-templates-general/eval/hints
@@ -0,0 +1 @@
+debconf-templates-general (source): debconf-translation-using-general-list [debian/po/en_US.po]
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config
new file mode 100755
index 0000000..224c204
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/config
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get test/checksum_error || true
+
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/control.in
new file mode 100644
index 0000000..1140f19
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/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: ${shlibs:Depends}, ${misc:Depends}, cdebconf
+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/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..1c61d48
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+# taken from preseed 1.90; see #883653; FL
+[type: gettext/rfc822deb] templates
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..3abfcf6
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/templates.pot
@@ -0,0 +1,37 @@
+# taken from preseed 1.90; see #883653; FL
+
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: preseed\n"
+"Report-Msgid-Bugs-To: preseed@packages.debian.org\n"
+"POT-Creation-Date: 2016-11-22 22:34+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#. XXX: should be made translatable after Stretch
+#: ../templates:1001
+msgid "Checksum error"
+msgstr ""
+
+#. Type: error
+#. Description
+#. XXX: should be made translatable after Stretch
+#: ../templates:1001
+msgid ""
+"The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails to "
+"match the expected value of \"${CHECKSUM}\". The file may be corrupt, or "
+"the provided checksums may be out of date."
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po
new file mode 100644
index 0000000..5be7a86
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/po/zh_CN.po
@@ -0,0 +1,64 @@
+# taken from preseed 1.90; see #883653; FL
+
+# THIS FILE IS GENERATED AUTOMATICALLY FROM THE D-I PO MASTER FILES
+# The master files can be found under packages/po/
+#
+# DO NOT MODIFY THIS FILE DIRECTLY: SUCH CHANGES WILL BE LOST
+#
+# Simplified Chinese translation for Debian Installer.
+#
+# Copyright (C) 2003-2008 Software in the Public Interest, Inc.
+# This file is distributed under the same license as debian-installer.
+#
+# Translated by Yijun Yuan (2004), Carlos Z.F. Liu (2004,2005,2006),
+# Ming Hua (2005,2006,2007,2008), Xiyue Deng (2008), Kov Chai (2008),
+# Kenlen Lai (2008), WCM (2008), Ren Xiaolei (2008).
+#
+#
+# Translations from iso-codes:
+# Tobias Toedter <t.toedter@gmx.net>, 2007.
+# Translations taken from ICU SVN on 2007-09-09
+#
+# Free Software Foundation, Inc., 2002, 2003, 2007, 2008.
+# Alastair McKinstry <mckinstry@computer.org>, 2001,2002.
+# Translations taken from KDE:
+# - Wang Jian <lark@linux.net.cn>, 2000.
+# - Carlos Z.F. Liu <carlosliu@users.sourceforge.net>, 2004 - 2006.
+# LI Daobing <lidaobing@gmail.com>, 2007, 2008, 2009, 2010.
+# YunQiang Su <wzssyqa@gmail.com>, 2011.
+#
+# Mai Hao Hui <mhh@126.com>, 2001 (translations from galeon)
+# YunQiang Su <wzssyqa@gmail.com>, 2010, 2011, 2012, 2013.
+# Yangfl <mmyangfl@gmail.com>, 2017.
+#
+msgstr ""
+"Project-Id-Version: debian-installer\n"
+"Report-Msgid-Bugs-To: preseed@packages.debian.org\n"
+"POT-Creation-Date: 2016-11-22 22:34+0000\n"
+"PO-Revision-Date: 2017-06-11 18:20+0800\n"
+"Last-Translator: Yangfl <mmyangfl@gmail.com>\n"
+"Language-Team: <debian-l10n-chinese@lists.debian.org>\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#. Type: error
+#. Description
+#. XXX: should be made translatable after Stretch
+#: ../templates:1001
+msgid "Checksum error"
+msgstr "校验ç é”™è¯¯"
+
+#. Type: error
+#. Description
+#. XXX: should be made translatable after Stretch
+#: ../templates:1001
+msgid ""
+"The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails to "
+"match the expected value of \"${CHECKSUM}\". The file may be corrupt, or "
+"the provided checksums may be out of date."
+msgstr ""
+"从 <${LOCATION}> 下载的文件 ${ALGORITHM} 校验ç ä¸ç¬¦åˆé¢„期,预期的值"
+"为“${CHECKSUM}â€ã€‚文件å¯èƒ½å·²ç»æŸæ¯ï¼Œæˆ–所æ供的校验ç å¯èƒ½å·²ç»è¿‡æœŸã€‚"
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst
new file mode 100644
index 0000000..4d6cb4d
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates
new file mode 100644
index 0000000..144f922
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/debian/templates
@@ -0,0 +1,22 @@
+Template: test/checksum_error
+Type: error
+# Lintian test note: The space between '# and CHECKSUM' in the lines
+# below is the unicode character NO BREAK SPACE U+00A0 (\302\240 in
+# UTF-8) and the sole reason why intltool-update fails.
+#
+# ERROR: xgettext failed to generate PO template file because there is non-ASCII
+# string marked for translation. Please make sure that all strings marked
+# for translation are in uniform encoding (say UTF-8), then *prepend* the
+# following line to POTFILES.in and rerun intltool-update:
+#
+# [encoding: UTF-8]
+#
+# taken from preseed 1.90; see #883653; FL
+#
+# Translators : DO NOT TRANSLATE variable names : ALGORITHM, LOCATION
+# and CHECKSUM
+# :sl2:
+_Description: Checksum error
+ The ${ALGORITHM} checksum of the file retrieved from <${LOCATION}> fails
+ to match the expected value of "${CHECKSUM}". The file may be corrupt,
+ or the provided checksums may be out of date.
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values
new file mode 100644
index 0000000..7862c3f
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: invalid-potfiles-in
+Skeleton: upload-native
+Description: Test for invalid POTFILES.in for debconf template
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc
new file mode 100644
index 0000000..4e65531
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/desc
@@ -0,0 +1,2 @@
+Testname: invalid-potfiles-in
+Check: debian/po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints
new file mode 100644
index 0000000..40d9932
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/invalid-potfiles-in/eval/hints
@@ -0,0 +1 @@
+invalid-potfiles-in (source): invalid-potfiles-in [debian/po/POTFILES.in]
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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.
+
+Package: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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.
+
+Package: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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.
+
+Package: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc
new file mode 100644
index 0000000..93e1d45
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints
new file mode 100644
index 0000000..636bc66
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/hints
@@ -0,0 +1,12 @@
+debconf (source): untranslatable-debconf-templates [debian/debconf-test.templates:58]
+debconf (source): untranslatable-debconf-templates [debian/debconf-test.templates:47]
+debconf (source): unknown-encoding-in-po-file [debian/po/fr.po]
+debconf (source): translated-default-field [debian/debconf-test.templates:72]
+debconf (source): translated-default-field [debian/debconf-test.templates:67]
+debconf (source): stray-translated-debconf-templates [debian/debconf-test.templates.de]
+debconf (source): no-complete-debconf-translation
+debconf (source): newer-debconf-templates [debian/po/templates.pot]
+debconf (source): misnamed-po-file [debian/po/sample-file.po]
+debconf (source): misnamed-po-file [debian/po/lang.po]
+debconf (source): invalid-po-file [debian/po/sample-file.po]
+debconf (source): invalid-po-file [debian/po/fr.po]
diff --git a/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po
new file mode 100644
index 0000000..e99b822
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/English.po
@@ -0,0 +1 @@
+Not a PO file or an English translation.
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..da5857e
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,3 @@
+# This is a comment, which should be ignored.
+[type: gettext/rfc822deb] templates
+some-other-file
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po
new file mode 100644
index 0000000..545fd25
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/de.po
@@ -0,0 +1,2 @@
+This is just some random other file that isn't a German translation at
+all.
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..420734f
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/po/templates.pot
@@ -0,0 +1,30 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Lintian 2.4.3\n"
+"PO-Revision-Date: +2010-07-25 17:07 -0700\n"
+"Last-Translator: Russ Allbery <rra@debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Default
+#: ../templates:1001
+msgid "foo"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This is a string question used for testing:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This is a second string question:"
+
+#. Type: string
+#. Description
+#: ../templates:1001
+msgid "This one ensures no 100% translation of the template."
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates
new file mode 100644
index 0000000..b626825
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates
@@ -0,0 +1,10 @@
+Template: po-debconf-general/test
+Type: string
+_Default: foo
+Description: This is a string question used for testing:
+
+Template: po-debconf-general/test-2
+Type: string
+Default: bar
+_Description: This is a second string question:
+ This one ensures no 100% translation of the template.
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US
new file mode 100644
index 0000000..617a474
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/debian/templates.en_US
@@ -0,0 +1,5 @@
+Template: po-debconf-general/test
+Type: string
+Default: foo
+_Description: This is an English translation that shouldn't be in this
+ directory.
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values
new file mode 100644
index 0000000..bbcbc61
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: po-debconf-general
+Description: General tests for debconf translations
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc
new file mode 100644
index 0000000..72652db
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: po-debconf-general
+Check: debian/po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints
new file mode 100644
index 0000000..af584a3
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-general/eval/hints
@@ -0,0 +1,8 @@
+po-debconf-general (source): untranslatable-debconf-templates [debian/templates:4]
+po-debconf-general (source): translated-default-field [debian/templates:3]
+po-debconf-general (source): stray-translated-debconf-templates [debian/templates.en_US]
+po-debconf-general (source): no-complete-debconf-translation
+po-debconf-general (source): missing-file-from-potfiles-in some-other-file [debian/po/POTFILES.in:3]
+po-debconf-general (source): misnamed-po-file [debian/po/English.po]
+po-debconf-general (source): invalid-po-file [debian/po/de.po]
+po-debconf-general (source): invalid-po-file [debian/po/English.po]
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config
new file mode 100755
index 0000000..240b7f8
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/config
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get po-debconf-general/test || true
+db_get po-debconf-general/test-2 || true
+
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po
new file mode 100644
index 0000000..dbf7e69
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/po/en.po
@@ -0,0 +1,17 @@
+# Woohoo, translations - here to suppress a "no-complete-translation"
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: po-debconf-missing\n"
+"Report-Msgid-Bugs-To: po-debconf-missing@packages.debian.org\n"
+"POT-Creation-Date: 2009-08-24 19:24+0200\n"
+"PO-Revision-Date: 2010-09-03 23:51+0200\n"
+"Last-Translator: Lintian Maintainers <debian-lint-maint@lists.debian.org>\n"
+"Language-Team: Lintian Maintainers <debian-lint-maint@lists.debian.org>\n"
+"Language: en\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates
new file mode 100644
index 0000000..1285e40
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/debian/templates
@@ -0,0 +1,10 @@
+Template: po-debconf-general/test
+Type: string
+Default: foo
+_Description: This is a string question used for testing:
+
+Template: po-debconf-general/test-2
+Type: string
+Default: bar
+_Description: This is a second string question:
+ This one ensures no 100% translation of the template.
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values
new file mode 100644
index 0000000..0e4fc01
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: po-debconf-missing
+Description: Test for missing po-debconf files
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc
new file mode 100644
index 0000000..9a65aef
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: po-debconf-missing
+Check: debian/po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints
new file mode 100644
index 0000000..6830040
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-missing/eval/hints
@@ -0,0 +1,2 @@
+po-debconf-missing (source): missing-templates-pot
+po-debconf-missing (source): missing-potfiles-in
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config
new file mode 100755
index 0000000..240b7f8
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/config
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get po-debconf-general/test || true
+db_get po-debconf-general/test-2 || true
+
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst
new file mode 100644
index 0000000..0ae7a18
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates
new file mode 100644
index 0000000..1d685bc
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/debian/templates
@@ -0,0 +1,10 @@
+Template: po-debconf-general/test
+Type: string
+Default: foo
+Description: This is a string question used for testing:
+
+Template: po-debconf-general/test-2
+Type: string
+Default: bar
+Description: This is a second string question:
+ This one ensures no 100% translation of the template.
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values
new file mode 100644
index 0000000..1b56e55
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: po-debconf-no-po-debconf
+Description: Test for not using po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc
new file mode 100644
index 0000000..d3b4ab1
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: po-debconf-no-po-debconf
+Check: debian/po-debconf
diff --git a/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints
new file mode 100644
index 0000000..2fd5c5b
--- /dev/null
+++ b/t/recipes/checks/debian/po-debconf/po-debconf-no-po-debconf/eval/hints
@@ -0,0 +1,3 @@
+po-debconf-no-po-debconf (source): untranslatable-debconf-templates [debian/templates:9]
+po-debconf-no-po-debconf (source): untranslatable-debconf-templates [debian/templates:4]
+po-debconf-no-po-debconf (source): not-using-po-debconf
diff --git a/t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian b/t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values b/t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values
new file mode 100644
index 0000000..d3e7aca
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: bad-email-format
+Description: Debian.README with email address in unknown format
diff --git a/t/recipes/checks/debian/readme/bad-email-format/eval/desc b/t/recipes/checks/debian/readme/bad-email-format/eval/desc
new file mode 100644
index 0000000..0269f3d
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/eval/desc
@@ -0,0 +1,2 @@
+Testname: bad-email-format
+Check: debian/readme
diff --git a/t/recipes/checks/debian/readme/bad-email-format/eval/hints b/t/recipes/checks/debian/readme/bad-email-format/eval/hints
new file mode 100644
index 0000000..72ab52d
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/eval/hints
@@ -0,0 +1 @@
+bad-email-format (binary): readme-debian-contains-invalid-email-address foo@unknown [usr/share/doc/bad-email-format/README.Debian]
diff --git a/t/recipes/checks/debian/readme/bad-email-format/eval/post-test b/t/recipes/checks/debian/readme/bad-email-format/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/readme/debian-readme-general/build-spec/debian/README.Debian b/t/recipes/checks/debian/readme/debian-readme-general/build-spec/debian/README.Debian
new file mode 100644
index 0000000..482b668
--- /dev/null
+++ b/t/recipes/checks/debian/readme/debian-readme-general/build-spec/debian/README.Debian
@@ -0,0 +1,11 @@
+This is a test README.Debian with a few problems that Lintian should
+catch, like accidentaly misspelled words.
+
+Here is a reference to /usr/doc/debian-readme-general, which is an old
+path that nothing should use any more.
+
+ALS is not a spelling error for also and ANG is not a spelling error for
+and. In general, possible acronyms like COMIT should be ignored. But
+only to a certain length; CHNAGES is still wrong.
+
+ -- Unknown <unknown@unknown>
diff --git a/t/recipes/checks/debian/readme/debian-readme-general/build-spec/fill-values b/t/recipes/checks/debian/readme/debian-readme-general/build-spec/fill-values
new file mode 100644
index 0000000..b2d9b73
--- /dev/null
+++ b/t/recipes/checks/debian/readme/debian-readme-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debian-readme-general
+Description: General tests for README.Debian
diff --git a/t/recipes/checks/debian/readme/debian-readme-general/eval/desc b/t/recipes/checks/debian/readme/debian-readme-general/eval/desc
new file mode 100644
index 0000000..0df2974
--- /dev/null
+++ b/t/recipes/checks/debian/readme/debian-readme-general/eval/desc
@@ -0,0 +1,3 @@
+Testname: debian-readme-general
+See-Also: Debian Bug#556456
+Check: debian/readme
diff --git a/t/recipes/checks/debian/readme/debian-readme-general/eval/hints b/t/recipes/checks/debian/readme/debian-readme-general/eval/hints
new file mode 100644
index 0000000..a5b1e27
--- /dev/null
+++ b/t/recipes/checks/debian/readme/debian-readme-general/eval/hints
@@ -0,0 +1,4 @@
+debian-readme-general (binary): spelling-error-in-readme-debian accidentaly accidentally [usr/share/doc/debian-readme-general/README.Debian]
+debian-readme-general (binary): spelling-error-in-readme-debian CHNAGES CHANGES [usr/share/doc/debian-readme-general/README.Debian]
+debian-readme-general (binary): readme-debian-mentions-usr-doc [usr/share/doc/debian-readme-general/README.Debian:4]
+debian-readme-general (binary): readme-debian-contains-invalid-email-address unknown@unknown [usr/share/doc/debian-readme-general/README.Debian]
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/README.Debian b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/README.Debian
new file mode 100644
index 0000000..69112e6
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/README.Debian
@@ -0,0 +1,6 @@
+generic-dh-make-2008 for Debian
+-------------------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/changelog.in b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8d16a3d
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/changelog.in
@@ -0,0 +1,5 @@
+generic-dh-make-2008 ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/compat.in b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/control.in b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/control.in
new file mode 100644
index 0000000..a668392
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/control.in
@@ -0,0 +1,13 @@
+Source: generic-dh-make-2008
+Section: unknown
+Priority: optional
+Maintainer: Russ Allbery <rra@debian.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.7.3
+Homepage: <insert the upstream URL, if relevant>
+
+Package: generic-dh-make-2008
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/copyright b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/copyright
new file mode 100644
index 0000000..31b796a
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Russ Allbery <rra@debian.org> on
+Mon, 29 Dec 2008 17:33:59 -0800.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+ <put author's name and email here>
+ <likewise for another author>
+
+Copyright:
+
+ <Copyright (C) YYYY Name OfAuthor>
+ <likewise for another author>
+
+License:
+
+ <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2008, Russ Allbery <rra@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/cron.d.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/cron.d.ex
new file mode 100644
index 0000000..d00b7d0
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/cron.d.ex
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the generic-dh-make-2008 package
+#
+0 4 * * * root [ -x /usr/bin/generic-dh-make-2008_maintenance ] && /usr/bin/generic-dh-make-2008_maintenance
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/dirs b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/docs b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-install.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
new file mode 100644
index 0000000..393594b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/generic-dh-make-2008
+
+# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+# SITEFLAG="-no-site-file"
+#else
+# SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
new file mode 100644
index 0000000..c48d194
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/generic-dh-make-2008
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/generic-dh-make-2008.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
new file mode 100644
index 0000000..b51657a
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50generic-dh-make-2008.el
+;; for the Debian generic-dh-make-2008 package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
+
+;; The generic-dh-make-2008 package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...). The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+ (symbol-name flavor)
+ "/site-lisp/generic-dh-make-2008")))
+;; If package-dir does not exist, the generic-dh-make-2008 package must have
+;; removed but not purged, and we should skip the setup.
+ (when (file-directory-p package-dir)
+ (setq load-path (cons package-dir load-path))
+ (autoload 'generic-dh-make-2008-mode "generic-dh-make-2008-mode"
+ "Major mode for editing generic-dh-make-2008 files." t)
+ (add-to-list 'auto-mode-alist '("\\.generic-dh-make-2008$" . generic-dh-make-2008-mode))))
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
new file mode 100644
index 0000000..d770c6e
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
@@ -0,0 +1,10 @@
+# Defaults for generic-dh-make-2008 initscript
+# sourced by /etc/init.d/generic-dh-make-2008
+# installed at /etc/default/generic-dh-make-2008 by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
new file mode 100644
index 0000000..3b966d1
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
@@ -0,0 +1,22 @@
+Document: generic-dh-make-2008
+Title: Debian generic-dh-make-2008 Manual
+Author: <insert document author here>
+Abstract: This manual describes what generic-dh-make-2008 is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.ps.gz
+
+Format: text
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.text.gz
+
+Format: HTML
+Index: /usr/share/doc/generic-dh-make-2008/html/index.html
+Files: /usr/share/doc/generic-dh-make-2008/html/*.html
+
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.ex
new file mode 100644
index 0000000..b464594
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.ex
@@ -0,0 +1,157 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/generic-dh-make-2008
+NAME=generic-dh-make-2008
+DESC=generic-dh-make-2008
+
+test -x $DAEMON || exit 0
+
+LOGDIR=/var/log/generic-dh-make-2008
+PIDFILE=/var/run/$NAME.pid
+DODTIME=1 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+# Include generic-dh-make-2008 defaults if available
+if [ -f /etc/default/generic-dh-make-2008 ] ; then
+ . /etc/default/generic-dh-make-2008
+fi
+
+set -e
+
+running_pid()
+{
+ # Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected child?
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running()
+{
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ # Obtain the pid and check it against the binary name
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+force_stop() {
+# Forcefully kill the process
+ [ ! -f "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ kill -9 $pid
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ echo "Cannot kill $LABEL (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+ return 0
+}
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON -- $DAEMON_OPTS
+ if running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ force-stop)
+ echo -n "Forcefully stopping $DESC: "
+ force_stop
+ if ! running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+ force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart" except that it does nothing if the
+ # daemon isn't already running.
+ # check wether $DAEMON is running. If so, restart
+ start-stop-daemon --stop --test --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON \
+ && $0 restart \
+ || exit 0
+ ;;
+ restart)
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --stop --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON
+ [ -n "$DODTIME" ] && sleep $DODTIME
+ start-stop-daemon --start --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+ echo "$NAME."
+ ;;
+ status)
+ echo -n "$LABEL is "
+ if running ; then
+ echo "running"
+ else
+ echo " not running."
+ exit 1
+ fi
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
new file mode 100644
index 0000000..b3559de
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
@@ -0,0 +1,296 @@
+#!/bin/sh
+#
+# Example init.d script with LSB support.
+#
+# Please read this init.d carefully and modify the sections to
+# adjust it to the program you want to run.
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# This is free software; you may 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,
+# or (at your option) any later version.
+#
+# 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. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: generic-dh-make-2008
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Should-Start: $named
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: <Enter a short description of the sortware>
+# Description: <Enter a long description of the software>
+# <...>
+# <...>
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/generic-dh-make-2008 # Introduce the server's location here
+NAME=#PACKAGE # Introduce the short server's name here
+DESC=#PACKAGE # Introduce a short description here
+LOGDIR=/var/log/generic-dh-make-2008 # Log directory to use
+
+PIDFILE=/var/run/$NAME.pid
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/$NAME
+DAEMON_OPTS="" # Additional options given to the server
+
+DIETIME=10 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+#STARTTIME=2 # Time to wait for the server to start, in seconds
+ # If this value is set each time the server is
+ # started (on start or restart) the script will
+ # stall to try to determine if it is running
+ # If it is not set and the server takes time
+ # to setup a pid file the log message might
+ # be a false positive (says it did not start
+ # when it actually did)
+
+LOGFILE=$LOGDIR/$NAME.log # Server logfile
+#DAEMONUSER=generic-dh-make-2008 # Users to run the daemons as. If this value
+ # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+# Use this if you want the user to explicitly set 'RUN' in
+# /etc/default/
+#if [ "x$RUN" != "xyes" ] ; then
+# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
+# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
+# exit 1
+#fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected server
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running() {
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+start_server() {
+# Start the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ else
+# if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --chuid $DAEMONUSER \
+ --exec $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ fi
+ return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ killproc -p $PIDFILE $DAEMON
+ errcode=$?
+ else
+# if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --user $DAEMONUSER \
+ --exec $DAEMON
+ errcode=$?
+ fi
+
+ return $errcode
+}
+
+reload_server() {
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=pidofproc $PIDFILE # This is the daemon's pid
+ # Send a SIGHUP
+ kill -1 $pid
+ return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+ [ ! -e "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ sleep "$DIETIME"s
+ if running ; then
+ kill -9 $pid
+ sleep "$DIETIME"s
+ if running ; then
+ echo "Cannot kill $NAME (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+}
+
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_progress_msg "apparently already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server ; then
+ # NOTE: Some servers might die some time after they start,
+ # this code will detect this issue if STARTTIME is set
+ # to a reasonable value
+ [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
+ if running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # It is not running after we did start
+ log_end_msg 1
+ fi
+ else
+ # Either we could not start it
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ errcode=0
+ stop_server || errcode=$?
+ log_end_msg $errcode
+ else
+ # If it's not running don't do anything
+ log_progress_msg "apparently not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ force-stop)
+ # First try to stop gracefully the program
+ $0 stop
+ if running; then
+ # If it's still running try to kill it more forcefully
+ log_daemon_msg "Stopping (force) $DESC" "$NAME"
+ errcode=0
+ force_stop || errcode=$?
+ log_end_msg $errcode
+ fi
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ errcode=0
+ stop_server || errcode=$?
+ # Wait some sensible amount, some server need this
+ [ -n "$DIETIME" ] && sleep $DIETIME
+ start_server || errcode=$?
+ [ -n "$STARTTIME" ] && sleep $STARTTIME
+ running || errcode=$?
+ log_end_msg $errcode
+ ;;
+ status)
+
+ log_daemon_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_progress_msg "running"
+ log_end_msg 0
+ else
+ log_progress_msg "apparently not running"
+ log_end_msg 1
+ exit 1
+ fi
+ ;;
+ # Use this if the daemon cannot reload
+ reload)
+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+ log_warning_msg "cannot re-read the config file (use restart)."
+ ;;
+ # And this if it cann
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+ # if running ; then
+ # reload_server
+ # if ! running ; then
+ # Process died after we tried to reload
+ # log_progress_msg "died on reload"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ # else
+ # log_progress_msg "server is not running"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ #;;
+
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.1.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.1.ex
new file mode 100644
index 0000000..d67baa2
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.1.ex
@@ -0,0 +1,59 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH GENERIC-DH-MAKE-2008 SECTION "December 29, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+generic-dh-make-2008 \- program to do something
+.SH SYNOPSIS
+.B generic-dh-make-2008
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B generic-dh-make-2008
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBgeneric-dh-make-2008\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+generic-dh-make-2008 was written by <upstream author>.
+.PP
+This manual page was written by Russ Allbery <rra@debian.org>,
+for the Debian project (but may be used by others).
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
new file mode 100644
index 0000000..26b3e0c
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+ <!ENTITY dhsurname "<surname>SURNAME</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>December 29, 2008</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
+ <!ENTITY dhemail "<email>rra@debian.org</email>">
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhucpackage "<refentrytitle>GENERIC-DH-MAKE-2008</refentrytitle>">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2003</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+
+ <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+ <arg><option>--example <replaceable>that</replaceable></option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+
+ <para>This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the &gnu;
+ <application>Info</application> format; see below.</para>
+
+ <para><command>&dhpackage;</command> is a program that...</para>
+
+ </refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <para>These programs follow the usual &gnu; command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <application>Info</application> files.</para>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>-h</option>
+ <option>--help</option>
+ </term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option>
+ <option>--version</option>
+ </term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1>
+ <title>SEE ALSO</title>
+
+ <para>bar (1), baz (1).</para>
+
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the
+ <application>Info</application> system.</para>
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 any
+ later version published by the Free Software Foundation.
+ </para>
+ <para>
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+ </para>
+
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.xml.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
new file mode 100644
index 0000000..2d01c6f
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
@@ -0,0 +1,291 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!--
+
+`xsltproc -''-nonet \
+ -''-param man.charmap.use.subset "0" \
+ -''-param make.year.ranges "1" \
+ -''-param make.single.year.ranges "1" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
+ manpage.xml'
+
+A manual page <package>.<section> will be generated. You may view the
+manual page with: nroff -man <package>.<section> | less'. A typical entry
+in a Makefile or Makefile.am is:
+
+DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
+
+manpage.1: manpage.xml
+ $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package. The XSL files are in
+docbook-xsl. A description of the parameters you can use can be found in the
+docbook-xsl-doc-* packages. Please remember that if you create the nroff
+version in one of the debian/rules file targets (such as build), you will need
+to include xsltproc and docbook-xsl in your Build-Depends control field.
+Alternatively use the xmlto command/package. That will also automatically
+pull in xsltproc and docbook-xsl.
+
+Notes for using docbook2x: docbook2x-man does not automatically create the
+AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
+<refsect1> ... </refsect1>.
+
+To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
+read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
+found in the docbook-xsl-doc-html package.
+
+Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
+
+General documentation about man-pages and man-page-formatting:
+man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
+
+-->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "FIRSTNAME">
+ <!ENTITY dhsurname "SURNAME">
+ <!-- dhusername could also be set to "&firstname; &surname;". -->
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhemail "rra@debian.org">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1) and
+ http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
+ <!ENTITY dhsection "SECTION">
+ <!-- TITLE should be something like "User commands" or similar (see
+ http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
+ <!ENTITY dhtitle "generic-dh-make-2008 User Manual">
+ <!ENTITY dhucpackage "GENERIC-DH-MAKE-2008">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+]>
+
+<refentry>
+ <refentryinfo>
+ <title>&dhtitle;</title>
+ <productname>&dhpackage;</productname>
+ <authorgroup>
+ <author>
+ <firstname>&dhfirstname;</firstname>
+ <surname>&dhsurname;</surname>
+ <contrib>Wrote this manpage for the Debian system.</contrib>
+ <address>
+ <email>&dhemail;</email>
+ </address>
+ </author>
+ </authorgroup>
+ <copyright>
+ <year>2007</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ <legalnotice>
+ <para>This manual page was written for the Debian system
+ (but may be used by others).</para>
+ <para>Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU General Public License,
+ Version 2 or (at your option) any later version published by
+ the Free Software Foundation.</para>
+ <para>On Debian systems, the complete text of the GNU General Public
+ License can be found in
+ <filename>/usr/share/common-licenses/GPL</filename>.</para>
+ </legalnotice>
+ </refentryinfo>
+ <refmeta>
+ <refentrytitle>&dhucpackage;</refentrytitle>
+ <manvolnum>&dhsection;</manvolnum>
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- These are several examples, how syntaxes could look -->
+ <arg choice="plain"><option>-e <replaceable>this</replaceable></option></arg>
+ <arg choice="opt"><option>--example=<parameter>that</parameter></option></arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <replaceable class="option">this</replaceable>
+ </arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <group choice="req">
+ <arg choice="plain"><replaceable>this</replaceable></arg>
+ <arg choice="plain"><replaceable>that</replaceable></arg>
+ </group>
+ </arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- Normally the help and version options make the programs stop
+ right after outputting the requested information. -->
+ <group choice="opt">
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-h</option></arg>
+ <arg choice="plain"><option>--help</option></arg>
+ </group>
+ </arg>
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-v</option></arg>
+ <arg choice="plain"><option>--version</option></arg>
+ </group>
+ </arg>
+ </group>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1 id="description">
+ <title>DESCRIPTION</title>
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+ <para>This manual page was written for the Debian distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the GNU <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> format; see below.</para>
+ <para><command>&dhpackage;</command> is a program that...</para>
+ </refsect1>
+ <refsect1 id="options">
+ <title>OPTIONS</title>
+ <para>The program follows the usual GNU command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> files.</para>
+ <variablelist>
+ <!-- Use the variablelist.term.separator and the
+ variablelist.term.break.after parameters to
+ control the term elements. -->
+ <varlistentry>
+ <term><option>-e <replaceable>this</replaceable></option></term>
+ <term><option>--example=<replaceable>that</replaceable></option></term>
+ <listitem>
+ <para>Does this and that.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h</option></term>
+ <term><option>--help</option></term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option></term>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="files">
+ <title>FILES</title>
+ <variablelist>
+ <varlistentry>
+ <term><filename>/etc/foo.conf</filename></term>
+ <listitem>
+ <para>The system-wide configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><filename>${HOME}/.foo.conf</filename></term>
+ <listitem>
+ <para>The per-user configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="environment">
+ <title>ENVIONMENT</title>
+ <variablelist>
+ <varlistentry>
+ <term><envar>FOO_CONF</envar></term>
+ <listitem>
+ <para>If used, the defined file is used as configuration
+ file (see also <xref linkend="files"/>).</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="diagnostics">
+ <title>DIAGNOSTICS</title>
+ <para>The following diagnostics may be issued
+ on <filename class="devicefile">stderr</filename>:</para>
+ <variablelist>
+ <varlistentry>
+ <term><errortext>Bad configuration file. Exiting.</errortext></term>
+ <listitem>
+ <para>The configuration file seems to contain a broken configuration
+ line. Use the <option>--verbose</option> option, to get more info.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para><command>&dhpackage;</command> provides some return codes, that can
+ be used in scripts:</para>
+ <segmentedlist>
+ <segtitle>Code</segtitle>
+ <segtitle>Diagnostic</segtitle>
+ <seglistitem>
+ <seg><errorcode>0</errorcode></seg>
+ <seg>Program exited successfully.</seg>
+ </seglistitem>
+ <seglistitem>
+ <seg><errorcode>1</errorcode></seg>
+ <seg>The configuration file seems to be broken.</seg>
+ </seglistitem>
+ </segmentedlist>
+ </refsect1>
+ <refsect1 id="bugs">
+ <!-- Or use this section to tell about upstream BTS. -->
+ <title>BUGS</title>
+ <para>The program is currently limited to only work
+ with the <package>foobar</package> library.</para>
+ <para>The upstreams <acronym>BTS</acronym> can be found
+ at <ulink url="http://bugzilla.foo.tld"/>.</para>
+ </refsect1>
+ <refsect1 id="see_also">
+ <title>SEE ALSO</title>
+ <!-- In alpabetical order. -->
+ <para><citerefentry>
+ <refentrytitle>bar</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>baz</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry></para>
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> system.</para>
+ </refsect1>
+</refentry>
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/menu.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/menu.ex
new file mode 100644
index 0000000..8a67e62
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/menu.ex
@@ -0,0 +1,2 @@
+?package(generic-dh-make-2008):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+ title="generic-dh-make-2008" command="/usr/bin/generic-dh-make-2008"
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postinst.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postinst.ex
new file mode 100644
index 0000000..b5f5ca7
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postinst.ex
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postrm.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postrm.ex
new file mode 100644
index 0000000..1d8a18a
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/postrm.ex
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/preinst.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/preinst.ex
new file mode 100644
index 0000000..3134ccf
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/preinst.ex
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/prerm.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/prerm.ex
new file mode 100644
index 0000000..4e5dd3f
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/prerm.ex
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/rules b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/rules
new file mode 100755
index 0000000..92aa2b1
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/generic-dh-make-2008.sgml > generic-dh-make-2008.1
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/generic-dh-make-2008.
+ $(MAKE) DESTDIR=$(CURDIR)/debian/generic-dh-make-2008 install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/watch.ex b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/watch.ex
new file mode 100644
index 0000000..e62d18f
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/debian/watch.ex
@@ -0,0 +1,23 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/generic-dh-make-2008/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to find new files on GooglePages
+# http://example.googlepages.com/foo.html generic-dh-make-2008-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/fill-values b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/fill-values
new file mode 100644
index 0000000..ef7a896
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/fill-values
@@ -0,0 +1,7 @@
+Testname: generic-dh-make-2008
+Skeleton: upload-builder-only
+Author: Russ Allbery <rra@debian.org>
+Package-Architecture: any
+Dh-Compat-Level: 7
+Description: Generic dh_make template generated in 2008
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/Makefile b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/Makefile
new file mode 100644
index 0000000..4f762d8
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/Makefile
@@ -0,0 +1,4 @@
+# Stub Makefile that's just enough so that the default rules file doesn't
+# error out.
+
+clean install:
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/README b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/README
new file mode 100644
index 0000000..6a3c009
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/orig/README
@@ -0,0 +1,13 @@
+dh_make 0.46 test
+=================
+
+This is the results of running dh_make 0.46 on an upstream tarball
+containing only this file. It's a useful test for the various dh_make
+template and boilerplate tags, as well as many tags for ways of doing
+things dh_make used to promote but are now deprecated or old debhelper
+commands that are now deprecated.
+
+Please don't modify anything about the files in this package; instead, add
+new tags as needed when Lintian adds new checks. This test case is
+intended to continue to be a test of Lintian's handling of old and
+template packages.
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/pre-build.in b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/pre-build.in
new file mode 100755
index 0000000..bbdb5cb
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/build-spec/pre-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# not using any templates, but dh_clean requires compat
+
+echo "[% $dh_compat_level %]" > "$1/debian/compat"
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/desc b/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/desc
new file mode 100644
index 0000000..5300245
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/desc
@@ -0,0 +1,4 @@
+Testname: generic-dh-make-2008
+Check: debian/readme
+See-Also:
+ Bug#497347
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/hints b/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/hints
new file mode 100644
index 0000000..31f43d3
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/hints
@@ -0,0 +1 @@
+generic-dh-make-2008 (binary): readme-debian-contains-debmake-template [usr/share/doc/generic-dh-make-2008/README.Debian]
diff --git a/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/post-test b/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/generic-dh-make-2008/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/README.Debian
new file mode 100644
index 0000000..e289bfb
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/README.Debian
@@ -0,0 +1,5 @@
+this is a package to test lintian's handling of files in /etc.
+Also, there's a random mention of /usr/doc here to prompt a warning.
+But /usr/documentation doesn't.
+
+ -- Russ Allbery <rra@debian.org>, Mon, 18 Feb 2008 16:40:55 -0800
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/changelog.in
new file mode 100644
index 0000000..00cdc77
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+etcfiles ([% $version %]) [% $distribution %]; urgency=low
+
+ * Acknowledge NMU (Closes: #123456).
+ * initial setup
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Fri, 21 Sep 2001 11:56:02 -0700
+
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles
new file mode 100644
index 0000000..76032b7
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles
@@ -0,0 +1,5 @@
+/etc/proper
+/var/lib/foo
+/etc/cron.daily/cronfile-normal
+/etc/cron.daily/.cronfile-begins-with-fullstop
+/etc/cron.daily/cronfile-contains.fullstop
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles.only
new file mode 100644
index 0000000..a4b3895
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/conffiles.only
@@ -0,0 +1,2 @@
+/etc/etcfiles/foo
+/etc/etcfiles/bar
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/control
new file mode 100644
index 0000000..f3dbda7
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/control
@@ -0,0 +1,20 @@
+Source: etcfiles
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.5.0
+
+Package: etcfiles
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: test handling of files in /etc
+ Regression test for lintian's handling of files in /etc.
+ .
+ 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.
+
+Package: only-etcfiles
+Architecture: all
+Depends: etcfiles (= ${source:Version})
+Description: test handling of conffile-only package
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/rules
new file mode 100755
index 0000000..97ff09f
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+tmponly=debian/only-etcfiles
+
+clean:
+ rm -f debian/files debian/substvars
+ rm -rf debian/tmp
+ rm -rf debian/only-etcfiles
+
+build:
+build-arch:
+build-indep:
+binary-indep:
+ install -d $(tmp)/etc
+ install -m 644 proper $(tmp)/etc
+ install -m 644 improper $(tmp)/etc
+ mkdir $(tmp)/etc/cron.daily
+ touch $(tmp)/etc/cron.daily/cronfile-normal
+ touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop
+ touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop
+ ln $(tmp)/etc/improper $(tmp)/etc/improper-link
+ install -d $(tmp)/usr/share/doc/etcfiles
+ install -d $(tmp)/var/lib
+ install -m 644 proper $(tmp)/var/lib/foo
+ install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles
+ #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog
+ install -d $(tmp)/DEBIAN
+ install -m 644 debian/conffiles $(tmp)/DEBIAN
+
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \
+ > debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '05c72cacce994208128b7d081116b04a ./etc/proper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce etc/improper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'this is a malformed line' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \
+ >> debian/tmp/DEBIAN/md5sums
+
+ install -d $(tmponly)/etc/etcfiles
+ touch $(tmponly)/etc/etcfiles/foo
+ touch $(tmponly)/etc/etcfiles/bar
+ install -d $(tmponly)/usr/share/doc
+ cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles
+ install -d $(tmponly)/DEBIAN
+ install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles
+
+ dpkg-gencontrol -isp -petcfiles
+ dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly)
+ dpkg --build $(tmp) ..
+ dpkg --build $(tmponly) ..
+
+binary: binary-indep
+
+.PHONY: binary-indep binary clean
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/fill-values
new file mode 100644
index 0000000..86deb10
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-etcfiles
+Source: etcfiles
+Version: 1
+Description: Legacy test "etcfiles"
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/improper
new file mode 100644
index 0000000..23656f4
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/improper
@@ -0,0 +1,2 @@
+[config]
+ var = value \ No newline at end of file
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/proper
new file mode 100644
index 0000000..f3dc68b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/build-spec/orig/proper
@@ -0,0 +1,2 @@
+# i am a config file
+foo = var \ No newline at end of file
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/readme/legacy-etcfiles/eval/desc
new file mode 100644
index 0000000..8573044
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-etcfiles
+Check: debian/readme
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/readme/legacy-etcfiles/eval/hints
new file mode 100644
index 0000000..8781179
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/eval/hints
@@ -0,0 +1 @@
+etcfiles (binary): readme-debian-mentions-usr-doc [usr/share/doc/etcfiles/README.Debian:2]
diff --git a/t/recipes/checks/debian/readme/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/readme/legacy-etcfiles/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-etcfiles/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..3e86b96
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description also uses non-UTF8 high bytes chars: ÄÖÜß
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/eval/desc b/t/recipes/checks/debian/readme/legacy-foo++/eval/desc
new file mode 100644
index 0000000..552bd50
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/readme
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/eval/hints b/t/recipes/checks/debian/readme/legacy-foo++/eval/hints
new file mode 100644
index 0000000..3a3d628
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (binary): readme-debian-contains-invalid-email-address foo@unknown [usr/share/doc/foo++/README.Debian.gz]
diff --git a/t/recipes/checks/debian/readme/legacy-foo++/eval/post-test b/t/recipes/checks/debian/readme/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/control.in
new file mode 100644
index 0000000..9b17d19
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/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: binary-targets
+Homepage: https://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.
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules
new file mode 100644
index 0000000..3d706f5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zgzip
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values
new file mode 100644
index 0000000..f97b076
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-rules-requires-root-binary-targets
+Description: Test for "Rules-Requires-Root: binary-targets"
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc
new file mode 100644
index 0000000..78f3775
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-rules-requires-root-binary-targets
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints
new file mode 100644
index 0000000..fedc8bd
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-binary-targets/eval/hints
@@ -0,0 +1 @@
+control-file-rules-requires-root-binary-targets (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7]
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/control.in
new file mode 100644
index 0000000..503994d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/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://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.
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules
new file mode 100644
index 0000000..3d706f5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zgzip
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values
new file mode 100644
index 0000000..7359a3f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: control-file-rules-requires-root-no
+Description: Test for "Rules-Requires-Root: no"
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc
new file mode 100644
index 0000000..3b22695
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/desc
@@ -0,0 +1,2 @@
+Testname: control-file-rules-requires-root-no
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints
new file mode 100644
index 0000000..f1f23af
--- /dev/null
+++ b/t/recipes/checks/debian/rules/control-file-rules-requires-root-no/eval/hints
@@ -0,0 +1 @@
+control-file-rules-requires-root-no (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7]
diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules
new file mode 100644
index 0000000..3d706f5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zgzip
diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values
new file mode 100644
index 0000000..97909d8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-compat-old/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debhelper-compat-old
+Description: Test for old debian/compat file
diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc
new file mode 100644
index 0000000..769274c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/desc
@@ -0,0 +1,4 @@
+Testname: debhelper-compat-old
+Options: --include-dir ./lintian-include-dir
+Profile: lintian-test
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints
new file mode 100644
index 0000000..d7b6688
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/hints
@@ -0,0 +1 @@
+debhelper-compat-old (source): custom-compression-in-debian-rules dh_builddeb -- -Zgzip [debian/rules:7]
diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/profiles/lintian-test/main.profile
@@ -0,0 +1,2 @@
+Profile: lintian-test/main
+Extends: debian/main
diff --git a/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
new file mode 100644
index 0000000..d91eeb3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-compat-old/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
@@ -0,0 +1,3 @@
+@include-parent
+deprecated=1
+recommended=100
diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules
new file mode 100755
index 0000000..69a9f01
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_OPTIONS=nocheck
+export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,-fortify
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values
new file mode 100644
index 0000000..39b1f51
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debhelper-deb-build-options
+Description: Test the value of DEB_BUILD_OPTIONS
diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc
new file mode 100644
index 0000000..f8ef095
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/desc
@@ -0,0 +1,2 @@
+Testname: debhelper-deb-build-options
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints
new file mode 100644
index 0000000..00e0056
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-deb-build-options/eval/hints
@@ -0,0 +1 @@
+debhelper-deb-build-options (source): debian-rules-sets-DEB_BUILD_OPTIONS [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules
new file mode 100755
index 0000000..111f495
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+export DH_COMPAT=10
+
+%:
+ dh $@
+
+DH_COMPAT=8
diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values
new file mode 100644
index 0000000..31ffc38
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debhelper-dh-compat
+Description: Test the value of DH_COMPAT
diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc
new file mode 100644
index 0000000..72261d3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/desc
@@ -0,0 +1,4 @@
+Testname: debhelper-dh-compat
+Profile: lintian-test
+Options: --include-dir ./lintian-include-dir
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints
new file mode 100644
index 0000000..cd1a705
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/hints
@@ -0,0 +1 @@
+debhelper-dh-compat (source): debian-rules-sets-DH_COMPAT [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/profiles/lintian-test/main.profile
@@ -0,0 +1,2 @@
+Profile: lintian-test/main
+Extends: debian/main
diff --git a/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
new file mode 100644
index 0000000..d91eeb3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-dh-compat/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
@@ -0,0 +1,3 @@
+@include-parent
+deprecated=1
+recommended=100
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in
new file mode 100644
index 0000000..6a7a04d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/control.in
@@ -0,0 +1,33 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+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.
+
+Package: debhelper-pre-depends
+Architecture: [% $package_architecture %]
+Pre-Depends: ${misc:Depends}
+Description: [% $description %] extra string
+ 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. Extra
+ string to not to trigger duplicated description tags. It may
+ be an empty package.
+
+Package: debhelper-suggests
+Architecture: [% $package_architecture %]
+Suggests: ${misc:Depends}
+Description: [% $description %] another extra string
+ 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. Extra
+ string. It may be an empty package.
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules
new file mode 100755
index 0000000..a622013
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+binary: binary-arch binary-indep
+binary-arch:
+binary-indep:
+ -dh_clideps
+ -dh_gstscancodecs
+ dh_lisp || true
+ # Should trigger a versioned dependency requirement for dpatch
+ -dh_dpatch_patch
+# We don't warn about commands inside make conditionals, so none of these
+# get any warnings.
+ifeq "$(USE_DH_PYTHON3)" "y"
+ dh_python3
+else
+ ifeq "$(USE_PYSUPPORT)" "y"
+ dh_pysupport
+ endif
+endif
+ dh binary-indep
+ -dh_strip_nondeterminism
+ -dh_scour
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values
new file mode 100644
index 0000000..7857128
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: debhelper-no-depends
+Dh-Compat-Level: 9
+Description: Test dependency requirements for debhelper
+# Overrides the "data/debhelper/compat-level"
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc
new file mode 100644
index 0000000..5d1b514
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/desc
@@ -0,0 +1,5 @@
+Testname: debhelper-no-depends
+Profile: lintian-test
+Options: --include-dir ./lintian-include-dir
+Check: debian/rules
+# Overrides the "data/debhelper/compat-level"
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints
new file mode 100644
index 0000000..f4bb314
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/hints
@@ -0,0 +1 @@
+debhelper-no-depends (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules]
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/profiles/lintian-test/main.profile
@@ -0,0 +1,2 @@
+Profile: lintian-test/main
+Extends: debian/main
diff --git a/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
new file mode 100644
index 0000000..67c590a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debhelper-no-depends/eval/lintian-include-dir/vendors/lintian-test/main/data/debhelper/compat-level
@@ -0,0 +1,2 @@
+@include-parent
+pedantic=8
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules
new file mode 100755
index 0000000..38cb607
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+export DEB_BADFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--no-as-needed -lfoo, -Wl,-as-needed -lsuffix
+export DEB_GOODFLAGS_MAINT_APPEND = -lprefix -Wl,--as-needed -Wl,--no-as-needed -lsuffix
+
+%:
+ dh $@
+
+override_dh_autoreconf:
+ -dh_autoreconf --as-needed
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values
new file mode 100644
index 0000000..54f985e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debian-rules-uses-as-needed-linker-flag
+Description: Test for --as-needed in debian/rules.
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc
new file mode 100644
index 0000000..5afa7c8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-rules-uses-as-needed-linker-flag
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints
new file mode 100644
index 0000000..f7f3eac
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-as-needed-linker-flag/eval/hints
@@ -0,0 +1,2 @@
+debian-rules-uses-as-needed-linker-flag (source): debian-rules-uses-as-needed-linker-flag [debian/rules:3]
+debian-rules-uses-as-needed-linker-flag (source): debian-rules-uses-as-needed-linker-flag [debian/rules:12]
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules
new file mode 100755
index 0000000..88fd899
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_test:
+ # Good
+ echo $(shell py3versions -s)
+ echo $(shell py3versions -vs)
+ echo $(shell py3versions -sv)
+ echo $(shell py3versions -v)
+
+ # Bad
+ echo $(shell py3versions -i)
+ echo $(shell py3versions -vi)
+ echo $(shell py3versions --installed)
+ echo $(shell py3versions --verbose --installed)
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values
new file mode 100644
index 0000000..cf63f8e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debian-rules-uses-installed-python-versions
+Description: Tests for py3versions -i
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc
new file mode 100644
index 0000000..86dc9f4
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-rules-uses-installed-python-versions
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints
new file mode 100644
index 0000000..baeea5d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-installed-python-versions/eval/hints
@@ -0,0 +1,7 @@
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -vs [debian/rules:9]
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -sv [debian/rules:10]
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -s [debian/rules:8]
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions -vi [debian/rules:15]
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions -i [debian/rules:14]
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions --verbose --installed [debian/rules:17]
+debian-rules-uses-installed-python-versions (source): debian-rules-uses-installed-python-versions py3versions --installed [debian/rules:16]
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules
new file mode 100755
index 0000000..d92a6d5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ # Good
+ echo $(shell py3versions -v)
+
+ # Bad
+ echo $(shell py3versions -s)
+ echo $(shell py3versions -vs)
+ echo $(shell py3versions -sv)
+ echo $(shell py3versions --supported)
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values
new file mode 100644
index 0000000..ee784f1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debian-rules-uses-supported-python-versions-without-python-all-build-depends
+Description: Tests for py3versions -s without python3-all build-depends
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc
new file mode 100644
index 0000000..2068b7e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-rules-uses-supported-python-versions-without-python-all-build-depends
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints
new file mode 100644
index 0000000..06b59c5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/debian-rules-uses-supported-python-versions-without-python-all-build-depends/eval/hints
@@ -0,0 +1,4 @@
+debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -vs [debian/rules:12]
+debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -sv [debian/rules:13]
+debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions -s [debian/rules:11]
+debian-rules-uses-supported-python-versions-without-python-all-build-depends (source): debian-rules-uses-supported-python-versions-without-python-all-build-depends py3versions --supported [debian/rules:14]
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules
new file mode 100644
index 0000000..000210b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh ${@}
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values
new file mode 100644
index 0000000..eb6c44c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: curly-braces
+Skeleton: source-native
+Description: Uses dh sequencer with curly variable notation (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc
new file mode 100644
index 0000000..c37f999
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/desc
@@ -0,0 +1,5 @@
+Testname: curly-braces
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: Debian Bug#947115
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/curly-braces/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules
new file mode 100644
index 0000000..76cf643
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+export USER=fake
+export HOME=$(CURDIR)/debian/fake-home
+
+$(CURDIR)/debian/fake-home:
+ mkdir $(CURDIR)/debian/fake-home
+
+%: $(CURDIR)/debian/fake-home
+ dh $@
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values
new file mode 100644
index 0000000..3fc8de8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: double-quotes
+Skeleton: source-native
+Description: Uses dh sequencer with explicit dependency (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc
new file mode 100644
index 0000000..1c1cef1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/desc
@@ -0,0 +1,5 @@
+Testname: dependency
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: #968108
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/dependency/eval/hints
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules
new file mode 100644
index 0000000..5875e30
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh "$@"
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values
new file mode 100644
index 0000000..443e7fc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: double-quotes
+Skeleton: source-native
+Description: Uses dh sequencer with double quotes around variable (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc
new file mode 100644
index 0000000..10cff19
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/desc
@@ -0,0 +1,5 @@
+Testname: double-quotes
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: https://salsa.debian.org/lintian/lintian/merge_requests/288
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/double-quotes/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules
new file mode 100644
index 0000000..6ad65cc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ PREFIX=/usr dh $@
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values
new file mode 100644
index 0000000..cc67457
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: environment-prefix
+Skeleton: source-native
+Description: Uses dh sequencer with a prefix setting an environment variable (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc
new file mode 100644
index 0000000..13dab36
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/desc
@@ -0,0 +1,6 @@
+Testname: environment-prefix
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also:
+ Bug#981712
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/environment-prefix/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules
new file mode 100644
index 0000000..f7b25c5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+.PHONY: binary binary-arch binary-indep build build-arch build-indep clean install
+binary-arch build build-arch build-indep clean install:
+ dh $@
+
+binary binary-indep:
+ dh $@
+
+build-stamp:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values
new file mode 100644
index 0000000..50af747
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: explicit-targets
+Skeleton: source-native
+Description: Uses dh sequencer but not the % target wildcard
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc
new file mode 100644
index 0000000..7e1ff3d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/desc
@@ -0,0 +1,5 @@
+Testname: explicit-targets
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: Debian Bug#930679
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/explicit-targets/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules
new file mode 100755
index 0000000..c3ff202
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/debian/rules
@@ -0,0 +1,76 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values
new file mode 100644
index 0000000..90a87b4
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: no-dh-sequencer
+Skeleton: upload-native
+Package-Architecture: any
+Dh-Compat-Level: 7
+Description: Uses standard debhelper targets but not the dh sequencer
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in
new file mode 100755
index 0000000..bbdb5cb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/build-spec/pre-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# not using any templates, but dh_clean requires compat
+
+echo "[% $dh_compat_level %]" > "$1/debian/compat"
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc
new file mode 100644
index 0000000..29c542e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/desc
@@ -0,0 +1,3 @@
+Testname: no-dh-sequencer
+Check: debian/rules/dh-sequencer
+See-Also: Debian Bug#930679
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints
new file mode 100644
index 0000000..a2ff5e0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/no-dh-sequencer/eval/hints
@@ -0,0 +1 @@
+no-dh-sequencer (source): no-dh-sequencer [debian/rules]
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules
new file mode 100644
index 0000000..0ceea36
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $(@)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values
new file mode 100644
index 0000000..07d9a39
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: parentheses
+Skeleton: source-native
+Description: Uses dh sequencer with parentheses around variable name (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc
new file mode 100644
index 0000000..95b6225
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/desc
@@ -0,0 +1,5 @@
+Testname: parentheses
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: Debian Bug#947115
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/parentheses/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules
new file mode 100644
index 0000000..2822991
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh '$@'
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values
new file mode 100644
index 0000000..4add931
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: single-quotes
+Skeleton: source-native
+Description: Uses dh sequencer with single quotes around variable (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc
new file mode 100644
index 0000000..895f051
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/desc
@@ -0,0 +1,5 @@
+Testname: single-quotes
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: https://salsa.debian.org/lintian/lintian/merge_requests/288
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/single-quotes/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules
new file mode 100644
index 0000000..f547287
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+%:
+ # this comment should not trigger a false positive
+ # neither should this one
+ dh $(@)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values
new file mode 100644
index 0000000..933afac
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: with-comments
+Skeleton: source-native
+Description: Uses dh sequencer but with comments inside the Makefile recipe (false positive)
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc
new file mode 100644
index 0000000..6a234e4
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/desc
@@ -0,0 +1,5 @@
+Testname: with-comments
+Check: debian/rules/dh-sequencer
+Test-Against:
+ no-dh-sequencer
+See-Also: Debian Bug#960485
diff --git a/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/rules/dh-sequencer/with-comments/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian
new file mode 100644
index 0000000..5ce4495
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/README.Debian
@@ -0,0 +1,6 @@
+dh-test for Debian
+------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Frank Lichtenheld <djpig@debian.org>, Thu, 4 Aug 2005 23:09:00 +0200
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in
new file mode 100644
index 0000000..580f946
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+generic-dh-make-2005 ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial release Closes: #nnnn (nnnn is the bug number of your ITP)
+
+ -- Frank Lichtenheld <djpig@debian.org> Thu, 4 Aug 2005 23:09:00 +0200
+
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in
new file mode 100644
index 0000000..4cbbc4e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/control.in
@@ -0,0 +1,12 @@
+Source: generic-dh-make-2005
+Section: unknown
+Priority: optional
+Maintainer: Frank Lichtenheld <djpig@debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.2
+
+Package: generic-dh-make-2005
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright
new file mode 100644
index 0000000..2bcce49
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+This package was debianized by Frank Lichtenheld <djpig@debian.org> on
+Thu, 4 Aug 2005 23:09:00 +0200.
+
+It was downloaded from <fill in ftp site>
+
+Copyright Holder: <put author(s) name and email here>
+
+License:
+
+<Put the license of the package here>
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules
new file mode 100755
index 0000000..ee4bffb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/debian/rules
@@ -0,0 +1,100 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+# $(MAKE)
+ #docbook-to-man debian/dh-test.sgml > dh-test.1
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/dh-test.
+# $(MAKE) install DESTDIR=$(CURDIR)/debian/dh-test
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# dh_testversion
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+# dh_dhelp
+ #dh_suidregister # originally there, but no longer supported
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values
new file mode 100644
index 0000000..01371b6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/fill-values
@@ -0,0 +1,8 @@
+Testname: generic-dh-make-2005
+Skeleton: upload-builder-only
+Author: Frank Lichtenheld <djpig@debian.org>
+Version: 1-1
+Package-Architecture: any
+Dh-Compat-Level: 7
+Description: Generic dh_make template generated in 2005
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README
new file mode 100644
index 0000000..e6a5a27
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/orig/README
@@ -0,0 +1,9 @@
+This is something close to the results of running dh_make on a basically
+empty upstream tarball in 2005, but with the example files removed. It's
+a useful test for the various dh_make template and boilerplate tags, as
+well as many tags for ways of doing things dh_make used to promote but are
+now deprecated or old debhelper commands that are now deprecated.
+
+Please don't modify anything about the files in this package; instead, add
+new tags as needed when Lintian adds new checks. This test case is
+intended to continue to be a test of Lintian's handling of old packages.
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in
new file mode 100755
index 0000000..bbdb5cb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/build-spec/pre-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# not using any templates, but dh_clean requires compat
+
+echo "[% $dh_compat_level %]" > "$1/debian/compat"
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc
new file mode 100644
index 0000000..0608338
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/desc
@@ -0,0 +1,2 @@
+Testname: generic-dh-make-2005
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints
new file mode 100644
index 0000000..ccb5124
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/hints
@@ -0,0 +1,4 @@
+generic-dh-make-2005 (source): debian-rules-should-not-set-CFLAGS-from-noopt [debian/rules]
+generic-dh-make-2005 (source): debian-rules-missing-required-target build-indep [debian/rules]
+generic-dh-make-2005 (source): debian-rules-missing-required-target build-arch [debian/rules]
+generic-dh-make-2005 (source): debian-rules-ignores-make-clean-error [debian/rules:47]
diff --git a/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-dh-make-2005/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in
new file mode 100644
index 0000000..7a4298d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/changelog.in
@@ -0,0 +1,2 @@
+[% $source %] ([% $version %]) unstable;
+ -- a <> Tue, 30 Dec 2008 17:34:02 -0800
diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in
new file mode 100644
index 0000000..575773e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/control.in
@@ -0,0 +1,5 @@
+Source: [% $source %]
+Maintainer: a
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules
new file mode 100755
index 0000000..62da96d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+build:
+binary:
+ install -d debian/generic-empty debian/generic-empty/DEBIAN
+ dpkg-gencontrol -pgeneric-empty -Pdebian/generic-empty
+ dpkg --build debian/generic-empty ..
+
+clean:
+ rm -rf debian/generic-empty
diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values b/t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values
new file mode 100644
index 0000000..26d9bdc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: generic-empty
+Package-Architecture: all
+Description: Pathological empty package
diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README b/t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README
new file mode 100644
index 0000000..ed1b149
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/orig/README
@@ -0,0 +1,4 @@
+This is the smallest possible Debian package that I can get
+dpkg-buildpackage to build (with the exception of this documentation).
+It tests Lintian handling of packages that are missing everything one
+would normally expect to have.
diff --git a/t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build b/t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build
new file mode 100755
index 0000000..1a3929a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/build-spec/pre-build
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# Remove as many files from the package as possible.
+
+rm -f "$1/debian/compat"
+rm -f "$1/debian/copyright"
diff --git a/t/recipes/checks/debian/rules/generic-empty/eval/desc b/t/recipes/checks/debian/rules/generic-empty/eval/desc
new file mode 100644
index 0000000..24610e0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/eval/desc
@@ -0,0 +1,2 @@
+Testname: generic-empty
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/generic-empty/eval/hints b/t/recipes/checks/debian/rules/generic-empty/eval/hints
new file mode 100644
index 0000000..c6a9a40
--- /dev/null
+++ b/t/recipes/checks/debian/rules/generic-empty/eval/hints
@@ -0,0 +1,4 @@
+generic-empty (source): debian-rules-missing-required-target build-indep [debian/rules]
+generic-empty (source): debian-rules-missing-required-target build-arch [debian/rules]
+generic-empty (source): debian-rules-missing-required-target binary-indep [debian/rules]
+generic-empty (source): debian-rules-missing-required-target binary-arch [debian/rules]
diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..1d6806d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/rules/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/rules/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-binary/eval/desc b/t/recipes/checks/debian/rules/legacy-binary/eval/desc
new file mode 100644
index 0000000..bf4eb52
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/legacy-binary/eval/hints b/t/recipes/checks/debian/rules/legacy-binary/eval/hints
new file mode 100644
index 0000000..76fa038
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-binary/eval/hints
@@ -0,0 +1,4 @@
+binary (source): debian-rules-missing-required-target build-indep [debian/rules]
+binary (source): debian-rules-missing-required-target binary-indep [debian/rules]
+binary (source): debian-rules-ignores-make-clean-error [debian/rules:14]
+binary (source): debian-rules-calls-pwd [debian/rules:9]
diff --git a/t/recipes/checks/debian/rules/legacy-binary/eval/post-test b/t/recipes/checks/debian/rules/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/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/debian/rules/legacy-debconf/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f5e308e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+debconf ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial Release
+ * Changelog line with exactly 80 characters which tests the line-too-long tag.
+
+ -- Lintian Maintainers <debian-lint-maint@debian.org> Wed, 3 May 2006 18:07:19 -0500
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control
new file mode 100644
index 0000000..bf9f4e9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/control
@@ -0,0 +1,52 @@
+Source: debconf
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 4), dpatch
+Maintainer: Lintian Maintainers <debian-lint-maint@debian.org>
+Standards-Version: 3.7.2
+
+Package: debconf-test
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (dummy)
+
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (noscripts)
+ Package missing postinst/postrm/config.
+ .
+ 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.
+
+Package: debconf-test-preinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (preinst)
+ Package uses debconf only in preinst.
+ .
+ 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.
+
+Package: debconf-test-postinst
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test package for the debconf checks of lintian (postinst)
+ Package uses debconf only in postinst.
+ .
+ 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.
+
+Package: debconf-udeb
+Section: debian-installer
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 100
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Test udeb package for the debconf checks of lintian (dummy)
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright
new file mode 100644
index 0000000..84843ee
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/copyright
@@ -0,0 +1,10 @@
+Copyright (C) 2004 Frank Lichtenheld <djpig@debian.org>
+
+Test for really old FSF address:
+
+Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
+
+Test for a dh-make boilerplate:
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
new file mode 100644
index 0000000..93f8071
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-noscripts.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
new file mode 100644
index 0000000..56ab871
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-postinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
new file mode 100644
index 0000000..cbf5e3b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
new file mode 100644
index 0000000..bf6f074
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# Obsolete name for the confmodule
+. /usr/share/debconf/confmodule.sh
+
+. /usr/share/debconf/confmodule
+
+db_input medium debconf/test
+
+#DEBHELPER#
+
+true
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
new file mode 100644
index 0000000..2a2a8ab
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test-preinst.templates
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Enter something:
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config
new file mode 100644
index 0000000..9e32d06
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.config
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_settitle "Funky lintian test"
+
+# Bad priorities.
+db_text LOW debconf/test
+db_input normal debconf/test
+
+# Valid priorities.
+db_text \
+high debconf/test
+foo=medium
+db_input $foo debconf/test
+db_input "$foo" debconf/test
+db_input 'medium' debconf/test
+
+# debconf/transtring should not be flagged as unused
+# (it's aliased to debconf/alias, which is used)
+db_register debconf/transtring debconf/alias
+db_input medium debconf/alias
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst
new file mode 100644
index 0000000..b387037
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# Not supposed to do this here.
+db_input medium debconf/test
+
+true
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates
new file mode 100644
index 0000000..811bb6c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates
@@ -0,0 +1,101 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)
+
+Template: debconf/testmulti
+Type: multiselect
+__Choices: foo, bar, boo
+_Description: test comma usages in choices fields
+
+Template: debconf/testmulti-escape
+Type: multiselect
+_Choices: foo\, bar, boo
+_Description: test escaped comma usages in choices fields:
+
+Template: debconf/testboolean
+Type: boolean
+_Description: Enter yes or no:
+ Do you want to answer this question?
+
+Template: debconf/teststring
+Type: string
+_Description: This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+ This template goes on and on.
+
+Template: debconf/testnote
+Type: note
+Description: This should be a title and not a really long sentence that ends in a regular period.
+
+Template: debconf/1st-person
+Type: select
+__Choices: one, two
+_Description: Select one of these:
+ I am a stupid test of first-person syntax that tells you to select yes
+ even though yes isn't an option in this prompt.
+
+Template: debconf/internal
+Type: boolean
+Description: For internal use only
+ We are testing that style checks are not applied to templates that are
+ marked as internal.
+
+Template: debconf/no-description
+Type: string
+
+Template: debconf/translate
+Type: boolean
+_Default: false
+_Description: Should this really be translated?
+
+Template: debconf/transtring
+Type: string
+_Default: 1
+_Description: Count of templates:
+ The number of useless numbers that a translator would have to translate
+ for this template.
+
+Template: debconf/language
+__Choices: English, Spanish, German, French
+# This is the default choice. Translators should put their own language,
+# if available, here instead, but the value MUST be the English version
+# of the value for the package scripts to work properly.
+_Default: English[ translators, see the comment in the PO files]
+_Description: The default language, an example of a default that should
+ be translated.
+
+Template: debconf/error
+Type: error
+_Description: An error occurred
+ This is a sample Debconf error template.
+
+Template: debconf/should-be-boolean
+Type: select
+__Choices: yes, no
+_Description: Choose:
+ Pick yes or no.
+
+Template: debconf/should-be-no-longer-a-problem
+Type: boolean
+_Description: Decide, lintian
+ Using "no longer" should no longer be detected as
+ making-assumptions-about-interfaces-in-templates by lintian.
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de
new file mode 100644
index 0000000..f9ea121
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.de
@@ -0,0 +1,3 @@
+Template: debconf/testmulti
+Type: multiselect
+Choices: foo, bar\, boo, boo
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-test.templates.in
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst
new file mode 100644
index 0000000..4ce41f0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+ldconfig
+
+true
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates
new file mode 100644
index 0000000..5d7cf5a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/debconf-udeb.templates
@@ -0,0 +1,3 @@
+Template: debian-installer/debconf-udeb/title
+Type: text
+_description: This is just a test
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in
new file mode 100644
index 0000000..d0c82f0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] debconf-test.templates
+[type: gettext/rfc822deb] debconf-udeb.templates
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po
new file mode 100644
index 0000000..86c5796
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/de.po
@@ -0,0 +1,66 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2004-12-06 01:01+0100\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:11
+msgid "foo\\, bar, boo"
+msgstr "foo, bar, boo"
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "Dies ist nur ein Test"
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po
new file mode 100644
index 0000000..c74deb2
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/fr.po
@@ -0,0 +1,60 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"Last-Translator: Frank Lichtenheld <djpig@debian.org>\n"
+"Language-Team: debian-l10n-german@l.d.o\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr "foo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr "bar, boo"
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr "boo"
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr "
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/lang.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/nds.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output
new file mode 100644
index 0000000..c3df1a5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/output
@@ -0,0 +1 @@
+2 utf8
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po
new file mode 100644
index 0000000..7ac498a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/pt_BR.po
@@ -0,0 +1,15 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: debconf-test 1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: 2005-10-13 15:03+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po
new file mode 100644
index 0000000..8dcc0ff
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/sample-file.po
@@ -0,0 +1 @@
+This is some file that isn't actually a valid .po file.
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot
new file mode 100644
index 0000000..914c77f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/po/templates.pot
@@ -0,0 +1,61 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-12-06 00:51+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: text
+#. description
+#: ../debconf-test.templates:3
+msgid "Foo bar (2)"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "foo"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "bar"
+msgstr ""
+
+#. Type: multiselect
+#. Choices
+#: ../debconf-test.templates:7
+msgid "boo"
+msgstr ""
+
+#. Type: multiselect
+#. Description
+#: ../debconf-test.templates:8
+msgid "test comma usages in choices fields"
+msgstr ""
+
+#. Type: text
+#. description
+#: ../debconf-udeb.templates:3
+msgid "This is just a test"
+msgstr ""
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat
new file mode 100644
index 0000000..0cfbf08
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pycompat
@@ -0,0 +1 @@
+2
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions
new file mode 100644
index 0000000..6f290b0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/pyversions
@@ -0,0 +1 @@
+>= 2.7
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules
new file mode 100755
index 0000000..933901a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+deb_dir = debian/debconf
+udeb_dir = debian/debconf-udeb
+build_dirs = $(deb_dir) $(udeb_dir)
+
+build-indep:
+# There are no architecture-independent files to be built
+# by this package. If there were any they would be made
+# here.
+
+build-arch:
+ dh_testdir
+ touch build
+
+build: build-indep build-arch
+
+clean:
+ dh_testdir
+ dh_testroot
+ -rm -f build
+
+ dh_clean
+
+binary-indep: build
+# There are no architecture-independent files to be uploaded
+# generated by this package. If there were any they would be
+# made here.
+
+binary-arch: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs -a
+
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_installdebconf -pdebconf-test
+ dh_installdebconf -pdebconf-test-noscripts --noscripts
+ dh_installdebconf -pdebconf-test-preinst --noscripts
+ dh_installdebconf -pdebconf-test-postinst --noscripts
+ dh_installdebconf -pdebconf-udeb
+
+
+
+
+ dh_compress -a
+ dh_fixperms -a
+
+# The shlibs stuff doesn't matter here so do it in a weird order to
+# test warnings.
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_makeshlibs -a
+ dh_gencontrol -a
+ dh_md5sums
+ dh_builddeb -a
+ dh_makeshlibs -a
+
+# Below here is fairly generic really
+
+binary: binary-indep binary-arch
+
+.PHONY: build-arch build-indep build binary binary-arch binary-indep clean checkroot
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values
new file mode 100644
index 0000000..186615f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debconf
+Source: debconf
+Version: 1~rc1
+Description: Legacy test "debconf"
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/eval/desc b/t/recipes/checks/debian/rules/legacy-debconf/eval/desc
new file mode 100644
index 0000000..87b1b86
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-debconf
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/eval/hints b/t/recipes/checks/debian/rules/legacy-debconf/eval/hints
new file mode 100644
index 0000000..fee3d99
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/eval/hints
@@ -0,0 +1,2 @@
+debconf (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:58]
+debconf (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:54]
diff --git a/t/recipes/checks/debian/rules/legacy-debconf/eval/post-test b/t/recipes/checks/debian/rules/legacy-debconf/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-debconf/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian
new file mode 100644
index 0000000..e289bfb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/README.Debian
@@ -0,0 +1,5 @@
+this is a package to test lintian's handling of files in /etc.
+Also, there's a random mention of /usr/doc here to prompt a warning.
+But /usr/documentation doesn't.
+
+ -- Russ Allbery <rra@debian.org>, Mon, 18 Feb 2008 16:40:55 -0800
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in
new file mode 100644
index 0000000..00cdc77
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+etcfiles ([% $version %]) [% $distribution %]; urgency=low
+
+ * Acknowledge NMU (Closes: #123456).
+ * initial setup
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Fri, 21 Sep 2001 11:56:02 -0700
+
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles
new file mode 100644
index 0000000..76032b7
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles
@@ -0,0 +1,5 @@
+/etc/proper
+/var/lib/foo
+/etc/cron.daily/cronfile-normal
+/etc/cron.daily/.cronfile-begins-with-fullstop
+/etc/cron.daily/cronfile-contains.fullstop
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only
new file mode 100644
index 0000000..a4b3895
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/conffiles.only
@@ -0,0 +1,2 @@
+/etc/etcfiles/foo
+/etc/etcfiles/bar
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control
new file mode 100644
index 0000000..f3dbda7
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/control
@@ -0,0 +1,20 @@
+Source: etcfiles
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.5.0
+
+Package: etcfiles
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: test handling of files in /etc
+ Regression test for lintian's handling of files in /etc.
+ .
+ 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.
+
+Package: only-etcfiles
+Architecture: all
+Depends: etcfiles (= ${source:Version})
+Description: test handling of conffile-only package
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules
new file mode 100755
index 0000000..97ff09f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+tmponly=debian/only-etcfiles
+
+clean:
+ rm -f debian/files debian/substvars
+ rm -rf debian/tmp
+ rm -rf debian/only-etcfiles
+
+build:
+build-arch:
+build-indep:
+binary-indep:
+ install -d $(tmp)/etc
+ install -m 644 proper $(tmp)/etc
+ install -m 644 improper $(tmp)/etc
+ mkdir $(tmp)/etc/cron.daily
+ touch $(tmp)/etc/cron.daily/cronfile-normal
+ touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop
+ touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop
+ ln $(tmp)/etc/improper $(tmp)/etc/improper-link
+ install -d $(tmp)/usr/share/doc/etcfiles
+ install -d $(tmp)/var/lib
+ install -m 644 proper $(tmp)/var/lib/foo
+ install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles
+ #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog
+ install -d $(tmp)/DEBIAN
+ install -m 644 debian/conffiles $(tmp)/DEBIAN
+
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \
+ > debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '05c72cacce994208128b7d081116b04a ./etc/proper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce etc/improper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'this is a malformed line' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \
+ >> debian/tmp/DEBIAN/md5sums
+
+ install -d $(tmponly)/etc/etcfiles
+ touch $(tmponly)/etc/etcfiles/foo
+ touch $(tmponly)/etc/etcfiles/bar
+ install -d $(tmponly)/usr/share/doc
+ cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles
+ install -d $(tmponly)/DEBIAN
+ install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles
+
+ dpkg-gencontrol -isp -petcfiles
+ dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly)
+ dpkg --build $(tmp) ..
+ dpkg --build $(tmponly) ..
+
+binary: binary-indep
+
+.PHONY: binary-indep binary clean
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values
new file mode 100644
index 0000000..86deb10
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-etcfiles
+Source: etcfiles
+Version: 1
+Description: Legacy test "etcfiles"
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper
new file mode 100644
index 0000000..23656f4
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/improper
@@ -0,0 +1,2 @@
+[config]
+ var = value \ No newline at end of file
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper
new file mode 100644
index 0000000..f3dc68b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/build-spec/orig/proper
@@ -0,0 +1,2 @@
+# i am a config file
+foo = var \ No newline at end of file
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc
new file mode 100644
index 0000000..e11916e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-etcfiles
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints
new file mode 100644
index 0000000..0a58f09
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/hints
@@ -0,0 +1 @@
+etcfiles (source): debian-rules-missing-required-target binary-arch [debian/rules]
diff --git a/t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-etcfiles/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in
new file mode 100644
index 0000000..38fc4e9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/changelog.in
@@ -0,0 +1,10 @@
+fields ([% $version %]) [% $distribution %]; urgency=low
+
+ * This package adds tests for the following tags:
+ - debian-revision-not-well-formed
+ - depends-on-python-minimal
+ - essential-no-not-needed
+ - debian-revision-should-not-be-zero
+ - new-essential-package
+
+ -- Tobias Quathamer <toddy@debian.org> Sun, 10 Apr 2011 14:30:00 +0100
diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control
new file mode 100644
index 0000000..d980a6e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/control
@@ -0,0 +1,28 @@
+Source: fields
+Section: does-not-exist
+Priority: standard
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.9.2
+
+Package: fields
+Essential: no
+Architecture: all
+Depends: python-minimal
+Description: Generate some errors
+ 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.
+
+Package: another-version
+Essential: yes
+Section: admin
+Architecture: all
+Description: Also generate some errors
+ This package gets another version number and tries to sneak in a new
+ essential package.
+ .
+ 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/debian/rules/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules
new file mode 100755
index 0000000..11ad4a7
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d $(tmp)/usr/share/doc/fields
+ install -m 644 debian/changelog \
+ $(tmp)/usr/share/doc/fields/changelog
+ gzip -n -9 $(tmp)/usr/share/doc/fields/changelog
+ dh_md5sums -pfields -P$(tmp)
+ dpkg-gencontrol -pfields -P$(tmp)
+ dpkg --build $(tmp) ..
+ rm -rf $(tmp)
+
+ # Create another package with a different version
+ dh_md5sums -panother-version -P$(tmp)
+ dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp)
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values
new file mode 100644
index 0000000..fe90eb0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-non-native
+Testname: legacy-fields
+Source: fields
+Version: 1.5-.3
+Description: Legacy test "fields"
diff --git a/t/recipes/checks/debian/rules/legacy-fields/eval/desc b/t/recipes/checks/debian/rules/legacy-fields/eval/desc
new file mode 100644
index 0000000..e29ae38
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-fields
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/legacy-fields/eval/hints b/t/recipes/checks/debian/rules/legacy-fields/eval/hints
new file mode 100644
index 0000000..4ec1eba
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/eval/hints
@@ -0,0 +1 @@
+fields (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules]
diff --git a/t/recipes/checks/debian/rules/legacy-fields/eval/post-test b/t/recipes/checks/debian/rules/legacy-fields/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-fields/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/eval/desc b/t/recipes/checks/debian/rules/legacy-scripts/eval/desc
new file mode 100644
index 0000000..e56bb23
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/eval/hints b/t/recipes/checks/debian/rules/legacy-scripts/eval/hints
new file mode 100644
index 0000000..cb1cdbd
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/eval/hints
@@ -0,0 +1,2 @@
+scripts (source): rules-require-build-prerequisite (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules]
+scripts (source): binary-arch-rules-but-pkg-is-arch-indep [debian/rules]
diff --git a/t/recipes/checks/debian/rules/legacy-scripts/eval/post-test b/t/recipes/checks/debian/rules/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values b/t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values
new file mode 100644
index 0000000..709e867
--- /dev/null
+++ b/t/recipes/checks/debian/rules/permissions-775/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: permissions-775
+Package-Architecture: all
+Description: Test in which debian/rules has group write permissions.
diff --git a/t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build b/t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build
new file mode 100755
index 0000000..393800f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/permissions-775/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+packagedir=$1
+
+chmod 775 "$packagedir/debian/rules"
diff --git a/t/recipes/checks/debian/rules/permissions-775/eval/desc b/t/recipes/checks/debian/rules/permissions-775/eval/desc
new file mode 100644
index 0000000..47f7801
--- /dev/null
+++ b/t/recipes/checks/debian/rules/permissions-775/eval/desc
@@ -0,0 +1,4 @@
+Testname: permissions-775
+Check: debian/rules
+Test-Against: debian-rules-not-executable
+See-Also: Bug#945869, Bug#945869
diff --git a/t/recipes/checks/debian/rules/permissions-775/eval/hints b/t/recipes/checks/debian/rules/permissions-775/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/permissions-775/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules
new file mode 100755
index 0000000..dbb0df1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/debian/rules
@@ -0,0 +1,37 @@
+#!/usr/bin/make -f
+
+build-indep:
+
+build-arch: build-stamp
+
+build-stamp:
+ dh build-arch
+ touch $@
+
+build: build-arch build-indep
+
+# From deejayd 0.8.2-1
+clean: $(PYVERS:%=clean-python%)
+
+clean-python%:
+ dh_testdir
+ dh_testroot
+
+ rm -f build-python*
+ python$* setup.py clean --all
+ find $(CURDIR) -name '*pyc' -exec rm -f {} \;
+ dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh install
+ touch $@
+
+binary-arch: install
+ dh $@
+
+binary-indep: install
+ dh $@
+
+binary: binary-arch binary-indep
+.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep
diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values
new file mode 100644
index 0000000..7760bbe
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-build-dep-pattern
+Description: Check recognition of pattern dependencies
diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc
new file mode 100644
index 0000000..075298a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/desc
@@ -0,0 +1,3 @@
+Testname: rules-build-dep-pattern
+See-Also: Bug#536405
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints
new file mode 100644
index 0000000..9827600
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-build-dep-pattern/eval/hints
@@ -0,0 +1 @@
+rules-build-dep-pattern (source): rules-require-build-prerequisite (does not satisfy python2:any | python2-dev:any | python2.7:any | python2.7-dev:any | python3:any | python3-dev:any | python3-all:any | python3-all-dev:any | python3.4:any | python3.4-dev:any | python3.5:any | python3.5-dev:any | python3.6:any | python3.6-dev:any | python3.7:any | python3.7-dev:any) [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules
new file mode 100755
index 0000000..0407d98
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_strip:
+ dh_strip prefix --ddeb-migration=foo suffix
+ dh_strip prefix --dbgsym-migration=foo suffix
+ dh_strip prefix --dbgsym-migration='apostrophe' suffix
+ dh_strip prefix --dbgsym-migration='apostrophe << 1' suffix
diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values
new file mode 100644
index 0000000..b6b29b8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-debug-symbol-migration-possibly-complete
+Description: Test for --dbgsym-migration etc.
diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc
new file mode 100644
index 0000000..fbb156b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-debug-symbol-migration-possibly-complete
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints
new file mode 100644
index 0000000..39d2436
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-debug-symbol-migration-possibly-complete/eval/hints
@@ -0,0 +1,4 @@
+rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --ddeb-migration=foo [debian/rules:7]
+rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration=foo [debian/rules:8]
+rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration='apostrophe' [debian/rules:9]
+rules-debug-symbol-migration-possibly-complete (source): debug-symbol-migration-possibly-complete --dbgsym-migration='apostrophe << 1' [debian/rules:10]
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules
new file mode 100755
index 0000000..6f702fe
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ /bin/true
+endif
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values
new file mode 100644
index 0000000..2e8d239
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a
+Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive)
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc
new file mode 100644
index 0000000..9443f92
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-a
+Test-Against:
+ override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-a/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules
new file mode 100755
index 0000000..11bd6cc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+# Empty target follows
+override_dh_auto_test:
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values
new file mode 100644
index 0000000..17ed76d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b
+Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive)
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc
new file mode 100644
index 0000000..e174c5a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-b
+Test-Against:
+ override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-b/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules
new file mode 100755
index 0000000..91dd51c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_test:
+ dh_auto_test
+ dh_auto_test # Comment
+ mkdir ignore/
+ rm -rf ignore/
+ -dh_auto_test -- SUFFIX=1
+ @dh_auto_test -- SUFFIX=1
+ -cp -r ignore ignore/
+ FOO=mydir dh_auto_test -- BAR=2
+ : Disabled
+ echo "Disabled"
+ @echo "Disabled"
+ -echo "Disabled"
+ -mv -v ignore ignore/
+ [ true ] || echo ignore
+ ENV="var" \
+ ENV="var" \
+ dh_auto_test || true
+ rm -f missing
+ test true && echo "foo"
+ rmdir missing || true
+ ln -sf foo bar
+ true
+ /bin/true
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values
new file mode 100644
index 0000000..b4bb0d6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c
+Description: Test for missing checks for DEB_BUILD_PROFILES (false-positive)
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc
new file mode 100644
index 0000000..e9756fe
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-dh-auto-test-does-not-check-deb-build-options-unrel-c
+Test-Against:
+ override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options-unrel-c/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules
new file mode 100755
index 0000000..b46c122
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_test:
+ /bin/sync
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values
new file mode 100644
index 0000000..afa76a3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-auto-test-does-not-check-deb-build-options
+Description: Test for missing checks for DEB_BUILD_PROFILES
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc
new file mode 100644
index 0000000..ec297d9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-dh-auto-test-does-not-check-deb-build-options
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints
new file mode 100644
index 0000000..8d657b1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-auto-test-does-not-check-deb-build-options/eval/hints
@@ -0,0 +1 @@
+rules-dh-auto-test-does-not-check-deb-build-options (source): override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS [debian/rules:6]
diff --git a/t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules
new file mode 100755
index 0000000..8ea3133
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+# Test for calling debhelper commands out of order. We take advantage here
+# of the fact checks/rules doesn't care what target the commands are called
+# from by using several uncalled targets.
+
+reverse:
+ dh_builddeb
+ dh_gencontrol
+ dh_installdeb
+ dh_shlibdeps
+ dh_makeshlibs
+
+shared-order:
+ dh_shlibdeps
+ dh_makeshlibs
+ dh_installdeb
+ dh_gencontrol
+ dh_builddeb
+
+multiple-package:
+ dh_makeshlibs -pfoo
+ dh_shlibdeps -pfoo
+ dh_installdeb -pfoo
+ dh_gencontrol -pfoo
+ dh_builddeb -pfoo
+
+ dh_makeshlibs -pbar
+ dh_gencontrol -pbar
+ dh_installdeb -pbar
+ dh_shlibdeps -pbar
+ dh_builddeb -pbar
diff --git a/t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values
new file mode 100644
index 0000000..fae0b62
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-order/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-order
+Description: Test order of dh command invocations
diff --git a/t/recipes/checks/debian/rules/rules-dh-order/eval/desc b/t/recipes/checks/debian/rules/rules-dh-order/eval/desc
new file mode 100644
index 0000000..2ce04c4
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-order/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-dh-order
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-order/eval/hints b/t/recipes/checks/debian/rules/rules-dh-order/eval/hints
new file mode 100644
index 0000000..b0d36b0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-order/eval/hints
@@ -0,0 +1,5 @@
+rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_shlibdeps [debian/rules:13]
+rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:18]
+rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_makeshlibs [debian/rules:14]
+rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_installdeb [debian/rules:12]
+rules-dh-order (source): debian-rules-calls-debhelper-in-odd-order dh_gencontrol [debian/rules:11]
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules
new file mode 100755
index 0000000..79fc28b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+build: build-stamp
+build-arch:
+build-indep:
+
+build-stamp:
+ dh build
+ touch $@
+
+clean:
+ dh $@
+
+install: install-stamp
+install-stamp: build-stamp
+ dh install
+ touch $@
+
+binary-arch: install
+ dh $@
+ # This target is not empty, but it should be
+ -install foo bar
+
+binary-indep: install
+ dh $@
+
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values
new file mode 100644
index 0000000..5307261
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-unused-target-nonempty
+Description: Allow dh in unused targets, but nothing else
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc
new file mode 100644
index 0000000..55593d3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/desc
@@ -0,0 +1,3 @@
+Testname: rules-dh-unused-target-nonempty
+See-Also: <20080806175819.GV11882@mail-vs.djpig.de>
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints
new file mode 100644
index 0000000..4a6f8cd
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target-nonempty/eval/hints
@@ -0,0 +1 @@
+rules-dh-unused-target-nonempty (source): binary-arch-rules-but-pkg-is-arch-indep [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules
new file mode 100755
index 0000000..ca3e9b5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+build-indep:
+
+build-arch: build-stamp
+
+build-stamp:
+ dh build-arch
+ touch $@
+
+build: build-arch build-indep
+
+clean:
+ dh $@
+
+install: install-stamp
+install-stamp: build-stamp
+ dh install
+ touch $@
+
+binary-arch: install
+ dh $@
+
+binary-indep: install
+ dh $@
+
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep install clean build build-arch build-indep
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values
new file mode 100644
index 0000000..bdeaa0e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-dh-unused-target
+Description: Allow dh in unused targets
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc
new file mode 100644
index 0000000..5700bcb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-dh-unused-target
+Test-Against: binary-arch-rules-but-pkg-is-arch-indep
+See-Also: <20080806175819.GV11882@mail-vs.djpig.de>
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-dh-unused-target/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in
new file mode 100644
index 0000000..4b34442
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends-Indep: [% $build_depends %], python
+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/debian/rules/rules-general/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/rules
new file mode 100755
index 0000000..e1f72bf
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-general/build-spec/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
+DH_EXTRA_ADDONS = systemd
+
+%:
+ dh $@
+
+clean:
+ dh_clean
+ echo $(DEB_BUILD_OPTS) $(PWD)
+ @echo $(_)
+
+# dh_make generated override targets
+# This is example for Cmake (See https://bugs.debian.org/641051 )
+#override_dh_auto_configure:
+# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+
+override_dh_shlibdeps:
+ dh_shlibdeps -V "liblintian0 (>= 0.0.1)"
diff --git a/t/recipes/checks/debian/rules/rules-general/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-general/build-spec/fill-values
new file mode 100644
index 0000000..f3cc7ce
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-general/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: rules-general
+Package-Architecture: all
+Description: Test various debian/rules checks
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/rules/rules-general/eval/desc b/t/recipes/checks/debian/rules/rules-general/eval/desc
new file mode 100644
index 0000000..8adced2
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-general
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-general/eval/hints b/t/recipes/checks/debian/rules/rules-general/eval/hints
new file mode 100644
index 0000000..8587a20
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-general/eval/hints
@@ -0,0 +1,8 @@
+rules-general (source): missing-build-depends-for-clean-target-in-debian-rules (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules]
+rules-general (source): debian-rules-uses-special-shell-variable [debian/rules:15]
+rules-general (source): debian-rules-uses-deb-build-opts [debian/rules:14]
+rules-general (source): debian-rules-updates-control-automatically [debian/rules:6]
+rules-general (source): debian-rules-should-not-use-DH_EXTRA_ADDONS systemd [debian/rules:7]
+rules-general (source): debian-rules-passes-version-info-to-dh_shlibdeps [debian/rules:23]
+rules-general (source): debian-rules-is-dh_make-template [debian/rules:17]
+rules-general (source): debian-rules-calls-pwd [debian/rules:14]
diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules
new file mode 100755
index 0000000..3445f5c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+binary-arch:
+ # EMPTY
+
+define checkdir
+ test -f debian/rules
+endef
diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values
new file mode 100644
index 0000000..84cbc2b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignore-define/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-ignore-define
+Description: Ignore define blocks when checking rule files
diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/eval/desc b/t/recipes/checks/debian/rules/rules-ignore-define/eval/desc
new file mode 100644
index 0000000..eab87e6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignore-define/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-ignore-define
+Test-Against: binary-arch-rules-but-pkg-is-arch-indep
+See-Also: Debian Bug#510869
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-ignore-define/eval/hints b/t/recipes/checks/debian/rules/rules-ignore-define/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignore-define/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile
new file mode 100644
index 0000000..959feb8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/Makefile
@@ -0,0 +1,3 @@
+all:
+
+distclean:
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules
new file mode 100755
index 0000000..63556d9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_auto_clean:
+ $(MAKE) -Cdebian distclean
+
+
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values
new file mode 100644
index 0000000..e882565
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-ignores-error-clean-fp
+Description: Check against Lintian false-positive error
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc
new file mode 100644
index 0000000..5e15233
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/desc
@@ -0,0 +1,3 @@
+Testname: rules-ignores-error-clean-fp
+Test-Against: debian-rules-ignores-make-clean-error
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean-fp/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules
new file mode 100755
index 0000000..b86584f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_auto_clean:
+ -$(MAKE) distclean
+
+
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values
new file mode 100644
index 0000000..e9f8da3
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-ignores-error-clean
+Description: Check for rules ignoring clean error
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile
new file mode 100644
index 0000000..959feb8
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/build-spec/orig/Makefile
@@ -0,0 +1,3 @@
+all:
+
+distclean:
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc
new file mode 100644
index 0000000..e41f791
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-ignores-error-clean
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints
new file mode 100644
index 0000000..ef99bcf
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-ignores-error-clean/eval/hints
@@ -0,0 +1 @@
+rules-ignores-error-clean (source): debian-rules-ignores-make-clean-error [debian/rules:6]
diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules
new file mode 100755
index 0000000..3f98954
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values
new file mode 100644
index 0000000..78c210e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: rules-including-deprecated-makefiles
+Dh-Compat-Level: 10
+Description: Test for debian/rules with deprecated included file
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
+Extra-Build-Depends: cdbs
diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc
new file mode 100644
index 0000000..e43aa61
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/desc
@@ -0,0 +1,3 @@
+Testname: rules-including-deprecated-makefiles
+Test-Conflicts: dh-buildinfo
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints
new file mode 100644
index 0000000..c3f7ceb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-including-deprecated-makefiles/eval/hints
@@ -0,0 +1 @@
+rules-including-deprecated-makefiles (source): debian-rules-uses-deprecated-makefile /usr/share/cdbs/1/rules/simple-patchsys.mk [debian/rules:4]
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules
new file mode 100755
index 0000000..512e7e1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+
+ include debian/rules.mk
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk
new file mode 100644
index 0000000..4e68614
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/debian/rules.mk
@@ -0,0 +1,2 @@
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values
new file mode 100644
index 0000000..9d39a99
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-missing-targets-with-includes
+Description: Test a debian/rules with targets included from another file
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc
new file mode 100644
index 0000000..81a5355
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-missing-targets-with-includes
+Test-Against: debian-rules-missing-required-target
+See-Also: Debian Bug#607281
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-includes/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules
new file mode 100755
index 0000000..e92755b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+# This should trigger a missing $type targets, since
+# we know the makefile does not implement them.
+include /usr/share/javahelper/java-vars.mk
+
+clean build binary:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values
new file mode 100644
index 0000000..36d2a17
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: rules-missing-targets-with-known-includes
+Description: Test for debian/rules with known included file
+Extra-Build-Depends: javahelper
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc
new file mode 100644
index 0000000..34b9af5
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-missing-targets-with-known-includes
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints
new file mode 100644
index 0000000..a8a5c95
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets-with-known-includes/eval/hints
@@ -0,0 +1,4 @@
+rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target build-indep [debian/rules]
+rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target build-arch [debian/rules]
+rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target binary-indep [debian/rules]
+rules-missing-targets-with-known-includes (source): debian-rules-missing-required-target binary-arch [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in
new file mode 100644
index 0000000..8aa2a58
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/control.in
@@ -0,0 +1,27 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: any
+Depends: ${misc:Depends}, [% $source %]-data
+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.
+
+Package: [% $source %]-data
+Architecture: all
+Depends: ${misc:Depends},
+Description: [% $description %] - data
+ 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.
+ .
+ Data package.
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules
new file mode 100644
index 0000000..3e3c60f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+# Missing build-arch/build-indep :)
+build clean binary binary-arch binary-indep:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values
new file mode 100644
index 0000000..e98756d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: rules-missing-targets
+Version: 1.0+dfsg-1
+Skeleton: upload-non-native
+Description: Test for missing targets in debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/eval/desc b/t/recipes/checks/debian/rules/rules-missing-targets/eval/desc
new file mode 100644
index 0000000..c0f6a2e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-missing-targets
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-missing-targets/eval/hints b/t/recipes/checks/debian/rules/rules-missing-targets/eval/hints
new file mode 100644
index 0000000..5c57705
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-missing-targets/eval/hints
@@ -0,0 +1,2 @@
+rules-missing-targets (source): debian-rules-missing-required-target build-indep [debian/rules]
+rules-missing-targets (source): debian-rules-missing-required-target build-arch [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules
new file mode 100755
index 0000000..97e5f8d
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/debian/rules
@@ -0,0 +1,13 @@
+#!/bin/sh
+# This should be a makefile.
+exec dh "$@"
+
+# fake targets to trick lintian into believing the
+# required targets are present (removed unrelated errors).
+binary:
+binary-arch:
+binary-indep:
+build:
+build-arch:
+build-indep:
+clean:
diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values
new file mode 100644
index 0000000..33a94d1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-not-makefile/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-not-makefile
+Description: Check if the rules file is a makefile
diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/eval/desc b/t/recipes/checks/debian/rules/rules-not-makefile/eval/desc
new file mode 100644
index 0000000..8f22a2e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-not-makefile/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-not-makefile
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-not-makefile/eval/hints b/t/recipes/checks/debian/rules/rules-not-makefile/eval/hints
new file mode 100644
index 0000000..492bf1f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-not-makefile/eval/hints
@@ -0,0 +1 @@
+rules-not-makefile (source): debian-rules-not-a-makefile [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules
new file mode 100755
index 0000000..c4d25dc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_clean:
+ true
+ dh_clean # This rule is a false positive
+
+override_dh_fixperms:
+ true
+ $(overridden_command) # This rule is a false positive
+
+override_dh_fixperms-indep:
+ dh_fixperms
+
+override_dh_fixperms-arch:
+ dh_fixperms
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values
new file mode 100644
index 0000000..64e6684
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-override-dh-foo-does-not-call-dh-foo-unrel
+Description: Test for missing calls to dh_foo in override_dh_foo (false positives)
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc
new file mode 100644
index 0000000..5518f3b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/desc
@@ -0,0 +1,5 @@
+Testname: rules-override-dh-foo-does-not-call-dh-foo-unrel
+Test-Against:
+ override_dh_clean-does-not-call-dh_clean
+ override_dh_fixperms-does-not-call-dh_fixperms
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo-unrel/eval/hints
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules
new file mode 100755
index 0000000..9270348
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+# Empty targets
+override_dh_clean:
+override_dh_fixperms:
+override_dh_fixperms-indep:
+override_dh_fixperms-arch:
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values
new file mode 100644
index 0000000..d652d91
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-override-dh-foo-does-not-call-dh-foo
+Description: Test for missing calls to dh_foo in override_dh_foo
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc
new file mode 100644
index 0000000..92a9b16
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-override-dh-foo-does-not-call-dh-foo
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints
new file mode 100644
index 0000000..171356a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-override-dh-foo-does-not-call-dh-foo/eval/hints
@@ -0,0 +1,4 @@
+rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:9]
+rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:8]
+rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_fixperms-does-not-call-dh_fixperms [debian/rules:10]
+rules-override-dh-foo-does-not-call-dh-foo (source): override_dh_clean-does-not-call-dh_clean [debian/rules:7]
diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules
new file mode 100644
index 0000000..9ea710e
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+DATE = $(shell dpkg-parsechangelog -SDate)
+SOURCE = $(shell dpkg-parsechangelog -SSource)
+SOURCE2 = $(shell dpkg-parsechangelog | grep ^Source | cut -d" " -f2)
+VERSION = $(shell dpkg-parsechangelog -SVersion)
+VERSION2 = $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
+TIMESTAMP = $(shell dpkg-parsechangelog -STimestamp)
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values
new file mode 100644
index 0000000..1f930fb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-parses-dpkg-parsechangelog
+Description: Test for debian/rules manually parsing dpkg-parsechangelog
diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc
new file mode 100644
index 0000000..33856af
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-parses-dpkg-parsechangelog
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints
new file mode 100644
index 0000000..88e06d0
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-parses-dpkg-parsechangelog/eval/hints
@@ -0,0 +1,6 @@
+rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:8]
+rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:7]
+rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:6]
+rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:5]
+rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:4]
+rules-parses-dpkg-parsechangelog (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules
new file mode 100755
index 0000000..eef8ddc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = sanitize=+all
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values
new file mode 100644
index 0000000..1fac498
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-sanitize-all-buildflag
+Description: Test for sanitize=+all
diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc
new file mode 100644
index 0000000..606ce75
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-sanitize-all-buildflag
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints
new file mode 100644
index 0000000..8602693
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sanitize-all-buildflag/eval/hints
@@ -0,0 +1 @@
+rules-sanitize-all-buildflag (source): debian-rules-should-not-use-sanitize-all-buildflag [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules
new file mode 100755
index 0000000..77454fa
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+export DEB_HOST_ARCH = invalid
+export DEB_BUILD_ARCH := invalid
+export DEB_TARGET_ARCH ?= false-positive
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values
new file mode 100644
index 0000000..7d7bc0a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-sets-dpkg-architecture-variable
+Description: Test for unnecessary dpkg-architecture assignments
diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc
new file mode 100644
index 0000000..bc0cb7a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-sets-dpkg-architecture-variable
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints
new file mode 100644
index 0000000..e636d4b
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-sets-dpkg-architecture-variable/eval/hints
@@ -0,0 +1,2 @@
+rules-sets-dpkg-architecture-variable (source): debian-rules-sets-dpkg-architecture-variable DEB_HOST_ARCH [debian/rules:3]
+rules-sets-dpkg-architecture-variable (source): debian-rules-sets-dpkg-architecture-variable DEB_BUILD_ARCH [debian/rules:4]
diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules
new file mode 100755
index 0000000..fbbdc99
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ dh_builddeb -- -Zxz -z 9
+ dh_builddeb -- -z9 -Z xz
+ dh_builddeb -- -z8 -Z xz
+ dh_builddeb -- -z9 -Zgzip
+ dh_builddeb -- -Zxz -Sextreme -z9
+ dh_builddeb -- -Zxz -z9 -Sextreme
diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values
new file mode 100644
index 0000000..683fab9
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-should-not-use-custom-compression-settings
+Description: Test for over-eager tarball compression etc.
diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc
new file mode 100644
index 0000000..8f09d8f
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-should-not-use-custom-compression-settings
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints
new file mode 100644
index 0000000..09e88f1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-should-not-use-custom-compression-settings/eval/hints
@@ -0,0 +1,6 @@
+rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z9 -Zgzip [debian/rules:10]
+rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z9 -Z xz [debian/rules:8]
+rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -z8 -Z xz [debian/rules:9]
+rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -z9 -Sextreme [debian/rules:12]
+rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -Sextreme -z9 [debian/rules:11]
+rules-should-not-use-custom-compression-settings (source): custom-compression-in-debian-rules dh_builddeb -- -Zxz -z 9 [debian/rules:7]
diff --git a/t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules
new file mode 100644
index 0000000..fe1e7a6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+DEB_CFLAGS_APPEND:= -Wl,--as-needed
+
+%:
+ dh $@
+
diff --git a/t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values
new file mode 100644
index 0000000..6ca7a03
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-special-variables/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-special-variables
+Description: Test for debian/rules using special variables
diff --git a/t/recipes/checks/debian/rules/rules-special-variables/eval/desc b/t/recipes/checks/debian/rules/rules-special-variables/eval/desc
new file mode 100644
index 0000000..3fc89d6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-special-variables/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-special-variables
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-special-variables/eval/hints b/t/recipes/checks/debian/rules/rules-special-variables/eval/hints
new file mode 100644
index 0000000..198af25
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-special-variables/eval/hints
@@ -0,0 +1,2 @@
+rules-special-variables (source): debian-rules-uses-wrong-environment-variable [debian/rules:3]
+rules-special-variables (source): debian-rules-uses-as-needed-linker-flag [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real b/t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real
new file mode 100644
index 0000000..2d33f6a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-symlink/build-spec/debian/rules.real
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values
new file mode 100644
index 0000000..e68b709
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-symlink
+Description: Test for debian/rules being a symlink
diff --git a/t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build b/t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build
new file mode 100755
index 0000000..c887d2c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-symlink/build-spec/pre-build
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Create d/rules as a symlink.
+
+ROOT_DIR="$1"
+
+ln -fs rules.real "${ROOT_DIR}/debian/rules"
diff --git a/t/recipes/checks/debian/rules/rules-symlink/eval/desc b/t/recipes/checks/debian/rules/rules-symlink/eval/desc
new file mode 100644
index 0000000..858059c
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-symlink
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-symlink/eval/hints b/t/recipes/checks/debian/rules/rules-symlink/eval/hints
new file mode 100644
index 0000000..02f26f1
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-symlink/eval/hints
@@ -0,0 +1 @@
+rules-symlink (source): debian-rules-is-symlink [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules
new file mode 100755
index 0000000..6749484
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+get-orig-source:
+ uscan --noconf --force-download --rename --download-current-version --destdir=..
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values
new file mode 100644
index 0000000..898d615
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-unnecessary-get-orig-source
+Description: Test for unnecessary get-orig-source targets
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc
new file mode 100644
index 0000000..067529a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-unnecessary-get-orig-source
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints
new file mode 100644
index 0000000..accab16
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-get-orig-source/eval/hints
@@ -0,0 +1 @@
+rules-unnecessary-get-orig-source (source): debian-rules-contains-unnecessary-get-orig-source-target [debian/rules]
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in
new file mode 100644
index 0000000..dea8a56
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: python
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %], dpkg-dev (>= 1.18.8), debhelper (>= 10.10)
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: all
+Depends: ${misc:Depends}
+Description: Test package
+ 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/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules
new file mode 100755
index 0000000..ec2dec6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s)
+
+export SOURCE_DATE_EPOCH = $(shell date +%s)
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values
new file mode 100644
index 0000000..76255aa
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-unnecessary-source-date-epoch-unrel
+Description: Test for unnecessary SOURCE_DATE_EPOCH assignments (false positive)
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc
new file mode 100644
index 0000000..ae35f68
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: rules-unnecessary-source-date-epoch-unrel
+Test-Against:
+ unnecessary-source-date-epoch-assignment
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints
new file mode 100644
index 0000000..eb59578
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch-unrel/eval/hints
@@ -0,0 +1 @@
+rules-unnecessary-source-date-epoch-unrel (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in
new file mode 100644
index 0000000..163f8bc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: python
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: dpkg-dev (>= 1.18.7), debhelper (>= 10.9)
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: Test package
+ 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/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules
new file mode 100755
index 0000000..ec2dec6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s)
+
+export SOURCE_DATE_EPOCH = $(shell date +%s)
+
+%:
+ dh $@
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values
new file mode 100644
index 0000000..b8dc1b6
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: rules-unnecessary-source-date-epoch
+Dh-Compat-Level: 10
+Description: Test for unnecessary SOURCE_DATE_EPOCH assignments
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc
new file mode 100644
index 0000000..d1cf5d7
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-unnecessary-source-date-epoch
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints
new file mode 100644
index 0000000..4c1864a
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/eval/hints
@@ -0,0 +1,3 @@
+rules-unnecessary-source-date-epoch (source): unnecessary-source-date-epoch-assignment [debian/rules:5]
+rules-unnecessary-source-date-epoch (source): unnecessary-source-date-epoch-assignment [debian/rules:3]
+rules-unnecessary-source-date-epoch (source): debian-rules-parses-dpkg-parsechangelog [debian/rules:3]
diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules
new file mode 100644
index 0000000..bdb1c68
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+ TARGETS := build clean binary binary-arch binary-indep build-arch build-indep
+
+$(TARGETS):
+ dh $@
+
+.PHONY: $(TARGETS)
+
diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values
new file mode 100644
index 0000000..45c7abb
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-variable-targets/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-variable-targets
+Description: Test against missing targets in debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/eval/desc b/t/recipes/checks/debian/rules/rules-variable-targets/eval/desc
new file mode 100644
index 0000000..00b2ccc
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-variable-targets/eval/desc
@@ -0,0 +1,3 @@
+Testname: rules-variable-targets
+Test-Against: debian-rules-missing-recommended-target
+Check: debian/rules
diff --git a/t/recipes/checks/debian/rules/rules-variable-targets/eval/hints b/t/recipes/checks/debian/rules/rules-variable-targets/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/rules/rules-variable-targets/eval/hints
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/control.in
new file mode 100644
index 0000000..1109beb
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/control.in
@@ -0,0 +1,48 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: mylibany
+Architecture: any
+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.
+
+
+Package: libany6gcc1v6
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] with gcc 6 version
+ 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 test if v6 string are correctly escaped
+
+Package: libany5gcc1v5
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] with gcc 5 version
+ 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 test if v5 string are correctly escaped
+
+Package: libanyq16-6
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] with Q16 version
+ 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 test if string are correctly escaped like for imagemagick.
+ .
+ library name is not libanyQ166 \ No newline at end of file
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.install b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.install
new file mode 100644
index 0000000..283bc61
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.install
@@ -0,0 +1 @@
+/usr/lib/libany5gcc.* \ No newline at end of file
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.symbols b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.symbols
new file mode 100644
index 0000000..a394502
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany5gcc1v5.symbols
@@ -0,0 +1,2 @@
+libany5gcc.so.1 libany5gcc1v5 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.install b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.install
new file mode 100644
index 0000000..9485e87
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.install
@@ -0,0 +1 @@
+/usr/lib/libany6gcc.* \ No newline at end of file
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.symbols b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.symbols
new file mode 100644
index 0000000..aee5f00
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libany6gcc1v6.symbols
@@ -0,0 +1,2 @@
+libany6gcc.so.1v6 libany6gcc1v6 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.install b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.install
new file mode 100644
index 0000000..b4ecaea
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.install
@@ -0,0 +1 @@
+/usr/lib/libanyQ16* \ No newline at end of file
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.symbols b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.symbols
new file mode 100644
index 0000000..0f32f79
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/libanyq16-6.symbols
@@ -0,0 +1,2 @@
+libanyQ16.so.1v6 libanyQ16-6 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.install b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.install
new file mode 100644
index 0000000..5c86ce1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.install
@@ -0,0 +1 @@
+/usr/lib/libany.* \ No newline at end of file
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.symbols b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.symbols
new file mode 100644
index 0000000..9b6f454
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/debian/mylibany.symbols
@@ -0,0 +1,2 @@
+libany.so.1 mylibany #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/fill-values b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/fill-values
new file mode 100644
index 0000000..523eb0b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: binaries-doesnt-match-sonames
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test for library package that does not match SONAME
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/Makefile
new file mode 100644
index 0000000..21a67b5
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/Makefile
@@ -0,0 +1,23 @@
+CC=gcc
+MYCFLAGS=-Wall -Winline -O2 -fPIC
+CFLAGS:=$(MYCFLAGS) $(CPPFLAGS) $(CFLAGS)
+
+SONAMES:= libany.so.1 libany6gcc.so.1v6 libany5gcc.so.1 libanyQ16.so.6
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/code.c
new file mode 100644
index 0000000..0c4f917
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/build-spec/orig/code.c
@@ -0,0 +1,9 @@
+#include <string.h>
+#include <stdio.h>
+
+void e(char *p, int i, void (*f)(char *)){
+ char test[10];
+ memcpy(test, p, i);
+ f(test);
+ printf("%s", test);
+}
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/desc b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/desc
new file mode 100644
index 0000000..02d87f3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/desc
@@ -0,0 +1,2 @@
+Testname: binaries-doesnt-match-sonames
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints
new file mode 100644
index 0000000..6cf925b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-doesnt-match-sonames/eval/hints
@@ -0,0 +1,4 @@
+mylibany (binary): symbols-file-missing-build-depends-package-field libany.so.1 [symbols]
+libanyq16-6 (binary): symbols-file-missing-build-depends-package-field libanyQ16.so.6 [symbols]
+libany6gcc1v6 (binary): symbols-file-missing-build-depends-package-field libany6gcc.so.1v6 [symbols]
+libany5gcc1v5 (binary): symbols-file-missing-build-depends-package-field libany5gcc.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/control.in
new file mode 100644
index 0000000..d8adb1b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/control.in
@@ -0,0 +1,17 @@
+Source: [% $source %]
+Priority: optional
+Section: devel
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %], perl
+Rules-Requires-Root: no
+
+Package: libbasic2
+Section: libs
+Architecture: [% $package_architecture %]
+Depends: some-pkg, ${misc:Depends}, ${shlib: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/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/libbasic2.symbols b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/libbasic2.symbols
new file mode 100644
index 0000000..0119bca
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/libbasic2.symbols
@@ -0,0 +1,4 @@
+libbasic.so.2 libbasic2 #MINVER#
+ lib_interface@Base 1.0
+libbasic++.so.2 libbasic2 #MINVER#
+ (c++)cxx_lib_interface@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/rules
new file mode 100644
index 0000000..188f490
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+# Make sure the C++ library actually links to libc
+export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed
+
+%:
+ dh $@
+
+override_dh_gencontrol:
+ # Remove the shlib:Depends since it will contain libc
+ sed -i '/shlib:Depends=/ d' debian/libbasic2.substvars
+ echo "shlib:depends=" >> debian/libbasic2.substvars
+ dh_gencontrol
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/fill-values b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/fill-values
new file mode 100644
index 0000000..0f58398
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: binaries-missing-depends-on-libc
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test for missing libc depends
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/Makefile
new file mode 100644
index 0000000..fcf25f4
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/Makefile
@@ -0,0 +1,14 @@
+all:
+ gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c
+ g++ $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs \
+ -Wl,-soname,libbasic++.so.2 -olibbasic++.so.2 cpp.cxx
+
+install:
+ install -d $(DESTDIR)/usr/lib/
+ install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2
+ install -m 644 -c -s libbasic++.so.2 $(DESTDIR)/usr/lib/libbasic++.so.2
+
+clean distclean:
+ rm -f libbasic.so.2 libbasic++.so.2
+
+check test:
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/basic.c b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/basic.c
new file mode 100644
index 0000000..27e93fc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/basic.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <string.h>
+
+static void
+hardening_trigger(char *p, int i, void (*f)(char *))
+{
+ char test[10];
+ memcpy(test, p, i);
+ f(test);
+ printf("%s", test);
+}
+
+int
+lib_interface(void)
+{
+ printf("Hello world!\n");
+ hardening_trigger(NULL, 0, NULL);
+ return 0;
+}
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/cpp.cxx b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/cpp.cxx
new file mode 100644
index 0000000..1338e40
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/build-spec/orig/cpp.cxx
@@ -0,0 +1,14 @@
+#include <iostream>
+#include <vector>
+
+using namespace std;
+
+template <class T> T
+cxx_lib_interface(vector<T> &v)
+{
+ cout << ":-) hello world" << endl;
+ return v[0];
+}
+
+
+
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/desc b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/desc
new file mode 100644
index 0000000..368818c
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/desc
@@ -0,0 +1,2 @@
+Testname: binaries-missing-depends-on-libc
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints
new file mode 100644
index 0000000..7290044
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends-on-libc/eval/hints
@@ -0,0 +1,2 @@
+libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols]
+libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic++.so.2 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/control.in
new file mode 100644
index 0000000..3b37179
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/control.in
@@ -0,0 +1,17 @@
+Source: [% $source %]
+Priority: optional
+Section: devel
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %], perl
+Rules-Requires-Root: no
+
+Package: libbasic2
+Architecture: [% $package_architecture %]
+Section: libs
+Depends: ${misc:Depends}, ${shlib: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/debian/shlibs/binaries-missing-depends/build-spec/debian/libbasic2.symbols b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/libbasic2.symbols
new file mode 100644
index 0000000..c2b8fb3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/libbasic2.symbols
@@ -0,0 +1,2 @@
+libbasic.so.2 libbasic2 #MINVER#
+ lib_interface@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/rules
new file mode 100644
index 0000000..8a83255
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ sed -i '/Depends:/ d' debian/libbasic2/DEBIAN/control
+ dh_builddeb
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/fill-values b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/fill-values
new file mode 100644
index 0000000..b1caef8
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: binaries-missing-depends
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test for missing depends line
+Package-Architecture: any
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/Makefile
new file mode 100644
index 0000000..6fc3968
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/Makefile
@@ -0,0 +1,12 @@
+all:
+ gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c
+
+install:
+ # install it under the correct triplet directory
+ install -d $(DESTDIR)/usr/lib/
+ install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2
+
+clean distclean:
+ rm -f libbasic.so.2
+
+check test:
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/basic.c b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/basic.c
new file mode 100644
index 0000000..27e93fc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/build-spec/orig/basic.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <string.h>
+
+static void
+hardening_trigger(char *p, int i, void (*f)(char *))
+{
+ char test[10];
+ memcpy(test, p, i);
+ f(test);
+ printf("%s", test);
+}
+
+int
+lib_interface(void)
+{
+ printf("Hello world!\n");
+ hardening_trigger(NULL, 0, NULL);
+ return 0;
+}
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/desc b/t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/desc
new file mode 100644
index 0000000..e3ef2c0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/desc
@@ -0,0 +1,2 @@
+Testname: binaries-missing-depends
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/hints b/t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/hints
new file mode 100644
index 0000000..d4e8830
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-missing-depends/eval/hints
@@ -0,0 +1 @@
+libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/control.in
new file mode 100644
index 0000000..2efaa33
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/control.in
@@ -0,0 +1,25 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libbasic2
+Architecture: [% $package_architecture %]
+Pre-Depends: ${misc:Pre-Depends}, multiarch-support
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Multi-Arch: same
+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.
+ .
+ Note there is an explicitly pre-depends on multiarch-support, since
+ older versions of debhelper might not use it yet. dpkg-dev will
+ remove the duplicate entry (if any).
+
+
+
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/libbasic2.symbols b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/libbasic2.symbols
new file mode 100644
index 0000000..c2b8fb3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/debian/libbasic2.symbols
@@ -0,0 +1,2 @@
+libbasic.so.2 libbasic2 #MINVER#
+ lib_interface@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/fill-values b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/fill-values
new file mode 100644
index 0000000..c508b75
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: binaries-multiarch-same
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test of multiarch same package with unsafe binaries
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/Makefile
new file mode 100644
index 0000000..ad7783b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/Makefile
@@ -0,0 +1,12 @@
+
+all:
+ gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c
+
+install:
+ install -d $(DESTDIR)/usr/lib/
+ install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/libbasic.so.2
+
+clean distclean:
+ rm -f libbasic.so.2
+
+check test:
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/basic.c b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/basic.c
new file mode 100644
index 0000000..27e93fc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/build-spec/orig/basic.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <string.h>
+
+static void
+hardening_trigger(char *p, int i, void (*f)(char *))
+{
+ char test[10];
+ memcpy(test, p, i);
+ f(test);
+ printf("%s", test);
+}
+
+int
+lib_interface(void)
+{
+ printf("Hello world!\n");
+ hardening_trigger(NULL, 0, NULL);
+ return 0;
+}
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/desc b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/desc
new file mode 100644
index 0000000..cd079c8
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/desc
@@ -0,0 +1,2 @@
+Testname: binaries-multiarch-same
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/hints b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/hints
new file mode 100644
index 0000000..d4e8830
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch-same/eval/hints
@@ -0,0 +1 @@
+libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/control.in
new file mode 100644
index 0000000..aa271ff
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/control.in
@@ -0,0 +1,21 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libbasic2
+Architecture: [% $package_architecture %]
+Pre-Depends: ${misc:Pre-Depends}, multiarch-support
+Depends: ${misc:Depends}, ${shlibs: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.
+ .
+ Note there is an explicitly pre-depends on multiarch-support, since
+ older versions of debhelper might not use it yet. dpkg-dev will
+ remove the duplicate entry (if any).
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/libbasic2.symbols b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/libbasic2.symbols
new file mode 100644
index 0000000..c2b8fb3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/libbasic2.symbols
@@ -0,0 +1,2 @@
+libbasic.so.2 libbasic2 #MINVER#
+ lib_interface@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/rules
new file mode 100644
index 0000000..249fe25
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+# Since dpkg in stable (Squeeze) does not support MULTIARCH we cannot use
+# dpkg-architecture -qDEB_HOST_MULTIARCH
+# Therefore this test is hardcoded to x86 and amd64
+
+ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifeq (i386,$(ARCH))
+ TRIPLET = i386-linux-gnu
+else
+ TRIPLET = x86_64-linux-gnu
+endif
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+override_dh_makeshlibs:
+ # dpkg-dev uses ld.so.conf so if we do not pass the lib directly
+ # this will fail on all x86 machines without with libc6 < 2.13-5
+ dh_makeshlibs -- -edebian/libbasic2/usr/lib/$(TRIPLET)/libbasic.so.2
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/fill-values b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/fill-values
new file mode 100644
index 0000000..a521479
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: binaries-multiarch
+Description: Test of a correct multiarch package
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/Makefile
new file mode 100644
index 0000000..979e366
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/Makefile
@@ -0,0 +1,26 @@
+
+# Since dpkg in stable (Squeeze) does not support MULTIARCH we cannot use
+# dpkg-architecture -qDEB_HOST_MULTIARCH
+# Therefore this test is hardcoded to x86 and amd64
+
+ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifeq (i386,$(ARCH))
+ TRIPLET = i386-linux-gnu
+else
+ TRIPLET = x86_64-linux-gnu
+endif
+
+
+all:
+ gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-z,defs -Wl,-soname,libbasic.so.2 -o libbasic.so.2 basic.c
+
+install:
+ # install it under the correct triplet directory
+ install -d $(DESTDIR)/usr/lib/$(TRIPLET)
+ install -m 644 -c -s libbasic.so.2 $(DESTDIR)/usr/lib/$(TRIPLET)/libbasic.so.2
+
+clean distclean:
+ rm -f libbasic.so.2
+
+check test:
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/basic.c b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/basic.c
new file mode 100644
index 0000000..27e93fc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/build-spec/orig/basic.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <string.h>
+
+static void
+hardening_trigger(char *p, int i, void (*f)(char *))
+{
+ char test[10];
+ memcpy(test, p, i);
+ f(test);
+ printf("%s", test);
+}
+
+int
+lib_interface(void)
+{
+ printf("Hello world!\n");
+ hardening_trigger(NULL, 0, NULL);
+ return 0;
+}
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/desc b/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/desc
new file mode 100644
index 0000000..d50c6ad
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/desc
@@ -0,0 +1,3 @@
+Testname: binaries-multiarch
+Test-Architectures: i386 amd64
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/hints b/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/hints
new file mode 100644
index 0000000..d4e8830
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/hints
@@ -0,0 +1 @@
+libbasic2 (binary): symbols-file-missing-build-depends-package-field libbasic.so.2 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/post-test b/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/post-test
new file mode 100644
index 0000000..fdc0a20
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/binaries-multiarch/eval/post-test
@@ -0,0 +1,2 @@
+s/i386-linux-gnu/x86_64-linux-gnu/
+s/is for i386/is for amd64/
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/control.in
new file mode 100644
index 0000000..addc2fc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/control.in
@@ -0,0 +1,33 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libpublic1
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends},
+Multi-Arch: same
+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.
+
+Package: libpublic-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends},
+Multi-Arch: foreign
+Description: [% $description %] (dev)
+ 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.
+ .
+ Supposedly includes some headers.
+
+
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic-dev.install b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic-dev.install
new file mode 100644
index 0000000..012244d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic-dev.install
@@ -0,0 +1 @@
+usr/lib/*/*.so
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.install b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.symbols b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.symbols
new file mode 100644
index 0000000..d8226ca
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/debian/libpublic1.symbols
@@ -0,0 +1,3 @@
+libexecbit.so.1 libexecbit1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/fill-values b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/fill-values
new file mode 100644
index 0000000..2b7d50c
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: files-wrong-ma-foreign
+Description: Test for wrong usage of Multi-Arch foreign
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/Makefile
new file mode 100644
index 0000000..ff58c3a
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/Makefile
@@ -0,0 +1,24 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libpublic.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)$(LIBDIR)
+ install -m 0644 *.so* $(DESTDIR)$(LIBDIR)
+ set -e ; for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)$(LIBDIR)/$$FILE ; \
+ ln -s $${FILE}.0.1 $(DESTDIR)$(LIBDIR)/$$(echo $$FILE | perl -pe 's/\.so\K.*//') ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/desc b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/desc
new file mode 100644
index 0000000..527b859
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/desc
@@ -0,0 +1,2 @@
+Testname: files-wrong-ma-foreign
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints
new file mode 100644
index 0000000..a157d77
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/eval/hints
@@ -0,0 +1 @@
+libpublic1 (binary): symbols-file-missing-build-depends-package-field libpublic.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/_symbols b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/_symbols
new file mode 100644
index 0000000..46e6af1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/_symbols
@@ -0,0 +1,23 @@
+ This line should flag a syntax error
+# but this one shouldn't
+| although this one should, but for a different reason
+ and so should this
+
+libhello.so.0 libhello0 #MINVER#
+| libhello0c2 (>= 1.2) , libhelloc0c2 (<< 1.3)
+| hello-dbg3| libhelloc0c3|foobar (= 1.2) |hello-dbg2
+| hello-dbg
+ hello@Base 1.0
+* Build-Dep-Foo: bar
+ hello2@Base 2.0 4
+ hello3@Base 2.0 1
+ hello3@Base 2.0 A
+ dummy
+
+libhello.so.2 libhello2 #MINVER#
+* Build-Depends-Package: libbar
+| libhello2 (>= 1:2.3)
+ hello@Base 2.0
+
+libhello.so.0 libhello0 #MINVER#
+ duplicate@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/changelog.in b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/changelog.in
new file mode 100644
index 0000000..02da925
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/changelog.in
@@ -0,0 +1,13 @@
+debug ([% $version %]) [% $distribution %]; urgency=low
+
+ * NMU.
+ (uploaded by the maintainer and with repeated version number)
+
+ -- Russ Allbery <rra@debian.org> Tue, 4 Apr 2006 20:27:22 +0000
+
+debug (1.0) unstable; urgency=low
+
+ * Initial version.
+
+ -- Russ Allbery <rra@debian.org> Sat, 4 Mar 2006 21:31:06 -0800
+
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/control b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/control
new file mode 100644
index 0000000..fcb2b86
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/control
@@ -0,0 +1,85 @@
+Source: debug
+Section: utils
+Priority: optional
+Maintainer: Russ Allbery <rra@debian.org>
+Build-Depends: debhelper (>= 5.0.0)
+Build-Depends-Indep: not-debhelper (>= 0.4.3)
+Standards-Version: 3.7.0
+
+Package: hello
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test for external debugging information
+ Lintian regression test for external debugging file handling. This test
+ contains the binary.
+ .
+ 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.
+
+Package: hello-dbg
+Priority: optional
+Section: debug
+Architecture: any
+Depends: hello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: Test for external debugging information (symbols)
+ Lintian regression test for external debugging file handling. This test
+ contains the binary symbols.
+ .
+ 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.
+
+Package: libhello0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Test for external debugging information (library)
+ Lintian regression test for external debugging file handling. This test
+ contains a library.
+ .
+ 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.
+
+Package: libhello0-dbg
+Section: debug
+Priority: optional
+Architecture: any
+Depends: libhello (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: Test for external debugging information (library symbols)
+ Lintian regression test for external debugging file handling. This test
+ contains the library symbols.
+ .
+ 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.
+
+Package: hi-dbg
+Section: debug
+Priority: optional
+Architecture: any
+Depends: foo-pkg, not-libhello0
+Description: Test for external debugging symbols
+ Lintian regression test for external debugging files handling. This test
+ contains the library symbols.
+ .
+ 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.
+
+Package: hello-hello-dbg
+Section: debug
+Priority: optional
+Architecture: any
+Depends: foo-pkg, not-libhello0, hello
+Description: Test for external debugging symbols - another try
+ Lintian regression test for external debugging files handling. This test
+ contains the library symbols. This package actually tests a combination of
+ the above.
+ .
+ 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/debian/shlibs/legacy-debug/build-spec/debian/copyright b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/copyright
new file mode 100644
index 0000000..5d4f6c2
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/copyright
@@ -0,0 +1,4 @@
+Written Sat, 04 Mar 2006 21:30:01 -0800 by Russ Allbery <rra@debian.org>.
+
+Test for copyright in capital letters. (#464992)
+COPYRIGHT RUSS ALLBERY 2006
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/rules
new file mode 100755
index 0000000..b659895
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/debian/rules
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# This file is public domain software, originally written by Joey Hess.
+
+# turn off PIE in CC in case we have a PIEful toolchain:
+ifneq ($(findstring -no-pie,$(shell gcc -no-pie 2>&1)),)
+ CC := gcc
+else
+ CC := gcc -fno-pie -no-pie
+endif
+
+build-indep:
+
+build-arch: build-stamp
+
+build-stamp:
+ dh_testdir
+ $(CC) -D_REENTRANT -fPIC -c libhello.c
+ $(CC) -o libhello.so.0.0 -shared -Wl,-soname,libhello.so.0 libhello.o
+ ln -s libhello.so.0.0 libhello.so
+ $(CC) -o hello hello.c -L. -lhello
+ touch build-stamp
+
+build: build-arch build-indep
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp *.o libhello.so.0.0 libhello.so
+ dh_clean
+
+install: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ install -D hello $(CURDIR)/debian/hello/usr/bin/hello
+ install -D libhello.so.0.0 \
+ $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0.0
+ ln -s libhello.so.0.0 \
+ $(CURDIR)/debian/libhello0/usr/lib/libhello.so.0
+
+# Build architecture-dependent files here.
+export DH_OPTIONS
+binary-arch: DH_OPTIONS=-a
+binary-arch: build-stamp install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -N hello-dbg
+ dh_installdocs
+ DH_OPTIONS= dh_strip -phello --dbg-package=hello-dbg
+ DH_OPTIONS= dh_strip -plibhello0 --dbg-package=libhello0-dbg
+
+ # Now break a few things. Copy the debugging data into places it
+ # shouldn't be.
+ cp $(CURDIR)/debian/hello-dbg/usr/lib/debug/usr/bin/hello \
+ $(CURDIR)/debian/hello/usr/bin/hello.dbg
+ cp $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/usr/lib/libhello.so.0.0 \
+ $(CURDIR)/debian/libhello0-dbg/usr/lib/libhello.so.dbg
+
+ # Put a full copy of the library in libhello0-dbg in /usr/lib/debug,
+ # which is okay.
+ install -m 644 libhello.so.0.0 \
+ $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/libhello.so.0.0
+
+ # Also put it in /usr/lib/debug/lib, which isn't.
+ install -D -m 644 libhello.so.0.0 \
+ $(CURDIR)/debian/libhello0-dbg/usr/lib/debug/lib/libhello.so.0.0
+
+ # Requires a versioned dependency.
+ dh_icons
+
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs -X debug
+ dh_installdeb
+ dh_shlibdeps -X debug
+
+ # We do this by hand as otherwise dpkg-gensymbols
+ # will error due to the broken symbols file
+ # and abort the build; similarly the file in
+ # the source tree is _symbols so that dpkg
+ # doesn't attempt to sanity check it
+ install -d $(CURDIR)/debian/libhello0/DEBIAN
+ install -m 644 $(CURDIR)/debian/_symbols \
+ $(CURDIR)/debian/libhello0/DEBIAN/symbols
+ # hello doesn't contain any shlibs, but we
+ # make it contain a symbols file
+ install -d $(CURDIR)/debian/hello/DEBIAN
+ install -m 644 $(CURDIR)/debian/_symbols \
+ $(CURDIR)/debian/hello/DEBIAN/symbols
+
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-indep:
+binary: binary-indep binary-arch
+.PHONY: build-arch build-indep build binary binary-indep binary-arch clean install
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/fill-values b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/fill-values
new file mode 100644
index 0000000..79eebf1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: legacy-debug
+Source: debug
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 7
+Description: Legacy test "debug"
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/hello.c b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/hello.c
new file mode 100644
index 0000000..76f8337
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/hello.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+#include "libhello.h"
+
+int
+main(void)
+{
+ hello();
+ exit(0);
+}
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.c b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.c
new file mode 100644
index 0000000..e2f8409
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+void
+hello(void)
+{
+ printf("Hello, World!\n");
+}
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.h b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.h
new file mode 100644
index 0000000..ef77476
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/build-spec/orig/libhello.h
@@ -0,0 +1 @@
+void hello(void);
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/eval/desc b/t/recipes/checks/debian/shlibs/legacy-debug/eval/desc
new file mode 100644
index 0000000..48b87f4
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/eval/desc
@@ -0,0 +1,3 @@
+Testname: legacy-debug
+Check: debian/shlibs
+Test-Against: symbols-file-missing-build-depends-package-field
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/eval/hints b/t/recipes/checks/debian/shlibs/legacy-debug/eval/hints
new file mode 100644
index 0000000..d9fdaff
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/eval/hints
@@ -0,0 +1,48 @@
+libhello0 (binary): unknown-meta-field-in-symbols-file Build-Dep-Foo (libhello.so.0) [symbols:11]
+libhello0 (binary): syntax-error-in-symbols-file [symbols:4]
+libhello0 (binary): syntax-error-in-symbols-file [symbols:3]
+libhello0 (binary): syntax-error-in-symbols-file [symbols:1]
+libhello0 (binary): syntax-error-in-symbols-file [symbols:19]
+libhello0 (binary): syntax-error-in-symbols-file [symbols:15]
+libhello0 (binary): syntax-error-in-symbols-file [symbols:11]
+libhello0 (binary): symbols-for-undeclared-shared-library libhello 2
+libhello0 (binary): symbols-file-missing-build-depends-package-field libhello.so.0 [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package libhelloc0c3 (libhello.so.0) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package libhelloc0c2 (<< 1.3) (libhello.so.0) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package libhello2 (libhello.so.2) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package libhello2 (>= 1:2.3) (libhello.so.2) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package libhello0c2 (>= 1.2) (libhello.so.0) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package hello-dbg3 (libhello.so.0) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package hello-dbg2 (libhello.so.0) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package hello-dbg (libhello.so.0) [symbols]
+libhello0 (binary): symbols-declares-dependency-on-other-package foobar (= 1.2) (libhello.so.0) [symbols]
+libhello0 (binary): surplus-shared-library-symbols libhello 2 [symbols]
+libhello0 (binary): invalid-template-id-in-symbols-file should this [symbols:4]
+libhello0 (binary): invalid-template-id-in-symbols-file A [symbols:14]
+libhello0 (binary): invalid-template-id-in-symbols-file 4 [symbols:12]
+libhello0 (binary): duplicate-entry-in-symbols-control-file (lines 6 22) libhello 0 [symbols]
+hello (binary): unknown-meta-field-in-symbols-file Build-Dep-Foo (libhello.so.0) [symbols:11]
+hello (binary): syntax-error-in-symbols-file [symbols:4]
+hello (binary): syntax-error-in-symbols-file [symbols:3]
+hello (binary): syntax-error-in-symbols-file [symbols:1]
+hello (binary): syntax-error-in-symbols-file [symbols:19]
+hello (binary): syntax-error-in-symbols-file [symbols:15]
+hello (binary): syntax-error-in-symbols-file [symbols:11]
+hello (binary): symbols-file-missing-build-depends-package-field libhello.so.0 [symbols]
+hello (binary): symbols-declares-dependency-on-other-package libhelloc0c3 (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package libhelloc0c2 (<< 1.3) (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package libhello2 (libhello.so.2) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package libhello2 (>= 1:2.3) (libhello.so.2) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package libhello0c2 (>= 1.2) (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package libhello0 (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package hello-dbg3 (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package hello-dbg2 (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package hello-dbg (libhello.so.0) [symbols]
+hello (binary): symbols-declares-dependency-on-other-package foobar (= 1.2) (libhello.so.0) [symbols]
+hello (binary): surplus-shared-library-symbols libhello 2 [symbols]
+hello (binary): surplus-shared-library-symbols libhello 0 [symbols]
+hello (binary): invalid-template-id-in-symbols-file should this [symbols:4]
+hello (binary): invalid-template-id-in-symbols-file A [symbols:14]
+hello (binary): invalid-template-id-in-symbols-file 4 [symbols:12]
+hello (binary): empty-shared-library-symbols [symbols]
+hello (binary): duplicate-entry-in-symbols-control-file (lines 6 22) libhello 0 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/legacy-debug/eval/post-test b/t/recipes/checks/debian/shlibs/legacy-debug/eval/post-test
new file mode 100644
index 0000000..fc97c5f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-debug/eval/post-test
@@ -0,0 +1,2 @@
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/changelog.in
new file mode 100644
index 0000000..91a6bb5
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+libbaz ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial setup
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800
+
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/control
new file mode 100644
index 0000000..1506687
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/control
@@ -0,0 +1,58 @@
+Source: libbaz
+Section: libs
+Priority: optional
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Build-depends: debhelper (>=4)
+Standards-Version: 3.2.1
+
+Package: libbaz1
+Architecture: any
+Provides: libbaz
+Description: test handling of library packages
+ Regression test for lintian's handling of libraries.
+ .
+ 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.
+
+Package: libbaz1-dev
+Architecture: any
+Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8
+Description: development package
+ Regression test for lintian's handling of libraries (dev).
+ .
+ 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.
+
+Package: libbaz2
+Architecture: any
+Depends: ${shlibs:Depends}, libssl0.9.8
+Description: test handling of library packages (good)
+ Regression test for lintian's handling of libraries (good).
+ .
+ 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.
+
+Package: libbaz2-dev
+Architecture: any
+Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version})
+Description: development package (good)
+ Regression test for lintian's handling of libraries (dev good).
+ .
+ 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.
+
+Package: libbaz2-dbg
+Architecture: any
+Depends: libbaz2 (= ${binary:Version})
+Priority: optional
+Description: debugging package
+ Regression test for lintian's handling of libraries (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.
+
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/copyright
new file mode 100644
index 0000000..a874c87
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/copyright
@@ -0,0 +1,8 @@
+This package 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.
+
+However, this has an OpenSSL exception.
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.postinst
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.prerm
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/dev.prerm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.postinst
new file mode 100644
index 0000000..ec0b98a
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ]
+; then
+ ln -sf ../share/doc/$PKG /usr/doc/$PKG
+ fi
+fi
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.prerm
new file mode 100644
index 0000000..50e37c3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then
+ rm -f /usr/doc/$PKG
+fi
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.shlibs
new file mode 100644
index 0000000..b88e288
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.shlibs
@@ -0,0 +1,8 @@
+libdoesntexist2 1.0 libbaz1
+libdoesntexist2 1.0 libbaz1
+libbaz2 1.1 libbaz
+libbaz3 1 libbaz1 (>> 1-1)
+libbaz4 1 libbaz1 (= 1-1)
+libbaz5 1 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.symbols
new file mode 100644
index 0000000..72f9d8a
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/lib.symbols
@@ -0,0 +1,3 @@
+libbaz.so.2 libbaz1 #MINVER#
+ pw 1-1
+ foo 1.1-1
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/rules
new file mode 100755
index 0000000..fa99bc8
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/rules
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+
+lib_tmp=debian/tmp-lib
+dev_tmp=debian/tmp-dev
+
+LIB=libbaz1
+DEV=libbaz1-dev
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+build-arch:
+ $(MAKE)
+
+build-indep:
+
+build: build-arch build-indep
+
+clean:
+ $(MAKE) clean
+ dh_clean -plibbaz2 -plibbaz2-dev
+ rm -f debian/files debian/substvars
+ rm -rf $(lib_tmp) $(dev_tmp)
+
+# Now the correct libbaz2-dev package
+binary-correct:
+ install -d debian/libbaz2-dev/usr/lib
+ cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib
+ # usually, I'd also include some .h files to /usr/include
+
+ # Now the correct libbaz2 package
+ install -d debian/libbaz2/usr/lib
+ cp -a libbaz2.so.* debian/libbaz2/usr/lib
+ chmod a-x debian/libbaz2/usr/lib/*
+
+ # General stuff that is tested in other testsets:
+ dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # Mess up the libbaz2 changelog files to test the symlink handling.
+ ln -s /usr/share/doc/lintian/changelog.gz \
+ debian/libbaz2/usr/share/doc/libbaz2/changelog.gz
+ install -m 644 debian/changelog \
+ debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo
+ ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog
+
+ # Okay, if either line is omitted, it should be noted
+ dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev
+ dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # and again, regular packaging stuff
+ dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs
+ dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+# and the incorrect one
+binary-arch: build-arch binary-correct
+ # first, the lib package
+ install -d $(lib_tmp)/usr/lib
+ # resp. no soname (check), wrong soname (check), and no-pic (check)
+ cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib
+ cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b
+ install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b
+ # let's include the .a in the non-dev too (TODO)
+ # Also, libbaz1.a hasn't a symbol table (TODO)
+ cp -a *.a $(lib_tmp)/usr/lib
+ # And a wrong .so symlink (wrong, only in -dev, TODO)
+ ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so
+ # And a wrong .so.X symlink (wrong, should point to a real existing
+ # shlib, TODO)
+ ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9
+ # And a plain .so (wrong, TODO)
+ touch $(lib_tmp)/usr/lib/libbar2.so
+ # And a non-versioned SONAME.
+ install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so
+ strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+
+ install -d $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB)
+ gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog
+ install -d $(lib_tmp)/DEBIAN
+ install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst
+ install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm
+ touch $(lib_tmp)/usr/share/doc/README.Debian
+ #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0
+ install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs
+ install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols
+ dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp)
+ dpkg --build $(lib_tmp) ..
+
+ # now the -dev package
+ install -d $(dev_tmp)/usr/include
+ install -d $(lib_tmp)/usr/lib
+ # let's also install the .so at the same time... (wrong, TODO)
+ cp -a *.a *.so.* $(lib_tmp)/usr/lib
+ # and fuck up permission (TODO)
+ chmod a+x $(lib_tmp)/usr/lib/*.a
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ install -d $(dev_tmp)/usr/share/doc
+ ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV)
+ install -d $(dev_tmp)/DEBIAN
+ install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst
+ install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp)
+ dpkg --build $(dev_tmp) ..
+
+
+binary: binary-arch
+
+# The mention of binary-indep here should be sufficient to suppress the
+# warning that it's not present.
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/source.lintian-overrides
new file mode 100644
index 0000000..6008d27
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/debian/source.lintian-overrides
@@ -0,0 +1 @@
+libbaz source: maintainer-script-lacks-debhelper-token
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/fill-values
new file mode 100644
index 0000000..7effe4f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-libbaz
+Source: libbaz
+Version: 1-1
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Description: Legacy test "libbaz"
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/Makefile
new file mode 100644
index 0000000..657dc2a
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/Makefile
@@ -0,0 +1,55 @@
+# This is the correct way to build a lib
+
+CC=gcc
+CFLAGS=-g -Wall -Winline -O2
+LDFLAGS=-Wl,--no-as-needed
+
+OBJS=baz.o extra.o
+SHOBJS=baz.sho extra.sho
+NOPICOBJS = $(SHOBJS)
+
+all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \
+ libbaz.so
+
+libbaz2.so: libbaz2.so.1.0
+ ln -sf $^ $@
+libbaz2.so.1.0: libbaz2.so.1.0.3b
+ ln -sf $^ $@
+
+# Oops, forget the soname altogether
+libbaz1.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared $^ -lc
+
+libbaz2.so.1.0.3b: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc
+
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc
+
+# Non-versioned SONAME.
+libbaz.so: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc
+
+#%.o-noreentrant: %.c
+# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $<
+
+%.sho: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $<
+
+%.o: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $<
+
+libbaz2.a: $(OBJS)
+ ar cq $@ $(OBJS)
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+ ranlib $@
+
+# The pic one in the .a (wrong), no archive table
+libbaz1.a: $(SHOBJS)
+ ar cqS $@ $^
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+clean:
+ rm -f *.a *.o *.so* *.sho
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/baz.c
new file mode 100644
index 0000000..4d5fc45
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/baz.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double pw(double p)
+{
+ return exp(p);
+}
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/extra.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/build-spec/orig/extra.c
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/desc b/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/desc
new file mode 100644
index 0000000..ad73840
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-libbaz
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/hints b/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/hints
new file mode 100644
index 0000000..8e668dc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/hints
@@ -0,0 +1,20 @@
+libbaz2 (binary): no-symbols-control-file usr/lib/libbaz2.so.1.0.3b
+libbaz1 (binary): symbols-for-undeclared-shared-library libbaz 2
+libbaz1 (binary): symbols-file-missing-build-depends-package-field libbaz.so.2 [symbols]
+libbaz1 (binary): symbols-file-contains-debian-revision on symbol foo (libbaz.so.2) [symbols]
+libbaz1 (binary): symbols-file-contains-current-version-with-debian-revision on symbol pw (libbaz.so.2) [symbols]
+libbaz1 (binary): surplus-shared-library-symbols libbaz 2 [symbols]
+libbaz1 (binary): ships-undeclared-shared-library libbaz2 1.0 for usr/lib/libfoo2.so.1.0.3b [shlibs]
+libbaz1 (binary): shared-library-symbols-not-tracked libbaz3 1 for usr/lib/libbaz3.so.1.0.3b [symbols]
+libbaz1 (binary): shared-library-symbols-not-tracked libbaz2 1.0 for usr/lib/libfoo2.so.1.0.3b [symbols]
+libbaz1 (binary): shared-library-symbols-not-tracked libbaz.so for usr/lib/libbaz.so [symbols]
+libbaz1 (binary): shared-library-not-shipped udeb: libdoesntexist2 1.0 [shlibs]
+libbaz1 (binary): shared-library-not-shipped libdoesntexist2 1.0 [shlibs]
+libbaz1 (binary): shared-library-not-shipped libbaz5 1 [shlibs]
+libbaz1 (binary): shared-library-not-shipped libbaz4 1 [shlibs]
+libbaz1 (binary): shared-library-not-shipped libbaz2 1.1 [shlibs]
+libbaz1 (binary): shared-library-lacks-version usr/lib/libbaz.so libbaz.so
+libbaz1 (binary): duplicate-in-shlibs (lines 7 8) udeb: libdoesntexist2 1.0 [shlibs]
+libbaz1 (binary): duplicate-in-shlibs (lines 1 2) libdoesntexist2 1.0 [shlibs]
+libbaz1 (binary): distant-prerequisite-in-shlibs libbaz2 [shlibs]
+libbaz1 (binary): distant-prerequisite-in-shlibs libbaz1 (>> 1-1) [shlibs]
diff --git a/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/post-test b/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/post-test
new file mode 100755
index 0000000..29dc3f4
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/legacy-libbaz/eval/post-test
@@ -0,0 +1,4 @@
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/: file-references-package-build-path / d
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/control.in
new file mode 100644
index 0000000..a223c7e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/control.in
@@ -0,0 +1,57 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libnoshf1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (no shlibs file)
+ 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.
+ .
+ Checks for missing shlibs file.
+
+Package: libeshf1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (empty shlibs file)
+ 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.
+ .
+ Checks for empty shlibs file.
+
+Package: libunshf1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (unused entry)
+ 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.
+ .
+ Checks for unused entry in shlibs file.
+
+Package: libfdshf1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (foreign dep)
+ 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.
+ .
+ Checks for foreign dependency entry in shlibs file.
+
+Package: libdupshf1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (dup entry)
+ 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.
+ .
+ Checks for duplicate entry in shlibs file.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.install b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.install
new file mode 100644
index 0000000..7452fe1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.install
@@ -0,0 +1 @@
+usr/lib/libdupshf*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.symbols
new file mode 100644
index 0000000..166a346
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libdupshf1.symbols
@@ -0,0 +1,3 @@
+libdupshf.so.1 libdupshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.install b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.install
new file mode 100644
index 0000000..5ef4c2d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.install
@@ -0,0 +1 @@
+usr/lib/libeshf*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.symbols
new file mode 100644
index 0000000..fdd0204
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libeshf1.symbols
@@ -0,0 +1,3 @@
+libeshf.so.1 libeshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.install b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.install
new file mode 100644
index 0000000..c01a368
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.install
@@ -0,0 +1 @@
+usr/lib/libfdshf*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.symbols
new file mode 100644
index 0000000..4a18831
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libfdshf1.symbols
@@ -0,0 +1,3 @@
+libfdshf.so.1 libfdshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.install b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.install
new file mode 100644
index 0000000..175a915
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.install
@@ -0,0 +1 @@
+usr/lib/libnoshf*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.symbols
new file mode 100644
index 0000000..fef945e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libnoshf1.symbols
@@ -0,0 +1,3 @@
+libnoshf.so.1 libnoshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.install b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.install
new file mode 100644
index 0000000..dcdae56
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.install
@@ -0,0 +1 @@
+usr/lib/libunshf*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.symbols
new file mode 100644
index 0000000..737842d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/libunshf1.symbols
@@ -0,0 +1,3 @@
+libunshf.so.1 libunshf1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/rules
new file mode 100644
index 0000000..0cd4c15
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+DUPSHF:=debian/libdupshf1/DEBIAN/shlibs
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ # Work around "smart tools" that check the shlibs
+ # before installing them.
+ rm -f debian/libnoshf1/DEBIAN/shlibs
+ echo "# aloha" > debian/libeshf1/DEBIAN/shlibs
+ echo "libfoo 1 libunshf1 (> 0.1)" >> debian/libunshf1/DEBIAN/shlibs
+ sed -i 's/libfdshf1/libforeign1/' debian/libfdshf1/DEBIAN/shlibs
+ cat $(DUPSHF) $(DUPSHF) > $(DUPSHF).tmp
+ mv -f $(DUPSHF).tmp $(DUPSHF)
+ dh_builddeb
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/fill-values
new file mode 100644
index 0000000..9336eee
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: shared-libs-control-file
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to shlibs files
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/Makefile
new file mode 100644
index 0000000..37bef22
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/Makefile
@@ -0,0 +1,23 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libnoshf.so.1 libeshf.so.1 libunshf.so.1 libfdshf.so.1 \
+ libdupshf.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/desc
new file mode 100644
index 0000000..9ccf196
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-control-file
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/hints
new file mode 100644
index 0000000..87f69e6
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-control-file/eval/hints
@@ -0,0 +1,11 @@
+libunshf1 (binary): symbols-file-missing-build-depends-package-field libunshf.so.1 [symbols]
+libunshf1 (binary): shared-library-not-shipped libfoo 1 [shlibs]
+libunshf1 (binary): outdated-relation-in-shlibs libunshf1 (> 0.1) [shlibs]
+libnoshf1 (binary): symbols-file-missing-build-depends-package-field libnoshf.so.1 [symbols]
+libnoshf1 (binary): no-shlibs usr/lib/libnoshf.so.1.0.1
+libfdshf1 (binary): symbols-file-missing-build-depends-package-field libfdshf.so.1 [symbols]
+libfdshf1 (binary): distant-prerequisite-in-shlibs libforeign1 [shlibs]
+libeshf1 (binary): symbols-file-missing-build-depends-package-field libeshf.so.1 [symbols]
+libeshf1 (binary): ships-undeclared-shared-library libeshf 1 for usr/lib/libeshf.so.1.0.1 [shlibs]
+libdupshf1 (binary): symbols-file-missing-build-depends-package-field libdupshf.so.1 [symbols]
+libdupshf1 (binary): duplicate-in-shlibs (lines 1 2) libdupshf 1 [shlibs]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/control.in
new file mode 100644
index 0000000..9ca1147
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/control.in
@@ -0,0 +1,27 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo-1
+Architecture: any
+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.
+
+Package: libfoo-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libfoo-1 (= ${binary:Version})
+Description: [% $description %] - dev
+ 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.
+ .
+ Dev package.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.install b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.install
new file mode 100644
index 0000000..cb060ec
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.install
@@ -0,0 +1,2 @@
+lib/libbar-1.so
+usr/lib/libfoo-1.so
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.symbols
new file mode 100644
index 0000000..910a1e5
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-1.symbols
@@ -0,0 +1,7 @@
+libfoo-1.so libfoo-1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
+
+libbar-1.so libfoo-1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-dev.install b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-dev.install
new file mode 100644
index 0000000..ed7b146
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/debian/libfoo-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/libbar.so
+usr/lib/libfoo.so
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/fill-values
new file mode 100644
index 0000000..5240e59
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: shared-libs-dev-symlink-fp
+Skeleton: upload-non-native
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test against dev symlink fp
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/Makefile
new file mode 100644
index 0000000..decdff1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/Makefile
@@ -0,0 +1,27 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAME:= libfoo-1.so
+LSONAME:= libbar-1.so
+devsymlink=$(shell echo $(1) | perl -pe 's:-[\d\.]*\.so$$:\.so:')
+LIBFILES:=$(SONAME) $(LSONAME)
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$@ $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/lib
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 -d $(DESTDIR)/usr/include
+ install -m 0644 $(LSONAME) $(DESTDIR)/lib
+ install -m 0644 $(SONAME) $(DESTDIR)/usr/lib
+ ln -s /lib/$(LSONAME) $(DESTDIR)/usr/lib/$(call devsymlink,$(LSONAME))
+ ln -s $(SONAME) $(DESTDIR)/usr/lib/$(call devsymlink,$(SONAME))
+ install -m 0644 code.h $(DESTDIR)/usr/include
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.c
new file mode 100644
index 0000000..9a88735
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.c
@@ -0,0 +1,16 @@
+#include <stdlib.h>
+#include <math.h>
+#include "code.h"
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.h b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.h
new file mode 100644
index 0000000..570beae
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/build-spec/orig/code.h
@@ -0,0 +1,8 @@
+#ifndef CODE_H_
+#define CODE_H_
+
+double e(void (*f)(char *));
+
+double energy(double mass);
+
+#endif
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/desc
new file mode 100644
index 0000000..c26091f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-dev-symlink-fp
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints
new file mode 100644
index 0000000..09ab005
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink-fp/eval/hints
@@ -0,0 +1,2 @@
+libfoo-1 (binary): symbols-file-missing-build-depends-package-field libfoo-1.so [symbols]
+libfoo-1 (binary): symbols-file-missing-build-depends-package-field libbar-1.so [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..dfba657
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/control.in
@@ -0,0 +1,27 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+Architecture: any
+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.
+
+Package: libfoo-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libfoo1 (= ${binary:Version})
+Description: [% $description %] - dev
+ 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.
+ .
+ Dev package.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo-dev.install b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo-dev.install
new file mode 100644
index 0000000..e43b95c
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo-dev.install
@@ -0,0 +1 @@
+usr/include
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.install b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.install
new file mode 100644
index 0000000..08fa063
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.install
@@ -0,0 +1 @@
+usr/lib/libfoo.so.*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..a1f052b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/fill-values
new file mode 100644
index 0000000..9c44aa5
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: shared-libs-dev-symlink
+Skeleton: upload-non-native
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to dev symlink
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/Makefile
new file mode 100644
index 0000000..a7a50b9
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/Makefile
@@ -0,0 +1,24 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 -d $(DESTDIR)/usr/include
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+ install -m 0644 code.h $(DESTDIR)/usr/include
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.c
new file mode 100644
index 0000000..9a88735
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.c
@@ -0,0 +1,16 @@
+#include <stdlib.h>
+#include <math.h>
+#include "code.h"
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.h b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.h
new file mode 100644
index 0000000..570beae
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/build-spec/orig/code.h
@@ -0,0 +1,8 @@
+#ifndef CODE_H_
+#define CODE_H_
+
+double e(void (*f)(char *));
+
+double energy(double mass);
+
+#endif
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/desc
new file mode 100644
index 0000000..451ac80
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-dev-symlink
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints
new file mode 100644
index 0000000..a7f8c30
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-dev-symlink/eval/hints
@@ -0,0 +1 @@
+libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/control.in
new file mode 100644
index 0000000..86a2064
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libexecbit1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/libexecbit1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/libexecbit1.symbols
new file mode 100644
index 0000000..d8226ca
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/libexecbit1.symbols
@@ -0,0 +1,3 @@
+libexecbit.so.1 libexecbit1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/rules
new file mode 100644
index 0000000..9082f3f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+override_dh_fixperms:
+ # Do nothing, TYIA
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/fill-values
new file mode 100644
index 0000000..0f19b1b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-exec-bit
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to libs with exec bit
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/Makefile
new file mode 100644
index 0000000..0997289
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/Makefile
@@ -0,0 +1,23 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libexecbit.so.1 libbadperm.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *execbit*.so* $(DESTDIR)/usr/lib
+ install -m 0600 *badperm*.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/desc
new file mode 100644
index 0000000..efef29f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-exec-bit
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/hints
new file mode 100644
index 0000000..b576dcd
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-bit/eval/hints
@@ -0,0 +1,2 @@
+libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols]
+libexecbit1 (binary): symbols-file-missing-build-depends-package-field libbadperm.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/control.in
new file mode 100644
index 0000000..bd81464
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libexecstack1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/libexecstack1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/libexecstack1.symbols
new file mode 100644
index 0000000..1cc72ae
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/debian/libexecstack1.symbols
@@ -0,0 +1,3 @@
+libexecstack.so.1 libexecstack1 #MINVER#
+ foo@Base 1.0
+ get@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/fill-values
new file mode 100644
index 0000000..7ca10e3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-exec-stack
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to libs with exec stack
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/Makefile
new file mode 100644
index 0000000..1754891
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libexecstack.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): foo.o get.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/foo.c b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/foo.c
new file mode 100644
index 0000000..7f41799
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/foo.c
@@ -0,0 +1,9 @@
+extern int get(int, int (*)(int));
+
+int foo(int a) {
+ int b = a;
+ int bar(int a) {
+ return a + b;
+ }
+ return get(a, bar);
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/get.c b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/get.c
new file mode 100644
index 0000000..8207637
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/build-spec/orig/get.c
@@ -0,0 +1,6 @@
+int get(int a, int (*f)(int)) {
+ return f(a);
+}
+
+extern int foo(int);
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/desc
new file mode 100644
index 0000000..f2a5f21
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-exec-stack
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/hints
new file mode 100644
index 0000000..57bd1d2
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exec-stack/eval/hints
@@ -0,0 +1 @@
+libexecstack1 (binary): symbols-file-missing-build-depends-package-field libexecstack.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/control.in
new file mode 100644
index 0000000..86a2064
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libexecbit1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/libexecbit1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/libexecbit1.symbols
new file mode 100644
index 0000000..0b26833
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/debian/libexecbit1.symbols
@@ -0,0 +1,2 @@
+libexecbit.so.1 libexecbit1 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/fill-values
new file mode 100644
index 0000000..8c30582
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-exit-fork
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to libs invoking both exit(3) and fork(2)
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/Makefile
new file mode 100644
index 0000000..68d5863
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libexecbit.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/code.c
new file mode 100644
index 0000000..df63394
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/build-spec/orig/code.c
@@ -0,0 +1,12 @@
+#include <stdlib.h>
+#include <unistd.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ if (fork() != 0)
+ exit(1);
+ return x;
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/desc
new file mode 100644
index 0000000..fc71c36
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-exit-fork
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/hints
new file mode 100644
index 0000000..6105735
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit-fork/eval/hints
@@ -0,0 +1 @@
+libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/control.in
new file mode 100644
index 0000000..86a2064
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libexecbit1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/libexecbit1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/libexecbit1.symbols
new file mode 100644
index 0000000..0b26833
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/debian/libexecbit1.symbols
@@ -0,0 +1,2 @@
+libexecbit.so.1 libexecbit1 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/fill-values
new file mode 100644
index 0000000..99c4585
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-exit
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to libs invoking exit(3)
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/Makefile
new file mode 100644
index 0000000..68d5863
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libexecbit.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/code.c
new file mode 100644
index 0000000..297a4e8
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/build-spec/orig/code.c
@@ -0,0 +1,13 @@
+#include <stdlib.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ if (x < 0.0) {
+ exit(1);
+ } else {
+ return x;
+ }
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-exit/eval/desc
new file mode 100644
index 0000000..cc20e73
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-exit
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-exit/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-exit/eval/hints
new file mode 100644
index 0000000..6105735
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-exit/eval/hints
@@ -0,0 +1 @@
+libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..c20a449
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..a1f052b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/fill-values
new file mode 100644
index 0000000..b000a7b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: shared-libs-ldconfig-not-symlink
+Package-Architecture: any
+Skeleton: upload-non-native
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test ldconfig symlink not being a symlink
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/Makefile
new file mode 100644
index 0000000..2e3306e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/Makefile
@@ -0,0 +1,20 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ install -T -m 0644 *.so* $(DESTDIR)/usr/lib/libfoo.so.1
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/desc
new file mode 100644
index 0000000..56356db
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-ldconfig-not-symlink
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints
new file mode 100644
index 0000000..a7f8c30
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-not-symlink/eval/hints
@@ -0,0 +1 @@
+libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.install b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.install
new file mode 100644
index 0000000..fe6951d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.install
@@ -0,0 +1,2 @@
+app usr/lib/app
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst
new file mode 100755
index 0000000..3e67b7e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+ldconfig
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm
new file mode 100755
index 0000000..eaeb28d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.postrm
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = remove ] ; then ldconfig ; fi
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers
new file mode 100644
index 0000000..dd86603
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/app.triggers
@@ -0,0 +1 @@
+activate-noawait ldconfig
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..9960ee9
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/control.in
@@ -0,0 +1,47 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (missing ldc)
+ 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.
+ .
+ Checks for missing ldconfig in scripts.
+
+Package: libfish1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (preinst/rm ldc)
+ 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.
+ .
+ Checks for ldconfig in preinst/prerm scripts.
+
+Package: libuns1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (unsafe ldc)
+ 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.
+ .
+ Checks for unsafe ldconfig usage scripts.
+
+Package: app
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (useless ldc)
+ 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.
+ .
+ Checks for useless ldconfig usage in scripts.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install
new file mode 100644
index 0000000..b1c4ec9
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.install
@@ -0,0 +1 @@
+usr/lib/libfish*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst
new file mode 100755
index 0000000..3e67b7e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.preinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+ldconfig
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm
new file mode 100755
index 0000000..3e67b7e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.prerm
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+ldconfig
+
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols
new file mode 100644
index 0000000..2c5a075
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfish1.symbols
@@ -0,0 +1,3 @@
+libfish.so.1 libfish1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install
new file mode 100644
index 0000000..f3a3a05
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.install
@@ -0,0 +1 @@
+usr/lib/libfoo*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst
new file mode 100755
index 0000000..2615bf9
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+# No ldconfig
+if false ; then true ; fi
+
+# -- we will remove all debhelper stuff later.
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm
new file mode 100755
index 0000000..9b2f636
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.postrm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if false ; then true ; fi
+
+
+# -- we will remove all debhelper stuff later.
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..a1f052b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install
new file mode 100644
index 0000000..b91d5ff
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.install
@@ -0,0 +1 @@
+usr/lib/libuns*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm
new file mode 100755
index 0000000..acc5d15
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.postrm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+ldconfig
+
+
+# -- we will remove all debhelper stuff later.
+#DEBHELPER#
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols
new file mode 100644
index 0000000..d91149f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/libuns1.symbols
@@ -0,0 +1,3 @@
+libuns.so.1 libuns1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..b1c71a9
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ for P in $$(dh_listpackages) ; do \
+ for S in postinst postrm preinst prerm ; do \
+ if [ -f debian/$${P}.$${S} ] ; then \
+ cp -af debian/$${P}.$${S} debian/$${P}/DEBIAN/$${S} ; \
+ chmod 0755 debian/$${P}/DEBIAN/$${S} ; \
+ sed -i '/#DEBHELPER#/ d' debian/$${P}/DEBIAN/$${S} ; \
+ fi ; \
+ done ; \
+ done
+ # Work around debhelper adding triggers instead of explicit
+ # ldconfig calls
+ rm -f debian/libfoo1/DEBIAN/triggers
+ dh_builddeb
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/fill-values
new file mode 100644
index 0000000..2159596
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: shared-libs-ldconfig-scripts
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to ldconfig in scripts
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/Makefile
new file mode 100644
index 0000000..4d3c286
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1 libfish.so.1 libuns.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lm
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/app b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/app
new file mode 100755
index 0000000..04f1961
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/app
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo Hello World
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/desc
new file mode 100644
index 0000000..a05f43e
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-ldconfig-scripts
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints
new file mode 100644
index 0000000..67c138b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-scripts/eval/hints
@@ -0,0 +1,3 @@
+libuns1 (binary): symbols-file-missing-build-depends-package-field libuns.so.1 [symbols]
+libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols]
+libfish1 (binary): symbols-file-missing-build-depends-package-field libfish.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/control.in
new file mode 100644
index 0000000..c20a449
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..a1f052b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/fill-values
new file mode 100644
index 0000000..74b1f2a
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: shared-libs-ldconfig-wrong-file
+Package-Architecture: any
+Skeleton: upload-non-native
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test ldconfig symlink with wrong target
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/Makefile
new file mode 100644
index 0000000..373cbd2
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ echo "Strauss: Also Sprach Zarathustra" > \
+ $(DESTDIR)/usr/lib/some-other-file
+ ln -s some-other-file $(DESTDIR)/usr/lib/libfoo.so.1
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/desc
new file mode 100644
index 0000000..7cba095
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-ldconfig-wrong-file
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints
new file mode 100644
index 0000000..a7f8c30
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-ldconfig-wrong-file/eval/hints
@@ -0,0 +1 @@
+libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..86a2064
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libexecbit1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/libexecbit1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/libexecbit1.symbols
new file mode 100644
index 0000000..0b26833
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/debian/libexecbit1.symbols
@@ -0,0 +1,2 @@
+libexecbit.so.1 libexecbit1 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/fill-values
new file mode 100644
index 0000000..50aa473
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-missing-ldconfig-symlink
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test for missing ldconfig symlink for shared libs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/Makefile
new file mode 100644
index 0000000..6de6868
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/Makefile
@@ -0,0 +1,19 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libexecbit.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/code.c
new file mode 100644
index 0000000..65887f3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/build-spec/orig/code.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/desc
new file mode 100644
index 0000000..04a4305
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/desc
@@ -0,0 +1,3 @@
+Testname: shared-libs-missing-ldconfig-symlink
+Check: debian/shlibs
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints
new file mode 100644
index 0000000..6105735
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-missing-ldconfig-symlink/eval/hints
@@ -0,0 +1 @@
+libexecbit1 (binary): symbols-file-missing-build-depends-package-field libexecbit.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/control.in
new file mode 100644
index 0000000..29d4c58
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libhallo1
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/libhallo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/libhallo1.symbols
new file mode 100644
index 0000000..4c27e3f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/debian/libhallo1.symbols
@@ -0,0 +1,2 @@
+libhallo.so.1 libhallo1 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/fill-values
new file mode 100644
index 0000000..de5d6cc
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-multi-arch-foreign
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test for shared libs in m-a foreign pkgs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/Makefile
new file mode 100644
index 0000000..ac55af7
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libhallo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -fPIC -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/code.c
new file mode 100644
index 0000000..65887f3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/build-spec/orig/code.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/desc
new file mode 100644
index 0000000..6dee0b4
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-multi-arch-foreign
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints
new file mode 100644
index 0000000..8a5512d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-multi-arch-foreign/eval/hints
@@ -0,0 +1 @@
+libhallo1 (binary): symbols-file-missing-build-depends-package-field libhallo.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/control.in
new file mode 100644
index 0000000..c749732
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libhallo1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/libhallo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/libhallo1.symbols
new file mode 100644
index 0000000..4c27e3f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/debian/libhallo1.symbols
@@ -0,0 +1,2 @@
+libhallo.so.1 libhallo1 #MINVER#
+ e@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/fill-values
new file mode 100644
index 0000000..c238ab1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-no-gnu-stack
+Package-Architecture: any
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test for shared libs without PT_GNU_STACK
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/Makefile
new file mode 100644
index 0000000..8d357a8
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/Makefile
@@ -0,0 +1,23 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libhallo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -fPIC -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+ ./erase-pt-gnu-stack $@
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0755 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/code.c
new file mode 100644
index 0000000..65887f3
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/code.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/erase-pt-gnu-stack b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/erase-pt-gnu-stack
new file mode 100755
index 0000000..d3b7e59
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/build-spec/orig/erase-pt-gnu-stack
@@ -0,0 +1,9 @@
+#!/usr/bin/perl -pi
+
+use strict;
+use warnings;
+
+my $PT_GNU_STACK = 0x6474e551;
+my $be = pack('L>', $PT_GNU_STACK);
+my $le = pack('L<', $PT_GNU_STACK);
+s/\Q$be\E|\Q$le\E/\0\0\0\0/g;
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/desc
new file mode 100644
index 0000000..cab1f1c
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-no-gnu-stack
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints
new file mode 100644
index 0000000..8a5512d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-gnu-stack/eval/hints
@@ -0,0 +1 @@
+libhallo1 (binary): symbols-file-missing-build-depends-package-field libhallo.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/control.in
new file mode 100644
index 0000000..c20a449
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.install b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.install
new file mode 100644
index 0000000..1d2eaab
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.install
@@ -0,0 +1 @@
+some-lib usr/lib
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.shlibs b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.shlibs
new file mode 100644
index 0000000..f233a64
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.shlibs
@@ -0,0 +1 @@
+libfoo 1 libfoo1 (>= 1.0)
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..a1f052b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/fill-values
new file mode 100644
index 0000000..730c2cd
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: shared-libs-no-shared-lib
+Package-Architecture: any
+Description: Test checks shlib without SO
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/orig/some-lib b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/orig/some-lib
new file mode 100644
index 0000000..5707e12
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/build-spec/orig/some-lib
@@ -0,0 +1 @@
+Aloah world
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/desc
new file mode 100644
index 0000000..1b13462
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-no-shared-lib
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints
new file mode 100644
index 0000000..38aca0a
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-no-shared-lib/eval/hints
@@ -0,0 +1 @@
+libfoo1 (binary): empty-shlibs [shlibs]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in
new file mode 100644
index 0000000..c20a449
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..a1f052b
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,3 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0
+ energy@Base 0.9
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values
new file mode 100644
index 0000000..cec22d9
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: shared-libs-non-dev-symlink
+Package-Architecture: any
+Skeleton: upload-non-native
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to dev symlink
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile
new file mode 100644
index 0000000..b62fa17
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/Makefile
@@ -0,0 +1,21 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/libfoo.so.1
+ ln -s libfoo.so.1.0.1 $(DESTDIR)/usr/lib/libfoo.so
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/desc
new file mode 100644
index 0000000..905bf7f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-non-dev-symlink
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints
new file mode 100644
index 0000000..a7f8c30
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-dev-symlink/eval/hints
@@ -0,0 +1 @@
+libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/Makefile.in b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/Makefile.in
new file mode 100644
index 0000000..372897d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/Makefile.in
@@ -0,0 +1,110 @@
+# this makefile was adapted from the standard template to do just one thing:
+# to ensure that no building takes place on architectures other than i386.
+#
+# dpkg-buildpackage croaks not only on build errors but also if there simply
+# is nothing to do. source packages are nowadays permitted to create
+# undeclared build artifacts. there is no way to tell when a build should
+# or should not proceed (although the buildds use a heuristic based on the
+# dsc).
+#
+# this makefile also touches the build product to make sure it exists. for
+# historical reasons, the test runner check that (although perhaps it should
+# not).
+#
+# more information may be available at Bug#949066.
+
+ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+
+package = [% $source %]
+upstream_version = [% $upstream_version %]
+type = [% $type %]
+
+packagedir = $(package)-$(upstream_version)
+
+origdata = $(ROOT_DIR)/orig
+origtargz = $(package)_$(upstream_version).orig.tar.gz
+
+debiandata = $(ROOT_DIR)/debian
+formatfile = $(debiandata)/source/format
+
+diffdata = $(ROOT_DIR)/diff
+
+private_key = $(ROOT_DIR)/upstream/private-key.asc
+
+pre_build = $(ROOT_DIR)/pre-build
+post_build = $(ROOT_DIR)/post-build
+pre_upstream = $(ROOT_DIR)/pre-upstream
+
+product = [% $build_product %]
+upload_type = [% $upload_type %]
+
+ifeq ($(upload_type),source)
+extraflags = -S
+else
+extraflags =
+endif
+
+.DEFAULT_GOAL := $(product)
+
+ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),i386)
+$(product): $(origtargz)
+ if [ -r $(origtargz) -a -r $(private_key) ] ; then \
+ tmpdir=$(shell mktemp -d) ; \
+ gpg --homedir "$$tmpdir" --import $(private_key) ; \
+ gpg --homedir "$$tmpdir" --batch --yes --armor --output $(origtargz).asc \
+ --detach-sign $(origtargz) ; \
+ gpg-connect-agent --homedir "$$tmpdir" KILLAGENT /bye ; \
+ rm -rf "$$tmpdir" ; \
+ fi
+ if [ -d $(diffdata)/. ] ; then \
+ cp -rp $(diffdata)/. $(packagedir) ; \
+ fi
+ if [ -d $(debiandata)/. ] ; then \
+ cp -rp $(debiandata)/. $(packagedir)/debian ; \
+ fi
+
+ if [ -x $(pre_build) ] ; then \
+ $(pre_build) $(shell realpath $(packagedir)) ; \
+ fi
+
+ cd $(packagedir) && dpkg-buildpackage -rfakeroot $(extraflags) -us -uc -d \
+ -iNEVER_MATCH_ANYTHING -INEVER_MATCH_ANYTHING --source-option=--auto-commit
+
+ if [ -x $(post_build) ] ; then \
+ $(post_build) $(shell realpath $(packagedir)) ; \
+ fi
+else
+$(product):
+ touch $(product)
+endif
+
+ifeq ($(type),native)
+$(origtargz):
+ -mkdir $(packagedir)
+ if [ -d $(origdata)/. ] ; then \
+ cp -rp $(origdata)/. $(packagedir) ; \
+ fi
+else
+$(origtargz):
+ -mkdir $(packagedir)
+ if [ -d $(origdata)/. ] ; then \
+ cp -rp $(origdata)/. $(packagedir) ; \
+ fi
+
+ if [ -x $(pre_upstream) ] ; then \
+ $(pre_upstream) $(shell realpath $(packagedir)) ; \
+ fi
+
+ tar czf $(origtargz) $(packagedir)
+
+ if [ -f $(formatfile) ] && grep --quiet "^3\.. (quilt)$$" $(formatfile) ; then \
+ rm -rf $(packagedir)/debian ; \
+ fi
+endif
+
+.PHONY: clean
+clean:
+ rm -rf $(packagedir)
+ if [ "$(type)" = "native" ] ; then \
+ rm -f $(origtargz) ; \
+ fi
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/control.in
new file mode 100644
index 0000000..47c51c7
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libbaz3-1
+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.
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/symbols b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/symbols
new file mode 100644
index 0000000..63ba04d
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/debian/symbols
@@ -0,0 +1,3 @@
+libbaz3.so libbaz3-1 #MINVER#
+ pw@Base 1.0
+ stackprotfix@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/fill-values
new file mode 100644
index 0000000..cb0b316
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-native
+Testname: shared-libs-non-pic-i386
+Package-Architecture: i386
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to non-pic code
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/Makefile
new file mode 100644
index 0000000..c5ec48c
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/Makefile
@@ -0,0 +1,26 @@
+CC=gcc
+
+NOPICOBJS=non-pic.o
+SONAME:=libbaz3.so.1
+
+NOPIC_CFLAGS = $(CFLAGS) -fno-PIE
+NOPIC_LDFLAGS = $(LDFLAGS) -fno-PIE -fno-pie
+
+all: libbaz3.so.1.0.3b
+
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(NOPIC_LDFLAGS) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
+
+%.o: %.c
+ $(CC) $(NOPIC_CFLAGS) $(CPPFLAGS) -o $@ -c $<
+
+clean:
+ rm -f *.a *.o *.so* *.sho
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ ln -s libbaz3.so.1.0.3b $(DESTDIR)/usr/lib/$(SONAME)
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/non-pic.c b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/non-pic.c
new file mode 100644
index 0000000..f0fa719
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/build-spec/orig/non-pic.c
@@ -0,0 +1,11 @@
+#include <math.h>
+#include <string.h>
+
+double pw(double p){
+ return exp(p);
+}
+
+void stackprotfix(void (*f)(char *, size_t)) {
+ char buffer[10];
+ f(buffer, sizeof(buffer));
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/desc
new file mode 100644
index 0000000..7d0d190
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/desc
@@ -0,0 +1,3 @@
+Testname: shared-libs-non-pic-i386
+Test-Architectures: i386
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints
new file mode 100644
index 0000000..13e63f6
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/hints
@@ -0,0 +1 @@
+libbaz3-1 (binary): symbols-file-missing-build-depends-package-field libbaz3.so.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/post-test b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/post-test
new file mode 100755
index 0000000..11ad2c8
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-non-pic-i386/eval/post-test
@@ -0,0 +1 @@
+/: hardening-.*/ d
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/compat.in b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/control.in
new file mode 100644
index 0000000..021518f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/control.in
@@ -0,0 +1,48 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (deb revision)
+ 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.
+ .
+ Checks for deb revisions in symbols files and other brokenness.
+
+Package: libsym1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (missing)
+ 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.
+ .
+ Checks for missing symbol file.
+
+
+Package: libesym1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: [% $description %] (empty symbols)
+ 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.
+ .
+ Checks for empty symbol file/missing shlib in symbols file.
+
+Package: nolibrary
+Architecture: all
+Depends: ${misc:Depends}
+Description: [% $description %] (not a library)
+ 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.
+ .
+ Check for shipping a symbols file without a library.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libesym1.install b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libesym1.install
new file mode 100644
index 0000000..750092c
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libesym1.install
@@ -0,0 +1 @@
+usr/lib/libesym*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.install b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.install
new file mode 100644
index 0000000..f3a3a05
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.install
@@ -0,0 +1 @@
+usr/lib/libfoo*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.symbols b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.symbols
new file mode 100644
index 0000000..7b91609
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libfoo1.symbols
@@ -0,0 +1,10 @@
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0-1
+ energy@Base 0.9-1
+
+# duplicate
+# - e@Base has a bad index
+# - energy@Base is a syntax error (missing version)
+libfoo.so.1 libfoo1 #MINVER#
+ e@Base 1.0 1
+ energy@Base
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libsym1.install b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libsym1.install
new file mode 100644
index 0000000..7faef4f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/libsym1.install
@@ -0,0 +1 @@
+usr/lib/libsym*
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/nolibrary.install b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/nolibrary.install
new file mode 100644
index 0000000..241d370
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/nolibrary.install
@@ -0,0 +1 @@
+someconf.conf etc/
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/rules
new file mode 100644
index 0000000..9ef2bb2
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+override_dh_builddeb:
+ # Apparently some of the tools are too smart to install
+ # a redundant/empty symbols file in the package, so here
+ # is a non-empty useless symbols file!
+ echo "# Aloha!" > debian/libesym1/DEBIAN/symbols
+ echo "# Aloha!" > debian/nolibrary/DEBIAN/symbols
+ # ... they are also too smart to install slightly broken
+ # variants of symbols files
+ install -m 0644 debian/libfoo1.symbols debian/libfoo1/DEBIAN/symbols
+ dh_builddeb
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/fill-values
new file mode 100644
index 0000000..63a0f65
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: shared-libs-symbols-file
+Skeleton: upload-non-native
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Dh-Compat-Level: 9
+Description: Test checks related to symbols files
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/Makefile
new file mode 100644
index 0000000..5ab4ec1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/Makefile
@@ -0,0 +1,22 @@
+CC=gcc
+CFLAGS+= -fPIC
+
+SONAMES:= libfoo.so.1 libsym.so.1 libesym.so.1
+LIBFILES:= $(patsubst %,%.0.1, $(SONAMES))
+
+all: $(LIBFILES)
+
+$(LIBFILES): code.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(patsubst %.0.1,%,$@) $^ -lc
+
+clean:
+ rm -f *.a *.o *.so*
+
+install: all
+ install -m 0755 -d $(DESTDIR)/usr/lib
+ install -m 0644 *.so* $(DESTDIR)/usr/lib
+ for FILE in $(SONAMES) ; do \
+ ln -s $${FILE}.0.1 $(DESTDIR)/usr/lib/$$FILE ; \
+ done
+
+.PHONY: install clean
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/code.c b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/code.c
new file mode 100644
index 0000000..0ed08e0
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/code.c
@@ -0,0 +1,15 @@
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+double energy(double mass){
+ return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
+}
+
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/someconf.conf b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/someconf.conf
new file mode 100644
index 0000000..16940ea
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/build-spec/orig/someconf.conf
@@ -0,0 +1,2 @@
+# Yada yada yada
+Var=Val
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/desc
new file mode 100644
index 0000000..a35e821
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: shared-libs-symbols-file
+Check: debian/shlibs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/hints
new file mode 100644
index 0000000..d7b0307
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-symbols-file/eval/hints
@@ -0,0 +1,9 @@
+nolibrary (binary): empty-shared-library-symbols [symbols]
+libsym1 (binary): no-symbols-control-file usr/lib/libsym.so.1.0.1
+libfoo1 (binary): syntax-error-in-symbols-file [symbols:10]
+libfoo1 (binary): symbols-file-missing-build-depends-package-field libfoo.so.1 [symbols]
+libfoo1 (binary): symbols-file-contains-debian-revision on symbol energy@Base (libfoo.so.1) [symbols]
+libfoo1 (binary): symbols-file-contains-current-version-with-debian-revision on symbol e@Base (libfoo.so.1) [symbols]
+libfoo1 (binary): invalid-template-id-in-symbols-file 1 [symbols:9]
+libfoo1 (binary): duplicate-entry-in-symbols-control-file (lines 1 8) libfoo 1 [symbols]
+libesym1 (binary): shared-library-symbols-not-tracked libesym 1 for usr/lib/libesym.so.1.0.1 [symbols]
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/control.in b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/control.in
new file mode 100644
index 0000000..d0e5f60
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: libs
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libfoo
+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.
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/rules b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/rules
new file mode 100755
index 0000000..f60e347
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+# Do this manually so it works with jessie's debhelper without
+# breaking of stretch because we get two triggers.
+# - This rules file can be removed once lintian requires
+# debhelper/9.20160403 or newer.
+override_dh_makeshlibs:
+ dh_makeshlibs -n
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/symbols b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/symbols
new file mode 100644
index 0000000..76a969f
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/symbols
@@ -0,0 +1,2 @@
+libfoo.so libfoo #MINVER#
+ foo@Base 1.0
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/triggers b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/triggers
new file mode 100644
index 0000000..dd86603
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/debian/triggers
@@ -0,0 +1 @@
+activate-noawait ldconfig
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/fill-values b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/fill-values
new file mode 100644
index 0000000..8343487
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: shared-libs-unversioned
+Package-Architecture: any
+Description: Test handling of shared libraries without versioned SONAMEs
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/Makefile b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/Makefile
new file mode 100644
index 0000000..daf74d1
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/Makefile
@@ -0,0 +1,15 @@
+CC = gcc
+
+all: libfoo.so
+
+libfoo.so: foo.o
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libfoo.so $^ -lc
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -o $@ -c $<
+
+install:
+ install -d $(DESTDIR)/usr/lib
+ install -m644 libfoo.so $(DESTDIR)/usr/lib/
+
+.PHONY: distclean realclean clean install test check
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/foo.c b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/foo.c
new file mode 100644
index 0000000..aa323d5
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/build-spec/orig/foo.c
@@ -0,0 +1,24 @@
+/*
+ * Be sure that this library uses a function from libc. Otherwise, gcc is
+ * smart enough not to link it with libc and we get more tags for missing
+ * dependency lines.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+
+double e(void (*f)(char *)){
+ char tmp[10];
+ double x;
+ f(tmp);
+ x = atof(tmp);
+ return exp(x);
+}
+
+int
+foo(int num)
+{
+ printf("%d\n", num);
+ return num * 42;
+}
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/desc b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/desc
new file mode 100644
index 0000000..1937c93
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/desc
@@ -0,0 +1,5 @@
+Testname: shared-libs-unversioned
+Check: debian/shlibs
+Test-Against:
+ ships-undeclared-shared-library
+See-Also: Debian Bug#506673
diff --git a/t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/hints b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/hints
new file mode 100644
index 0000000..eee1d97
--- /dev/null
+++ b/t/recipes/checks/debian/shlibs/shared-libs-unversioned/eval/hints
@@ -0,0 +1,2 @@
+libfoo (binary): symbols-file-missing-build-depends-package-field libfoo.so [symbols]
+libfoo (binary): shared-library-lacks-version usr/lib/libfoo.so libfoo.so
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values
new file mode 100644
index 0000000..0e031d2
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debian-source-dir-classifications
+Description: Test for d-s-d classifications tags
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc
new file mode 100644
index 0000000..1c4797f
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-source-dir-classifications
+Check: debian/source-dir
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints
new file mode 100644
index 0000000..a3bdc6a
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-classifications/eval/hints
@@ -0,0 +1 @@
+debian-source-dir-classifications (source): source-format 3.0 (native)
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values
new file mode 100644
index 0000000..05e98a5
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: debian-source-dir-custom-compression-settings
+Source-Format: 3.0 (native)
+Description: Check for custom compression settings in debian/source/format
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc
new file mode 100644
index 0000000..5d3372f
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-source-dir-custom-compression-settings
+Check: debian/source-dir
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints
new file mode 100644
index 0000000..f03bb46
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-custom-compression-settings/eval/hints
@@ -0,0 +1,3 @@
+debian-source-dir-custom-compression-settings (source): source-format 3.0 (native)
+debian-source-dir-custom-compression-settings (source): custom-compression-in-debian-source-options compression-level = 9 [debian/source/options:2]
+debian-source-dir-custom-compression-settings (source): custom-compression-in-debian-source-options compression = xz [debian/source/options:1]
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/debian/source/formt
@@ -0,0 +1 @@
+1.0
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values
new file mode 100644
index 0000000..8b1c351
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: debian-source-dir-general
+Description: General tests for debian/source/* checks
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build
new file mode 100755
index 0000000..9442d4c
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/build-spec/pre-build
@@ -0,0 +1,2 @@
+#!/bin/sh
+rm "$1"/debian/source/format
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc
new file mode 100644
index 0000000..fedd774
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-source-dir-general
+Check: debian/source-dir
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints
new file mode 100644
index 0000000..c9d8043
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-general/eval/hints
@@ -0,0 +1,4 @@
+debian-source-dir-general (source): unknown-file-in-debian-source [debian/source/formt]
+debian-source-dir-general (source): source-format 1.0 [implicit native]
+debian-source-dir-general (source): older-source-format 1.0
+debian-source-dir-general (source): missing-debian-source-format
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series
new file mode 100644
index 0000000..94cd91e
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/patches/series
@@ -0,0 +1,11 @@
+# some line that ends with quilt-patches-deb-export-hook
+# this looks like series file
+
+ # but really it is just a bunch
+
+# of blank
+
+# lines
+
+# and #
+ # comments
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches
new file mode 100644
index 0000000..359925d
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/debian/source/git-patches
@@ -0,0 +1,11 @@
+upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION
+
+
+ # this is an indented comment
+
+
+
+ # some more blank lines
+
+
+
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values
new file mode 100644
index 0000000..70ac870
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: debian-source-dir-gitpkg-series
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: Test for trivial series file in git-patches-not-exported
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/build-spec/orig/an_empty_file
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc
new file mode 100644
index 0000000..4ede50f
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/desc
@@ -0,0 +1,2 @@
+Testname: debian-source-dir-gitpkg-series
+Check: debian/source-dir
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints
new file mode 100644
index 0000000..8e9437c
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg-series/eval/hints
@@ -0,0 +1,2 @@
+debian-source-dir-gitpkg-series (source): source-format 3.0 (quilt)
+debian-source-dir-gitpkg-series (source): git-patches-not-exported [debian/patches/series]
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches
new file mode 100644
index 0000000..be4c03c
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/debian/source/git-patches
@@ -0,0 +1,11 @@
+# upstream/$UPSTREAM_VERSION..patches/$DEB_VERSION
+
+
+ # this is an indented comment
+
+
+
+ # some more blank lines
+
+
+
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values
new file mode 100644
index 0000000..f8455d2
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: debian-source-dir-gitpkg
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: Test for false positives in git-patches-not-exported
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc
new file mode 100644
index 0000000..8526d22
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/desc
@@ -0,0 +1,4 @@
+Testname: debian-source-dir-gitpkg
+Test-Against:
+ git-patches-not-exported
+Check: debian/source-dir
diff --git a/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints
new file mode 100644
index 0000000..6212855
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/debian-source-dir-gitpkg/eval/hints
@@ -0,0 +1 @@
+debian-source-dir-gitpkg (source): source-format 3.0 (quilt)
diff --git a/t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values b/t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values
new file mode 100644
index 0000000..12123e7
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/source-format-1.0/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: source-format-1.0
+Source-Format: 1.0
+Description: General tests for debian/source/* checks
diff --git a/t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc
new file mode 100644
index 0000000..c7df978
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/desc
@@ -0,0 +1,2 @@
+Testname: source-format-1.0
+Check: debian/source-dir
diff --git a/t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints
new file mode 100644
index 0000000..3fdf38f
--- /dev/null
+++ b/t/recipes/checks/debian/source-dir/source-format-1.0/eval/hints
@@ -0,0 +1,2 @@
+source-format-1.0 (source): source-format 1.0 [native]
+source-format-1.0 (source): older-source-format 1.0
diff --git a/t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/debian/source/include-binaries b/t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/debian/source/include-binaries
new file mode 100644
index 0000000..c14271d
--- /dev/null
+++ b/t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/debian/source/include-binaries
@@ -0,0 +1,3 @@
+# the format should tolerate this comment
+# and whitespace around the filename
+ debian/icon.png
diff --git a/t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/fill-values b/t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/fill-values
new file mode 100644
index 0000000..7e60c72
--- /dev/null
+++ b/t/recipes/checks/debian/source/include-binaries/non-existing-file/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: non-existing-file
+Skeleton: source-native
+Description: An entry in d/source/include-binaries does not exist.
+References: dpkg-source(1), Bug#528001, https://stackoverflow.com/questions/21057015/debian-include-binaries-format
diff --git a/t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/desc b/t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/desc
new file mode 100644
index 0000000..3fc395a
--- /dev/null
+++ b/t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: non-existing-file
+Check: debian/source/include-binaries
diff --git a/t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/hints b/t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/hints
new file mode 100644
index 0000000..78e2e5d
--- /dev/null
+++ b/t/recipes/checks/debian/source/include-binaries/non-existing-file/eval/hints
@@ -0,0 +1 @@
+non-existing-file (source): unused-entry-in-debian-source-include-binaries debian/icon.png [debian/source/include-binaries:3]
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/rules b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/rules
new file mode 100755
index 0000000..413418b
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_prep:
+ dh_prep -X~ -Xrej
+
+clean:
+ @echo 'Do nothing'
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/somepackage.substvars b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/somepackage.substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/somepackage.substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/substvars b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/debian/substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/fill-values b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/fill-values
new file mode 100644
index 0000000..c6798f7
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: cruft-general-diff
+Skeleton: upload-non-native
+Source-Format: 1.0
+Description: Check for cruft added in the diff
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/pre-build b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/pre-build
new file mode 100755
index 0000000..537b323
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/build-spec/pre-build
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Create all the various junk that shouldn't exist in the diff so that we can
+# trigger all the tags.
+
+set -e
+dir="$1"
+
+mkdir "${dir}/CVS"
+echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries"
+mkdir "${dir}/.svn"
+echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format"
+mkdir "${dir}/.bzr"
+echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo"
+mkdir "${dir}/{arch}"
+echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo"
+mkdir "${dir}/.git"
+echo 'diff-contains-git-control-dir' > "${dir}/.git/foo"
+mkdir "${dir}/.hg"
+echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo"
+mkdir "${dir}/.be"
+echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo"
+mkdir "${dir}/.pc"
+echo 'diff-contains-quilt-control-dir' > "${dir}/.pc/foo"
+
+echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt"
+echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp"
+echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp"
+echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory"
+echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags"
+echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1"
+echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352"
+echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej"
+echo 'diff-contains-editor-backup-file' > "${dir}/foo~"
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/eval/desc b/t/recipes/checks/debian/substvars/cruft-general-diff/eval/desc
new file mode 100644
index 0000000..0ce942a
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/eval/desc
@@ -0,0 +1,3 @@
+Testname: cruft-general-diff
+See-Also: Debian Bug#598251
+Check: debian/substvars
diff --git a/t/recipes/checks/debian/substvars/cruft-general-diff/eval/hints b/t/recipes/checks/debian/substvars/cruft-general-diff/eval/hints
new file mode 100644
index 0000000..97f50c5
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-diff/eval/hints
@@ -0,0 +1,2 @@
+cruft-general-diff (source): source-contains-debian-substvars [debian/substvars]
+cruft-general-diff (source): source-contains-debian-substvars [debian/somepackage.substvars]
diff --git a/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/rules b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/rules
new file mode 100755
index 0000000..413418b
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_prep:
+ dh_prep -X~ -Xrej
+
+clean:
+ @echo 'Do nothing'
diff --git a/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/substvars b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/debian/substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/fill-values b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/fill-values
new file mode 100644
index 0000000..8460259
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: cruft-general-native
+Description: Check for cruft in a native package
diff --git a/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/pre-build b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/pre-build
new file mode 100755
index 0000000..c594074
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-native/build-spec/pre-build
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# Create all the various junk that shouldn't exist in the diff so that we can
+# trigger all the tags.
+
+set -e
+dir="$1"
+
+mkdir "${dir}/CVS"
+echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries"
+mkdir "${dir}/.svn"
+echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format"
+mkdir "${dir}/.bzr"
+echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo"
+mkdir "${dir}/{arch}"
+echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo"
+mkdir "${dir}/.git"
+echo 'diff-contains-git-control-dir' > "${dir}/.git/foo"
+mkdir "${dir}/.hg"
+echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo"
+mkdir "${dir}/.be"
+echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo"
+
+echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt"
+echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp"
+echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp"
+echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory"
+echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags"
+echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1"
+echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352"
+echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej"
+echo 'diff-contains-editor-backup-file' > "${dir}/foo~"
diff --git a/t/recipes/checks/debian/substvars/cruft-general-native/eval/desc b/t/recipes/checks/debian/substvars/cruft-general-native/eval/desc
new file mode 100644
index 0000000..2cd8a25
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-native/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-general-native
+Check: debian/substvars
diff --git a/t/recipes/checks/debian/substvars/cruft-general-native/eval/hints b/t/recipes/checks/debian/substvars/cruft-general-native/eval/hints
new file mode 100644
index 0000000..f7b0898
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-native/eval/hints
@@ -0,0 +1 @@
+cruft-general-native (source): source-contains-debian-substvars [debian/substvars]
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/README.source b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/README.source
new file mode 100644
index 0000000..0bbaa60
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/README.source
@@ -0,0 +1 @@
+Some information about the patch system
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/rules b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/rules
new file mode 100755
index 0000000..413418b
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_prep:
+ dh_prep -X~ -Xrej
+
+clean:
+ @echo 'Do nothing'
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/somepackage.substvars b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/somepackage.substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/somepackage.substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/substvars b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/debian/substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/fill-values b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/fill-values
new file mode 100644
index 0000000..01bda9c
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: cruft-general-quilt
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: Check for cruft added in a 3.0 (quilt) package
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/pre-build b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/pre-build
new file mode 100755
index 0000000..53e0ddd
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/build-spec/pre-build
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Create all the various junk that shouldn't exist in the diff so that we can
+# trigger all the tags.
+
+set -e
+dir="$1/debian"
+
+mkdir "${dir}/CVS"
+echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries"
+mkdir "${dir}/.svn"
+echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format"
+mkdir "${dir}/.bzr"
+echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo"
+mkdir "${dir}/{arch}"
+echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo"
+mkdir "${dir}/.git"
+echo 'diff-contains-git-control-dir' > "${dir}/.git/foo"
+mkdir "${dir}/.hg"
+echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo"
+mkdir "${dir}/.be"
+echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo"
+mkdir "${dir}/.pc"
+echo 'diff-contains-quilt-control-dir' > "${dir}/.pc/foo"
+
+echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt"
+echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp"
+echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp"
+echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory"
+echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags"
+echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1"
+echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352"
+echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej"
+echo 'diff-contains-editor-backup-file' > "${dir}/foo~"
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/eval/desc b/t/recipes/checks/debian/substvars/cruft-general-quilt/eval/desc
new file mode 100644
index 0000000..21a04e6
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/eval/desc
@@ -0,0 +1,3 @@
+Testname: cruft-general-quilt
+See-Also: Debian Bug#598251
+Check: debian/substvars
diff --git a/t/recipes/checks/debian/substvars/cruft-general-quilt/eval/hints b/t/recipes/checks/debian/substvars/cruft-general-quilt/eval/hints
new file mode 100644
index 0000000..b005f00
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-quilt/eval/hints
@@ -0,0 +1,2 @@
+cruft-general-quilt (source): source-contains-debian-substvars [debian/substvars]
+cruft-general-quilt (source): source-contains-debian-substvars [debian/somepackage.substvars]
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/patches/wig-pen b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/patches/wig-pen
new file mode 100644
index 0000000..a452b53
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/patches/wig-pen
@@ -0,0 +1,5 @@
+--- upstream/README
++++ debian/README
+@@ -1 +1 @@
+-README
++README for wig&pen
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/rules b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/rules
new file mode 100755
index 0000000..413418b
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+%:
+ dh $@
+
+override_dh_prep:
+ dh_prep -X~ -Xrej
+
+clean:
+ @echo 'Do nothing'
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/substvars b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/substvars
new file mode 100644
index 0000000..abd3ebe
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/debian/substvars
@@ -0,0 +1 @@
+misc:Depends=
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/fill-values b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/fill-values
new file mode 100644
index 0000000..edb39d9
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: cruft-general-wig-pen
+Skeleton: upload-non-native
+Source-Format: 2.0
+Description: Check for cruft added in a 2.0 package
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/orig/README b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/orig/README
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/orig/README
@@ -0,0 +1 @@
+README
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/pre-build b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/pre-build
new file mode 100755
index 0000000..78f359c
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/build-spec/pre-build
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# Create all the various junk that shouldn't exist in the diff so that we can
+# trigger all the tags.
+
+set -e
+dir="$1/debian"
+
+mkdir "${dir}/CVS"
+echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries"
+mkdir "${dir}/.svn"
+echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format"
+mkdir "${dir}/.bzr"
+echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo"
+mkdir "${dir}/{arch}"
+echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo"
+mkdir "${dir}/.git"
+echo 'diff-contains-git-control-dir' > "${dir}/.git/foo"
+mkdir "${dir}/.hg"
+echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo"
+mkdir "${dir}/.be"
+echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo"
+
+echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt"
+echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp"
+echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp"
+echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory"
+echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags"
+echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1"
+echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352"
+echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej"
+echo 'diff-contains-editor-backup-file' > "${dir}/foo~"
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/desc b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/desc
new file mode 100644
index 0000000..72b8327
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-general-wig-pen
+Check: debian/substvars
diff --git a/t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/hints b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/hints
new file mode 100644
index 0000000..e1dd703
--- /dev/null
+++ b/t/recipes/checks/debian/substvars/cruft-general-wig-pen/eval/hints
@@ -0,0 +1 @@
+cruft-general-wig-pen (source): source-contains-debian-substvars [debian/substvars]
diff --git a/t/recipes/checks/debian/symbols/package-placeholder/build-spec/debian/package-placeholder.symbols b/t/recipes/checks/debian/symbols/package-placeholder/build-spec/debian/package-placeholder.symbols
new file mode 100644
index 0000000..c9c913d
--- /dev/null
+++ b/t/recipes/checks/debian/symbols/package-placeholder/build-spec/debian/package-placeholder.symbols
@@ -0,0 +1,66 @@
+# taken from http://deb.debian.org/debian/pool/main/libd/libdvdread/libdvdread_6.0.1-1.dsc
+libdvdread.so.4 libdvdread4 #MINVER#
+* Build-Depends-Package: #PACKAGE#
+ DVDClose@Base 4.1.3
+ DVDCloseFile@Base 4.1.3
+ DVDDiscID@Base 4.1.3
+ DVDFileSeek@Base 4.1.3
+ DVDFileSeekForce@Base 4.1.3
+ DVDFileSize@Base 4.1.3
+ DVDFileStat@Base 4.1.3-4~
+ DVDISOVolumeInfo@Base 4.1.3
+ DVDOpen@Base 4.1.3
+ DVDOpenFile@Base 4.1.3
+ DVDOpenStream@Base 5.0.2
+ DVDReadBlocks@Base 4.1.3
+ DVDReadBytes@Base 4.1.3
+ DVDUDFCacheLevel@Base 4.1.3
+ DVDUDFVolumeInfo@Base 4.1.3
+ UDFFindFile@Base 4.1.3
+ UDFGetVolumeIdentifier@Base 4.1.3
+ UDFGetVolumeSetIdentifier@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_close@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_error@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_open@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_read@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_seek@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_setup@Base 4.1.3
+#MISSING: 6.0.0-1# dvdinput_title@Base 4.1.3
+ dvdread_getbits@Base 4.1.3
+ dvdread_getbits_init@Base 4.1.3
+ dvdread_print_time@Base 4.1.3
+ ifoClose@Base 4.1.3
+ ifoFree_C_ADT@Base 4.1.3
+ ifoFree_FP_PGC@Base 4.1.3
+ ifoFree_PGCIT@Base 4.1.3
+ ifoFree_PGCI_UT@Base 4.1.3
+ ifoFree_PTL_MAIT@Base 4.1.3
+ ifoFree_TITLE_C_ADT@Base 4.1.3
+ ifoFree_TITLE_VOBU_ADMAP@Base 4.1.3
+ ifoFree_TT_SRPT@Base 4.1.3
+ ifoFree_TXTDT_MGI@Base 4.1.3
+ ifoFree_VOBU_ADMAP@Base 4.1.3
+ ifoFree_VTS_ATRT@Base 4.1.3
+ ifoFree_VTS_PTT_SRPT@Base 4.1.3
+ ifoFree_VTS_TMAPT@Base 4.1.3
+ ifoOpen@Base 4.1.3
+ ifoOpenVMGI@Base 4.1.3
+ ifoOpenVTSI@Base 4.1.3
+ ifoRead_C_ADT@Base 4.1.3
+ ifoRead_FP_PGC@Base 4.1.3
+ ifoRead_PGCIT@Base 4.1.3
+ ifoRead_PGCI_UT@Base 4.1.3
+ ifoRead_PTL_MAIT@Base 4.1.3
+ ifoRead_TITLE_C_ADT@Base 4.1.3
+ ifoRead_TITLE_VOBU_ADMAP@Base 4.1.3
+ ifoRead_TT_SRPT@Base 4.1.3
+ ifoRead_TXTDT_MGI@Base 4.1.3
+ ifoRead_VOBU_ADMAP@Base 4.1.3
+ ifoRead_VTS_ATRT@Base 4.1.3
+ ifoRead_VTS_PTT_SRPT@Base 4.1.3
+ ifoRead_VTS_TMAPT@Base 4.1.3
+ ifo_print@Base 4.1.3
+ navPrint_DSI@Base 4.1.3
+ navPrint_PCI@Base 4.1.3
+ navRead_DSI@Base 4.1.3
+ navRead_PCI@Base 4.1.3
diff --git a/t/recipes/checks/debian/symbols/package-placeholder/build-spec/fill-values b/t/recipes/checks/debian/symbols/package-placeholder/build-spec/fill-values
new file mode 100644
index 0000000..8ae39e8
--- /dev/null
+++ b/t/recipes/checks/debian/symbols/package-placeholder/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-native
+Testname: package-placeholder
+Description: Look for PACKAGE placeholder in d/symbols files
diff --git a/t/recipes/checks/debian/symbols/package-placeholder/eval/desc b/t/recipes/checks/debian/symbols/package-placeholder/eval/desc
new file mode 100644
index 0000000..994734b
--- /dev/null
+++ b/t/recipes/checks/debian/symbols/package-placeholder/eval/desc
@@ -0,0 +1,2 @@
+Testname: package-placeholder
+Check: debian/symbols
diff --git a/t/recipes/checks/debian/symbols/package-placeholder/eval/hints b/t/recipes/checks/debian/symbols/package-placeholder/eval/hints
new file mode 100644
index 0000000..1b8a920
--- /dev/null
+++ b/t/recipes/checks/debian/symbols/package-placeholder/eval/hints
@@ -0,0 +1 @@
+package-placeholder (source): package-placeholder-in-symbols-file [debian/package-placeholder.symbols:3]
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in
new file mode 100644
index 0000000..7174e69
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/changelog.in
@@ -0,0 +1,8 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in
new file mode 100644
index 0000000..c4d5304
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+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: ${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.
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install
new file mode 100644
index 0000000..47fc6a3
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/debian/install
@@ -0,0 +1 @@
+dummy usr/share/doc/foo/
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values
new file mode 100644
index 0000000..faa216c
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: cruft-crlf-eols
+Package-Architecture: all
+Description: Check that control files with CRLF EOLs are reported
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy
new file mode 100644
index 0000000..5c3118d
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/build-spec/orig/dummy
@@ -0,0 +1 @@
+dummy file
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc
new file mode 100644
index 0000000..b3c05d7
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-crlf-eols
+Check: debian/trailing-whitespace
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints
new file mode 100644
index 0000000..5e0885f
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-crlf-eols/eval/hints
@@ -0,0 +1,22 @@
+cruft-crlf-eols (source): trailing-whitespace [debian/control:9]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:8]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:7]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:6]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:5]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:4]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:3]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:2]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:1]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:15]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:14]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:13]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:12]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:11]
+cruft-crlf-eols (source): trailing-whitespace [debian/control:10]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:8]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:7]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:6]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:5]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:4]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:3]
+cruft-crlf-eols (source): trailing-whitespace [debian/changelog:2]
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source
new file mode 100644
index 0000000..11f42a1
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/README.source
@@ -0,0 +1,6 @@
+cruft-file-contains-trailing-whitespace for Debian
+--------------------------------------------------
+
+This line does not contain any trailing whitespace.
+This line contains a trailing whitespace character but is still a false-positive as we ignore README.source.
+
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in
new file mode 100644
index 0000000..9c178f1
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/changelog.in
@@ -0,0 +1,9 @@
+[% $source %] ([% $version %]) [% $distribution %]; urgency=low
+
+ * This line contains trailing whitespace.
+ * This line does not contais trailing whitespace.
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
+
+
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules
new file mode 100755
index 0000000..c19a271
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+ # The line contains a trailing tab (false-positive)
+
+
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values
new file mode 100644
index 0000000..7a95b35
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: cruft-file-contains-trailing-whitespace
+Description: Check for files containing trailing whitespace characters
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc
new file mode 100644
index 0000000..1f35e07
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-file-contains-trailing-whitespace
+Check: debian/trailing-whitespace
diff --git a/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints
new file mode 100644
index 0000000..7953403
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/cruft-file-contains-trailing-whitespace/eval/hints
@@ -0,0 +1,4 @@
+cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/rules:7]
+cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:9]
+cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:8]
+cruft-file-contains-trailing-whitespace (source): trailing-whitespace [debian/changelog:3]
diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules
new file mode 100755
index 0000000..9a82cb7
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+# In Ubuntu, dh does not catch this file by default.
+# They have diffed it to reduce the size of packages.
+ifneq (,$(strip $(wildcard Changes)))
+override_dh_installchangelogs:
+ dh_installchangelogs Changes
+endif \ No newline at end of file
diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values
new file mode 100644
index 0000000..90cfaae
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: rules-without-newline-at-end
+Description: d/rules lacking a newline at the end of file.
diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc
new file mode 100644
index 0000000..232e02f
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/desc
@@ -0,0 +1,2 @@
+Testname: rules-without-newline-at-end
+Check: debian/trailing-whitespace
diff --git a/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints
new file mode 100644
index 0000000..d14a8d4
--- /dev/null
+++ b/t/recipes/checks/debian/trailing-whitespace/rules-without-newline-at-end/eval/hints
@@ -0,0 +1 @@
+rules-without-newline-at-end (source): no-newline-at-end [debian/rules]
diff --git a/t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..4ffe477
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/debian/upstream/metadata
@@ -0,0 +1,4 @@
+---
+Bogus: This field name is not known.
+Repository: Some repo.
+Bug-Submit: A bug tracker.
diff --git a/t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/fill-values
new file mode 100644
index 0000000..5be819d
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/bogus-field/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: bogus-field
+Description: Upstream metadata contains a field named 'Bogus'
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/bogus-field/eval/desc b/t/recipes/checks/debian/upstream/metadata/bogus-field/eval/desc
new file mode 100644
index 0000000..2ac293b
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/bogus-field/eval/desc
@@ -0,0 +1,4 @@
+Testname: bogus-field
+Check: debian/upstream/metadata
+See-Also:
+ https://salsa.debian.org/lintian/lintian/-/merge_requests/356
diff --git a/t/recipes/checks/debian/upstream/metadata/bogus-field/eval/hints b/t/recipes/checks/debian/upstream/metadata/bogus-field/eval/hints
new file mode 100644
index 0000000..47a6443
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/bogus-field/eval/hints
@@ -0,0 +1,5 @@
+bogus-field (source): upstream-metadata-field-unknown Bogus [debian/upstream/metadata]
+bogus-field (source): upstream-metadata-exists [debian/upstream/metadata]
+bogus-field (source): upstream-metadata Repository Some repo. [debian/upstream/metadata]
+bogus-field (source): upstream-metadata Bug-Submit A bug tracker. [debian/upstream/metadata]
+bogus-field (source): upstream-metadata Bogus This field name is not known. [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/debian/upstream b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/debian/upstream
new file mode 100644
index 0000000..ab2fc5d
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/debian/upstream
@@ -0,0 +1 @@
+# empty file \ No newline at end of file
diff --git a/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/fill-values
new file mode 100644
index 0000000..de42edd
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: cruft-obsolete-upstream-metadata
+Description: Check for obsolete path for debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/desc b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/desc
new file mode 100644
index 0000000..c0934c3
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-obsolete-upstream-metadata
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints
new file mode 100644
index 0000000..91c125c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/cruft-obsolete-upstream-metadata/eval/hints
@@ -0,0 +1 @@
+cruft-obsolete-upstream-metadata (source): debian-upstream-obsolete-path [debian/upstream]
diff --git a/t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..1182684
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/debian/upstream/metadata
@@ -0,0 +1,7 @@
+---
+Archive: GitHub
+Bug-Database: https://github.com/isaacs/node-glob/issues
+Contact: https://github.com/isaacs/node-glob/issues
+Name: node-glob
+Repository: https://github.com/isaacs/node-glob.git
+Repository-Browse: https://github.com/isaacs/node-glob
diff --git a/t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/fill-values
new file mode 100644
index 0000000..ad6eb57
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/fields-present/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: fields-present
+Description: Tests for classification tags on upstream metadata
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/fields-present/eval/desc b/t/recipes/checks/debian/upstream/metadata/fields-present/eval/desc
new file mode 100644
index 0000000..02d3d28
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/fields-present/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-present
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/fields-present/eval/hints b/t/recipes/checks/debian/upstream/metadata/fields-present/eval/hints
new file mode 100644
index 0000000..769e5ab
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/fields-present/eval/hints
@@ -0,0 +1,7 @@
+fields-present (source): upstream-metadata-exists [debian/upstream/metadata]
+fields-present (source): upstream-metadata Repository-Browse https://github.com/isaacs/node-glob [debian/upstream/metadata]
+fields-present (source): upstream-metadata Repository https://github.com/isaacs/node-glob.git [debian/upstream/metadata]
+fields-present (source): upstream-metadata Name node-glob [debian/upstream/metadata]
+fields-present (source): upstream-metadata Contact https://github.com/isaacs/node-glob/issues [debian/upstream/metadata]
+fields-present (source): upstream-metadata Bug-Database https://github.com/isaacs/node-glob/issues [debian/upstream/metadata]
+fields-present (source): upstream-metadata Archive GitHub [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..d18240a
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/debian/upstream/metadata
@@ -0,0 +1,2 @@
+ - Hi,
+This is a completely invalid YAML file.
diff --git a/t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/fill-values
new file mode 100644
index 0000000..4a524d2
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/in-native-source/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: source-native
+Testname: in-native-source
+Description: Tests for d/upstream/metadata in native sources.
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/in-native-source/eval/desc b/t/recipes/checks/debian/upstream/metadata/in-native-source/eval/desc
new file mode 100644
index 0000000..e639f6e
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/in-native-source/eval/desc
@@ -0,0 +1,2 @@
+Testname: in-native-source
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/in-native-source/eval/hints b/t/recipes/checks/debian/upstream/metadata/in-native-source/eval/hints
new file mode 100644
index 0000000..cabf645
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/in-native-source/eval/hints
@@ -0,0 +1 @@
+in-native-source (source): upstream-metadata-in-native-source [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..d18240a
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/debian/upstream/metadata
@@ -0,0 +1,2 @@
+ - Hi,
+This is a completely invalid YAML file.
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/fill-values
new file mode 100644
index 0000000..4807064
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: upstream-metadata-invalid-yml
+Description: Tests for upstream-metadata being invalid yml
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/desc b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/desc
new file mode 100644
index 0000000..cb6406c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-metadata-invalid-yml
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints
new file mode 100644
index 0000000..6e29652
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-invalid-yml/eval/hints
@@ -0,0 +1,2 @@
+upstream-metadata-invalid-yml (source): upstream-metadata-yaml-invalid did not find expected <document start> (at document 2, line 2, column 1) [debian/upstream/metadata]
+upstream-metadata-invalid-yml (source): upstream-metadata-exists [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/fill-values
new file mode 100644
index 0000000..ffb322d
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: upstream-metadata-is-missing
+Skeleton: upload-non-native
+Description: Tests for missing upstream metadata file
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/pre-build b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/pre-build
new file mode 100755
index 0000000..e4e9373
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/build-spec/pre-build
@@ -0,0 +1,2 @@
+#!/bin/sh
+rm -f "$1/debian/upstream/metadata"
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/desc b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/desc
new file mode 100644
index 0000000..eda1ff9
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-metadata-is-missing
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints
new file mode 100644
index 0000000..b2f602f
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-missing/eval/hints
@@ -0,0 +1 @@
+upstream-metadata-is-missing (source): upstream-metadata-file-is-missing
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/fill-values
new file mode 100644
index 0000000..18a7845
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-non-native
+Testname: upstream-metadata-is-not-a-file
+Description: Tests for d/upstream/metadata being non-file
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/pre-build b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/pre-build
new file mode 100755
index 0000000..f237abf
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/build-spec/pre-build
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+DIR="$1"
+UPSTREAM_DIR="$DIR/debian/upstream"
+METADATA="$UPSTREAM_DIR/metadata"
+
+mkdir -p "$UPSTREAM_DIR"
+rm -f "$METADATA"
+mkfifo "$METADATA"
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/desc b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/desc
new file mode 100644
index 0000000..8bbbeb1
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-metadata-is-not-a-file
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints
new file mode 100644
index 0000000..ba37c59
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-is-not-a-file/eval/hints
@@ -0,0 +1,2 @@
+upstream-metadata-is-not-a-file (source): upstream-metadata-is-not-a-file [debian/upstream/metadata]
+upstream-metadata-is-not-a-file (source): upstream-metadata-exists [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..e740fba
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/debian/upstream/metadata
@@ -0,0 +1,5 @@
+Archive: GitHub
+Contact: https://github.com/isaacs/node-glob/issues
+Name: node-glob
+Repository: https://github.com/isaacs/node-glob.git
+Repository-Browse: https://github.com/isaacs/node-glob
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/fill-values
new file mode 100644
index 0000000..924631c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: upstream-metadata-missing-bug-tracking
+Description: Tests for upstream-metadata missing upstream repo info
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/desc b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/desc
new file mode 100644
index 0000000..60d30b1
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-metadata-missing-bug-tracking
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints
new file mode 100644
index 0000000..221dfb4
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-bug-tracking/eval/hints
@@ -0,0 +1,7 @@
+upstream-metadata-missing-bug-tracking (source): upstream-metadata-missing-bug-tracking [debian/upstream/metadata]
+upstream-metadata-missing-bug-tracking (source): upstream-metadata-exists [debian/upstream/metadata]
+upstream-metadata-missing-bug-tracking (source): upstream-metadata Repository-Browse https://github.com/isaacs/node-glob [debian/upstream/metadata]
+upstream-metadata-missing-bug-tracking (source): upstream-metadata Repository https://github.com/isaacs/node-glob.git [debian/upstream/metadata]
+upstream-metadata-missing-bug-tracking (source): upstream-metadata Name node-glob [debian/upstream/metadata]
+upstream-metadata-missing-bug-tracking (source): upstream-metadata Contact https://github.com/isaacs/node-glob/issues [debian/upstream/metadata]
+upstream-metadata-missing-bug-tracking (source): upstream-metadata Archive GitHub [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..131493d
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Archive: GitHub
+Bug-Database: https://github.com/isaacs/node-glob/issues
+Contact: https://github.com/isaacs/node-glob/issues
+Name: node-glob
+Bug-Database: https://github.com/isaacs/node-glob/issues
+Bug-Submit: https://github.com/isaacs/node-glob/issues/new
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/fill-values
new file mode 100644
index 0000000..65e64c5
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: upstream-metadata-missing-repository
+Description: Tests for upstream-metadata missing upstream repo info
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/desc b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/desc
new file mode 100644
index 0000000..6e6fe31
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-metadata-missing-repository
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints
new file mode 100644
index 0000000..595916c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/upstream-metadata-missing-repository/eval/hints
@@ -0,0 +1,7 @@
+upstream-metadata-missing-repository (source): upstream-metadata-missing-repository [debian/upstream/metadata]
+upstream-metadata-missing-repository (source): upstream-metadata-exists [debian/upstream/metadata]
+upstream-metadata-missing-repository (source): upstream-metadata Name node-glob [debian/upstream/metadata]
+upstream-metadata-missing-repository (source): upstream-metadata Contact https://github.com/isaacs/node-glob/issues [debian/upstream/metadata]
+upstream-metadata-missing-repository (source): upstream-metadata Bug-Submit https://github.com/isaacs/node-glob/issues/new [debian/upstream/metadata]
+upstream-metadata-missing-repository (source): upstream-metadata Bug-Database https://github.com/isaacs/node-glob/issues [debian/upstream/metadata]
+upstream-metadata-missing-repository (source): upstream-metadata Archive GitHub [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/debian/upstream/metadata b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/debian/upstream/metadata
new file mode 100644
index 0000000..6e5ed82
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/debian/upstream/metadata
@@ -0,0 +1,5 @@
+- Name: libpff
+- Bug-Database: https://github.com/libyal/libpff/issues
+- Changelog: https://github.com/libyal/libpff/blob/master/ChangeLog
+- Documentation: https://github.com/libyal/libpff/wiki
+- Repository: https://github.com/libyal/libpff
diff --git a/t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/fill-values b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/fill-values
new file mode 100644
index 0000000..6ec962f
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-non-native
+Testname: yaml-sequence
+Description: File is YAML sequence instead of mapping
+Extra-Build-Depends: libyaml-libyaml-perl (>= 0.69)
diff --git a/t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/desc b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/desc
new file mode 100644
index 0000000..0d43f76
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/desc
@@ -0,0 +1,2 @@
+Testname: yaml-sequence
+Check: debian/upstream/metadata
diff --git a/t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/hints b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/hints
new file mode 100644
index 0000000..03f3384
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/metadata/yaml-sequence/eval/hints
@@ -0,0 +1,2 @@
+yaml-sequence (source): upstream-metadata-not-yaml-mapping [debian/upstream/metadata]
+yaml-sequence (source): upstream-metadata-exists [debian/upstream/metadata]
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..41c2c56
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,160 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFkjME4BEACatcbzE9EaIKMmiS3OmcrooZZUI4pGtJcFqCNBOP3qvxUEq9Tk
+4XPY8EARDGdwy2rMc12ywoc5FMzNwXiC3RpUNHnNhY+zau18q9CQx8UR02NDFWQq
+AwaDSF4WU1GBVBMWgtxfIwAQGl/qOr+aSVtJCnEOTA/YiZPNw/wpA7r2g6EHYcce
+a5srr7F15a6OxzDdPXlfoJuoSXMZUHpJIqG0UOo7NPkxPGRoHO2yGPS1DWKy3egG
+xm718DwaIWee+mfJrcqT0ZFH4n5po1BJVj+8TcqE4YlkN/z4p0zI/XAxNCR2wGV2
+6cCQ8laEgwG33rPp+N3G/FeJchYTFvL7zDtdYKbBPVeaJh2kROnqbVVN5kZBVEXB
+QNbXKuK6/TPiQeI+8anA9WflI19lzkzl29L7hsM9ornk7+wtu9P2hu3eEUgjjBli
+Ujisw8s0aTPB5QsMCjSownwZ0ucqj+07nYVsPU2wK8x6A7p6Cg2SCPnjbX8jUb3Z
+wyn0yi4SWceW9a+LW6wdGarMGbu+Lm6in8pK93u7mE/D4AskUVz1yLyiNO9WBXPq
+GyTocqXKXTutHKhhSwY9CyEw1+SRzXXyHPmRunRULTgZHLOaydK6ekzBOe1Yp9Zk
+hLvon6fgOhJTsokv27QCSw8ILbQPGF9qJWFQfYZhT4QCufmPaFgBpJOdewARAQAB
+iQJOBB8BCgA4FiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjMMkXDIABgOl28UpQ
+ikjpyj/pvDciUsoc+WQCBwAACgkQ4LEYlPZq7JiCcw/+NxzyntWMM/b/eIMedzZK
+Zyq7Mo6vgFxT57wAloMtLu0WS9oETTH/+/9+fHPmkYxCX1HTNKpdY2KbjiZC/gAY
+vJ8iGWredwIls2UyW4fegzRLNvWLZmUBbLg0WaTIQ9JZwa2Rw/q6Z0pe0tfb44oX
+lpps0WA/OZCWXYVO2rhOzoiQulqdmHgwdcLA29BnpqBY1R8/LMDsfPLnJu7AFqgM
+CQpnjIGRH6ZxF2TNUSdljUbIOultEeIvxtxosF1u0r20mg46aaKDpr0ANiR/Ojaj
+YoeHZc39fyubSrhIyQuk4rDisrJod63MJ9x9upAc9H3qz71QjpwpVXPDxereWULO
+17qN3hjjZd23CBdRv8HjRKQoFagUnxlrat1t+/yJCENzX6eX8wBs0vVCSmbtbSp7
+y+0BK4fyjDKCdiyKh1TiAnQ1Po/xICGr4Sa6Wohq2TeWXz4VlRnaQeCIwa4Kk6T/
+3VTQbNxn7Uiy9ec8aR+1YMGUBDG/k3s6K1PWLdJtSVgao8MkQYeKcQk/sgGSFPh8
+SkTy7CnSjK/gQP8NC5fFDWpatGpnDr9qsQwzMnUVYWNZQMQ+LJHPnXRyusr3M+Gh
+4muVW1wmyjNLhtEYjJJnbv9bVVv2HFVXOWGiXY4hnj01xkHf3885Qq5ORWl1FMnU
+lcqUcFsB6a1CCPGxNTJQhgKJAk4EHwEKADgWIQThzyDd/+S4noAmWPHgsRiU9mrs
+mAUCWSMwyRcMgAH7+r21QbXclVvZum7bFs9bsSUlxAIHAAAKCRDgsRiU9mrsmK2H
+D/9frYP6KRecLNMzLJGe6MB/1DbqIud1/kzd/jHRo3e4Dz8cls29N03HskLE4jTf
+BXKAhUmRI52aMCioY/K03rZLaR++/GMIdnF7O4Ks7P203J4/CudmXQvz3Rby22lC
+RCp3Wsx2DqFgpc1V5SjmdDxzEs3fwKJ0B8YOMyibyUaLfwaxRfiTsWmRF192WzCM
+/B1tmJDLIqwq/xxzxmiqzrxBWq3JIxH1PzrGbWvAE0gfBJHgw/2HHO4PAG9Lj+AV
+HHPV/9xhXdbF/KnnKUGtd9lssNleWlc5LeM0ix2pU/QrZx7c+CBW+142jQcZ58X6
+QvHTKBkImI7y3kMCUOs+UbxKnFsRBRduMLvIpXJVXukV3QvRn+9riITPIcviF4ni
+F6V2NQ+ONrvMOK2s6VdfgMS7c4Azuyt4SJSEzBhHu+VTVnMZCBiKvZtRL5XX85ZF
+DDkN62Bwa+F36lTiOBWOecSQykCyOKcnn0jKrSgDOk08qE7Nzl2SPdlpza0/bk2u
+6i8o3mrmdO02OqC9vJum6M4Pn2HHrkPzAtSs11E7ogcZghPxnGCekGQNekHx9DKM
+mv8W+SZf4b1KD1EKECeNLZ0QHQMjU3AYBav+Mq9IXIlwFZL85BYLUAWfrCnqf/gV
+CTiy9yKdQ4WIr9XR+zywDigAZqJ5PxwBh1+phrkoWUfsLokCTgQfAQoAOBYhBOHP
+IN3/5LiegCZY8eCxGJT2auyYBQJZIzDJFwyAATCZEb6pZtBhMFMEVxG05f8VsP2C
+AgcAAAoJEOCxGJT2auyYWHAP/jlmSZQI/dnrYTT0ZtZA0k3sCaaOApWmno4Jm1+p
+QzxBJyVXC/7em3D/Wb3B4XpQKnkWOGz3XtEf4LNPhrW1n6nLFOLctprGwnlZihBp
+tmidEvvFKCa5exv4WOVyat5jLttNJ6o4O0BJHmUJG/wAVSjfWi2KgVXZEnz/wts8
+KFXc06RCgavIATmlC5QqD87U5ezKJdY0HY/A8uT9aBJ3KFdzj5MnZOzr2RJcEtWU
+UE1HHxqJS7POQVMUWK/7nABUKjzpQg8Hn7VNom553Lf8yk+OLl0x7+bS/8tZltZ/
+zkIqzUmpPk1QSf5b4JOryJye0ZV60TtbI7juXi2VV41gcHxd7EMkF4PAMtHF/rNM
+n/sR4LLXPnQk71zqOScYpMBDQ0FikQ7UuUT35iJAX3u7mWYL0P4h3NBlPmRLg9W3
+k/g5KRBLJ2U9Ba+i3UIRva8tUGz/EluzOCUcSbIEMNkaNyt4ktO3PaIzAzdVdxYk
+IWV6NUj92vSBJvXinzIjyXTk9Tjfuf4hLo15C+1c9P0+XkpKzpvW1ycpIUVH9QSZ
+afC1e45EXSkD0AV+y6ihJf4PWddgGb3ZeWarcp2QL/ll3XoBdEGfxOQJ1Py2nfIS
+HxVrl5AxoEJ9q+4YO5xysAV4f+UFKvS4snJtRztOYBKM0/4pup41u4V8oGWLRUOC
+d/GitEdEZWJpYW4gQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKDkvc3Ry
+ZXRjaCkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBOHPIN3/5Lie
+gCZY8eCxGJT2auyYBQJZIzBOAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4B
+AheAAAoJEOCxGJT2auyYKFoP/R5ijjBRlLpClTvhk5p1pE/cJbMAHd1Y7x09iSN3
+nT222tx4Zk3wVnP/1puJNkOxW7btMuUNz6Y4DolLpAa71hq3NOsTGz+5PL8ZFBoi
+lIN2iOpfzqIFLASM0Pz6X+twV3ZyE1PZmfzLAu8OWm4kt1v3qJVtWN/5dHbjTqMt
+vUc28VX1di51zWTs+3b/SDC+KN98i9W64JUiHPcLL6b2Y44fDszDDVVExwtPrPk0
+VU+et4/uWmhcdEIEb91MIEsLAUJIBqcGTZU7Gymxupa3vApT6UUxfNKkVCGDN5dk
+zFKkS6p2NEQjtIPNAheBwUfHqSDeN+EW4IuQxHZ92o+XGFMHqU29Vy81sPkGvKkG
+EIL12iMpW9hDTbjO/+v695o3tVo/h1b0NSZP3Jk4I3iDBpAcUEYarxoOung2K1fC
+QYH7R+7hy3lnRP36s9za6rEbik0c4XRvyYaYq7npGEq4CqhcKgRhZqVcy2Zmymcw
+MqR1wLSxEmbREQZfBCFh5zpVC+kmRHfXCmZyAfDwLgGuMDVL7piCW5DqpC04Ks7M
+Uj/r1O5hyMEjIzcdATVBMNJmdOPw7d0vqgBUizj0Y/e8RhmY8mkmy1zoI1HU7JfF
+eKNnK/I2KYUop0qV0+bEFcu0RiEFVMP5cw4L2QAr1Y39XJNFU3v7IujRZXkxLn+H
+6l4HiQJVBBABCAA/FiEE+/q9tUG13JVb2bpu2xbPW7ElJcQFAlkknnUhGmh0dHA6
+Ly9ncGcuZ2FubmVmZi5kZS9wb2xpY3kudHh0AAoJENsWz1uxJSXE0z8P/3wl5xqi
+wO8sHcMtPXRoOMGRBGlXN/GWbEuqOxaN4lVko+sqGTineW0nk6bx9zhTFDCXjEpK
+da6M8Tc7V/cQoEyrV7btFolrb1KPKl5cVTsxKbLSJO79VgN9CZdrv8xS1VsI6SW/
+7euwZmdjYCnOqs049uAxmeZU3HI/yjaOowhDDHAXRvzzbMTN5Y8aWqE1Sv/ndnb+
+qHDq0Xh6hX0iS+Szx7KIGDLsgPPPjvEfsfmXVhYrWPdB4KXIeOcISehblxxU9FCE
+JmArB0txQtW595m/Gn5ntVbiyHhrhNlGYT+6D1Fsw3q1l9kIzj8ro2/yRcZ/JRot
+w5j5bMbYatQGoxmaBr9AaHCyUmmQEwfQFqBDnOBrV2XwLlurIX3ZvkQQVy5e4ysp
+9K8lAd5X4k3sKOSca9HooIcK8szc48aUijHabzOzU459qrds5iX10q0L5It1FqLp
+obg2l3wLWU7XwAP6K7m6LcvSa+2QqJmh72SBLd6xPCQAdwwUgdfzjovxTpdQu+3u
+5NX+ud4uc+WP8bEG1oT//H9cQ6ocRKXS9iGYby7LF0ykY1MVBI8KfQ7UyLWe/wZ/
+HlPBT2tFQ+8HoB1ZmtzsukaJcTiDtOcQGrIfgEs+bbw7mFKIDjI8OKZpZRlm+UAy
+Vm4jG/OiHoxOcr29mYCUwAzLRpavE+L2/koGiQIzBBABCgAdFiEEgOl28UpQikjp
+yj/pvDciUsoc+WQFAlkkgYkACgkQvDciUsoc+WQChQ/7BgfCpOAN2mmrSToaMY5C
+UVsxw6GVa68gDJA6A1rFXq3cqI5KIj5lNZ+NQi5a9hUu/Ll0m5TN7bZQ8+wxre1U
+GY1EnIUb1MFsL7r43dvYOifwV0jNci7+wfvU7slJWfwRlO+q9pwxseBRnGsxLgnf
+p6ZK/VqzjMUBXzAdMxwqacaJITsgHHGqActsuTGlasOafTxSvWDjIM9O8+maOzAq
+sTa9EXGQhASuzAnDaaW6L7etM6Icm//7cMz8oVnTPKIrqYsHTypIju5XXqHa6Y1D
+jZlFcQe7aFbgyBufe4hNtcUHJxXpJHThmZVjJA0t8ofZ8tPWScRDrphMTPfGzVZS
+TPUKn+WbkD7w9H7fjQcaCH6YKoJx3tIYzLuDStS/+SLqF45eJp5Miws7AYJCZ2u6
+vJ/8kDVByVPW4Xlq+nmi2RPG7Ym6NcmjG6FUFNUs4PPPfVn7cdLLcnNNriV8hyOJ
+T+NnXISSLo20F9buHMl28YqBb7sXmM71lr4kbjNKi0IWUOb+uZcgzMnJPjegR0hT
+GWbN5TmZnQ0lxYU2gr+t9F5DewTfMZMqE70T5eNfSyfr9iCEt8pp6GsjQlFglYZr
+30bcoLI8IYvS5VOvHAtWrOe35UgLXT8iB0pdCDcVbdA4ZaUaSR6hH26RZgPu4dRx
+9flHYtovRX1rDB9Ujc2d3JuJAhwEEAEIAAYFAlkl7L0ACgkQEbTl/xWw/YJo3BAA
+jRFiSZPG8SH2QQ1XWF0RREv/yWO95HkZdTHY/yDNfB94YLVCSqWDfO7QepCE2SUp
+4+eBdKUSUk6sICQL5gQ3D6PpSLMPaiJ9QoUi7JU6pT9xlrdFIfwC/zZypsfDQ8Gb
+L0xZPuXEurcR6YArCFHxtACKSxcUBqvpb2YL9fOEQqVzq90yWxQYsX+xlOpXAXXe
+ITwbjgT0E6izN0ucYthhvBM0nw3Ma+v1C4o590MzAFefKaA8kQ2xrO/NIQVwD4qI
+MQh+Cshq7UZXM8LRa3gxaMvglMKeeyFHXPP1V+AKsQ5KmPlzYKFe+Fam85FZOF8i
+0OrlYcuJ6ZCSXFY9Yfr4GFrkLNsyWfSdv20JVi5U5LWJj4kArw8vc09zVxnpw5IK
+4TNxhg68Pho5/XES4upBQkWAzukwOKUVjzCaZkj9Kbos7MO5D4w9DZjGD5sosob/
+aLPznRqrhGX7KIVeqUDn5gavtIjk6mZBMpdDGi9GQ6ObuHUnDKyf0K4gYQ40NVGD
+e1KidJmRoLgdWph2NNP1tuLQcq6dzCdC5Oryu0yCLFXnxHURkIDTT6mKCtJ6rEsk
+O+s6+3yOB2FXv+oF1L/rUzv+dZsvKQR7T9odOITuQ/LGs9whGTG0sqpbCjyhCwt7
+2xy95fIpPdQ1Uhzcu9N/XZPRYY5IYR0NUDEUen9QAHWJAhwEEwEKAAYFAlkmhFEA
+CgkQdjjQRCuQ0BAjWxAAjIMwo5CFvImdmyiSfDLPezHLFL49FbLGIENr6E0xcAKo
+kPj5s3mCZ0dbCV32yrMBBIllHNrJ1dnv3+VQAwJFQNaTKZbej15zUL5RvBxZlaN5
+RNlf/vYD9Llm0fWiwMXpm0ep2ID2T93i1wGyYt1FnlQ58fO2Qye3h1Kp4qAQjDMR
+k2jjePqwx06QkC9+R21XK78RezgmtVb9BPTVNnUazzREcq1/mVfratAnlR+Arh63
+80E63Glwc9vNqzkuYA1ilTodzPCXk9vEA2gD31L1gCu3YP0kqe5aHB1R6y1cFvQz
+0Il/P4lyMBm3eTWZ09961Eopl0kLMPFFZkGw2ev4OB1wa0IAdugBTpCqc6lx/CY8
+mt/s6mEVxvzI4ljNgKPyyLaBZUOY0gtEgwmpE63njMWmuFxDOls7WuP45WEuRoOB
+OJkwtYNNpaghN2K/qWEgLtU76Nq64DGkjFd8xVdEccgmYxquQtrXEKj+2E5G8NOx
+tZeH0HrVcOfXHTMNx9UoZRP00VSycctkDwt0NBrDqA+o0Djkdql01YLUFOmOYe+U
+Z7vxNZIfQkGr2ynnAiqIchMuoz4/IUBLJ0HKasEf62NYluPrcbh2giTTYKtDkZqA
+eFB6lLxyTiZ3vDTE5a9lPrKt/p1JBhW5/S2BHWJjDMDO9ut4a8MWfw84u2ZwNuOJ
+AhwEEwEKAAYFAlkmhVkACgkQnW2Pa8hXyQagAxAAvhC1r8xGL31TWdusrNWzh7jD
+h1qWOMY/cvWmU5Jj10OG2O9oBa7hhm8g/bj8a3rVPEFPwdzJQNEG1MKinVkRjgTP
+ST9QHNuUP2sPtVsq/Y5HxFV8prCKXZ5hiVBLgORpSLF/kUh54dGhiFjycUoTFn0g
+MkaNArvkAGWpqjFgeQxW+Y15DHj4c1EwcSIKrcpDMyVqlZD96bbkLL7kTQ4zCMlJ
+irezEANgEXUYz0RD4NcWGHaT+GFVJfI+Mq4P17FltpHZyTtWbBmkzvJ4y6tbvxQt
+mKpDR4z88nstjCSXDjU4nOZL7Bifoi8ztV4uLzJ00dC6ivFmTCQyCqXCHPMvT3dj
+9Byr+cMWBGSfM198/oUh++eYW8dp0wjNtIrnJaqnLICzvBg5OucxzRVa4ZMPPx9+
+4jYjdsNsYg+oiZE5ljW1Ig8CBcCyVjNSUBDrRbb9vp1up/ByC3oxD8Uy3wETc7C7
+AMJ8H+RH/6J+HrE3im0HB22XiR4TtKgOuLQxGVO+aXEhdGdxFdWZUDdulC+feWc8
+acVkRvlIYF2Bfxs1Ecee/BkP7++kWZJ9o9Nl1HEpv+spDoxpzL4VRNF3U84InaCb
+wX17GLuVj07bk06ag44ZHmXwM/GSRn4ITwEVSKKoBCcvJGnRROA0n1a5+v7XSMvT
+9Q0gJj1rzlA9VNgS7Pi5Ag0EWSMwTgEQAMkD4hfHi8rZYM4I8V+vJp8feW93+Oiq
+caVzQygYKs+/dbr9favoHttNxOF8eBMIwkQgQlBIYehcHAnhnhuCP6s16tnM2lF6
+52s4c7DV4Fodo53Q+sqzPth/dH76NOeUAzSj3KPfD9YblrB+J2Z14PP2ObfvO8k/
+SghaCEPZ8geq5DZjTAs1YU5xYlawVJCvoQnb2TKEXbUrMOqAX/ysOwk3DrIo78h1
+HvGShBuHf08gOtv8Fm2pKdkPHzr/QI0/atFoRn793W74n4Qc2mwrDUUQds7oZ1IX
+tXeIHlVV8Z13no4qA7FRNL40/vBfKuPFAPZGt17k946L2LL5Lxu43eVFIbW2jAod
+tV3NxAYu5JAYIYOawZO0p9OZJdZ8sTg5KOhBfyfO4pFyc/FaOhxv3SVqhRZAuHTe
+6OSKLUMcV/7Yrb1hClSXtZcuTEZfaqDksoGg/QDHuYcnAtD7NWEEgEfuL2KYXudw
+GIjRQSUUMWv4Fw+BT50f3PHSH+lns/vQXxEaKDiGacKOC+FEHs9jTvWl9+phyzCK
+4CfTgZagW6gsvfPc/0fg2a/TaTzj4Y48KbENcBc+x2IwowRZAtSI+LsgH8puKMbQ
+7oRRnVdt2LqkWtzBoTcc4r5r4m+eGZ8/qsB1n69bS+MNWZtusaBeaQHGFv4d9rIC
+0QOzwZLX5EE1ABEBAAGJBHIEGAEKACYWIQThzyDd/+S4noAmWPHgsRiU9mrsmAUC
+WSMwTgIbAgUJDwmcAAJACRDgsRiU9mrsmMF0IAQZAQoAHRYhBBbpCz/fZe3jqn8y
+PATucje31FPsBQJZIzBOAAoJEATucje31FPscu8P/0yRsvlQjY0q600VkxD8KciV
+lvC7+xyrMBIal1ILjIpPlMeuWWpPE+Ffnry91m1GcAlXTfUf7NhZkqWfsyygqUGy
+BJ7ydPox8rA4UXW3J31Em4Lgc0JwUFD/bFqz/iVVYCnaWYcoX/68CwaWRCjt67v3
+3vNCw97t/W40430HsmK+AC6HS6vV09KeYk5fhrORFBNGrZT7Bm7lsWGgaz+7pNGk
+GE6k+K3sS6boGga1EGLA6YbaOEaIS6QJtpm4VEleFksj3JHK1TMN/QCnSGdy0/0b
+qkF/TDcfqG9c1vCp9knWkCKQmi/nv2ay2v6ZAcICAY7sjibicmBd06uvfU1bhKB7
+nYC/i77l+IGKX5R/WvTrdb+J5qQhODF70Nr6HO6EsI4E4X541GRLgGMZYKbiu0Tb
+uo1B7PSOrkddGUwxXjDBXM2ClcgPi8nL1irpleSAu89/B+Y+pr5IshaVmIP4+jCl
+GDG18/kPryOFk0ACszjlX7eFMTFPUX0gl7qDRfVE1jKzPxf75gLoeIylYChMd17b
+uQo8RsknkcvNgifdL4sRcbxOvhpERONK1MwR88K8C0GqJ61cIRMv8odMMpescww0
+5ECOpE+kl9PJcREnm8SVkclraWcQVEwGOkHtx5BsPqZplUEAIcJNXuvXm9kFkaVS
+2SRvQyklI6/NQQZzK8SRwacQAIGFHV3eOtC0rdrnmnh2XCDeEN5iPCvVG723jIc2
+6aDR4a47zr9507TBLUxMPJQ6mB7imsEcWHfR48zARq8jMSj7ahfhIa1ixEksc943
+CxLrjPAWfAnog/2MYJdUw/nBjU4dqb53ssxD/F/c3LB+z/nCEaO2UgH2Kekh0KyV
+KgwV0N8XcTB0UmGcH9J2DZ5/ZXRc2XiYWIDoJHs8thGxwsIYXEhYsgBwGu9Kil4t
+LzFt4sluY0kvfrDHu+oYfcYBh5V7q6AQYBh8ujjAhKZUmlKtgay6IHkR65m8QI49
+ITdTQW+Y+orphcsdbvCm4IhXPgykLySouskwr7RuhPka0hKwDUt+0MHbBmAhfYnF
+JC5o23tmgAq8l2WZbp6/uFZ+4E9UmvAI0RvQM/B3AxQBOCBOryGeaBwkJcsACm8V
+ADWm+/OWK78kuval45wGQl9+TqqjRuwA9ESEUMgZnc33rVPM3h6gR8Rv/M77AjyM
+88rGBLCWr7wNY4e3U34tH8jMFOMy9vN6l3kOR5/EFoXJJGehzE+xCyyeicY2HsJ5
+t5R/R6w23vgNqf6eBRQuDtym2rSuuiaCnvKEF3S9ng+phmm/eZadG7xOjERRPqqt
+TP+zge55Q1B+P1HmllKlR6YLFyRuKOO1ZOVh4Ae2MS4oZybMQsTifjjiQ/8W8KJq
+k5Bh
+=3qWJ
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/fill-values
new file mode 100644
index 0000000..9983ac1
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: upstream-key-bloated
+Skeleton: upload-non-native
+Description: Check if public upstream signing key contains extra signatures
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/desc
new file mode 100644
index 0000000..9c407e3
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/desc
@@ -0,0 +1,5 @@
+Testname: upstream-key-bloated
+Test-Against:
+ public-upstream-key-unusable
+ public-upstream-keys-in-multiple-locations
+Check: debian/upstream/signing-key
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints
new file mode 100644
index 0000000..9c5238e
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-bloated/eval/hints
@@ -0,0 +1 @@
+upstream-key-bloated (source): public-upstream-key-not-minimal has 5 extra signature(s) for keyid E0B11894F66AEC98 [debian/upstream/signing-key.asc]
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/debian/upstream/signing-key.asc
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/fill-values
new file mode 100644
index 0000000..0d90cd0
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: upstream-key-empty
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: Test with an empty public upstream signing key (requires source format 3.0)
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/desc
new file mode 100644
index 0000000..4e58f08
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-key-empty
+Check: debian/upstream/signing-key
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints
new file mode 100644
index 0000000..b39ccf7
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-empty/eval/hints
@@ -0,0 +1 @@
+upstream-key-empty (source): public-upstream-key-unusable cannot be processed [debian/upstream/signing-key.asc]
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..25cdc6a
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,101 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFkjME4BEACatcbzE9EaIKMmiS3OmcrooZZUI4pGtJcFqCNBOP3qvxUEq9Tk
+4XPY8EARDGdwy2rMc12ywoc5FMzNwXiC3RpUNHnNhY+zau18q9CQx8UR02NDFWQq
+AwaDSF4WU1GBVBMWgtxfIwAQGl/qOr+aSVtJCnEOTA/YiZPNw/wpA7r2g6EHYcce
+a5srr7F15a6OxzDdPXlfoJuoSXMZUHpJIqG0UOo7NPkxPGRoHO2yGPS1DWKy3egG
+xm718DwaIWee+mfJrcqT0ZFH4n5po1BJVj+8TcqE4YlkN/z4p0zI/XAxNCR2wGV2
+6cCQ8laEgwG33rPp+N3G/FeJchYTFvL7zDtdYKbBPVeaJh2kROnqbVVN5kZBVEXB
+QNbXKuK6/TPiQeI+8anA9WflI19lzkzl29L7hsM9ornk7+wtu9P2hu3eEUgjjBli
+Ujisw8s0aTPB5QsMCjSownwZ0ucqj+07nYVsPU2wK8x6A7p6Cg2SCPnjbX8jUb3Z
+wyn0yi4SWceW9a+LW6wdGarMGbu+Lm6in8pK93u7mE/D4AskUVz1yLyiNO9WBXPq
+GyTocqXKXTutHKhhSwY9CyEw1+SRzXXyHPmRunRULTgZHLOaydK6ekzBOe1Yp9Zk
+hLvon6fgOhJTsokv27QCSw8ILbQPGF9qJWFQfYZhT4QCufmPaFgBpJOdewARAQAB
+iQJOBB8BCgA4FiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjMMkXDIABgOl28UpQ
+ikjpyj/pvDciUsoc+WQCBwAACgkQ4LEYlPZq7JiCcw/+NxzyntWMM/b/eIMedzZK
+Zyq7Mo6vgFxT57wAloMtLu0WS9oETTH/+/9+fHPmkYxCX1HTNKpdY2KbjiZC/gAY
+vJ8iGWredwIls2UyW4fegzRLNvWLZmUBbLg0WaTIQ9JZwa2Rw/q6Z0pe0tfb44oX
+lpps0WA/OZCWXYVO2rhOzoiQulqdmHgwdcLA29BnpqBY1R8/LMDsfPLnJu7AFqgM
+CQpnjIGRH6ZxF2TNUSdljUbIOultEeIvxtxosF1u0r20mg46aaKDpr0ANiR/Ojaj
+YoeHZc39fyubSrhIyQuk4rDisrJod63MJ9x9upAc9H3qz71QjpwpVXPDxereWULO
+17qN3hjjZd23CBdRv8HjRKQoFagUnxlrat1t+/yJCENzX6eX8wBs0vVCSmbtbSp7
+y+0BK4fyjDKCdiyKh1TiAnQ1Po/xICGr4Sa6Wohq2TeWXz4VlRnaQeCIwa4Kk6T/
+3VTQbNxn7Uiy9ec8aR+1YMGUBDG/k3s6K1PWLdJtSVgao8MkQYeKcQk/sgGSFPh8
+SkTy7CnSjK/gQP8NC5fFDWpatGpnDr9qsQwzMnUVYWNZQMQ+LJHPnXRyusr3M+Gh
+4muVW1wmyjNLhtEYjJJnbv9bVVv2HFVXOWGiXY4hnj01xkHf3885Qq5ORWl1FMnU
+lcqUcFsB6a1CCPGxNTJQhgKJAk4EHwEKADgWIQThzyDd/+S4noAmWPHgsRiU9mrs
+mAUCWSMwyRcMgAH7+r21QbXclVvZum7bFs9bsSUlxAIHAAAKCRDgsRiU9mrsmK2H
+D/9frYP6KRecLNMzLJGe6MB/1DbqIud1/kzd/jHRo3e4Dz8cls29N03HskLE4jTf
+BXKAhUmRI52aMCioY/K03rZLaR++/GMIdnF7O4Ks7P203J4/CudmXQvz3Rby22lC
+RCp3Wsx2DqFgpc1V5SjmdDxzEs3fwKJ0B8YOMyibyUaLfwaxRfiTsWmRF192WzCM
+/B1tmJDLIqwq/xxzxmiqzrxBWq3JIxH1PzrGbWvAE0gfBJHgw/2HHO4PAG9Lj+AV
+HHPV/9xhXdbF/KnnKUGtd9lssNleWlc5LeM0ix2pU/QrZx7c+CBW+142jQcZ58X6
+QvHTKBkImI7y3kMCUOs+UbxKnFsRBRduMLvIpXJVXukV3QvRn+9riITPIcviF4ni
+F6V2NQ+ONrvMOK2s6VdfgMS7c4Azuyt4SJSEzBhHu+VTVnMZCBiKvZtRL5XX85ZF
+DDkN62Bwa+F36lTiOBWOecSQykCyOKcnn0jKrSgDOk08qE7Nzl2SPdlpza0/bk2u
+6i8o3mrmdO02OqC9vJum6M4Pn2HHrkPzAtSs11E7ogcZghPxnGCekGQNekHx9DKM
+mv8W+SZf4b1KD1EKECeNLZ0QHQMjU3AYBav+Mq9IXIlwFZL85BYLUAWfrCnqf/gV
+CTiy9yKdQ4WIr9XR+zywDigAZqJ5PxwBh1+phrkoWUfsLokCTgQfAQoAOBYhBOHP
+IN3/5LiegCZY8eCxGJT2auyYBQJZIzDJFwyAATCZEb6pZtBhMFMEVxG05f8VsP2C
+AgcAAAoJEOCxGJT2auyYWHAP/jlmSZQI/dnrYTT0ZtZA0k3sCaaOApWmno4Jm1+p
+QzxBJyVXC/7em3D/Wb3B4XpQKnkWOGz3XtEf4LNPhrW1n6nLFOLctprGwnlZihBp
+tmidEvvFKCa5exv4WOVyat5jLttNJ6o4O0BJHmUJG/wAVSjfWi2KgVXZEnz/wts8
+KFXc06RCgavIATmlC5QqD87U5ezKJdY0HY/A8uT9aBJ3KFdzj5MnZOzr2RJcEtWU
+UE1HHxqJS7POQVMUWK/7nABUKjzpQg8Hn7VNom553Lf8yk+OLl0x7+bS/8tZltZ/
+zkIqzUmpPk1QSf5b4JOryJye0ZV60TtbI7juXi2VV41gcHxd7EMkF4PAMtHF/rNM
+n/sR4LLXPnQk71zqOScYpMBDQ0FikQ7UuUT35iJAX3u7mWYL0P4h3NBlPmRLg9W3
+k/g5KRBLJ2U9Ba+i3UIRva8tUGz/EluzOCUcSbIEMNkaNyt4ktO3PaIzAzdVdxYk
+IWV6NUj92vSBJvXinzIjyXTk9Tjfuf4hLo15C+1c9P0+XkpKzpvW1ycpIUVH9QSZ
+afC1e45EXSkD0AV+y6ihJf4PWddgGb3ZeWarcp2QL/ll3XoBdEGfxOQJ1Py2nfIS
+HxVrl5AxoEJ9q+4YO5xysAV4f+UFKvS4snJtRztOYBKM0/4pup41u4V8oGWLRUOC
+d/GitEdEZWJpYW4gQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKDkvc3Ry
+ZXRjaCkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBOHPIN3/5Lie
+gCZY8eCxGJT2auyYBQJZIzBOAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4B
+AheAAAoJEOCxGJT2auyYKFoP/R5ijjBRlLpClTvhk5p1pE/cJbMAHd1Y7x09iSN3
+nT222tx4Zk3wVnP/1puJNkOxW7btMuUNz6Y4DolLpAa71hq3NOsTGz+5PL8ZFBoi
+lIN2iOpfzqIFLASM0Pz6X+twV3ZyE1PZmfzLAu8OWm4kt1v3qJVtWN/5dHbjTqMt
+vUc28VX1di51zWTs+3b/SDC+KN98i9W64JUiHPcLL6b2Y44fDszDDVVExwtPrPk0
+VU+et4/uWmhcdEIEb91MIEsLAUJIBqcGTZU7Gymxupa3vApT6UUxfNKkVCGDN5dk
+zFKkS6p2NEQjtIPNAheBwUfHqSDeN+EW4IuQxHZ92o+XGFMHqU29Vy81sPkGvKkG
+EIL12iMpW9hDTbjO/+v695o3tVo/h1b0NSZP3Jk4I3iDBpAcUEYarxoOung2K1fC
+QYH7R+7hy3lnRP36s9za6rEbik0c4XRvyYaYq7npGEq4CqhcKgRhZqVcy2Zmymcw
+MqR1wLSxEmbREQZfBCFh5zpVC+kmRHfXCmZyAfDwLgGuMDVL7piCW5DqpC04Ks7M
+Uj/r1O5hyMEjIzcdATVBMNJmdOPw7d0vqgBUizj0Y/e8RhmY8mkmy1zoI1HU7JfF
+eKNnK/I2KYUop0qV0+bEFcu0RiEFVMP5cw4L2QAr1Y39XJNFU3v7IujRZXkxLn+H
+6l4HuQINBFkjME4BEADJA+IXx4vK2WDOCPFfryafH3lvd/joqnGlc0MoGCrPv3W6
+/X2r6B7bTcThfHgTCMJEIEJQSGHoXBwJ4Z4bgj+rNerZzNpReudrOHOw1eBaHaOd
+0PrKsz7Yf3R++jTnlAM0o9yj3w/WG5awfidmdeDz9jm37zvJP0oIWghD2fIHquQ2
+Y0wLNWFOcWJWsFSQr6EJ29kyhF21KzDqgF/8rDsJNw6yKO/IdR7xkoQbh39PIDrb
+/BZtqSnZDx86/0CNP2rRaEZ+/d1u+J+EHNpsKw1FEHbO6GdSF7V3iB5VVfGdd56O
+KgOxUTS+NP7wXyrjxQD2Rrde5PeOi9iy+S8buN3lRSG1towKHbVdzcQGLuSQGCGD
+msGTtKfTmSXWfLE4OSjoQX8nzuKRcnPxWjocb90laoUWQLh03ujkii1DHFf+2K29
+YQpUl7WXLkxGX2qg5LKBoP0Ax7mHJwLQ+zVhBIBH7i9imF7ncBiI0UElFDFr+BcP
+gU+dH9zx0h/pZ7P70F8RGig4hmnCjgvhRB7PY071pffqYcswiuAn04GWoFuoLL3z
+3P9H4Nmv02k84+GOPCmxDXAXPsdiMKMEWQLUiPi7IB/KbijG0O6EUZ1Xbdi6pFrc
+waE3HOK+a+JvnhmfP6rAdZ+vW0vjDVmbbrGgXmkBxhb+HfayAtEDs8GS1+RBNQAR
+AQABiQRyBBgBCgAmFiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjME4CGwIFCQ8J
+nAACQAkQ4LEYlPZq7JjBdCAEGQEKAB0WIQQW6Qs/32Xt46p/MjwE7nI3t9RT7AUC
+WSMwTgAKCRAE7nI3t9RT7HLvD/9MkbL5UI2NKutNFZMQ/CnIlZbwu/scqzASGpdS
+C4yKT5THrllqTxPhX568vdZtRnAJV031H+zYWZKln7MsoKlBsgSe8nT6MfKwOFF1
+tyd9RJuC4HNCcFBQ/2xas/4lVWAp2lmHKF/+vAsGlkQo7eu7997zQsPe7f1uNON9
+B7JivgAuh0ur1dPSnmJOX4azkRQTRq2U+wZu5bFhoGs/u6TRpBhOpPit7Eum6BoG
+tRBiwOmG2jhGiEukCbaZuFRJXhZLI9yRytUzDf0Ap0hnctP9G6pBf0w3H6hvXNbw
+qfZJ1pAikJov579mstr+mQHCAgGO7I4m4nJgXdOrr31NW4Sge52Av4u+5fiBil+U
+f1r063W/ieakITgxe9Da+hzuhLCOBOF+eNRkS4BjGWCm4rtE27qNQez0jq5HXRlM
+MV4wwVzNgpXID4vJy9Yq6ZXkgLvPfwfmPqa+SLIWlZiD+PowpRgxtfP5D68jhZNA
+ArM45V+3hTExT1F9IJe6g0X1RNYysz8X++YC6HiMpWAoTHde27kKPEbJJ5HLzYIn
+3S+LEXG8Tr4aRETjStTMEfPCvAtBqietXCETL/KHTDKXrHMMNORAjqRPpJfTyXER
+J5vElZHJa2lnEFRMBjpB7ceQbD6maZVBACHCTV7r15vZBZGlUtkkb0MpJSOvzUEG
+cyvEkcGnEACBhR1d3jrQtK3a55p4dlwg3hDeYjwr1Ru9t4yHNumg0eGuO86/edO0
+wS1MTDyUOpge4prBHFh30ePMwEavIzEo+2oX4SGtYsRJLHPeNwsS64zwFnwJ6IP9
+jGCXVMP5wY1OHam+d7LMQ/xf3Nywfs/5whGjtlIB9inpIdCslSoMFdDfF3EwdFJh
+nB/Sdg2ef2V0XNl4mFiA6CR7PLYRscLCGFxIWLIAcBrvSopeLS8xbeLJbmNJL36w
+x7vqGH3GAYeVe6ugEGAYfLo4wISmVJpSrYGsuiB5EeuZvECOPSE3U0FvmPqK6YXL
+HW7wpuCIVz4MpC8kqLrJMK+0boT5GtISsA1LftDB2wZgIX2JxSQuaNt7ZoAKvJdl
+mW6ev7hWfuBPVJrwCNEb0DPwdwMUATggTq8hnmgcJCXLAApvFQA1pvvzliu/JLr2
+peOcBkJffk6qo0bsAPREhFDIGZ3N961TzN4eoEfEb/zO+wI8jPPKxgSwlq+8DWOH
+t1N+LR/IzBTjMvbzepd5DkefxBaFySRnocxPsQssnonGNh7CebeUf0esNt74Dan+
+ngUULg7cptq0rromgp7yhBd0vZ4PqYZpv3mWnRu8ToxEUT6qrUz/s4HueUNQfj9R
+5pZSpUemCxckbijjtWTlYeAHtjEuKGcmzELE4n444kP/FvCiapOQYQ==
+=Gbbb
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/fill-values
new file mode 100644
index 0000000..cd99595
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: upstream-key-minimal
+Skeleton: upload-non-native
+Description: Test with a minimal public upstream signing key (false positive)
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/desc
new file mode 100644
index 0000000..87e5144
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/desc
@@ -0,0 +1,4 @@
+Testname: upstream-key-minimal
+Check: debian/upstream/signing-key
+Test-Against:
+ public-upstream-key-not-minimal
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-minimal/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream-signing-key.pgp b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream-signing-key.pgp
new file mode 100644
index 0000000..d83f52c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream-signing-key.pgp
@@ -0,0 +1,52 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD
+P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO
+SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b
+bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB
+9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY
+9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg
+h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq
+Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C
+eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1
+n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d
+QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB
+tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0
+aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa
+RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm
+umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p
+PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF
+AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs
+MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5
+gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf
+198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes
+tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre
+nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI
+WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah
+mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X
+jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1
+HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp
+miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU
+VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX
+X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep
+a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw
+ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x
+WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz
+OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun
+mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy
+40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ
+4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1
+pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl
+CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+
+RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v
+Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY
+vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw
+2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl
+hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy
+kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz
+sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh
+PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5
+EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y
+jr6SfdNikIDjGYa+yuN6KGQsriza1aA=
+=CYsi
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..d83f52c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,52 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD
+P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO
+SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b
+bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB
+9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY
+9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg
+h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq
+Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C
+eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1
+n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d
+QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB
+tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0
+aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa
+RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm
+umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p
+PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF
+AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs
+MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5
+gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf
+198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes
+tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre
+nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI
+WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah
+mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X
+jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1
+HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp
+miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU
+VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX
+X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep
+a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw
+ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x
+WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz
+OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun
+mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy
+40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ
+4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1
+pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl
+CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+
+RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v
+Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY
+vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw
+2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl
+hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy
+kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz
+sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh
+PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5
+EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y
+jr6SfdNikIDjGYa+yuN6KGQsriza1aA=
+=CYsi
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/watch b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/watch
new file mode 100644
index 0000000..8194d1c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/debian/watch
@@ -0,0 +1,5 @@
+version=4 \
+
+opts=\
+pgpsigurlmangle=s/project-$1\.tar\.gz/project-$1\.tar\.gz\.asc/,\
+ https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/fill-values
new file mode 100644
index 0000000..fd2f6c4
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: upstream-key-multiple-locations
+Skeleton: upload-non-native
+Description: Check if upstream signing keys are present in multiple locations
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/desc
new file mode 100644
index 0000000..71c877f
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-key-multiple-locations
+Check: debian/upstream/signing-key
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints
new file mode 100644
index 0000000..f6e6e54
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-multiple-locations/eval/hints
@@ -0,0 +1 @@
+upstream-key-multiple-locations (source): public-upstream-keys-in-multiple-locations upstream-signing-key.pgp upstream/signing-key.asc
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..41c2c56
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,160 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFkjME4BEACatcbzE9EaIKMmiS3OmcrooZZUI4pGtJcFqCNBOP3qvxUEq9Tk
+4XPY8EARDGdwy2rMc12ywoc5FMzNwXiC3RpUNHnNhY+zau18q9CQx8UR02NDFWQq
+AwaDSF4WU1GBVBMWgtxfIwAQGl/qOr+aSVtJCnEOTA/YiZPNw/wpA7r2g6EHYcce
+a5srr7F15a6OxzDdPXlfoJuoSXMZUHpJIqG0UOo7NPkxPGRoHO2yGPS1DWKy3egG
+xm718DwaIWee+mfJrcqT0ZFH4n5po1BJVj+8TcqE4YlkN/z4p0zI/XAxNCR2wGV2
+6cCQ8laEgwG33rPp+N3G/FeJchYTFvL7zDtdYKbBPVeaJh2kROnqbVVN5kZBVEXB
+QNbXKuK6/TPiQeI+8anA9WflI19lzkzl29L7hsM9ornk7+wtu9P2hu3eEUgjjBli
+Ujisw8s0aTPB5QsMCjSownwZ0ucqj+07nYVsPU2wK8x6A7p6Cg2SCPnjbX8jUb3Z
+wyn0yi4SWceW9a+LW6wdGarMGbu+Lm6in8pK93u7mE/D4AskUVz1yLyiNO9WBXPq
+GyTocqXKXTutHKhhSwY9CyEw1+SRzXXyHPmRunRULTgZHLOaydK6ekzBOe1Yp9Zk
+hLvon6fgOhJTsokv27QCSw8ILbQPGF9qJWFQfYZhT4QCufmPaFgBpJOdewARAQAB
+iQJOBB8BCgA4FiEE4c8g3f/kuJ6AJljx4LEYlPZq7JgFAlkjMMkXDIABgOl28UpQ
+ikjpyj/pvDciUsoc+WQCBwAACgkQ4LEYlPZq7JiCcw/+NxzyntWMM/b/eIMedzZK
+Zyq7Mo6vgFxT57wAloMtLu0WS9oETTH/+/9+fHPmkYxCX1HTNKpdY2KbjiZC/gAY
+vJ8iGWredwIls2UyW4fegzRLNvWLZmUBbLg0WaTIQ9JZwa2Rw/q6Z0pe0tfb44oX
+lpps0WA/OZCWXYVO2rhOzoiQulqdmHgwdcLA29BnpqBY1R8/LMDsfPLnJu7AFqgM
+CQpnjIGRH6ZxF2TNUSdljUbIOultEeIvxtxosF1u0r20mg46aaKDpr0ANiR/Ojaj
+YoeHZc39fyubSrhIyQuk4rDisrJod63MJ9x9upAc9H3qz71QjpwpVXPDxereWULO
+17qN3hjjZd23CBdRv8HjRKQoFagUnxlrat1t+/yJCENzX6eX8wBs0vVCSmbtbSp7
+y+0BK4fyjDKCdiyKh1TiAnQ1Po/xICGr4Sa6Wohq2TeWXz4VlRnaQeCIwa4Kk6T/
+3VTQbNxn7Uiy9ec8aR+1YMGUBDG/k3s6K1PWLdJtSVgao8MkQYeKcQk/sgGSFPh8
+SkTy7CnSjK/gQP8NC5fFDWpatGpnDr9qsQwzMnUVYWNZQMQ+LJHPnXRyusr3M+Gh
+4muVW1wmyjNLhtEYjJJnbv9bVVv2HFVXOWGiXY4hnj01xkHf3885Qq5ORWl1FMnU
+lcqUcFsB6a1CCPGxNTJQhgKJAk4EHwEKADgWIQThzyDd/+S4noAmWPHgsRiU9mrs
+mAUCWSMwyRcMgAH7+r21QbXclVvZum7bFs9bsSUlxAIHAAAKCRDgsRiU9mrsmK2H
+D/9frYP6KRecLNMzLJGe6MB/1DbqIud1/kzd/jHRo3e4Dz8cls29N03HskLE4jTf
+BXKAhUmRI52aMCioY/K03rZLaR++/GMIdnF7O4Ks7P203J4/CudmXQvz3Rby22lC
+RCp3Wsx2DqFgpc1V5SjmdDxzEs3fwKJ0B8YOMyibyUaLfwaxRfiTsWmRF192WzCM
+/B1tmJDLIqwq/xxzxmiqzrxBWq3JIxH1PzrGbWvAE0gfBJHgw/2HHO4PAG9Lj+AV
+HHPV/9xhXdbF/KnnKUGtd9lssNleWlc5LeM0ix2pU/QrZx7c+CBW+142jQcZ58X6
+QvHTKBkImI7y3kMCUOs+UbxKnFsRBRduMLvIpXJVXukV3QvRn+9riITPIcviF4ni
+F6V2NQ+ONrvMOK2s6VdfgMS7c4Azuyt4SJSEzBhHu+VTVnMZCBiKvZtRL5XX85ZF
+DDkN62Bwa+F36lTiOBWOecSQykCyOKcnn0jKrSgDOk08qE7Nzl2SPdlpza0/bk2u
+6i8o3mrmdO02OqC9vJum6M4Pn2HHrkPzAtSs11E7ogcZghPxnGCekGQNekHx9DKM
+mv8W+SZf4b1KD1EKECeNLZ0QHQMjU3AYBav+Mq9IXIlwFZL85BYLUAWfrCnqf/gV
+CTiy9yKdQ4WIr9XR+zywDigAZqJ5PxwBh1+phrkoWUfsLokCTgQfAQoAOBYhBOHP
+IN3/5LiegCZY8eCxGJT2auyYBQJZIzDJFwyAATCZEb6pZtBhMFMEVxG05f8VsP2C
+AgcAAAoJEOCxGJT2auyYWHAP/jlmSZQI/dnrYTT0ZtZA0k3sCaaOApWmno4Jm1+p
+QzxBJyVXC/7em3D/Wb3B4XpQKnkWOGz3XtEf4LNPhrW1n6nLFOLctprGwnlZihBp
+tmidEvvFKCa5exv4WOVyat5jLttNJ6o4O0BJHmUJG/wAVSjfWi2KgVXZEnz/wts8
+KFXc06RCgavIATmlC5QqD87U5ezKJdY0HY/A8uT9aBJ3KFdzj5MnZOzr2RJcEtWU
+UE1HHxqJS7POQVMUWK/7nABUKjzpQg8Hn7VNom553Lf8yk+OLl0x7+bS/8tZltZ/
+zkIqzUmpPk1QSf5b4JOryJye0ZV60TtbI7juXi2VV41gcHxd7EMkF4PAMtHF/rNM
+n/sR4LLXPnQk71zqOScYpMBDQ0FikQ7UuUT35iJAX3u7mWYL0P4h3NBlPmRLg9W3
+k/g5KRBLJ2U9Ba+i3UIRva8tUGz/EluzOCUcSbIEMNkaNyt4ktO3PaIzAzdVdxYk
+IWV6NUj92vSBJvXinzIjyXTk9Tjfuf4hLo15C+1c9P0+XkpKzpvW1ycpIUVH9QSZ
+afC1e45EXSkD0AV+y6ihJf4PWddgGb3ZeWarcp2QL/ll3XoBdEGfxOQJ1Py2nfIS
+HxVrl5AxoEJ9q+4YO5xysAV4f+UFKvS4snJtRztOYBKM0/4pup41u4V8oGWLRUOC
+d/GitEdEZWJpYW4gQXJjaGl2ZSBBdXRvbWF0aWMgU2lnbmluZyBLZXkgKDkvc3Ry
+ZXRjaCkgPGZ0cG1hc3RlckBkZWJpYW4ub3JnPokCVAQTAQoAPhYhBOHPIN3/5Lie
+gCZY8eCxGJT2auyYBQJZIzBOAhsDBQkPCZwABQsJCAcDBRUKCQgLBRYCAwEAAh4B
+AheAAAoJEOCxGJT2auyYKFoP/R5ijjBRlLpClTvhk5p1pE/cJbMAHd1Y7x09iSN3
+nT222tx4Zk3wVnP/1puJNkOxW7btMuUNz6Y4DolLpAa71hq3NOsTGz+5PL8ZFBoi
+lIN2iOpfzqIFLASM0Pz6X+twV3ZyE1PZmfzLAu8OWm4kt1v3qJVtWN/5dHbjTqMt
+vUc28VX1di51zWTs+3b/SDC+KN98i9W64JUiHPcLL6b2Y44fDszDDVVExwtPrPk0
+VU+et4/uWmhcdEIEb91MIEsLAUJIBqcGTZU7Gymxupa3vApT6UUxfNKkVCGDN5dk
+zFKkS6p2NEQjtIPNAheBwUfHqSDeN+EW4IuQxHZ92o+XGFMHqU29Vy81sPkGvKkG
+EIL12iMpW9hDTbjO/+v695o3tVo/h1b0NSZP3Jk4I3iDBpAcUEYarxoOung2K1fC
+QYH7R+7hy3lnRP36s9za6rEbik0c4XRvyYaYq7npGEq4CqhcKgRhZqVcy2Zmymcw
+MqR1wLSxEmbREQZfBCFh5zpVC+kmRHfXCmZyAfDwLgGuMDVL7piCW5DqpC04Ks7M
+Uj/r1O5hyMEjIzcdATVBMNJmdOPw7d0vqgBUizj0Y/e8RhmY8mkmy1zoI1HU7JfF
+eKNnK/I2KYUop0qV0+bEFcu0RiEFVMP5cw4L2QAr1Y39XJNFU3v7IujRZXkxLn+H
+6l4HiQJVBBABCAA/FiEE+/q9tUG13JVb2bpu2xbPW7ElJcQFAlkknnUhGmh0dHA6
+Ly9ncGcuZ2FubmVmZi5kZS9wb2xpY3kudHh0AAoJENsWz1uxJSXE0z8P/3wl5xqi
+wO8sHcMtPXRoOMGRBGlXN/GWbEuqOxaN4lVko+sqGTineW0nk6bx9zhTFDCXjEpK
+da6M8Tc7V/cQoEyrV7btFolrb1KPKl5cVTsxKbLSJO79VgN9CZdrv8xS1VsI6SW/
+7euwZmdjYCnOqs049uAxmeZU3HI/yjaOowhDDHAXRvzzbMTN5Y8aWqE1Sv/ndnb+
+qHDq0Xh6hX0iS+Szx7KIGDLsgPPPjvEfsfmXVhYrWPdB4KXIeOcISehblxxU9FCE
+JmArB0txQtW595m/Gn5ntVbiyHhrhNlGYT+6D1Fsw3q1l9kIzj8ro2/yRcZ/JRot
+w5j5bMbYatQGoxmaBr9AaHCyUmmQEwfQFqBDnOBrV2XwLlurIX3ZvkQQVy5e4ysp
+9K8lAd5X4k3sKOSca9HooIcK8szc48aUijHabzOzU459qrds5iX10q0L5It1FqLp
+obg2l3wLWU7XwAP6K7m6LcvSa+2QqJmh72SBLd6xPCQAdwwUgdfzjovxTpdQu+3u
+5NX+ud4uc+WP8bEG1oT//H9cQ6ocRKXS9iGYby7LF0ykY1MVBI8KfQ7UyLWe/wZ/
+HlPBT2tFQ+8HoB1ZmtzsukaJcTiDtOcQGrIfgEs+bbw7mFKIDjI8OKZpZRlm+UAy
+Vm4jG/OiHoxOcr29mYCUwAzLRpavE+L2/koGiQIzBBABCgAdFiEEgOl28UpQikjp
+yj/pvDciUsoc+WQFAlkkgYkACgkQvDciUsoc+WQChQ/7BgfCpOAN2mmrSToaMY5C
+UVsxw6GVa68gDJA6A1rFXq3cqI5KIj5lNZ+NQi5a9hUu/Ll0m5TN7bZQ8+wxre1U
+GY1EnIUb1MFsL7r43dvYOifwV0jNci7+wfvU7slJWfwRlO+q9pwxseBRnGsxLgnf
+p6ZK/VqzjMUBXzAdMxwqacaJITsgHHGqActsuTGlasOafTxSvWDjIM9O8+maOzAq
+sTa9EXGQhASuzAnDaaW6L7etM6Icm//7cMz8oVnTPKIrqYsHTypIju5XXqHa6Y1D
+jZlFcQe7aFbgyBufe4hNtcUHJxXpJHThmZVjJA0t8ofZ8tPWScRDrphMTPfGzVZS
+TPUKn+WbkD7w9H7fjQcaCH6YKoJx3tIYzLuDStS/+SLqF45eJp5Miws7AYJCZ2u6
+vJ/8kDVByVPW4Xlq+nmi2RPG7Ym6NcmjG6FUFNUs4PPPfVn7cdLLcnNNriV8hyOJ
+T+NnXISSLo20F9buHMl28YqBb7sXmM71lr4kbjNKi0IWUOb+uZcgzMnJPjegR0hT
+GWbN5TmZnQ0lxYU2gr+t9F5DewTfMZMqE70T5eNfSyfr9iCEt8pp6GsjQlFglYZr
+30bcoLI8IYvS5VOvHAtWrOe35UgLXT8iB0pdCDcVbdA4ZaUaSR6hH26RZgPu4dRx
+9flHYtovRX1rDB9Ujc2d3JuJAhwEEAEIAAYFAlkl7L0ACgkQEbTl/xWw/YJo3BAA
+jRFiSZPG8SH2QQ1XWF0RREv/yWO95HkZdTHY/yDNfB94YLVCSqWDfO7QepCE2SUp
+4+eBdKUSUk6sICQL5gQ3D6PpSLMPaiJ9QoUi7JU6pT9xlrdFIfwC/zZypsfDQ8Gb
+L0xZPuXEurcR6YArCFHxtACKSxcUBqvpb2YL9fOEQqVzq90yWxQYsX+xlOpXAXXe
+ITwbjgT0E6izN0ucYthhvBM0nw3Ma+v1C4o590MzAFefKaA8kQ2xrO/NIQVwD4qI
+MQh+Cshq7UZXM8LRa3gxaMvglMKeeyFHXPP1V+AKsQ5KmPlzYKFe+Fam85FZOF8i
+0OrlYcuJ6ZCSXFY9Yfr4GFrkLNsyWfSdv20JVi5U5LWJj4kArw8vc09zVxnpw5IK
+4TNxhg68Pho5/XES4upBQkWAzukwOKUVjzCaZkj9Kbos7MO5D4w9DZjGD5sosob/
+aLPznRqrhGX7KIVeqUDn5gavtIjk6mZBMpdDGi9GQ6ObuHUnDKyf0K4gYQ40NVGD
+e1KidJmRoLgdWph2NNP1tuLQcq6dzCdC5Oryu0yCLFXnxHURkIDTT6mKCtJ6rEsk
+O+s6+3yOB2FXv+oF1L/rUzv+dZsvKQR7T9odOITuQ/LGs9whGTG0sqpbCjyhCwt7
+2xy95fIpPdQ1Uhzcu9N/XZPRYY5IYR0NUDEUen9QAHWJAhwEEwEKAAYFAlkmhFEA
+CgkQdjjQRCuQ0BAjWxAAjIMwo5CFvImdmyiSfDLPezHLFL49FbLGIENr6E0xcAKo
+kPj5s3mCZ0dbCV32yrMBBIllHNrJ1dnv3+VQAwJFQNaTKZbej15zUL5RvBxZlaN5
+RNlf/vYD9Llm0fWiwMXpm0ep2ID2T93i1wGyYt1FnlQ58fO2Qye3h1Kp4qAQjDMR
+k2jjePqwx06QkC9+R21XK78RezgmtVb9BPTVNnUazzREcq1/mVfratAnlR+Arh63
+80E63Glwc9vNqzkuYA1ilTodzPCXk9vEA2gD31L1gCu3YP0kqe5aHB1R6y1cFvQz
+0Il/P4lyMBm3eTWZ09961Eopl0kLMPFFZkGw2ev4OB1wa0IAdugBTpCqc6lx/CY8
+mt/s6mEVxvzI4ljNgKPyyLaBZUOY0gtEgwmpE63njMWmuFxDOls7WuP45WEuRoOB
+OJkwtYNNpaghN2K/qWEgLtU76Nq64DGkjFd8xVdEccgmYxquQtrXEKj+2E5G8NOx
+tZeH0HrVcOfXHTMNx9UoZRP00VSycctkDwt0NBrDqA+o0Djkdql01YLUFOmOYe+U
+Z7vxNZIfQkGr2ynnAiqIchMuoz4/IUBLJ0HKasEf62NYluPrcbh2giTTYKtDkZqA
+eFB6lLxyTiZ3vDTE5a9lPrKt/p1JBhW5/S2BHWJjDMDO9ut4a8MWfw84u2ZwNuOJ
+AhwEEwEKAAYFAlkmhVkACgkQnW2Pa8hXyQagAxAAvhC1r8xGL31TWdusrNWzh7jD
+h1qWOMY/cvWmU5Jj10OG2O9oBa7hhm8g/bj8a3rVPEFPwdzJQNEG1MKinVkRjgTP
+ST9QHNuUP2sPtVsq/Y5HxFV8prCKXZ5hiVBLgORpSLF/kUh54dGhiFjycUoTFn0g
+MkaNArvkAGWpqjFgeQxW+Y15DHj4c1EwcSIKrcpDMyVqlZD96bbkLL7kTQ4zCMlJ
+irezEANgEXUYz0RD4NcWGHaT+GFVJfI+Mq4P17FltpHZyTtWbBmkzvJ4y6tbvxQt
+mKpDR4z88nstjCSXDjU4nOZL7Bifoi8ztV4uLzJ00dC6ivFmTCQyCqXCHPMvT3dj
+9Byr+cMWBGSfM198/oUh++eYW8dp0wjNtIrnJaqnLICzvBg5OucxzRVa4ZMPPx9+
+4jYjdsNsYg+oiZE5ljW1Ig8CBcCyVjNSUBDrRbb9vp1up/ByC3oxD8Uy3wETc7C7
+AMJ8H+RH/6J+HrE3im0HB22XiR4TtKgOuLQxGVO+aXEhdGdxFdWZUDdulC+feWc8
+acVkRvlIYF2Bfxs1Ecee/BkP7++kWZJ9o9Nl1HEpv+spDoxpzL4VRNF3U84InaCb
+wX17GLuVj07bk06ag44ZHmXwM/GSRn4ITwEVSKKoBCcvJGnRROA0n1a5+v7XSMvT
+9Q0gJj1rzlA9VNgS7Pi5Ag0EWSMwTgEQAMkD4hfHi8rZYM4I8V+vJp8feW93+Oiq
+caVzQygYKs+/dbr9favoHttNxOF8eBMIwkQgQlBIYehcHAnhnhuCP6s16tnM2lF6
+52s4c7DV4Fodo53Q+sqzPth/dH76NOeUAzSj3KPfD9YblrB+J2Z14PP2ObfvO8k/
+SghaCEPZ8geq5DZjTAs1YU5xYlawVJCvoQnb2TKEXbUrMOqAX/ysOwk3DrIo78h1
+HvGShBuHf08gOtv8Fm2pKdkPHzr/QI0/atFoRn793W74n4Qc2mwrDUUQds7oZ1IX
+tXeIHlVV8Z13no4qA7FRNL40/vBfKuPFAPZGt17k946L2LL5Lxu43eVFIbW2jAod
+tV3NxAYu5JAYIYOawZO0p9OZJdZ8sTg5KOhBfyfO4pFyc/FaOhxv3SVqhRZAuHTe
+6OSKLUMcV/7Yrb1hClSXtZcuTEZfaqDksoGg/QDHuYcnAtD7NWEEgEfuL2KYXudw
+GIjRQSUUMWv4Fw+BT50f3PHSH+lns/vQXxEaKDiGacKOC+FEHs9jTvWl9+phyzCK
+4CfTgZagW6gsvfPc/0fg2a/TaTzj4Y48KbENcBc+x2IwowRZAtSI+LsgH8puKMbQ
+7oRRnVdt2LqkWtzBoTcc4r5r4m+eGZ8/qsB1n69bS+MNWZtusaBeaQHGFv4d9rIC
+0QOzwZLX5EE1ABEBAAGJBHIEGAEKACYWIQThzyDd/+S4noAmWPHgsRiU9mrsmAUC
+WSMwTgIbAgUJDwmcAAJACRDgsRiU9mrsmMF0IAQZAQoAHRYhBBbpCz/fZe3jqn8y
+PATucje31FPsBQJZIzBOAAoJEATucje31FPscu8P/0yRsvlQjY0q600VkxD8KciV
+lvC7+xyrMBIal1ILjIpPlMeuWWpPE+Ffnry91m1GcAlXTfUf7NhZkqWfsyygqUGy
+BJ7ydPox8rA4UXW3J31Em4Lgc0JwUFD/bFqz/iVVYCnaWYcoX/68CwaWRCjt67v3
+3vNCw97t/W40430HsmK+AC6HS6vV09KeYk5fhrORFBNGrZT7Bm7lsWGgaz+7pNGk
+GE6k+K3sS6boGga1EGLA6YbaOEaIS6QJtpm4VEleFksj3JHK1TMN/QCnSGdy0/0b
+qkF/TDcfqG9c1vCp9knWkCKQmi/nv2ay2v6ZAcICAY7sjibicmBd06uvfU1bhKB7
+nYC/i77l+IGKX5R/WvTrdb+J5qQhODF70Nr6HO6EsI4E4X541GRLgGMZYKbiu0Tb
+uo1B7PSOrkddGUwxXjDBXM2ClcgPi8nL1irpleSAu89/B+Y+pr5IshaVmIP4+jCl
+GDG18/kPryOFk0ACszjlX7eFMTFPUX0gl7qDRfVE1jKzPxf75gLoeIylYChMd17b
+uQo8RsknkcvNgifdL4sRcbxOvhpERONK1MwR88K8C0GqJ61cIRMv8odMMpescww0
+5ECOpE+kl9PJcREnm8SVkclraWcQVEwGOkHtx5BsPqZplUEAIcJNXuvXm9kFkaVS
+2SRvQyklI6/NQQZzK8SRwacQAIGFHV3eOtC0rdrnmnh2XCDeEN5iPCvVG723jIc2
+6aDR4a47zr9507TBLUxMPJQ6mB7imsEcWHfR48zARq8jMSj7ahfhIa1ixEksc943
+CxLrjPAWfAnog/2MYJdUw/nBjU4dqb53ssxD/F/c3LB+z/nCEaO2UgH2Kekh0KyV
+KgwV0N8XcTB0UmGcH9J2DZ5/ZXRc2XiYWIDoJHs8thGxwsIYXEhYsgBwGu9Kil4t
+LzFt4sluY0kvfrDHu+oYfcYBh5V7q6AQYBh8ujjAhKZUmlKtgay6IHkR65m8QI49
+ITdTQW+Y+orphcsdbvCm4IhXPgykLySouskwr7RuhPka0hKwDUt+0MHbBmAhfYnF
+JC5o23tmgAq8l2WZbp6/uFZ+4E9UmvAI0RvQM/B3AxQBOCBOryGeaBwkJcsACm8V
+ADWm+/OWK78kuval45wGQl9+TqqjRuwA9ESEUMgZnc33rVPM3h6gR8Rv/M77AjyM
+88rGBLCWr7wNY4e3U34tH8jMFOMy9vN6l3kOR5/EFoXJJGehzE+xCyyeicY2HsJ5
+t5R/R6w23vgNqf6eBRQuDtym2rSuuiaCnvKEF3S9ng+phmm/eZadG7xOjERRPqqt
+TP+zge55Q1B+P1HmllKlR6YLFyRuKOO1ZOVh4Ae2MS4oZybMQsTifjjiQ/8W8KJq
+k5Bh
+=3qWJ
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/fill-values
new file mode 100644
index 0000000..2a29809
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: upstream-key-native
+Description: Check for public upstream signing key in native package
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/desc
new file mode 100644
index 0000000..789bca6
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-key-native
+Check: debian/upstream/signing-key
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/hints
new file mode 100644
index 0000000..fababb0
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-native/eval/hints
@@ -0,0 +1 @@
+upstream-key-native (source): public-upstream-key-in-native-package [debian/upstream/signing-key.asc]
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..e311b55
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1 @@
+Testing an empty file would require source format 3.0 (quilt).
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/fill-values
new file mode 100644
index 0000000..786ee2c
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: upstream-key-nonsense
+Skeleton: upload-non-native
+Description: Check for nonsense data in public upstream signing key
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/desc
new file mode 100644
index 0000000..6e60720
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/desc
@@ -0,0 +1,2 @@
+Testname: upstream-key-nonsense
+Check: debian/upstream/signing-key
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints
new file mode 100644
index 0000000..5bc79f7
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-key-nonsense/eval/hints
@@ -0,0 +1 @@
+upstream-key-nonsense (source): public-upstream-key-unusable cannot be processed [debian/upstream/signing-key.asc]
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..b79208f
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,153 @@
+pub dsa1024 2006-05-25 [SC]
+ A0AEA075AC8398E93CFC6F45D70B095F855781BA
+uid [ unknown] Aaron C Spike <aaron@ekips.org>
+sub elg2048 2006-05-25 [E]
+ 75FE92B054BE8CCB6556FE630B755C0230DF8115
+
+pub dsa1024 2000-03-22 [SC]
+ 9FA3C49C23C9D1BC2E3019751FFF4BA917063E6D
+uid [ unknown] Kees Cook <kees@outflux.net>
+uid [ unknown] Kees Cook <kees@debian.org>
+uid [ unknown] Kees Cook <kees@kernel.org>
+uid [ unknown] Kees Cook <kees@ubuntu.com>
+uid [ unknown] Kees Cook <kees@canonical.com>
+uid [ unknown] Kees Cook <kees.cook@canonical.com>
+sub elg4096 2000-03-22 [E]
+ EF1A71F45F7588F7EFACC36653B02EBC76E6CE33
+
+pub dsa1024 2006-09-06 [SC]
+ C7223EBE4EF66513B892598911A30156E0E67611
+uid [ unknown] Bryce Harrington <bryce.harrington@canonical.com>
+uid [ unknown] Bryce Harrington <bryce@ubuntu.com>
+uid [ unknown] Bryce Harrington <bryce@canonical.com>
+uid [ unknown] Bryce Harrington <bryce@osg.samsung.com>
+uid [ unknown] Bryce Harrington <bryce@bryceharrington.org>
+uid [ unknown] Bryce Harrington <bryce.harrington@ubuntu.com>
+sub elg2048 2006-09-06 [E]
+ 90778E96D30DA29C45CC28920813D5E325D309EB
+
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQGiBER12zgRBADBv4KbzMWnE5jwJlCK0aauc6NHsY9xiip6vMUmuyaU9O/DOKEx
+DqiEixZzxggV3lBsYf4QjaTNZ7+Gkb1IV9zCG7YzmBbMRI12TT+sZRdfCArC0IV2
+N3XAlCLuibXpb/rBloWfJUJsh4SSnS+GNYutLtRqbS/gDLZ6U57w+yM5LwCg5vZA
+M/JhaYA7y3aX91JkHKwxy40D/RwT8yo6RzckIs2+wSXSYEegPbvResOYV1kOXTi5
+qZ6afqHhyVtBRVVsQocEg/QIscAJu3ja/NiUAFCSKYN1iZCulGdcfLCfGIgJihSN
+6TFh7vUyBB+lGPCnax9MsdttsUaLfQeikWIsHxCBQUTwHLl4elOG7TPSFwELB/JX
+oZPvA/401Kv4bZvB9GLBzNfNLMdF3lrM+d0YH5R9k0WPV3XKShKz9H+vLEWGqxYB
+dJpK7jdhC7TK+L9V1hv4UhpOz9++K1O681HvkodCi1TxfIEKW1bA7tsNsM+Ggz0Z
+6BwqSCffc/ZysSL0L9GstNLMrtmnIdb+oQTtnR9XTVmAeD3H3bQfQWFyb24gQyBT
+cGlrZSA8YWFyb25AZWtpcHMub3JnPohgBBMRAgAgBQJEdds4AhsDBgsJCAcDAgQV
+AggDBBYCAwECHgECF4AACgkQ1wsJX4VXgbqdMgCfY0tcC/sffk1QXFqwh6ELk8Kx
+JQgAnitcjtlGWPWobbLmwztmAr7VlldruQINBER120sQCACv0SkI1OCjgYgW+8MF
+z3PALT7rP2J6IGEbIO95fg8H73apgPzx/ZM5bKY83mMbu3hN3SoFyhBY3yXA9qHE
+nC/W3Wm54yDvTOgVRjW/LiuBGcLJvQruB0Eu2WF5XEjcUi+vl+iZpEtNGc3enrVB
+tk0l4NXAONANWznX7ZlJx4IHhRNz4bHWsGrI1F5sA41bt1bRm2CE9GJrFcLnkjDp
+x1OEciBgP9x5M0pKfKL8DMtrAq0XsppP+Gg9OS4YF7UTDDDWKzqQnJAitseH/JQs
+soxsDOqxz6uY4GltnkV5inqAFVlVSxTG3JpxF3Rlsx2GqoOseEVssFUxTIFoBpYs
+TJpTAAMGB/oCLhuHGWnGa3OMHxBBGGX8nOPr9snglEHk2P/Kox6MRSAOU1BW6nVN
+LeN1jMldPH9Vd15FUHokCfydGuCPohx5daaA+vEp9qHM4g4fEGPgop+SZr8VMgNq
+yQUjUhU1rQOro/jyNXiQ7nICG7+QyDjeDZNfgWR/sHruHmWuoSEavx2zgxseNE5s
+pWICwdFltDXvvi9HWDDmPkCJHkhRlMaAaEwldM9z0M3AO6dXKK/1nKGGa4VqNL6f
+qDIfKTTpp5vuM/GUBE3d7fEuEfgi27YvdzQJa17SK1vrnpUaZ5+Bdt7DP5oFE9pB
+Tadkd4oCfglQQTEkOzYxVx4H6W/0XhjsiEkEGBECAAkFAkR120sCGwwACgkQ1wsJ
+X4VXgbrWNQCgt+WswdAQXAmJbuSTHNEvMgIuXyUAoLQnXJqYx2DOTY2i28thyeYM
+WS96mQGiBDjYWfMRBACN8F0N8tsW3zwhUpykfC62UdPJsu3zuqnipHWlPyMb7WYb
+NeR2EXpNxh5DKyI4kXHZL+7I6wrSYroHcw3biIrEy00oNNjyYZTwetSB/GMfISz0
+PNG1TMKL1dLrG146vmZp9vfoU2tJcCCB7Ir5hsKva7ddndvQdQYsvdS3cHJzjwCg
+pZPqPpzTpBnWZt/TA84LnjZ2Xt0D/36lHbAPDH92HjYeeclZjy7z3abrJYCxoc+U
+PBIu6/rAqYkE17S9kjkkiLb5JdF5lMJgSYu8Kf1QSCkc/II1CGJYfGqnKo3YGLIS
+rqrVzQob47tOMFjUYZ9UEb569m8rmgnl3RmPmZ9wCT+RY0U3XNeYx5ukfn/fJLt6
+A8b9Cqx5A/9rZLrnsSTL3bYuAHMn9FEwj1cetJvqi11L0MhQy4WBz293BUtR2X5S
+/lKzRfY+mNzSMe6NEEd5sD1QgJTUdC3wIJJeK9qMqyqK56Cmge3E7m4l/5QdI8uZ
+sqFuNCsGfpJPaSQ8yjJ2sAX+g8TjEMYZ9Cwkrod7sSagMrO4cV0no7QZS2VlcyBD
+b29rIDxrZWVzQG9zZGwub3JnPohJBDARAgAJBQJFca8BAh0gAAoJEB//S6kXBj5t
+uQYAn3X9zRGDua4OAPFS4qiNh09y7pItAJ0eQs5NHNFB/gBqZwEV7RCcUAelfbQb
+S2VlcyBDb29rIDxjb29rQGNwb2ludC5uZXQ+iEkEMBECAAkFAkUQGNkCHSAACgkQ
+H/9LqRcGPm2l1wCcDdjlXHGJzM4lrSyzUXyjxEwIvD4AoIv3oSyyfNoxTPTF3QTd
+vhVrfm6GtBtLZWVzIENvb2sgPGtlZXNAZGViaWFuLm9yZz6IYQQTEQIAIQUCR6Eg
+DQIbAwcLCQgHAwIBBBUCCAMEFgIDAQIeAQIXgAAKCRAf/0upFwY+bUNgAJ9RM+r7
+ZCl0xHjYqMkX9yF4NOjzrACdED6Y7Xohf5rpcSVxTkSFl3oSX5m0G0tlZXMgQ29v
+ayA8a2Vlc0BrZXJuZWwub3JnPohgBBMRAgAgAhsDAh4BAheABQJFtXy4BgsJCAcD
+AgQVAggDBBYCAwEACgkQH/9LqRcGPm3hcwCbBu1Wdux1iWFrxhV2E6mpjvjbt6EA
+nRHaGYEH2BuMCJjq0AE2cWqPCHjQtBtLZWVzIENvb2sgPGtlZXNAdWJ1bnR1LmNv
+bT6IYAQTEQIAIAIbAwIeAQIXgAUCRbV8uAYLCQgHAwIEFQIIAwQWAgMBAAoJEB//
+S6kXBj5tK68AoIhUwpdkaNHz/ecNJPv6ZuPnzcHVAJ0f4p4HSXqjIM4w2123e5Kw
+PyiQIbQcS2VlcyBDb29rIDxrZWVzQG91dGZsdXgubmV0PohjBBMRAgAjAhsDAh4B
+AheAAhkBBQJFtXyzBgsJCAcDAgQVAggDBBYCAwEACgkQH/9LqRcGPm2t9QCbBBgv
+K8umgFnfFM3gHSWXcchf/U8AnjgRSagInpCzDsriwz/7kRk6CZjRtB5LZWVzIENv
+b2sgPGtlZXNAY2Fub25pY2FsLmNvbT6IYAQTEQIAIAIbAwIeAQIXgAUCRbV8uAYL
+CQgHAwIEFQIIAwQWAgMBAAoJEB//S6kXBj5tlA4An1TrHtj4+NspE3AS3hhR3LzP
+Y1Y/AJ9sF22Ytoz+RTuDnV+6b62E6kIe47QjS2VlcyBDb29rIDxrZWVzLmNvb2tA
+Y2Fub25pY2FsLmNvbT6IYQQTEQIAIQUCR/QWgAIbAwcLCQgHAwIBBBUCCAMEFgID
+AQIeAQIXgAAKCRAf/0upFwY+baOTAJ0XMfD87j/R/LyaF/p84mtYM/mUXACfd7KQ
+Hty/NNRHZm65IGUiQpCMPVi0J0Nvcm5lbGl1cyBDb29rIChLZWVzKSA8Y29va0Bj
+cG9pbnQubmV0PohJBDARAgAJBQJE64y0Ah0gAAoJEB//S6kXBj5tvXAAn3QUzyP3
+bopVytVzU2t5ATvFbDvSAJ9Kb7OYDI+d6Ym/kjRNVxyAMqfkcLQoQ29ybmVsaXVz
+IENvb2sgKEtlZXMpIDxrZWVzQG91dGZsdXgubmV0PohJBDARAgAJBQJGAUI9Ah0g
+AAoJEB//S6kXBj5tdt0An28ib9AYfoa6TRteVRn22k/sBykvAKCh9X7U/NspQC61
+kcH+6yf/FszC3LkEDQQ42FvaEBAAkofDOJKr1mgLU+0NM5M0z33uN3LFX3vC+ON+
+vY5SAwvt1WqCvUgocByb0npfdqtu8VGD0QZ+m9Lp1yXyYjDoSgMmBachbordxHHW
+b7asqmHrOkPWX6AvrITRhMOfvQ1zDKlLa19kLMUANhYXRH3JjsiZAhQ++xcEZqes
+JtgmKdpcX0vX3TuVV8wSBJFG0tKgLZPkEnYtUDRiBp7RrqYruNCctVzCxr4n26cY
+V0saMvwHhHpmHP8qwJQf2++eWPG/lm/wMzatThEgkKqXGj1rHU+uzKBrxc2pQDi/
+Pz12vg9H86pO51E0xPXthH6hazwWix7Tx1Q0mig4pbrHLuHgV0A6CtlJIPclWlsY
+9jO67XiUGVw+ypR3QwPyUVZuCmRv3w+FroajxQ+VM/hlKhikDb7ylhQ0UCo3nym7
+mRTbEC5O+3mahTr4X7TadaX3GOjceMLzaOF4sbo9pFusK3lXOoehZO5Ob6VIbyTw
+T5M2qsjwLqLn7pmIN84tpQvlVaEFKyNyR9C+uCdB1ZkdOtUxOee8MOMxS3I06ZVv
+pRbFfUAr3Y/SzgapIGsDqHf9HKP5mMw9zDTWJwtUcAVtQELfM4JZ9F1tGd8G9ebH
+n1esy/Fb1c3upyhkLBBHdmI/dHnJ0hzt8SoSgsrORtq0DVL/fGpqDkeykkmOi4+t
+XS315Q8AAwUP/37nvk/tvV/IH43RY1DHQ+7DFhWpNzGfUDIEORoQeCGqpw6pJm1B
+Wvm3WDFuoXrrlOPvR5xQDEANbuBAejcC4MaPX+DHHdo6+uM2nkpYbIKFQ2GS6mg2
+GNUTqTBQX8Z/1BTE0NzcO/cANZA1kZeV7i6UXTpR7w3oNdPYk1OHWtDMCx97brCf
+IFD+5UuTeJiNRuOe+OiNZGsRL6/BtowDjKTdhsgotE3ZsgL+IyW8bMdowc7F56fD
+3SRL63SAu3yjfk7/ryZZIArCYusrkEV52OyEniCa42sCafONQ3WWIGXOVb3Wc62n
+AMOSFcbOE+BqvnmGlJ9vxRZ1GCB1is4lJb/8Wr2oq0aDH3sQoontF5W7nzWD041u
+rgsFMKLol8NH2waWXcnwbBcAcChk8duxGMEx0w1D8ldpTqVzIVgeIe8I2axlEnvq
+Vta9oR4uiCtinApD3yTrZRez9O2PwjEY5iZTe1WyiSGi+U0Tiz1ZIawhojOCxJWC
+ggB0Zs9n2FaCb5Cs7BMRzCdibeI1XoFqiL8YxY1cWkwcBTALSWpUy9FYOITPMSji
+x/Svlew+8VTrGZ+aKDXmEoXMbUfcPkRIbk7TWq0YrTTCYkikLviXczkrvBl1b5qw
+rhEF18dCl89N2kqUyDNJ4SuOeNELMhcGtARKY0OHtu3vSuC5Yr8woTN7iEYEGBEC
+AAYFAkW2eZgACgkQH/9LqRcGPm2CBgCglD0MerQ+cfQ734FX0hd89L8+XBcAn3Ab
+83GBmoy4K0aF4Jp5Nwlgo59DmQGiBET+XhERBADlUYa7VXfPl3y9uCBUMniYdE4F
+KLAobrREyiveLf+2mTf435YLde0gcx9ZS/EZUq+4rn4uv6AsKmw/f/N/VWGC4KL6
+0uyp7zJjUNed2KKBk3sk57IGpHwRqzXQwk8wVMOuhyyv207cmUadGVtL4GPKUCOY
+p+C0hnSs3Jq0fZJ9lwCg5xDxfg3g++HUm8Gu2D/SYR4pFWED/2J4fkdPRQhxnfmv
+UxphqKf24aDngDwXYLkKlywYGs52J8iOwTQ/DRIruKepqrh66gb06QwnMQe9R5mJ
+qncoi87m2jlKzUdJ5WV4JRmXc4QVu9vRySK9j6e1O2mJeRrYvkf5rDBCHXvOoXET
+6VSHZI//1OJJ5OMiIApERFdT+a5TA/4u82BHdLFerbK23ML0aWOpTc/kMbOwLjF7
+rFF3iJ4Pbhv0gS2wWx/1oqbFZGdTS5XVGiWf/+/rZpN8SeC5Q8cJ1EYqSHyo/eA+
+mI+C6ylqyyODmZ42OQr142xjt6MFj5uBMq3QQGYytZ65ustDfnE/qP6hNJGtE9Lw
+6NVGd6oG37QjQnJ5Y2UgSGFycmluZ3RvbiA8YnJ5Y2VAdWJ1bnR1LmNvbT6IYAQT
+EQIAIAIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJUwED9AAoJEBGjAVbg5nYR
+YHkAoN8LIA4RjqX6TtK87+V+5aOSggk1AKC6T20Lo9yte4Q6uXXJWGPNVydG8bQm
+QnJ5Y2UgSGFycmluZ3RvbiA8YnJ5Y2VAY2Fub25pY2FsLmNvbT6IYAQTEQIAIAIb
+AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJUwED9AAoJEBGjAVbg5nYRNDQAoKJ3
+TMTZS3nK+gtYCosXcO4JFYxRAKDdOzV2Hn+dwors+2n3X91Ol3BNArQoQnJ5Y2Ug
+SGFycmluZ3RvbiA8YnJ5Y2VAb3NnLnNhbXN1bmcuY29tPohiBBMRAgAiAhsDBgsJ
+CAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUCVMBA/QAKCRARowFW4OZ2Ed2iAJ4s0EVg
+9+vuE3wAmeHGZazsvRnakACg0VP0/JUmDDvgm7vOfg5Ex/v82nC0LEJyeWNlIEhh
+cnJpbmd0b24gPGJyeWNlQGJyeWNlaGFycmluZ3Rvbi5vcmc+iGAEExECACACGwMG
+CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAUCVMBA/QAKCRARowFW4OZ2EfLRAKC/HqDc
+a42tb3lyPxjEJv17tpFxSQCdHJeu88EIYaC5HZHUbG9ZaFoUuwi0LkJyeWNlIEhh
+cnJpbmd0b24gPGJyeWNlLmhhcnJpbmd0b25AdWJ1bnR1LmNvbT6IYAQTEQIAIAIb
+AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheABQJUwED6AAoJEBGjAVbg5nYRHEcAnRlu
+XGX7z2CeQHVccOjXPEx3DhbuAKC3BOql6z4e/oHnuPcrmm+cDVwvn7QxQnJ5Y2Ug
+SGFycmluZ3RvbiA8YnJ5Y2UuaGFycmluZ3RvbkBjYW5vbmljYWwuY29tPohgBBMR
+AgAgAhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AFAlTAQP0ACgkQEaMBVuDmdhHg
+7wCgghXeewn/DeBZh3g0EstNcdSDDU4Anif0Ud+4cdTFS4jWWPJrs/gaPFbDuQIN
+BET+XiQQCADT0bmOAoaZ/3Y7cpvc221+V7Yq1YtUw1QNUgkaku5I+5ee54oIvMrE
+WbADQRd1TqtKjsTS8v1kYFqHC965uhHgXAMHCb6hlN+AzVXsgl/iqQI3knqHAtx5
+1Buqd/PF1t6grELRhGH39ElzkK2D9E1e8Ag6XdWY/jCx/tRypc2HrUJoNsdUFrj8
++VDOYa9Xi1XSzQdRPbWbdzXiIxtA5iY4i8mS3B3wItl1eyzD5UFQzgWK5FLFjfhm
+6/DEpVqlyu1mp+2I7InKz4HW64l0Rkzn5EC7UxUn/chGDWQTtfiyjeia4ANcUC8J
+x5C4NOKXPzXN8anWV3S0oJZh+pGRaUKTAAMFB/9YkEg13DveEPPg8+bqUXtN9YU+
+Ogxcvcyou8I5bzRMxlpJkG3aEsrpAB7mS9D3kpImUa5QA8Y9QoEl4CLxbGIDJIyK
+Nm93OhZrO+A0h8uCTHK45clmqg3UdUKqnXr5V48zIvs56lrpTnlJ3PqNSl2ErDYt
+T7fgODyXAyLPNpCGsz2otYfJ4ne1aYf7i/7gI+UTXpavDUsM90FrX+sydnjbZIi0
+t6HNpmO9sb9o82QjF+hMr28YntWS0LUvOdUmWNnUyrDtZ2fnTzxoOYl0/8hxE+vU
+wcw3vk6+CtNEw4r+VkuKKpZgrP7BIyD8m2dGJn5cfRe8LCP2TIkYh7WBoKQxiEkE
+GBECAAkFAkT+XiQCGwwACgkQEaMBVuDmdhHXAgCg1DelVwB3NVuI4X3w4QAijqlg
+3vsAn13J6LbSbWkCE1GwkJfoF9GzWqNd
+=L+CY
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/fill-values b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/fill-values
new file mode 100644
index 0000000..1ed18f8
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: upstream-keyring
+Skeleton: upload-non-native
+Description: Test with a keyring (false positive, from inkscape)
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/desc b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/desc
new file mode 100644
index 0000000..753cd74
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/desc
@@ -0,0 +1,4 @@
+Testname: upstream-keyring
+Check: debian/upstream/signing-key
+Test-Against:
+ public-upstream-key-unusable
diff --git a/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/hints b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/upstream/signing-key/upstream-keyring/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/a-file b/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/a-file
new file mode 100644
index 0000000..c40b9f1
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/a-file
@@ -0,0 +1 @@
+MEANINGFUL CONTENTS
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/install b/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/install
new file mode 100644
index 0000000..8a62397
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/debian/install
@@ -0,0 +1 @@
+a-file usr/lib/$(DEB_BUILD_MULTIARCH)/
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/fill-values b/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/fill-values
new file mode 100644
index 0000000..82217ed
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-install/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-native
+Testname: build-multiarch-in-install
+Description: Uses DEB_BUILD_MULTIARCH in d/install
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-install/eval/desc b/t/recipes/checks/debian/variables/build-multiarch-in-install/eval/desc
new file mode 100644
index 0000000..f30475e
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-install/eval/desc
@@ -0,0 +1,4 @@
+Testname: build-multiarch-in-install
+Check: debian/variables
+See-Also:
+ Bug#983219
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-install/eval/hints b/t/recipes/checks/debian/variables/build-multiarch-in-install/eval/hints
new file mode 100644
index 0000000..5ea29b9
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-install/eval/hints
@@ -0,0 +1 @@
+build-multiarch-in-install (source): illegal-variable DEB_BUILD_MULTIARCH [debian/install]
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/a-file b/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/a-file
new file mode 100644
index 0000000..c40b9f1
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/a-file
@@ -0,0 +1 @@
+MEANINGFUL CONTENTS
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/links b/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/links
new file mode 100644
index 0000000..4f759a6
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/debian/links
@@ -0,0 +1 @@
+/usr/lib/$(DEB_BUILD_MULTIARCH)/target /usr/lib/$(DEB_BUILD_MULTIARCH)/not-working
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/fill-values b/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/fill-values
new file mode 100644
index 0000000..bf606c3
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-links/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-native
+Testname: build-multiarch-in-links
+Description: Uses DEB_BUILD_MULTIARCH in d/links
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-links/eval/desc b/t/recipes/checks/debian/variables/build-multiarch-in-links/eval/desc
new file mode 100644
index 0000000..324f3b5
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-links/eval/desc
@@ -0,0 +1,4 @@
+Testname: build-multiarch-in-links
+Check: debian/variables
+See-Also:
+ Bug#983219
diff --git a/t/recipes/checks/debian/variables/build-multiarch-in-links/eval/hints b/t/recipes/checks/debian/variables/build-multiarch-in-links/eval/hints
new file mode 100644
index 0000000..d843c89
--- /dev/null
+++ b/t/recipes/checks/debian/variables/build-multiarch-in-links/eval/hints
@@ -0,0 +1 @@
+build-multiarch-in-links (source): illegal-variable DEB_BUILD_MULTIARCH [debian/links]
diff --git a/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/NEWS.Debian b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/NEWS.Debian
new file mode 100644
index 0000000..29f561c
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/README.Debian b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/README.Debian
new file mode 100644
index 0000000..94bcc0a
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/changelog.in b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/changelog.in
new file mode 100644
index 0000000..39301d6
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/conffiles b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/conffiles
new file mode 100644
index 0000000..d1a0843
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/conffiles
@@ -0,0 +1 @@
+/etc/menu-methods/lintian
diff --git a/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/control b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/control
new file mode 100644
index 0000000..c797357
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/copyright b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/copyright
new file mode 100644
index 0000000..1d6806d
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/doc-base b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/doc-base
new file mode 100644
index 0000000..7e5b38f
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/goodbye.desktop b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/goodbye.desktop
new file mode 100644
index 0000000..f6ce8e3
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/hello.desktop b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/hello.desktop
new file mode 100644
index 0000000..f795468
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/menu b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/menu
new file mode 100644
index 0000000..e8972f4
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/menu-method b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/menu-method
new file mode 100644
index 0000000..9f07bd7
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/postinst b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/postinst
new file mode 100644
index 0000000..29e1861
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/rules b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/rules
new file mode 100755
index 0000000..a962ea9
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/debian/templates b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/debian/templates
new file mode 100644
index 0000000..3d92861
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/fill-values b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/fill-values
new file mode 100644
index 0000000..b503871
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/orig/INSTALL b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/orig/INSTALL
new file mode 100644
index 0000000..3b50ea9
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/orig/Makefile b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/orig/Makefile
new file mode 100644
index 0000000..da1dc55
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/build-spec/orig/hello.c b/t/recipes/checks/debian/version-substvars/legacy-binary/build-spec/orig/hello.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-binary/eval/desc b/t/recipes/checks/debian/version-substvars/legacy-binary/eval/desc
new file mode 100644
index 0000000..6d02762
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-binary/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-binary
+Check: debian/version-substvars
diff --git a/t/recipes/checks/debian/version-substvars/legacy-binary/eval/hints b/t/recipes/checks/debian/version-substvars/legacy-binary/eval/hints
new file mode 100644
index 0000000..47fabf6
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-binary/eval/hints
@@ -0,0 +1,2 @@
+binary (source): not-binnmuable-all-depends-any binary-data -> binary
+binary (source): maybe-not-arch-all-binnmuable binary -> binary-data
diff --git a/t/recipes/checks/debian/version-substvars/legacy-binary/eval/post-test b/t/recipes/checks/debian/version-substvars/legacy-binary/eval/post-test
new file mode 100644
index 0000000..3deefd5
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/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/debian/version-substvars/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/README.Debian
new file mode 100644
index 0000000..e289bfb
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/README.Debian
@@ -0,0 +1,5 @@
+this is a package to test lintian's handling of files in /etc.
+Also, there's a random mention of /usr/doc here to prompt a warning.
+But /usr/documentation doesn't.
+
+ -- Russ Allbery <rra@debian.org>, Mon, 18 Feb 2008 16:40:55 -0800
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/changelog.in
new file mode 100644
index 0000000..00cdc77
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/changelog.in
@@ -0,0 +1,7 @@
+etcfiles ([% $version %]) [% $distribution %]; urgency=low
+
+ * Acknowledge NMU (Closes: #123456).
+ * initial setup
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Fri, 21 Sep 2001 11:56:02 -0700
+
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles
new file mode 100644
index 0000000..76032b7
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles
@@ -0,0 +1,5 @@
+/etc/proper
+/var/lib/foo
+/etc/cron.daily/cronfile-normal
+/etc/cron.daily/.cronfile-begins-with-fullstop
+/etc/cron.daily/cronfile-contains.fullstop
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles.only
new file mode 100644
index 0000000..a4b3895
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/conffiles.only
@@ -0,0 +1,2 @@
+/etc/etcfiles/foo
+/etc/etcfiles/bar
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/control
new file mode 100644
index 0000000..f3dbda7
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/control
@@ -0,0 +1,20 @@
+Source: etcfiles
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Standards-Version: 3.5.0
+
+Package: etcfiles
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: test handling of files in /etc
+ Regression test for lintian's handling of files in /etc.
+ .
+ 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.
+
+Package: only-etcfiles
+Architecture: all
+Depends: etcfiles (= ${source:Version})
+Description: test handling of conffile-only package
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/rules
new file mode 100755
index 0000000..97ff09f
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+tmponly=debian/only-etcfiles
+
+clean:
+ rm -f debian/files debian/substvars
+ rm -rf debian/tmp
+ rm -rf debian/only-etcfiles
+
+build:
+build-arch:
+build-indep:
+binary-indep:
+ install -d $(tmp)/etc
+ install -m 644 proper $(tmp)/etc
+ install -m 644 improper $(tmp)/etc
+ mkdir $(tmp)/etc/cron.daily
+ touch $(tmp)/etc/cron.daily/cronfile-normal
+ touch $(tmp)/etc/cron.daily/.cronfile-begins-with-fullstop
+ touch $(tmp)/etc/cron.daily/cronfile-contains.fullstop
+ ln $(tmp)/etc/improper $(tmp)/etc/improper-link
+ install -d $(tmp)/usr/share/doc/etcfiles
+ install -d $(tmp)/var/lib
+ install -m 644 proper $(tmp)/var/lib/foo
+ install -m 644 debian/README.Debian $(tmp)/usr/share/doc/etcfiles
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/etcfiles
+ #gzip -9 $(tmp)/usr/share/doc/etcfiles/changelog
+ install -d $(tmp)/DEBIAN
+ install -m 644 debian/conffiles $(tmp)/DEBIAN
+
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-normal' \
+ > debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/.cronfile-begins-with-fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'd41d8cd98f00b204e9800998ecf8427e ./etc/cron.daily/cronfile-contains.fullstop' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '05c72cacce994208128b7d081116b04a ./etc/proper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce etc/improper' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'ab371382468880299e5ebd05921764ce usr/bin/foo' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo 'this is a malformed line' \
+ >> debian/tmp/DEBIAN/md5sums
+ echo '56fb27e455dd86d8801f1ecd3a4cee49 usr/share/doc/etcfiles/README.Debian' \
+ >> debian/tmp/DEBIAN/md5sums
+
+ install -d $(tmponly)/etc/etcfiles
+ touch $(tmponly)/etc/etcfiles/foo
+ touch $(tmponly)/etc/etcfiles/bar
+ install -d $(tmponly)/usr/share/doc
+ cd $(tmponly)/usr/share/doc && ln -s etcfiles only-etcfiles
+ install -d $(tmponly)/DEBIAN
+ install -m 644 debian/conffiles.only $(tmponly)/DEBIAN/conffiles
+
+ dpkg-gencontrol -isp -petcfiles
+ dpkg-gencontrol -isp -ponly-etcfiles -P$(tmponly)
+ dpkg --build $(tmp) ..
+ dpkg --build $(tmponly) ..
+
+binary: binary-indep
+
+.PHONY: binary-indep binary clean
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/fill-values
new file mode 100644
index 0000000..86deb10
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-etcfiles
+Source: etcfiles
+Version: 1
+Description: Legacy test "etcfiles"
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/improper
new file mode 100644
index 0000000..23656f4
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/improper
@@ -0,0 +1,2 @@
+[config]
+ var = value \ No newline at end of file
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/proper
new file mode 100644
index 0000000..f3dc68b
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/build-spec/orig/proper
@@ -0,0 +1,2 @@
+# i am a config file
+foo = var \ No newline at end of file
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/desc b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/desc
new file mode 100644
index 0000000..d8b2ef7
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-etcfiles
+Check: debian/version-substvars
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/hints b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/hints
new file mode 100644
index 0000000..939340b
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/hints
@@ -0,0 +1 @@
+etcfiles (source): not-binnmuable-all-depends-any only-etcfiles -> etcfiles
diff --git a/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/post-test b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-etcfiles/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/changelog.in b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/changelog.in
new file mode 100644
index 0000000..91a6bb5
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/changelog.in
@@ -0,0 +1,6 @@
+libbaz ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial setup
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 30 Jan 2001 15:23:59 -0800
+
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/compat.in b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/control b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/control
new file mode 100644
index 0000000..1506687
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/control
@@ -0,0 +1,58 @@
+Source: libbaz
+Section: libs
+Priority: optional
+Maintainer: Lintian Maintainer <lintian-maint@debian.org>
+Build-depends: debhelper (>=4)
+Standards-Version: 3.2.1
+
+Package: libbaz1
+Architecture: any
+Provides: libbaz
+Description: test handling of library packages
+ Regression test for lintian's handling of libraries.
+ .
+ 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.
+
+Package: libbaz1-dev
+Architecture: any
+Depends: libbaz1 (= ${source:Version}), perlapi-5.8.8
+Description: development package
+ Regression test for lintian's handling of libraries (dev).
+ .
+ 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.
+
+Package: libbaz2
+Architecture: any
+Depends: ${shlibs:Depends}, libssl0.9.8
+Description: test handling of library packages (good)
+ Regression test for lintian's handling of libraries (good).
+ .
+ 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.
+
+Package: libbaz2-dev
+Architecture: any
+Depends: ${shlibs:Depends}, libbaz2 (= ${source:Version})
+Description: development package (good)
+ Regression test for lintian's handling of libraries (dev good).
+ .
+ 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.
+
+Package: libbaz2-dbg
+Architecture: any
+Depends: libbaz2 (= ${binary:Version})
+Priority: optional
+Description: debugging package
+ Regression test for lintian's handling of libraries (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.
+
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/copyright b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/copyright
new file mode 100644
index 0000000..a874c87
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/copyright
@@ -0,0 +1,8 @@
+This package 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.
+
+However, this has an OpenSSL exception.
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.postinst b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.postinst
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.prerm b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.prerm
new file mode 100644
index 0000000..683e3cc
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/dev.prerm
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+$PKG=libbaz1-dev
+
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.postinst b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.postinst
new file mode 100644
index 0000000..ec0b98a
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/$PKG -a -d /usr/share/doc/$PKG ]
+; then
+ ln -sf ../share/doc/$PKG /usr/doc/$PKG
+ fi
+fi
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.prerm b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.prerm
new file mode 100644
index 0000000..50e37c3
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+$PKG=libbaz1
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$PKG ]; then
+ rm -f /usr/doc/$PKG
+fi
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.shlibs b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.shlibs
new file mode 100644
index 0000000..b88e288
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.shlibs
@@ -0,0 +1,8 @@
+libdoesntexist2 1.0 libbaz1
+libdoesntexist2 1.0 libbaz1
+libbaz2 1.1 libbaz
+libbaz3 1 libbaz1 (>> 1-1)
+libbaz4 1 libbaz1 (= 1-1)
+libbaz5 1 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
+udeb: libdoesntexist2 1.0 libbaz2
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.symbols b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.symbols
new file mode 100644
index 0000000..72f9d8a
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/lib.symbols
@@ -0,0 +1,3 @@
+libbaz.so.2 libbaz1 #MINVER#
+ pw 1-1
+ foo 1.1-1
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/rules b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/rules
new file mode 100755
index 0000000..fa99bc8
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/rules
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+
+lib_tmp=debian/tmp-lib
+dev_tmp=debian/tmp-dev
+
+LIB=libbaz1
+DEV=libbaz1-dev
+
+VENDORARCH := $(shell perl -MConfig -wE'say substr($$Config{vendorarch},1)')
+
+build-arch:
+ $(MAKE)
+
+build-indep:
+
+build: build-arch build-indep
+
+clean:
+ $(MAKE) clean
+ dh_clean -plibbaz2 -plibbaz2-dev
+ rm -f debian/files debian/substvars
+ rm -rf $(lib_tmp) $(dev_tmp)
+
+# Now the correct libbaz2-dev package
+binary-correct:
+ install -d debian/libbaz2-dev/usr/lib
+ cp -a libbaz2.a libbaz2.so debian/libbaz2-dev/usr/lib
+ # usually, I'd also include some .h files to /usr/include
+
+ # Now the correct libbaz2 package
+ install -d debian/libbaz2/usr/lib
+ cp -a libbaz2.so.* debian/libbaz2/usr/lib
+ chmod a-x debian/libbaz2/usr/lib/*
+
+ # General stuff that is tested in other testsets:
+ dh_installdocs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_compress -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # Mess up the libbaz2 changelog files to test the symlink handling.
+ ln -s /usr/share/doc/lintian/changelog.gz \
+ debian/libbaz2/usr/share/doc/libbaz2/changelog.gz
+ install -m 644 debian/changelog \
+ debian/libbaz2-dev/usr/share/doc/libbaz2-dev/foo
+ ln -s foo debian/libbaz2-dev/usr/share/doc/libbaz2-dev/changelog
+
+ # Okay, if either line is omitted, it should be noted
+ dh_strip --dbg-package=libbaz2-dbg -plibbaz2 -plibbaz2-dev
+ dh_makeshlibs -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_shlibdeps -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+ # and again, regular packaging stuff
+ dh_installdeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ echo udeb: libbaz2 1.0 libbaz2 >> debian/libbaz2/DEBIAN/shlibs
+ dh_gencontrol -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+ dh_builddeb -plibbaz2 -plibbaz2-dev -plibbaz2-dbg
+
+# and the incorrect one
+binary-arch: build-arch binary-correct
+ # first, the lib package
+ install -d $(lib_tmp)/usr/lib
+ # resp. no soname (check), wrong soname (check), and no-pic (check)
+ cp -a libbaz1.so.1.0* $(lib_tmp)/usr/lib
+ cp -a libbaz2.so.1.0.3b $(lib_tmp)/usr/lib/libfoo2.so.1.0.3b
+ install -m644 libbaz3.so.1.0.3b $(lib_tmp)/usr/lib/libbaz3.so.1.0.3b
+ # let's include the .a in the non-dev too (TODO)
+ # Also, libbaz1.a hasn't a symbol table (TODO)
+ cp -a *.a $(lib_tmp)/usr/lib
+ # And a wrong .so symlink (wrong, only in -dev, TODO)
+ ln -s libfoo3.so.0.9 $(lib_tmp)/usr/lib/libfoo3.so
+ # And a wrong .so.X symlink (wrong, should point to a real existing
+ # shlib, TODO)
+ ln -s libfoo.so.0.9.1 $(lib_tmp)/usr/lib/libfoo.so.0.9
+ # And a plain .so (wrong, TODO)
+ touch $(lib_tmp)/usr/lib/libbar2.so
+ # And a non-versioned SONAME.
+ install -m644 libbaz.so $(lib_tmp)/usr/lib/libbaz.so
+ strip --remove-section=.comment --strip-unneeded $(lib_tmp)/usr/lib/libbaz.so
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(lib_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(lib_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+
+ install -d $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/copyright $(lib_tmp)/usr/share/doc/$(LIB)
+ install -m 644 debian/changelog $(lib_tmp)/usr/share/doc/$(LIB)
+ gzip -n -9 $(lib_tmp)/usr/share/doc/$(LIB)/changelog
+ install -d $(lib_tmp)/DEBIAN
+ install -m 755 debian/lib.postinst $(lib_tmp)/DEBIAN/postinst
+ install -m 755 debian/lib.prerm $(lib_tmp)/DEBIAN/prerm
+ touch $(lib_tmp)/usr/share/doc/README.Debian
+ #dpkg-shlibdeps $(lib_tmp)/usr/lib/libbaz.so.1.0
+ install -m 755 debian/lib.shlibs $(lib_tmp)/DEBIAN/shlibs
+ install -m 755 debian/lib.symbols $(lib_tmp)/DEBIAN/symbols
+ dpkg-gencontrol -isp -p$(LIB) -P$(lib_tmp)
+ dpkg --build $(lib_tmp) ..
+
+ # now the -dev package
+ install -d $(dev_tmp)/usr/include
+ install -d $(lib_tmp)/usr/lib
+ # let's also install the .so at the same time... (wrong, TODO)
+ cp -a *.a *.so.* $(lib_tmp)/usr/lib
+ # and fuck up permission (TODO)
+ chmod a+x $(lib_tmp)/usr/lib/*.a
+ # Pretend to be a Perl module to test a lack of Perl dependencies.
+ install -d $(dev_tmp)/$(VENDORARCH)/auto/Foo
+ install -m 644 libbaz2.so.1.0.3b $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ strip $(dev_tmp)/$(VENDORARCH)/auto/Foo/Foo.so
+ install -d $(dev_tmp)/usr/share/doc
+ ln -s $(LIB) $(dev_tmp)/usr/share/doc/$(DEV)
+ install -d $(dev_tmp)/DEBIAN
+ install -m 755 debian/dev.postinst $(dev_tmp)/DEBIAN/postinst
+ install -m 755 debian/dev.prerm $(dev_tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp -p$(DEV) -P$(dev_tmp)
+ dpkg --build $(dev_tmp) ..
+
+
+binary: binary-arch
+
+# The mention of binary-indep here should be sufficient to suppress the
+# warning that it's not present.
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/source.lintian-overrides b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/source.lintian-overrides
new file mode 100644
index 0000000..6008d27
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/debian/source.lintian-overrides
@@ -0,0 +1 @@
+libbaz source: maintainer-script-lacks-debhelper-token
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/fill-values b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/fill-values
new file mode 100644
index 0000000..7effe4f
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-libbaz
+Source: libbaz
+Version: 1-1
+Default-Build-Depends: debhelper (>= 9.20151004~)
+Description: Legacy test "libbaz"
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/Makefile b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/Makefile
new file mode 100644
index 0000000..657dc2a
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/Makefile
@@ -0,0 +1,55 @@
+# This is the correct way to build a lib
+
+CC=gcc
+CFLAGS=-g -Wall -Winline -O2
+LDFLAGS=-Wl,--no-as-needed
+
+OBJS=baz.o extra.o
+SHOBJS=baz.sho extra.sho
+NOPICOBJS = $(SHOBJS)
+
+all: libbaz1.a libbaz2.a libbaz1.so.1.0.3b libbaz2.so libbaz3.so.1.0.3b \
+ libbaz.so
+
+libbaz2.so: libbaz2.so.1.0
+ ln -sf $^ $@
+libbaz2.so.1.0: libbaz2.so.1.0.3b
+ ln -sf $^ $@
+
+# Oops, forget the soname altogether
+libbaz1.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared $^ -lc
+
+libbaz2.so.1.0.3b: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz2.so.1.0 $^ -lc
+
+# Non-PIC. We can't test this on all architectures
+libbaz3.so.1.0.3b: $(NOPICOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz3.so.1 $^ -lc
+
+# Non-versioned SONAME.
+libbaz.so: $(SHOBJS)
+ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,libbaz.so $^ -lc
+
+#%.o-noreentrant: %.c
+# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -c $<
+
+%.sho: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -fPIC -o $@ -c $<
+
+%.o: %.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -D_REENTRANT -o $@ -c $<
+
+libbaz2.a: $(OBJS)
+ ar cq $@ $(OBJS)
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+ ranlib $@
+
+# The pic one in the .a (wrong), no archive table
+libbaz1.a: $(SHOBJS)
+ ar cqS $@ $^
+ strip --strip-unneeded --remove-section=.comment \
+ --remove-section=-note $@
+clean:
+ rm -f *.a *.o *.so* *.sho
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/baz.c b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/baz.c
new file mode 100644
index 0000000..4d5fc45
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/baz.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double pw(double p)
+{
+ return exp(p);
+}
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/extra.c b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/extra.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/build-spec/orig/extra.c
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/desc b/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/desc
new file mode 100644
index 0000000..9f00b57
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-libbaz
+Check: debian/version-substvars
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/hints b/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/hints
new file mode 100644
index 0000000..81c169a
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/hints
@@ -0,0 +1,2 @@
+libbaz (source): not-binnmuable-any-depends-any libbaz2-dev -> libbaz2
+libbaz (source): not-binnmuable-any-depends-any libbaz1-dev -> libbaz1
diff --git a/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/post-test b/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/post-test
new file mode 100755
index 0000000..29dc3f4
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/legacy-libbaz/eval/post-test
@@ -0,0 +1,4 @@
+/: hardening-.*/ d
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
+s,usr/lib/([^\/]*/)?perl[0-9]*(/[0-9]*\.[0-9]*)?/,usr/lib/ma-dir/perl/version/,g
+/: file-references-package-build-path / d
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/debian/control.in b/t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/debian/control.in
new file mode 100644
index 0000000..bedaad7
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/debian/control.in
@@ -0,0 +1,62 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: program-bin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-data (= ${binary:Version}),
+ program-data-extra (= ${source:Version})
+Provides:
+ provided-package (= ${binary:Version}),
+ provided-package-2 (= ${binary:Version})
+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.
+
+
+Package: program-data
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ foreign-pkg:any (= ${source:Version})
+Suggests: provided-package (= ${binary:Version})
+Replaces: other-foreign-pkg:any (<< ${binary:Version})
+Recommends: another-foreign-pkg-${suffix}:any (= ${source:Version})
+Description: [% $description %] - data
+ 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.
+ .
+ Data package.
+
+Package: program-utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-bin:any (= ${source:Version}),
+ program-data (>= ${binary:Version})
+Description: [% $description %] - extra utils
+ 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.
+ .
+ Extra utils.
+
+Package: program-data-extra
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-bin:any (= ${binary:Version}),
+Description: [% $description %] - extra data
+ 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.
+ .
+ Extra-Data package.
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/fill-values b/t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/fill-values
new file mode 100644
index 0000000..4ccfdc0
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-general/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: version-substvars-general
+Description: Test of substvars
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-general/eval/desc b/t/recipes/checks/debian/version-substvars/version-substvars-general/eval/desc
new file mode 100644
index 0000000..a564fe5
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-general/eval/desc
@@ -0,0 +1,2 @@
+Testname: version-substvars-general
+Check: debian/version-substvars
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-general/eval/hints b/t/recipes/checks/debian/version-substvars/version-substvars-general/eval/hints
new file mode 100644
index 0000000..90f8083
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-general/eval/hints
@@ -0,0 +1,7 @@
+version-substvars-general (source): version-substvar-for-external-package Replaces ${binary:Version} program-data -> other-foreign-pkg [debian/control:29]
+version-substvars-general (source): version-substvar-for-external-package Depends ${source:Version} program-data -> foreign-pkg [debian/control:26]
+version-substvars-general (source): not-binnmuable-any-depends-any program-utils -> program-bin
+version-substvars-general (source): not-binnmuable-any-depends-all program-utils -> program-data
+version-substvars-general (source): not-binnmuable-any-depends-all program-bin -> program-data
+version-substvars-general (source): not-binnmuable-all-depends-any program-data-extra -> program-bin
+version-substvars-general (source): maybe-not-arch-all-binnmuable program-bin -> program-data-extra
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in
new file mode 100644
index 0000000..200f9ad
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/debian/control.in
@@ -0,0 +1,57 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: program-bin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-data (= ${binary:Version}),
+ program-data-extra (= ${source:Version})
+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.
+
+
+Package: program-data
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ foreign-pkg:any (= ${Source-Version})
+Replaces: other-foreign-pkg:any (<< ${binary:Version})
+Description: [% $description %] - data
+ 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.
+ .
+ Data package.
+
+Package: program-utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-bin:any (= ${source:Version}),
+ program-data (>= ${binary:Version})
+Description: [% $description %] - extra utils
+ 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.
+ .
+ Extra utils.
+
+Package: program-data-extra
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ program-bin:any (= ${binary:Version}),
+Description: [% $description %] - extra data
+ 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.
+ .
+ Extra-Data package.
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values
new file mode 100644
index 0000000..ec9740c
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: version-substvars-obsolete
+Description: Test of substvars
+Extra-Build-Depends: dpkg (<< 1.17.2)
+# dpkg 1.18.11 Will error out for ${source-version}
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc
new file mode 100644
index 0000000..25c3fcb
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/desc
@@ -0,0 +1,3 @@
+Testname: version-substvars-obsolete
+Check: debian/version-substvars
+# dpkg 1.18.11 Will error out for ${source-version}
diff --git a/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints
new file mode 100644
index 0000000..e1b5e52
--- /dev/null
+++ b/t/recipes/checks/debian/version-substvars/version-substvars-obsolete/eval/hints
@@ -0,0 +1,8 @@
+version-substvars-obsolete (source): version-substvar-for-external-package program-data -> other-foreign-pkg
+version-substvars-obsolete (source): version-substvar-for-external-package program-data -> foreign-pkg
+version-substvars-obsolete (source): substvar-source-version-is-deprecated program-data
+version-substvars-obsolete (source): not-binnmuable-any-depends-any program-utils -> program-bin
+version-substvars-obsolete (source): not-binnmuable-any-depends-all program-utils -> program-data
+version-substvars-obsolete (source): not-binnmuable-any-depends-all program-bin -> program-data
+version-substvars-obsolete (source): not-binnmuable-all-depends-any program-data-extra -> program-bin
+version-substvars-obsolete (source): maybe-not-arch-all-binnmuable program-bin -> program-data-extra
diff --git a/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..bd03c4e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1 @@
+Too lazy to fake this file
diff --git a/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/fill-values b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/fill-values
new file mode 100644
index 0000000..c3943fa
--- /dev/null
+++ b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: changes-upstream-signature-missing
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Description: No upstream signature included but package contains a signing key
+Extra-Build-Depends: dpkg (>= 1.18.5)
+# dpkg 1.18.5 required in order to create multiple tarballs with detached signatures
diff --git a/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/pre-build b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/pre-build
new file mode 100755
index 0000000..2d5a158
--- /dev/null
+++ b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/build-spec/pre-build
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+DIR="$1"
+NAME="changes-upstream-signature-missing"
+VERSION="1.0"
+
+# Check all components
+cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-component.tar.gz
+
+# Don't emit if we have a signature
+cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-signed.tar.gz
+touch ${DIR}/../${NAME}_${VERSION}.orig-signed.tar.gz.asc
+
+# Don't emit if we have .tar.asc (NB. not a .tar.gz.asc)
+cp ${DIR}/../${NAME}_${VERSION}.orig.tar.gz ${DIR}/../${NAME}_${VERSION}.orig-noext.tar.gz
+touch ${DIR}/../${NAME}_${VERSION}.orig-noext.tar.gz.asc
diff --git a/t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/desc b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/desc
new file mode 100644
index 0000000..6c8544d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/desc
@@ -0,0 +1,3 @@
+Testname: changes-upstream-signature-missing
+Check: debian/watch
+# dpkg 1.18.5 required in order to create multiple tarballs with detached signatures
diff --git a/t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/hints b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/hints
new file mode 100644
index 0000000..a1301ce
--- /dev/null
+++ b/t/recipes/checks/debian/watch/changes-upstream-signature-missing/eval/hints
@@ -0,0 +1,2 @@
+changes-upstream-signature-missing (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
+changes-upstream-signature-missing (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch]
diff --git a/t/recipes/checks/debian/watch/filenamemangle/build-spec/debian/watch b/t/recipes/checks/debian/watch/filenamemangle/build-spec/debian/watch
new file mode 100644
index 0000000..c266694
--- /dev/null
+++ b/t/recipes/checks/debian/watch/filenamemangle/build-spec/debian/watch
@@ -0,0 +1,5 @@
+version=4
+opts=\
+ downloadurlmangle=s/\/releases\/tag\/(\d\S+)$/\/archive\/$1\.tar\.gz/,\
+ filenamemangle=s/.+\/tag\/(\d\S+)$/foot-$1\.tar\.gz/ \
+https://codeberg.org/dnkl/foot/releases .*/releases/tag/(\d\S+)
diff --git a/t/recipes/checks/debian/watch/filenamemangle/build-spec/fill-values b/t/recipes/checks/debian/watch/filenamemangle/build-spec/fill-values
new file mode 100644
index 0000000..b0aec17
--- /dev/null
+++ b/t/recipes/checks/debian/watch/filenamemangle/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: source-non-native
+Testname: filenamemangle
+Description: Option filenamemangle in d/watch
diff --git a/t/recipes/checks/debian/watch/filenamemangle/eval/desc b/t/recipes/checks/debian/watch/filenamemangle/eval/desc
new file mode 100644
index 0000000..9c5d3bc
--- /dev/null
+++ b/t/recipes/checks/debian/watch/filenamemangle/eval/desc
@@ -0,0 +1,2 @@
+Testname: filenamemangle
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/filenamemangle/eval/hints b/t/recipes/checks/debian/watch/filenamemangle/eval/hints
new file mode 100644
index 0000000..3cb3be0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/filenamemangle/eval/hints
@@ -0,0 +1,2 @@
+filenamemangle (source): prefer-uscan-symlink filenamemangle s/.+\/tag\/(\d\S+)$/foot-$1\.tar\.gz/ [debian/watch:5]
+filenamemangle (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/README.Debian b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/README.Debian
new file mode 100644
index 0000000..69112e6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/README.Debian
@@ -0,0 +1,6 @@
+generic-dh-make-2008 for Debian
+-------------------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/changelog.in
new file mode 100644
index 0000000..8d16a3d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/changelog.in
@@ -0,0 +1,5 @@
+generic-dh-make-2008 ([% $version %]) [% $distribution %]; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Russ Allbery <rra@debian.org> Mon, 29 Dec 2008 17:33:59 -0800
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/compat.in b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/compat.in
new file mode 100644
index 0000000..640a566
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/compat.in
@@ -0,0 +1 @@
+[% $dh_compat_level %]
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/control.in b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/control.in
new file mode 100644
index 0000000..a668392
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/control.in
@@ -0,0 +1,13 @@
+Source: generic-dh-make-2008
+Section: unknown
+Priority: optional
+Maintainer: Russ Allbery <rra@debian.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.7.3
+Homepage: <insert the upstream URL, if relevant>
+
+Package: generic-dh-make-2008
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/copyright b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/copyright
new file mode 100644
index 0000000..31b796a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Russ Allbery <rra@debian.org> on
+Mon, 29 Dec 2008 17:33:59 -0800.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+ <put author's name and email here>
+ <likewise for another author>
+
+Copyright:
+
+ <Copyright (C) YYYY Name OfAuthor>
+ <likewise for another author>
+
+License:
+
+ <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2008, Russ Allbery <rra@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/cron.d.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/cron.d.ex
new file mode 100644
index 0000000..d00b7d0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/cron.d.ex
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the generic-dh-make-2008 package
+#
+0 4 * * * root [ -x /usr/bin/generic-dh-make-2008_maintenance ] && /usr/bin/generic-dh-make-2008_maintenance
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/dirs b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/docs b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-install.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
new file mode 100644
index 0000000..393594b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-install.ex
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/generic-dh-make-2008
+
+# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+# SITEFLAG="-no-site-file"
+#else
+# SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
new file mode 100644
index 0000000..c48d194
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-remove.ex
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/generic-dh-make-2008
+
+FLAVOR=$1
+PACKAGE=generic-dh-make-2008
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/generic-dh-make-2008.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
new file mode 100644
index 0000000..b51657a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/emacsen-startup.ex
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50generic-dh-make-2008.el
+;; for the Debian generic-dh-make-2008 package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
+
+;; The generic-dh-make-2008 package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...). The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+ (symbol-name flavor)
+ "/site-lisp/generic-dh-make-2008")))
+;; If package-dir does not exist, the generic-dh-make-2008 package must have
+;; removed but not purged, and we should skip the setup.
+ (when (file-directory-p package-dir)
+ (setq load-path (cons package-dir load-path))
+ (autoload 'generic-dh-make-2008-mode "generic-dh-make-2008-mode"
+ "Major mode for editing generic-dh-make-2008 files." t)
+ (add-to-list 'auto-mode-alist '("\\.generic-dh-make-2008$" . generic-dh-make-2008-mode))))
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
new file mode 100644
index 0000000..d770c6e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.default.ex
@@ -0,0 +1,10 @@
+# Defaults for generic-dh-make-2008 initscript
+# sourced by /etc/init.d/generic-dh-make-2008
+# installed at /etc/default/generic-dh-make-2008 by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
new file mode 100644
index 0000000..3b966d1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/generic-dh-make-2008.doc-base.EX
@@ -0,0 +1,22 @@
+Document: generic-dh-make-2008
+Title: Debian generic-dh-make-2008 Manual
+Author: <insert document author here>
+Abstract: This manual describes what generic-dh-make-2008 is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.ps.gz
+
+Format: text
+Files: /usr/share/doc/generic-dh-make-2008/generic-dh-make-2008.text.gz
+
+Format: HTML
+Index: /usr/share/doc/generic-dh-make-2008/html/index.html
+Files: /usr/share/doc/generic-dh-make-2008/html/*.html
+
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.ex
new file mode 100644
index 0000000..b464594
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.ex
@@ -0,0 +1,157 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/generic-dh-make-2008
+NAME=generic-dh-make-2008
+DESC=generic-dh-make-2008
+
+test -x $DAEMON || exit 0
+
+LOGDIR=/var/log/generic-dh-make-2008
+PIDFILE=/var/run/$NAME.pid
+DODTIME=1 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+# Include generic-dh-make-2008 defaults if available
+if [ -f /etc/default/generic-dh-make-2008 ] ; then
+ . /etc/default/generic-dh-make-2008
+fi
+
+set -e
+
+running_pid()
+{
+ # Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected child?
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running()
+{
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ # Obtain the pid and check it against the binary name
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+force_stop() {
+# Forcefully kill the process
+ [ ! -f "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ kill -9 $pid
+ [ -n "$DODTIME" ] && sleep "$DODTIME"s
+ if running ; then
+ echo "Cannot kill $LABEL (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+ return 0
+}
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON -- $DAEMON_OPTS
+ if running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ force-stop)
+ echo -n "Forcefully stopping $DESC: "
+ force_stop
+ if ! running ; then
+ echo "$NAME."
+ else
+ echo " ERROR."
+ fi
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+ force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart" except that it does nothing if the
+ # daemon isn't already running.
+ # check wether $DAEMON is running. If so, restart
+ start-stop-daemon --stop --test --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON \
+ && $0 restart \
+ || exit 0
+ ;;
+ restart)
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --stop --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON
+ [ -n "$DODTIME" ] && sleep $DODTIME
+ start-stop-daemon --start --quiet --pidfile \
+ /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+ echo "$NAME."
+ ;;
+ status)
+ echo -n "$LABEL is "
+ if running ; then
+ echo "running"
+ else
+ echo " not running."
+ exit 1
+ fi
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
new file mode 100644
index 0000000..b3559de
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/init.d.lsb.ex
@@ -0,0 +1,296 @@
+#!/bin/sh
+#
+# Example init.d script with LSB support.
+#
+# Please read this init.d carefully and modify the sections to
+# adjust it to the program you want to run.
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
+#
+# This is free software; you may 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,
+# or (at your option) any later version.
+#
+# 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. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian operating system, in /usr/share/common-licenses/GPL; if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides: generic-dh-make-2008
+# Required-Start: $network $local_fs
+# Required-Stop:
+# Should-Start: $named
+# Should-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: <Enter a short description of the sortware>
+# Description: <Enter a long description of the software>
+# <...>
+# <...>
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/generic-dh-make-2008 # Introduce the server's location here
+NAME=#PACKAGE # Introduce the short server's name here
+DESC=#PACKAGE # Introduce a short description here
+LOGDIR=/var/log/generic-dh-make-2008 # Log directory to use
+
+PIDFILE=/var/run/$NAME.pid
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/$NAME
+DAEMON_OPTS="" # Additional options given to the server
+
+DIETIME=10 # Time to wait for the server to die, in seconds
+ # If this value is set too low you might not
+ # let some servers to die gracefully and
+ # 'restart' will not work
+
+#STARTTIME=2 # Time to wait for the server to start, in seconds
+ # If this value is set each time the server is
+ # started (on start or restart) the script will
+ # stall to try to determine if it is running
+ # If it is not set and the server takes time
+ # to setup a pid file the log message might
+ # be a false positive (says it did not start
+ # when it actually did)
+
+LOGFILE=$LOGDIR/$NAME.log # Server logfile
+#DAEMONUSER=generic-dh-make-2008 # Users to run the daemons as. If this value
+ # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+# Use this if you want the user to explicitly set 'RUN' in
+# /etc/default/
+#if [ "x$RUN" != "xyes" ] ; then
+# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
+# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
+# exit 1
+#fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+ if getent passwd | grep -q "^$DAEMONUSER:"; then
+ # Obtain the uid and gid
+ DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+ DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+ else
+ log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+ exit 1
+ fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+ pid=$1
+ name=$2
+ [ -z "$pid" ] && return 1
+ [ ! -d /proc/$pid ] && return 1
+ cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+ # Is this the expected server
+ [ "$cmd" != "$name" ] && return 1
+ return 0
+}
+
+running() {
+# Check if the process is running looking at /proc
+# (works for all users)
+
+ # No pidfile, probably no daemon present
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=`cat $PIDFILE`
+ running_pid $pid $DAEMON || return 1
+ return 0
+}
+
+start_server() {
+# Start the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ else
+# if we are using a daemonuser then change the user id
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --chuid $DAEMONUSER \
+ --exec $DAEMON -- $DAEMON_OPTS
+ errcode=$?
+ fi
+ return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+ if [ -z "$DAEMONUSER" ] ; then
+ killproc -p $PIDFILE $DAEMON
+ errcode=$?
+ else
+# if we are using a daemonuser then look for process that match
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --user $DAEMONUSER \
+ --exec $DAEMON
+ errcode=$?
+ fi
+
+ return $errcode
+}
+
+reload_server() {
+ [ ! -f "$PIDFILE" ] && return 1
+ pid=pidofproc $PIDFILE # This is the daemon's pid
+ # Send a SIGHUP
+ kill -1 $pid
+ return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+ [ ! -e "$PIDFILE" ] && return
+ if running ; then
+ kill -15 $pid
+ # Is it really dead?
+ sleep "$DIETIME"s
+ if running ; then
+ kill -9 $pid
+ sleep "$DIETIME"s
+ if running ; then
+ echo "Cannot kill $NAME (pid=$pid)!"
+ exit 1
+ fi
+ fi
+ fi
+ rm -f $PIDFILE
+}
+
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC " "$NAME"
+ # Check if it's running first
+ if running ; then
+ log_progress_msg "apparently already running"
+ log_end_msg 0
+ exit 0
+ fi
+ if start_server ; then
+ # NOTE: Some servers might die some time after they start,
+ # this code will detect this issue if STARTTIME is set
+ # to a reasonable value
+ [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
+ if running ; then
+ # It's ok, the server started and is running
+ log_end_msg 0
+ else
+ # It is not running after we did start
+ log_end_msg 1
+ fi
+ else
+ # Either we could not start it
+ log_end_msg 1
+ fi
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC" "$NAME"
+ if running ; then
+ # Only stop the server if we see it running
+ errcode=0
+ stop_server || errcode=$?
+ log_end_msg $errcode
+ else
+ # If it's not running don't do anything
+ log_progress_msg "apparently not running"
+ log_end_msg 0
+ exit 0
+ fi
+ ;;
+ force-stop)
+ # First try to stop gracefully the program
+ $0 stop
+ if running; then
+ # If it's still running try to kill it more forcefully
+ log_daemon_msg "Stopping (force) $DESC" "$NAME"
+ errcode=0
+ force_stop || errcode=$?
+ log_end_msg $errcode
+ fi
+ ;;
+ restart|force-reload)
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ errcode=0
+ stop_server || errcode=$?
+ # Wait some sensible amount, some server need this
+ [ -n "$DIETIME" ] && sleep $DIETIME
+ start_server || errcode=$?
+ [ -n "$STARTTIME" ] && sleep $STARTTIME
+ running || errcode=$?
+ log_end_msg $errcode
+ ;;
+ status)
+
+ log_daemon_msg "Checking status of $DESC" "$NAME"
+ if running ; then
+ log_progress_msg "running"
+ log_end_msg 0
+ else
+ log_progress_msg "apparently not running"
+ log_end_msg 1
+ exit 1
+ fi
+ ;;
+ # Use this if the daemon cannot reload
+ reload)
+ log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+ log_warning_msg "cannot re-read the config file (use restart)."
+ ;;
+ # And this if it cann
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+ # if running ; then
+ # reload_server
+ # if ! running ; then
+ # Process died after we tried to reload
+ # log_progress_msg "died on reload"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ # else
+ # log_progress_msg "server is not running"
+ # log_end_msg 1
+ # exit 1
+ # fi
+ #;;
+
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.1.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.1.ex
new file mode 100644
index 0000000..d67baa2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.1.ex
@@ -0,0 +1,59 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH GENERIC-DH-MAKE-2008 SECTION "December 29, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+generic-dh-make-2008 \- program to do something
+.SH SYNOPSIS
+.B generic-dh-make-2008
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B generic-dh-make-2008
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBgeneric-dh-make-2008\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+generic-dh-make-2008 was written by <upstream author>.
+.PP
+This manual page was written by Russ Allbery <rra@debian.org>,
+for the Debian project (but may be used by others).
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
new file mode 100644
index 0000000..26b3e0c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.sgml.ex
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+ <!ENTITY dhsurname "<surname>SURNAME</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>December 29, 2008</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
+ <!ENTITY dhemail "<email>rra@debian.org</email>">
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhucpackage "<refentrytitle>GENERIC-DH-MAKE-2008</refentrytitle>">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2003</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+
+ <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+ <arg><option>--example <replaceable>that</replaceable></option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+
+ <para>This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the &gnu;
+ <application>Info</application> format; see below.</para>
+
+ <para><command>&dhpackage;</command> is a program that...</para>
+
+ </refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <para>These programs follow the usual &gnu; command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <application>Info</application> files.</para>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>-h</option>
+ <option>--help</option>
+ </term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option>
+ <option>--version</option>
+ </term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1>
+ <title>SEE ALSO</title>
+
+ <para>bar (1), baz (1).</para>
+
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the
+ <application>Info</application> system.</para>
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 any
+ later version published by the Free Software Foundation.
+ </para>
+ <para>
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+ </para>
+
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.xml.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
new file mode 100644
index 0000000..2d01c6f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/manpage.xml.ex
@@ -0,0 +1,291 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!--
+
+`xsltproc -''-nonet \
+ -''-param man.charmap.use.subset "0" \
+ -''-param make.year.ranges "1" \
+ -''-param make.single.year.ranges "1" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
+ manpage.xml'
+
+A manual page <package>.<section> will be generated. You may view the
+manual page with: nroff -man <package>.<section> | less'. A typical entry
+in a Makefile or Makefile.am is:
+
+DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
+
+manpage.1: manpage.xml
+ $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package. The XSL files are in
+docbook-xsl. A description of the parameters you can use can be found in the
+docbook-xsl-doc-* packages. Please remember that if you create the nroff
+version in one of the debian/rules file targets (such as build), you will need
+to include xsltproc and docbook-xsl in your Build-Depends control field.
+Alternatively use the xmlto command/package. That will also automatically
+pull in xsltproc and docbook-xsl.
+
+Notes for using docbook2x: docbook2x-man does not automatically create the
+AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
+<refsect1> ... </refsect1>.
+
+To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
+read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
+found in the docbook-xsl-doc-html package.
+
+Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
+
+General documentation about man-pages and man-page-formatting:
+man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
+
+-->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "FIRSTNAME">
+ <!ENTITY dhsurname "SURNAME">
+ <!-- dhusername could also be set to "&firstname; &surname;". -->
+ <!ENTITY dhusername "Russ Allbery">
+ <!ENTITY dhemail "rra@debian.org">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1) and
+ http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
+ <!ENTITY dhsection "SECTION">
+ <!-- TITLE should be something like "User commands" or similar (see
+ http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
+ <!ENTITY dhtitle "generic-dh-make-2008 User Manual">
+ <!ENTITY dhucpackage "GENERIC-DH-MAKE-2008">
+ <!ENTITY dhpackage "generic-dh-make-2008">
+]>
+
+<refentry>
+ <refentryinfo>
+ <title>&dhtitle;</title>
+ <productname>&dhpackage;</productname>
+ <authorgroup>
+ <author>
+ <firstname>&dhfirstname;</firstname>
+ <surname>&dhsurname;</surname>
+ <contrib>Wrote this manpage for the Debian system.</contrib>
+ <address>
+ <email>&dhemail;</email>
+ </address>
+ </author>
+ </authorgroup>
+ <copyright>
+ <year>2007</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ <legalnotice>
+ <para>This manual page was written for the Debian system
+ (but may be used by others).</para>
+ <para>Permission is granted to copy, distribute and/or modify this
+ document under the terms of the GNU General Public License,
+ Version 2 or (at your option) any later version published by
+ the Free Software Foundation.</para>
+ <para>On Debian systems, the complete text of the GNU General Public
+ License can be found in
+ <filename>/usr/share/common-licenses/GPL</filename>.</para>
+ </legalnotice>
+ </refentryinfo>
+ <refmeta>
+ <refentrytitle>&dhucpackage;</refentrytitle>
+ <manvolnum>&dhsection;</manvolnum>
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+ <refpurpose>program to do something</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- These are several examples, how syntaxes could look -->
+ <arg choice="plain"><option>-e <replaceable>this</replaceable></option></arg>
+ <arg choice="opt"><option>--example=<parameter>that</parameter></option></arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <replaceable class="option">this</replaceable>
+ </arg>
+ <arg choice="opt">
+ <group choice="req">
+ <arg choice="plain"><option>-e</option></arg>
+ <arg choice="plain"><option>--example</option></arg>
+ </group>
+ <group choice="req">
+ <arg choice="plain"><replaceable>this</replaceable></arg>
+ <arg choice="plain"><replaceable>that</replaceable></arg>
+ </group>
+ </arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <!-- Normally the help and version options make the programs stop
+ right after outputting the requested information. -->
+ <group choice="opt">
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-h</option></arg>
+ <arg choice="plain"><option>--help</option></arg>
+ </group>
+ </arg>
+ <arg choice="plain">
+ <group choice="req">
+ <arg choice="plain"><option>-v</option></arg>
+ <arg choice="plain"><option>--version</option></arg>
+ </group>
+ </arg>
+ </group>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1 id="description">
+ <title>DESCRIPTION</title>
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+ <para>This manual page was written for the Debian distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation in the GNU <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> format; see below.</para>
+ <para><command>&dhpackage;</command> is a program that...</para>
+ </refsect1>
+ <refsect1 id="options">
+ <title>OPTIONS</title>
+ <para>The program follows the usual GNU command line syntax,
+ with long options starting with two dashes (`-'). A summary of
+ options is included below. For a complete description, see the
+ <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> files.</para>
+ <variablelist>
+ <!-- Use the variablelist.term.separator and the
+ variablelist.term.break.after parameters to
+ control the term elements. -->
+ <varlistentry>
+ <term><option>-e <replaceable>this</replaceable></option></term>
+ <term><option>--example=<replaceable>that</replaceable></option></term>
+ <listitem>
+ <para>Does this and that.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h</option></term>
+ <term><option>--help</option></term>
+ <listitem>
+ <para>Show summary of options.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option></term>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>Show version of program.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="files">
+ <title>FILES</title>
+ <variablelist>
+ <varlistentry>
+ <term><filename>/etc/foo.conf</filename></term>
+ <listitem>
+ <para>The system-wide configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><filename>${HOME}/.foo.conf</filename></term>
+ <listitem>
+ <para>The per-user configuration file to control the
+ behaviour of <application>&dhpackage;</application>. See
+ <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry> for further details.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="environment">
+ <title>ENVIONMENT</title>
+ <variablelist>
+ <varlistentry>
+ <term><envar>FOO_CONF</envar></term>
+ <listitem>
+ <para>If used, the defined file is used as configuration
+ file (see also <xref linkend="files"/>).</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1 id="diagnostics">
+ <title>DIAGNOSTICS</title>
+ <para>The following diagnostics may be issued
+ on <filename class="devicefile">stderr</filename>:</para>
+ <variablelist>
+ <varlistentry>
+ <term><errortext>Bad configuration file. Exiting.</errortext></term>
+ <listitem>
+ <para>The configuration file seems to contain a broken configuration
+ line. Use the <option>--verbose</option> option, to get more info.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para><command>&dhpackage;</command> provides some return codes, that can
+ be used in scripts:</para>
+ <segmentedlist>
+ <segtitle>Code</segtitle>
+ <segtitle>Diagnostic</segtitle>
+ <seglistitem>
+ <seg><errorcode>0</errorcode></seg>
+ <seg>Program exited successfully.</seg>
+ </seglistitem>
+ <seglistitem>
+ <seg><errorcode>1</errorcode></seg>
+ <seg>The configuration file seems to be broken.</seg>
+ </seglistitem>
+ </segmentedlist>
+ </refsect1>
+ <refsect1 id="bugs">
+ <!-- Or use this section to tell about upstream BTS. -->
+ <title>BUGS</title>
+ <para>The program is currently limited to only work
+ with the <package>foobar</package> library.</para>
+ <para>The upstreams <acronym>BTS</acronym> can be found
+ at <ulink url="http://bugzilla.foo.tld"/>.</para>
+ </refsect1>
+ <refsect1 id="see_also">
+ <title>SEE ALSO</title>
+ <!-- In alpabetical order. -->
+ <para><citerefentry>
+ <refentrytitle>bar</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>baz</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry>, <citerefentry>
+ <refentrytitle>foo.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry></para>
+ <para>The programs are documented fully by <citetitle>The Rise and
+ Fall of a Fooish Bar</citetitle> available via the <citerefentry>
+ <refentrytitle>info</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </citerefentry> system.</para>
+ </refsect1>
+</refentry>
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/menu.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/menu.ex
new file mode 100644
index 0000000..8a67e62
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/menu.ex
@@ -0,0 +1,2 @@
+?package(generic-dh-make-2008):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+ title="generic-dh-make-2008" command="/usr/bin/generic-dh-make-2008"
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postinst.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postinst.ex
new file mode 100644
index 0000000..b5f5ca7
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postinst.ex
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postrm.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postrm.ex
new file mode 100644
index 0000000..1d8a18a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/postrm.ex
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/preinst.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/preinst.ex
new file mode 100644
index 0000000..3134ccf
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/preinst.ex
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <new-preinst> `install'
+# * <new-preinst> `install' <old-version>
+# * <new-preinst> `upgrade' <old-version>
+# * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ install|upgrade)
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/prerm.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/prerm.ex
new file mode 100644
index 0000000..4e5dd3f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/prerm.ex
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for generic-dh-make-2008
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <prerm> `remove'
+# * <old-prerm> `upgrade' <new-version>
+# * <new-prerm> `failed-upgrade' <old-version>
+# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+# * <deconfigured's-prerm> `deconfigure' `in-favour'
+# <package-being-installed> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/rules b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/rules
new file mode 100755
index 0000000..92aa2b1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/generic-dh-make-2008.sgml > generic-dh-make-2008.1
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/generic-dh-make-2008.
+ $(MAKE) DESTDIR=$(CURDIR)/debian/generic-dh-make-2008 install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/watch.ex b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/watch.ex
new file mode 100644
index 0000000..e62d18f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/debian/watch.ex
@@ -0,0 +1,23 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/generic-dh-make-2008-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/generic-dh-make-2008/generic-dh-make-2008-(.*)\.tar\.gz
+
+# Uncomment to find new files on GooglePages
+# http://example.googlepages.com/foo.html generic-dh-make-2008-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/fill-values b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/fill-values
new file mode 100644
index 0000000..ef7a896
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/fill-values
@@ -0,0 +1,7 @@
+Testname: generic-dh-make-2008
+Skeleton: upload-builder-only
+Author: Russ Allbery <rra@debian.org>
+Package-Architecture: any
+Dh-Compat-Level: 7
+Description: Generic dh_make template generated in 2008
+Default-Build-Depends: debhelper (>= [% $dh_compat_level %]~)
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/Makefile b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/Makefile
new file mode 100644
index 0000000..4f762d8
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/Makefile
@@ -0,0 +1,4 @@
+# Stub Makefile that's just enough so that the default rules file doesn't
+# error out.
+
+clean install:
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/README b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/README
new file mode 100644
index 0000000..6a3c009
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/orig/README
@@ -0,0 +1,13 @@
+dh_make 0.46 test
+=================
+
+This is the results of running dh_make 0.46 on an upstream tarball
+containing only this file. It's a useful test for the various dh_make
+template and boilerplate tags, as well as many tags for ways of doing
+things dh_make used to promote but are now deprecated or old debhelper
+commands that are now deprecated.
+
+Please don't modify anything about the files in this package; instead, add
+new tags as needed when Lintian adds new checks. This test case is
+intended to continue to be a test of Lintian's handling of old and
+template packages.
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/pre-build.in b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/pre-build.in
new file mode 100755
index 0000000..bbdb5cb
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/build-spec/pre-build.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# not using any templates, but dh_clean requires compat
+
+echo "[% $dh_compat_level %]" > "$1/debian/compat"
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/desc b/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/desc
new file mode 100644
index 0000000..8b1333e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/desc
@@ -0,0 +1,4 @@
+Testname: generic-dh-make-2008
+Check: debian/watch
+See-Also:
+ Bug#497347
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/hints b/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/hints
new file mode 100644
index 0000000..3e324c4
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/hints
@@ -0,0 +1 @@
+generic-dh-make-2008 (source): debian-watch-file-is-missing
diff --git a/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/post-test b/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/generic-dh-make-2008/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..57a489c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description uses only UTF-8 high bytes chars.
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/eval/desc b/t/recipes/checks/debian/watch/legacy-foo++/eval/desc
new file mode 100644
index 0000000..b8bd838
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/eval/hints b/t/recipes/checks/debian/watch/legacy-foo++/eval/hints
new file mode 100644
index 0000000..5607bd3
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (source): debian-watch-file-in-native-package [debian/watch]
diff --git a/t/recipes/checks/debian/watch/legacy-foo++/eval/post-test b/t/recipes/checks/debian/watch/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..a12fc8c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,57 @@
+maintainer-scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * Doing an upload for QA but I fail to give it a correct version number,
+ have some uploaders, and also fail to mention it... Bad me ;)
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:05:29 +0200
+
+maintainer-scripts (6.1) unstable; urgency=low
+
+ * I made this entry on my local PC, oops ;)
+
+ -- Jeroen van Wolffelaar <jeroen@mordor> Sat, 21 Feb 2004 18:29:37 +0100
+
+maintainer-scripts (6) unstable; urgency=low
+
+ * added ldconfig calls to postrm to check test the postrm tests
+ from shared-libs
+
+ -- Frank Lichtenheld <djpig@debian.org> Sat, 21 Feb 2004 18:29:36 +0100
+
+maintainer-scripts (5) unstable; urgency=low
+
+ * added bash style arrays to postinst, this one is for you Torsten (-:
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Fri, 30 Mar 2001 23:27:06 -0800
+
+maintainer-scripts (4) unstable; urgency=low
+
+ * added a here document to the prerm, along with two more bashisms
+ * made postrm a bash script to check that bash scripts are not searched
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Mon, 26 Feb 2001 13:02:57 -0800
+
+maintainer-scripts (3) unstable; urgency=low
+
+ * Added check for '.' called as '. foo || bar', lintian 1.11.15 failed this
+ thinking the '||' was a argument.
+ * also added an invalid call to '. foo bar'
+ * postinst now has a space between the #! and /bin/sh to test the interpreter
+ checking code.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 9 Jan 2001 23:06:25 -0800
+
+maintainer-scripts (2) unstable; urgency=low
+
+ * Fix location of changelog.
+ * prerm and postrm do 'update-alternatives --remove'; should only complain
+ about postrm.
+
+ -- Colin Watson <cjw44@flatline.org.uk> Fri, 29 Dec 2000 06:01:24 +0000
+
+maintainer-scripts (1) unstable; urgency=low
+
+ * Initial version
+ * postinst and prerm set the usr/doc symlink
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..63dd2db
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/control.in
@@ -0,0 +1,18 @@
+Source: maintainer-scripts
+Section: misc
+Priority: optional
+Maintainer: QA group <packages@qa.debian.org>
+Uploaders: Anyone but Jeroen <jeroen@wolffelaar.nl>
+Build-Depends: [% $build_depends %]
+Standards-Version: 3.1.1
+Rules-Requires-Root: binary-targets
+XS-Dm-Upload-Allowed: Yes
+
+Package: maintainer-scripts
+Architecture: [% $package_architecture %]
+Depends: test
+Description: test lintian's maintainer script checks
+ 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/debian/watch/legacy-maintainer-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..e56ed3b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postinst
@@ -0,0 +1,181 @@
+#! /bin/sh -e
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/maintainer-scripts -a -d /usr/share/doc/maintainer-scripts ]; then
+ ln -sf ../share/doc/maintainer-scripts /usr/doc/maintainer-scripts
+ fi
+fi
+
+# valid
+. /usr/share/lintian/shell || exit 0
+. /usr/share/lintian/shell >/dev/null
+. /usr/share/lintian/shell 2>/dev/null
+. /usr/share/lintian/shell </dev/null
+. "$(dirname $0)/shell" ; bar
+# invalid
+. /usr/share/lintian/shell foo
+. "$(dirname $0)/shell" bar
+
+print "Hit enter to continue"
+read
+
+H[0]='this is a string'
+echo ${H[0]}
+echo "Index 0's length is ${#H[0]}"
+echo "All of the array is: ${H[@]}"
+
+install-info /usr/share/info/foo \
+ --quiet \ # make it so
+ --section foo
+
+echo Please use update-rc.d or invoke-rc.d to set up blah blah.
+
+chown root.root /usr/share/doc/maintainer-scripts/changelog
+chown root:root /usr/share/doc/maintainer-scripts/changelog
+
+$FOO=bar
+update-rc.d foo defaults >/dev/null
+update-rc.d $FOO defaults
+update-rc.d foo remove
+
+# valid
+FOO=/tmp
+FOO=/var/tmp
+: ${FOO:=/tmp}
+FOO=`mktemp /tmp/scripts.XXXXXX`
+rm "$FOO"
+FOO=`tempfile -n/tmp/scripts.tmp`
+mkdir /var/tmp/scripts
+FOO="/tmp/false.positive.XXXXXX"
+# invalid
+echo foo >>/tmp/scripts.tmp
+rm /tmp/scripts.tmp
+rmdir /var/tmp/scripts
+
+# invalid, maintainer-script-hides-init-failure
+invoke-rc.d foo start || exit 0
+
+# The right way to invoke an rc script
+if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d package start
+else
+ /etc/init.d/package start
+fi
+
+# Example ucf invocation.
+ucf /usr/share/foo/configuration /etc/foo.conf
+
+# Calling gconftool directly.
+gconftool-2 --makefile-install-rule foo.schema
+
+# Calling gconf-schemas with no dependency.
+gconf-schemas --register foo.schema
+
+# Calling update-xmlcatalog with no dependency.
+update-xmlcatalog --add --type system --id "/usr/share/sgml/dtd/foo" \
+ --package maintainer-scripts --root
+
+# Maintainer scripts shouldn't touch /var/lib/dpkg/status. This is the old
+# recipe from the dpkg wiki that should be replaced with dpkg-query.
+sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/conffile'{s/.* //;p}}\" \
+ /var/lib/dpkg/status
+
+# Don't modify these files.
+echo 'broken 6714/tcp' >> /etc/services
+cp /nonexistent /etc/protocols
+mv /usr/share/doc/rpc /etc/rpc
+
+# But this is okay.
+cp /etc/protocols /etc/protocols.new
+
+# This is also wrong.
+echo 'broken' > /etc/inetd.conf
+cp /etc/inetd.conf.new /etc/inetd.conf
+
+# But this is fine.
+cp /etc/inetd.conf /srv/chroot/etc/inetd.conf
+
+# Deprecated
+install-sgmlcatalog --install package
+install-sgmlcatalog --remove package
+
+# This too is a heredoc.
+some-program > /etc/config-file <<'EOF'
+echo "All of the array is: ${H[@]}"
+EOF
+
+# But this isn't.
+cat '<<EOF'
+echo "All of the array is: ${H[@]}"
+EOF
+
+# This is a heredoc
+cat <<-EOF
+echo "All of the array is ${H[@]}"
+EOF
+
+# As is this
+cat <<';'
+echo "All of the array is ${H[@]}"
+;
+
+# and this
+cat <<foo
+echo "All of the array is ${H[@]}"
+foobar
+echo $HOSTNAME
+foo
+
+# and again
+cat <<\bar
+echo "All of the array is ${H[@]}"
+bar
+
+# yet another
+cat <<"x++"
+echo "All of the array is ${H[@]}"
+x++
+
+# Recognize single quotes even if they start at the beginning of a line.
+echo not a bashism \
+'/{ptex,tex}/{amstex,plain,generic,}'
+
+# More bashisms.
+echo -e 'foo\n'
+echo "${!foo}"
+cat $(\< file)
+select foo in a b ; do echo $foo ; done
+cnt=$((cnt + 1))
+if false ; then
+ exec -l /bin/sh
+ exec -c /bin/sh
+ exec -a foo /bin/sh
+fi
+let cnt++
+if test -a /etc/default ; then
+ echo "$RANDOM|stuff"
+fi
+
+# Calling start-stop-daemon directly in an init script.
+start-stop-daemon --start --quiet --name foo --startas /usr/bin/foo
+
+# But stopping it is fine -- we may be working around something else.
+start-stop-daemon --stop --quiet --name foo --startas /usr/bin/foo
+
+# Deprecated chown use with flags.
+chown -R root.root /usr/share/doc/maintainer-scripts
+
+case $mainscript in
+ /usr/bin/foo) foobarbaz;;
+esac
+
+/usr/bin/baz; echo bar
+
+# Some comment checking
+# This should flag $RANDOM
+test $# -gt 2 && echo $RANDOM
+# But these shouldn't
+test 1=1 # echo $RANDOM
+(test 1=1)# echo $RANDOM
+test 1=1;# echo $RANDOM
+backgroundtask &#echo $RA
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..c0aaf19
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/postrm
@@ -0,0 +1,47 @@
+#!/bin/bash
+#set -e
+
+update-alternatives --remove dummy /usr/bin/dummy-alternative
+
+# Normally read in a maintainer script is not kosher, but here we're going
+# to do it only if debconf doesn't exist.
+if ! test -f /usr/share/debconf/confmodule ; then
+ echo "Hit enter"
+ read
+fi
+
+# neither of the following should be detected as postrm-unsafe-ldconfig
+# intended, without quotes
+ if [ "$1" = remove ]; then
+ ldconfig
+ fi
+# reversed, many whitespace
+if [ 'remove' = "$1" ]
+then
+
+ ldconfig
+fi
+
+[ "remove" ="$1" ] && ldconfig
+
+update-rc.d bar remove
+
+# Shouldn't provoke an error despite no invoke-rc.d.
+echo "/etc/init.d/package stop to stop something"
+
+# Shouldn't require a ucf dependency. Unfortunately, right now that's
+# just because postrm isn't checked, not because we ensure that the
+# invocation is conditional.
+if which ucf >/dev/null; then
+ ucf --purge /etc/foo.conf
+fi
+
+# This isn't allowed.
+rm /tmp/foo /dev/device
+rm /dev/device1
+
+# But this is okay.
+rm /tmp/foo > /dev/null
+
+# Not allowed here even with remove.
+install-sgmlcatalog --remove package
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..6058978
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/preinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+update-rc.d foo remove
+update-rc.d bar defaults
+
+# Obsolete dpkg assertions.
+dpkg --assert-support-predepends || exit 1
+dpkg --assert-working-epoch || exit 1
+dpkg --assert-long-filenames || exit 1
+dpkg --assert-multi-conrep || exit 1
+
+/bin/grep -E --mmap "^Package: foo$" /var/lib/dpkg/status
+
+# continuation lines
+update-alternatives --install /usr/bin/fakeroot fakeroot \
+ /usr/bin/fakeroot-ng 5 \
+ --slave /usr/share/man/man1/fakeroot.1.gz \
+ fakeroot.1.gz /usr/share/man/man1/fakeroot-ng.1.gz
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/prerm b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/prerm
new file mode 100644
index 0000000..076ecaf
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/prerm
@@ -0,0 +1,188 @@
+#!/bin/sh
+
+if [ "$1" != "upgrade" ]; then
+ update-alternatives --remove dummy /usr/bin/dummy-alternative
+fi
+
+if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the
+n
+ rm -f /usr/doc/maintainer-scripts
+fi
+
+cat <<EOF
+This is all really bad bash specific code!!!
+read
+source /bar/baz/bat foo
+EOF
+
+# ok, back to checking
+if [ "$2" == "purge" ]; then
+ rm -r /bar/baz
+fi
+
+function foo( ) {
+ # but not here: local
+ local bar
+ echo "foo" &>/dev/null
+}
+
+source $FOO
+
+trap "echo hi" EXIT HUP 3
+
+if [[ "$2" = "purge" ]]; then
+ kill -HUP $$
+fi
+
+#this is ok though
+if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then
+ echo 1
+fi
+
+update-rc.d foo remove
+
+# More false positives for bashism checks. None of these are errors.
+echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//'
+echo "$line" | grep -q "${fonts},${foo}"
+echo '$[1+2]'
+printf "foo |& bar"
+perl -e "print q( kill -HUP $? )"
+
+# Still catch disallowed expansions in double-quotes, though.
+echo "${line:3:1}"
+
+# The wrong way to run an init script (no invoke-rc.d).
+/etc/init.d/package stop
+
+# This is the only install-sgmlcatalog call that's allowed.
+install-sgmlcatalog --quiet --remove package
+
+# More bashisms checks
+
+read -x foo
+read -x
+read -r foo
+read foo
+read
+
+echo "a\\b"
+echo 'a\nb'
+
+echo "${UID}"
+echo "$EUID"
+echo "$SHLVL"
+echo "$DIRSTACK"
+echo "$SECONDS"
+echo "$BASH"
+echo "$BASH_FOO"
+echo "$SHELLOPTS"
+echo "$PIPESTATUS"
+
+bar="$(cut '-d|' -f2 <<< "$foo")"
+
+VAR=1
+VAR+=a
+
+echos() {
+ echo -n -e "bar"
+ echo -e -n "bar"
+ echo -en "bar"
+ echo -ne "bar"
+ echo "bar"
+ echo "echo -e foo"
+}
+
+ech.os() {
+ echo foo >& 2
+ echo foo >&bar
+ echo foo >& bar
+}
+
+echoes() {
+ echo "abc\nxyz"
+ echo 'xyz\rabc'
+ echo foo\cbar
+
+ echo -e "abc\nxyz"
+ echo -net 'xyz\rabc'
+ echo -e foo\cbar
+}
+
+foobar.() {
+ suspend x
+ suspended x
+ caller x
+ complete x
+ compgen x
+ declare -a foo
+}
+
+.foobar() {
+ typeset -x bar
+ disown 1
+ builtin foo
+ set -B
+ alias -p
+ unalias -a
+}
+
+IFS="()"
+
+ulimit
+shopt
+type -v bar
+time ls
+dirs
+diff <(tac a) <(tac b)
+
+pushd
+
+local foo=bar
+local -x foo
+
+popd
+
+readonly -f
+
+echo bar > /dev/tcp
+export x
+export -x x
+export -p x
+
+sh -x
+sh -D
+sh --foo
+sh +O
+
+# Brace expansion checks
+echo {a,b}
+echo {abc},{bcd}
+
+foobar()
+{
+ # This is a function
+}
+
+ foo.bar()
+(
+ # This is a function with a bad name
+)
+
+foobar@()
+{
+ # As is this
+}
+
+# This is ok
+read -r foo
+# but these aren't
+read -r
+read -p "Would you like to restart the service?" foo bar
+read --fish
+
+set -e
+
+source "$BAR"
+source '$BAR'
+source ~/bar
+source a
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/rules b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..5fcef00
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/tmp/DEBIAN
+ install -m 0755 debian/preinst debian/tmp/DEBIAN
+ install -m 0755 debian/postinst debian/tmp/DEBIAN
+ install -m 0755 debian/prerm debian/tmp/DEBIAN
+ install -m 0755 debian/postrm debian/tmp/DEBIAN
+ install -m 0644 debian/triggers debian/tmp/DEBIAN
+ install -d debian/tmp/usr/share/doc/maintainer-scripts
+ install -m 0644 debian/changelog \
+ debian/tmp/usr/share/doc/maintainer-scripts/changelog
+ gzip -n -9 debian/tmp/usr/share/doc/maintainer-scripts/changelog
+ dpkg-gencontrol -isp
+ dpkg --build debian/tmp ..
+
+binary: binary-arch binary-indep
+
+# Make sure we see dh_clean even in a rule clean depends on. Not the point of
+# this test suite, but a convenient place to put it.
+clean: clean1 clean2 clean3
+clean1:
+clean2:
+ dh_clean
+clean3:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/triggers b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/triggers
new file mode 100644
index 0000000..f627094
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/triggers
@@ -0,0 +1,4 @@
+# Example triggers file
+activate foo
+
+interest bar
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/watch b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..430eea3
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/debian/watch
@@ -0,0 +1,11 @@
+# A whitespace is fine for uscan:
+ version=5
+
+# Following line should not be matched:
+#opts=uversionmangle=s/$/+debian/,dversionmangle=s/foo/bar/ \
+# Following one is incorrect, there's a missing backslash at the end
+opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/
+
+# 'active' is useless here, but it works anyway
+options=active \
+http://domain.tld/foo-(.+)\.tar\.gz \ No newline at end of file
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/fill-values b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/fill-values
new file mode 100644
index 0000000..c281e87
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Skeleton: upload-non-native
+Testname: legacy-maintainer-scripts
+Source: maintainer-scripts
+Version: 7+dfsg-0.1
+Description: Legacy test "maintainer-scripts"
+Extra-Build-Depends: dash (>= 0.5.10.2)
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/desc b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/desc
new file mode 100644
index 0000000..15e1052
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-maintainer-scripts
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/hints b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/hints
new file mode 100644
index 0000000..900fab6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/hints
@@ -0,0 +1,4 @@
+maintainer-scripts (source): debian-watch-uses-insecure-uri http://domain.tld/foo-(.+)\.tar\.gz [debian/watch:11]
+maintainer-scripts (source): debian-watch-not-mangling-version opts=uversionmangle=s/$/+dfsg/,dversionmangle=s/foo/bar/ [debian/watch:7]
+maintainer-scripts (source): debian-watch-not-mangling-version options=active http://domain.tld/foo-(.+)\.tar\.gz [debian/watch:11]
+maintainer-scripts (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/post-test b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-maintainer-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/eval/desc b/t/recipes/checks/debian/watch/legacy-scripts/eval/desc
new file mode 100644
index 0000000..dc395d0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/eval/hints b/t/recipes/checks/debian/watch/legacy-scripts/eval/hints
new file mode 100644
index 0000000..eb22aa3
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/eval/hints
@@ -0,0 +1,7 @@
+scripts (source): debian-watch-uses-insecure-uri http://qa.debian.org/watch/sf.php?project=foo [debian/watch:5]
+scripts (source): debian-watch-uses-insecure-uri http://ftp.sf.net/foo/foo_bar(.+)\.Z [debian/watch:8]
+scripts (source): debian-watch-mangles-debian-version-improperly opts="uversionmangle=s/$/ds/" http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5]
+scripts (source): debian-watch-lacks-sourceforge-redirector http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate [debian/watch:8]
+scripts (source): debian-watch-file-uses-deprecated-sf-redirector-method http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5]
+scripts (source): debian-watch-file-specifies-old-upstream-version 5 [debian/watch]
+scripts (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/legacy-scripts/eval/post-test b/t/recipes/checks/debian/watch/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/debian/watch b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/debian/watch
new file mode 100644
index 0000000..6cc9db4
--- /dev/null
+++ b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/debian/watch
@@ -0,0 +1,11 @@
+# watch file with no version mangling, even though there's a dfsg in the
+# package version number.
+
+version=2
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
+
+# version mangling is not needed in this case:
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz 0.24 uupdate
+
+# version mangling *is* needed in this case:
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/fill-values b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/fill-values
new file mode 100644
index 0000000..a804d99
--- /dev/null
+++ b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: repack-indicator-in-debian-revision
+Skeleton: upload-non-native
+Version: 1-debian1
+Description: Avoid false positives in Devuan (#931846)
diff --git a/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/desc b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/desc
new file mode 100644
index 0000000..cff1b33
--- /dev/null
+++ b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/desc
@@ -0,0 +1,2 @@
+Testname: repack-indicator-in-debian-revision
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints
new file mode 100644
index 0000000..e758710
--- /dev/null
+++ b/t/recipes/checks/debian/watch/repack-indicator-in-debian-revision/eval/hints
@@ -0,0 +1 @@
+repack-indicator-in-debian-revision (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/comments-only/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/comments-only/build-spec/debian/watch
new file mode 100644
index 0000000..b0c64af
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/comments-only/build-spec/debian/watch
@@ -0,0 +1,2 @@
+# explanation for why this file is empty
+# presumably similar to the file that gave rise to Bug#965385
diff --git a/t/recipes/checks/debian/watch/standard/comments-only/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/comments-only/build-spec/fill-values
new file mode 100644
index 0000000..f599495
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/comments-only/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: comments-only
+Skeleton: source-non-native
+Description: Only comments in watch file (false positive)
diff --git a/t/recipes/checks/debian/watch/standard/comments-only/eval/desc b/t/recipes/checks/debian/watch/standard/comments-only/eval/desc
new file mode 100644
index 0000000..7edcb5e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/comments-only/eval/desc
@@ -0,0 +1,7 @@
+Testname: comments-only
+Check: debian/watch/standard
+Test-Against:
+ missing-debian-watch-file-standard
+See-Also:
+ Bug#965385,
+ Bug#992569
diff --git a/t/recipes/checks/debian/watch/standard/comments-only/eval/hints b/t/recipes/checks/debian/watch/standard/comments-only/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/comments-only/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/README.Debian b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/changelog.in
new file mode 100644
index 0000000..f838939
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/changelog.in
@@ -0,0 +1,31 @@
+foo++ ([% $version %]) [% $distribution %]; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2003 01:35:47 +0200
+
+foo++ (4) unstable; urgency=low
+
+ * This changelog now includes a ISO-8859-1 character: 'ä'
+
+ -- Frank Lichtenheld <djpig@debian.org> Fri, 5 Mar 2004 13:41:39 +0100
+
+foo++ (3) unstable; urgency=low
+
+ * Set maintainers + uploaders incorrectly
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Fri, 5 Mar 2004 04:20:24 +0100
+
+foo++ (2) unstable; urgency=low
+
+ * Added a foo++-helper package to try and catch even more ++ bugs.
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Sat, 10 Feb 2001 23:16:17 -0800
+
+foo++ (1) unstable; urgency=low
+
+ * Initial version
+
+ -- Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 16 Nov 2000 09:11:40 -0800
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/control b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/control
new file mode 100644
index 0000000..57a489c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/control
@@ -0,0 +1,30 @@
+Source: foo++
+Section: misc
+Priority: optional
+Maintainer: Lintian Maintainer <debian-qa@lists.debian.org>
+Uploaders: Marc 'HE' Brockschmidt <he@unknown>, Jeroen van Wolffelaar<jeroen@localhost.localdomain>,
+ Frank <djpig@debian.org>, Yama@gotchi, Josip,
+ I am afraid of spam and think this helps <no_spam_please AT debian.org>
+Standards-Version: 3.1.1
+XS-Dm-Upload-Allowed: no
+
+Package: foo++
+Architecture: all
+Build-Depends: test
+Depends: test, libssl0.9.7
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name.
+ .
+ This description uses only UTF-8 high bytes chars.
+
+Package: foo++-helper
+Architecture: all
+Depends: test, foo++
+Description: see how lintian reacts to plus signs in the package name
+ Regression test to see if lintian tests work on a package with plus signs in
+ its name. This has /usr/share/doc links to foo++ to trigger even more checks.
+ .
+ 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.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/copyright b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/copyright
new file mode 100644
index 0000000..e2d6d93
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/copyright
@@ -0,0 +1,7 @@
+A reference to /usr/share/common-licenses/GPL to make it look like this
+package is under the GPL and trigger the OpenSSL warning.
+
+However, there is also a reference to /usr/share/common-licenses/LGPL, so
+who knows what bits actually depend on libssl.
+
+Copr. 2007 Somebody.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/rules b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/rules
new file mode 100755
index 0000000..63bb4db
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+foo=foo++
+helper=foo++-helper
+
+build-arch:
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+
+binary-indep:
+ install -d debian/$(foo)/DEBIAN
+ install -d debian/$(foo)/usr/share/doc/$(foo)
+ install -m 644 debian/changelog \
+ debian/$(foo)/usr/share/doc/$(foo)/changelog
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ install -m 644 debian/README.Debian \
+ debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -n -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
+ dpkg --build debian/$(foo) ..
+
+ install -d debian/$(helper)/DEBIAN
+ install -d debian/$(helper)/usr/share/doc/
+ ln -sf $(foo) debian/$(helper)/usr/share/doc/$(helper)
+ dpkg-gencontrol -isp -p$(helper) -Pdebian/$(helper)
+ dpkg --build debian/$(helper) ..
+
+binary: binary-arch binary-indep
+
+clean:
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/watch
new file mode 100644
index 0000000..26f9a3c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/debian/watch
@@ -0,0 +1,6 @@
+# A comment \
+version=0
+
+# uscan does not interpret the backslash above, it is just part of the comment
+
+http://domain.tld/file-(.*)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/fill-values
new file mode 100644
index 0000000..86d43bc
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/build-spec/fill-values
@@ -0,0 +1,5 @@
+Skeleton: upload-native
+Testname: legacy-foo++
+Source: foo++
+Version: 5
+Description: Legacy test "foo++"
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/desc b/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/desc
new file mode 100644
index 0000000..fd35332
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-foo++
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/hints b/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/hints
new file mode 100644
index 0000000..6322360
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/hints
@@ -0,0 +1 @@
+foo++ (source): unknown-debian-watch-file-standard 0 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/post-test b/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-foo++/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/changelog.in
new file mode 100644
index 0000000..935c633
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/changelog.in
@@ -0,0 +1,41 @@
+scripts ([% $version %]) [% $distribution %]; urgency=low
+
+ * I'm also not able to write my name.
+ * Added a script in /etc/Xsession.d
+ * Bizarre version number courtesy of
+ https://wiki.ubuntu.com/SecurityUpdateProcedures#Prepare
+
+ -- Mark 'HE' Brokschmitt <he@debian.org> Thu, 23 Jun 2005 14:32:39 +0200
+
+scripts (5-1) unstable; urgency=low
+
+ * I'm making a typo in my own name... And I want lintian to warn me about
+ it.
+
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl> Sun, 18 Apr 2004 02:26:34 +0200
+
+scripts (4-1) unstable; urgency=low
+
+ * Add new example to check that not executable files with a shebang line
+ called *in don't trigger the script-not-executable warning.
+
+ -- Marc 'HE' Brockschmidt <he@debian.org> Wed, 14 Apr 2004 19:44:04 +0200
+
+scripts (3-3) unstable; urgency=low
+
+ * Add suidperlfoo and some code in debian/rules to
+ check the new suidperl checks
+
+ -- Frank Lichtenheld <djpig@debian.org> Wed, 31 Mar 2004 21:06:20 +0000
+
+scripts (2-1) unstable; urgency=low
+
+ * Add tkfoo script for tk checkings
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 21 Feb 2004 17:13:36 +0100
+
+scripts (1-0) unstable; urgency=low
+
+ * Initial version
+
+ -- Lintian Maintainers <lintian-maint@debian.org> Sat, 10 Feb 2001 15:37:31 -0800
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/control.in b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/control.in
new file mode 100644
index 0000000..75a521f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/control.in
@@ -0,0 +1,16 @@
+Source: scripts
+Section: interpreters
+Priority: optional
+Maintainer: Lintian Maintainers <lintian-maint@debian.org>
+Uploaders: Jeroen van Wolfelaar <jeroen@wolffelaar.nl>, Marc 'HE' Brockschmidt <he@debian.org>
+Build-Depends-Indep: dpatch
+Standards-Version: 3.2.1
+
+Package: scripts
+Architecture: [% $package_architecture %]
+Depends: test, ruby1.8, build-essential, libssl0.9.7, php7.0-cli
+Recommends: tk8.4 | wish
+Description: test lintian's script file checks
+ 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.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/copyright b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/copyright
new file mode 100644
index 0000000..ad8a119
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/copyright
@@ -0,0 +1,5 @@
+This file contains the phrase "under the same terms as Perl itself" to
+trigger warnings about not having common-licenses references.
+
+This file contains the phrase "public domain" which should suppress
+warnings about no copyright date.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list
new file mode 100644
index 0000000..3b9d37e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list
@@ -0,0 +1,11 @@
+01_not_here_right_now.dpatch
+
+# some comment
+/* some more
+ elaborate comment
+ which needs DPATCH_OPTION_CPP=1
+ */02_i_dont_have_a_description.patch 03_specified_without_dpatch
+
+// and again a comment
+
+04_i_dont_have_a_description_either.patch
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list.sparc b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list.sparc
new file mode 100644
index 0000000..8b47ab3
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00list.sparc
@@ -0,0 +1 @@
+01_some_other_patch_thats_not_in_the_package.dpatch
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00options b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00options
new file mode 100644
index 0000000..57ffeb6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/00options
@@ -0,0 +1 @@
+DPATCH_OPTION_CPP=1
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
new file mode 100644
index 0000000..9279c1b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/02_i_dont_have_a_description.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_i_dont_have_a_description.patch.dpatch by Marc 'HE' Brockschmidt <Marc 'HE' Brockschmidt <he@debian.org>>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
new file mode 100644
index 0000000..8303ac6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/03_specified_without_dpatch.dpatch
@@ -0,0 +1,5 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Listed in 00list without .dpatch suffix.
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
new file mode 100644
index 0000000..b603f16
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/patches/04_i_dont_have_a_description_either.patch
@@ -0,0 +1,7 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_i_dont_have_a_description_either.patch by Adam D. Barratt <adam@adam-barratt.org.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP:
+
+@DPATCH@
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postinst b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postinst
new file mode 100644
index 0000000..7c5baf1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -x "/etc/init.d/lsb-broken" ] ; then
+ update-rc.d lsb-broken defaults >/dev/null
+fi
+if [ -x "/etc/init.d/no-lsb" ] ; then
+ update-rc.d no-lsb defaults >/dev/null
+fi
+if [ -x "/etc/init.d/skeleton" ] ; then
+ update-rc.d skeleton defaults >/dev/null
+fi
+if [ -x "/etc/init.d/lsb-other" ] ; then
+ update-rc.d lsb-other defaults >/dev/null
+fi
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postrm b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postrm
new file mode 100644
index 0000000..8fa75a2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/postrm
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = purge ] ; then
+ update-rc.d lsb-broken remove >/dev/null
+ update-rc.d no-lsb remove >/dev/null
+ update-rc.d skeleton remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+ update-rc.d lsb-other remove >/dev/null
+fi
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/preinst b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/preinst
new file mode 100644
index 0000000..0799557
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+set -x
+
+#
+# Some comments here
+#
+
+# This serves as an example of an "empty" script, so
+# please do not add any real code here, thank you :)
+
+#DEBHELPER#
+
+exit 0
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/rules b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/rules
new file mode 100755
index 0000000..ee3677e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/rules
@@ -0,0 +1,105 @@
+#!/usr/bin/make -f
+
+tmp=debian/tmp
+
+build-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+build-indep:
+
+build: build-arch build-indep
+
+binary-arch:
+ echo "Hi, in an arch: all package, I am a bug!"
+
+binary-indep:
+ install -d $(tmp)/usr/bin/
+ install -d $(tmp)/etc/X11/Xsession.d/
+ install -d $(tmp)/etc/init.d/
+ install -d $(tmp)/etc/csh/login.d/
+ install -d $(tmp)/etc/fish.d/
+ install -d $(tmp)/usr/share/scripts/
+ install -d $(tmp)/usr/share/doc/scripts/
+ install -d $(tmp)/usr/lib/cgi-bin
+ install -d $(tmp)/usr/src/scripts
+ install -d $(tmp)/DEBIAN
+
+ install -m 755 csh-foo $(tmp)/etc/csh/login.d/
+ install -m 755 envfoo $(tmp)/usr/bin/
+ install -m 755 fish-foo $(tmp)/etc/fish.d/
+ install -m 755 jruby-broken $(tmp)/usr/bin/
+ install -m 755 perlfoo $(tmp)/usr/bin/
+ install -m 755 rubyfoo $(tmp)/usr/bin/
+# This doesn't use "env" but should also trigger script-in-usr-share-doc
+ install -m 755 rubyfoo $(tmp)/usr/share/doc/scripts/
+ install -m 755 make-foo $(tmp)/usr/bin/
+ install -m 755 lefty-foo $(tmp)/usr/bin/
+ install -m 4751 perlfoo $(tmp)/usr/bin/suidperlfoo2
+ install -m 755 sh-broken $(tmp)/usr/bin/
+ install -m 4555 suidperlfoo $(tmp)/usr/bin/
+ install -m 755 tkfoo $(tmp)/usr/bin/
+ install -m 755 wishfoo $(tmp)/usr/bin/
+ install -m 644 xsession-test $(tmp)/etc/X11/Xsession.d/
+
+# Permissions here aren't part of what's being tested, but let us exercise
+# some other errors.
+ install -m 755 perl-bizarre-1 $(tmp)/usr/bin/
+ install -m 750 perl-bizarre-2 $(tmp)/usr/bin/
+ install -m 754 perl-bizarre-3 $(tmp)/usr/bin/
+ install -m 705 guile-bizarre $(tmp)/usr/bin/
+
+# First one should produce a warning; second one shouldn't.
+ install -m 755 gccbug.dpatch $(tmp)/usr/share/scripts/
+ install -m 755 gccbug.dpatch $(tmp)/usr/src/scripts/
+
+ install -m 644 init-skeleton $(tmp)/etc/init.d/skeleton
+ install -m 755 init-no-lsb $(tmp)/etc/init.d/no-lsb
+ install -m 755 init-lsb-broken $(tmp)/etc/init.d/lsb-broken
+ install -m 755 init-lsb-other $(tmp)/etc/init.d/lsb-other
+
+ install -m 755 phpfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpfoo > $(tmp)/usr/share/scripts/php7.0foo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0foo
+
+ install -m 755 phpenvfoo $(tmp)/usr/share/scripts/
+ sed 's/php$$/php7.0/' phpenvfoo > $(tmp)/usr/share/scripts/php7.0envfoo
+ chmod 755 $(tmp)/usr/share/scripts/php7.0envfoo
+
+ echo "#!/usr/bin/perl" >> $(tmp)/usr/share/scripts/foobar.in
+ chmod 644 $(tmp)/usr/share/scripts/foobar.in
+
+ touch $(tmp)/usr/share/scripts/mono.exe
+ chmod 755 $(tmp)/usr/share/scripts/mono.exe
+
+ echo "#!/bin/sh" > $(tmp)/usr/share/scripts/foo\$$bar
+ chmod 755 $(tmp)/usr/share/scripts/foo\$$bar
+
+ echo "#!/bin/sh" > $(tmp)/usr/lib/cgi-bin/cgi-script
+ chmod 755 $(tmp)/usr/lib/cgi-bin/cgi-script
+
+ echo "#!/bin/sh" > $(tmp)/usr/bin/test.sh
+ chmod 755 $(tmp)/usr/bin/test.sh
+
+
+ dh_testroot # dummy to test missing debhelper dependency
+
+
+ install -m 644 debian/changelog $(tmp)/usr/share/doc/scripts/changelog.Debian
+ gzip -n -9 $(tmp)/usr/share/doc/scripts/changelog.Debian
+ install -m 644 debian/copyright $(tmp)/usr/share/doc/scripts/copyright
+
+ install -m 644 debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
+ install -m 755 debian/preinst $(tmp)/DEBIAN/preinst
+ install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
+ install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+ touch $(tmp)/DEBIAN/prerm
+ chmod 755 $(tmp)/DEBIAN/prerm
+ dpkg-gencontrol -isp
+ dpkg --build $(tmp) ..
+
+binary: binary-arch binary-indep
+
+clean:
+ rm -rf debian/files $(tmp) debian/substvars
+
+.PHONY: build-arch build-indep build binary-arch binary-indep binary clean
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/scripts.conffiles b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/scripts.conffiles
new file mode 100644
index 0000000..01a371a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/scripts.conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lsb-broken
+/etc/init.d/lsb-other
+/etc/init.d/no-lsb
+/etc/X11/Xsession.d/xsession-test
+/etc/csh/login.d/csh-foo
+/etc/fish.d/fish-foo
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/watch
new file mode 100644
index 0000000..dba5815
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/debian/watch
@@ -0,0 +1,8 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate \ No newline at end of file
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/fill-values
new file mode 100644
index 0000000..8a68457
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/fill-values
@@ -0,0 +1,6 @@
+Testname: legacy-scripts
+Source: scripts
+Version: 6ds-1ubuntu0.5.10.1
+Package-Architecture: all
+Skeleton: upload-non-native
+Description: Legacy test "scripts"
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/csh-foo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/csh-foo
new file mode 100644
index 0000000..eaf47a1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/csh-foo
@@ -0,0 +1,2 @@
+#! /bin/csh
+
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/envfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/envfoo
new file mode 100755
index 0000000..e005037
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/envfoo
@@ -0,0 +1,4 @@
+#! /bin/env python
+
+if __name__ == '__main__':
+ print 'Hi there'
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/fish-foo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/fish-foo
new file mode 100644
index 0000000..7f59139
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/fish-foo
@@ -0,0 +1,2 @@
+#! /usr/bin/fish
+
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/gccbug.dpatch b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/gccbug.dpatch
new file mode 100755
index 0000000..65cbf37
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/gccbug.dpatch
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+
+# DP: Use sensible-editor instead of vi as fallback editor
+
+# Taken from gcc-4.1-source. Chokes bash -n (due to the patch) despite being
+# a valid dpatch, so don't warn about it if it's in /usr/src.
+
+dir=
+if [ $# -eq 3 -a "$2" = '-d' ]; then
+ pdir="-d $3"
+ dir="$3/"
+elif [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch)
+ patch $pdir -f --no-backup-if-mismatch -p0 < $0
+ ;;
+ -unpatch)
+ patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
+ ;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- gcc/gccbug.in~ 2003-03-01 00:51:42.000000000 +0100
++++ gcc/gccbug.in 2003-03-02 12:08:36.000000000 +0100
+@@ -134,7 +134,7 @@
+ # If they don't have a preferred editor set, then use
+ if [ -z "$VISUAL" ]; then
+ if [ -z "$EDITOR" ]; then
+- EDIT=vi
++ EDIT=/usr/bin/sensible-editor
+ else
+ EDIT="$EDITOR"
+ fi
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/guile-bizarre b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/guile-bizarre
new file mode 100644
index 0000000..70e2c74
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/guile-bizarre
@@ -0,0 +1,6 @@
+#! /bin/sh
+# -*- scheme -*-
+exec guile -s $0 $*
+# Seen in the wild as build-guile-gtk in libguilegtk-1.2-dev (0.31-5.1)
+# Tests script_is_evil_and_wrong
+!#
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-broken b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-broken
new file mode 100644
index 0000000..e4dfa92
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-broken
@@ -0,0 +1,34 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: bad-lsb
+# Required-Start: $local_fs $remote_fs
+# Required-Stop:
+# Default-Start: 1 2 3 4 5
+# Default-Stop: S 0 1 6 X
+# Short-Description: Example Lintian initscript
+# but this can't be continued
+# Description: An example of a bad LSB section in an init script.
+# This continuation is allowed (with spaces).
+# This one is too (with tabs).
+# X-Debian-Foo: Some unknown but valid keyword.
+# Foo: Some invalid keyword.
+
+# Whoops, no terminating line.
+
+# And then we have this duplicate section.
+### BEGIN INIT INFO
+# Required-Start: This one doesn't count.
+### END INIT INFO
+
+# Hey, look at all of those missing actions! But stop isn't missing.
+case "$1" in
+ start|stop)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-other b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-other
new file mode 100644
index 0000000..adb4795
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-lsb-other
@@ -0,0 +1,22 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lsb-other
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Description: This is another LSB script test, which has a missing
+# Short-Description.
+### END INIT INFO
+
+case "$1" in
+ start|stop|restart|reload|force-reload)
+ echo "Blah"
+ ;;
+ *)
+ echo "Usage: foo start" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-no-lsb b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-no-lsb
new file mode 100644
index 0000000..6b994dd
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-no-lsb
@@ -0,0 +1,17 @@
+#! /bin/sh
+# No LSB section, but otherwise okay. (Well, the messages are bad, but we
+# don't check that yet.)
+
+case "$1" in
+ start)
+ echo "Blah starting"
+ ;;
+ stop)
+ echo "Blah stopping"
+ ;;
+ restart|force-reload)
+ echo "Blah restarting"
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-skeleton b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-skeleton
new file mode 100644
index 0000000..c868508
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/init-skeleton
@@ -0,0 +1,150 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: skeleton
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Example Lintian initscript
+# Description: This file should be used to construct scripts to be
+# placed in /etc/init.d.
+### END INIT INFO
+
+# Do NOT "set -e"
+
+# PATH should only include /usr/* if it runs after the mountnfs.sh script
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+DESC="Description of the service"
+NAME=daemonexecutablename
+DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--options args"
+PIDFILE=/var/run/$NAME.pid
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if the package is not installed
+[ -x "$DAEMON" ] || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+#
+# Function that starts the daemon/service
+#
+do_start()
+{
+ # Return
+ # 0 if daemon has been started
+ # 1 if daemon was already running
+ # 2 if daemon could not be started
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ || return 1
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ $DAEMON_ARGS \
+ || return 2
+ # Add code here, if necessary, that waits for the process to be ready
+ # to handle requests from services started subsequently which depend
+ # on this one. As a last resort, sleep for some time.
+}
+
+#
+# Function that stops the daemon/service
+#
+do_stop()
+{
+ # Return
+ # 0 if daemon has been stopped
+ # 1 if daemon was already stopped
+ # 2 if daemon could not be stopped
+ # other if a failure occurred
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ RETVAL="$?"
+ [ "$RETVAL" = 2 ] && return 2
+ # Wait for children to finish too if this is a daemon that forks
+ # and if the daemon is only ever run from this initscript.
+ # If the above conditions are not satisfied then add some other code
+ # that waits for the process to drop all resources that could be
+ # needed by services started subsequently. A last resort is to
+ # sleep for some time.
+ start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
+ [ "$?" = 2 ] && return 2
+ # Many daemons don't delete their pidfiles when they exit.
+ rm -f $PIDFILE
+ return "$RETVAL"
+}
+
+#
+# Function that sends a SIGHUP to the daemon/service
+#
+do_reload() {
+ #
+ # If the daemon can reload its configuration without
+ # restarting (for example, when it is sent a SIGHUP),
+ # then implement that here.
+ #
+ start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+ return 0
+}
+
+case "$1" in
+ start)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ do_start
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ #reload|force-reload)
+ #
+ # If do_reload() is not implemented then leave this commented out
+ # and leave 'force-reload' as an alias for 'restart'.
+ #
+ #log_daemon_msg "Reloading $DESC" "$NAME"
+ #do_reload
+ #log_end_msg $?
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented then remove the
+ # 'force-reload' alias
+ #
+ log_daemon_msg "Restarting $DESC" "$NAME"
+ do_stop
+ case "$?" in
+ 0|1)
+ do_start
+ case "$?" in
+ 0) log_end_msg 0 ;;
+ 1) log_end_msg 1 ;; # Old process is still running
+ *) log_end_msg 1 ;; # Failed to start
+ esac
+ ;;
+ *)
+ # Failed to stop
+ log_end_msg 1
+ ;;
+ esac
+ ;;
+ *)
+ #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+:
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/jruby-broken b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/jruby-broken
new file mode 100644
index 0000000..56f574d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/jruby-broken
@@ -0,0 +1,2 @@
+#!/usr/bin/jruby
+# There's no non-versioned jruby, so this should be an error.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/lefty-foo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/lefty-foo
new file mode 100644
index 0000000..52c003e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/lefty-foo
@@ -0,0 +1,2 @@
+#!/usr/local/bin/lefty
+
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/make-foo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/make-foo
new file mode 100644
index 0000000..6b787b5
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/make-foo
@@ -0,0 +1,3 @@
+#!/usr/bin/make
+
+
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-1 b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-1
new file mode 100644
index 0000000..fc632c8
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-1
@@ -0,0 +1,11 @@
+#! /bin/sh
+eval '(exit $?0)' && eval 'PERL_BADLANG=x;export PERL_BADLANG;: \
+;exec perl -x -S -- "$0" ${1+"$@"};#'if 0;
+eval 'setenv PERL_BADLANG x;exec perl -x -S -- "$0" $argv:q;#'.q+
+#!perl -w
+package Htex::a2ping; $0=~/(.*)/s;unshift@INC,'.';do($1);die$@if$@;__END__+if !1;
+# This Perl script was generated by JustLib2 at Wed Apr 23 09:14:13 2003.
+# Don't touch/remove any lines above; http://www.inf.bme.hu/~pts/justlib
+
+# The above was actually seen in the wild and stresses the
+# script_is_evil_and_wrong test.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-2 b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-2
new file mode 100644
index 0000000..afd9cfe
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-2
@@ -0,0 +1,7 @@
+#!/bin/sh
+eval 'exec /usr/bin/perl -wS $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+# I'm someone following perlrun except without using the Perl #! line.
+# Now something to choke bash.
+while (<>) { if (/%#/) { print } }
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-3 b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-3
new file mode 100644
index 0000000..44baf75
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perl-bizarre-3
@@ -0,0 +1,6 @@
+eval '(exit $?0)' && eval 'exec perl -wS $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -wS $0 $argv:q'
+ if $running_under_some_shell;
+
+# More utterly bizarreness from perlrun. This one even doesn't work if
+# there's a valid #! line on the first line. I don't understand why....
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perlfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perlfoo
new file mode 100644
index 0000000..5b27ed0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/perlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/perl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpenvfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpenvfoo
new file mode 100644
index 0000000..cbbfb2e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpenvfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/env php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpfoo
new file mode 100644
index 0000000..e0595e6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/phpfoo
@@ -0,0 +1,7 @@
+#!/usr/bin/php
+<html>
+<head>
+<title>Dumb PHP script</title>
+</head>
+<body><? print(Date("l F d, Y")); ?></body>
+</html>
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/rubyfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/rubyfoo
new file mode 100644
index 0000000..8024605
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/rubyfoo
@@ -0,0 +1,4 @@
+#!/bin/ruby1.8
+
+# Ok, that example is really pathetic, but until we have
+# some better code in checks/scripts, it will do
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/sh-broken b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/sh-broken
new file mode 100644
index 0000000..7b79074
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/sh-broken
@@ -0,0 +1,2 @@
+#!/bin/sh
+if fi
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/suidperlfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/suidperlfoo
new file mode 100644
index 0000000..bcbc471
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/suidperlfoo
@@ -0,0 +1,3 @@
+#! /usr/bin/suidperl
+
+print "Hello, World!";
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/tkfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/tkfoo
new file mode 100755
index 0000000..533595a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/tkfoo
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Insane amount of empty lines and comments
+
+#
+#
+#
+#
+
+#
+#
+
+#
+#
+#
+
+#
+#
+
+#
+# This line makes the next one a comment in Tcl \
+exec wish "$0" -- ${1+"$@"}
+
+# lintian should not check the following for syntax
+# if it detects the line above correctly
+# Code snippet taken from eTkTab
+
+if { [array names prefs keybindings] != "" } {
+ # Read in the file
+ array set unparsed_bindings [ read_settings_file $prefs(keybindings)]
+}
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/wishfoo b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/wishfoo
new file mode 100644
index 0000000..035c9ad
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/wishfoo
@@ -0,0 +1,4 @@
+#!/usr/bin/wish
+#
+# This is not actually a wish script, here to force a test of wish
+# dependencies.
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/xsession-test b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/xsession-test
new file mode 100644
index 0000000..ca49d72
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/orig/xsession-test
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "Foo."
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/pre-build b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/pre-build
new file mode 100755
index 0000000..b5649a8
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/build-spec/pre-build
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+DIR="$1"
+
+rm -f "$DIR/debian/compat"
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/desc b/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/desc
new file mode 100644
index 0000000..b13e704
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-scripts
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/hints b/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/hints
new file mode 100644
index 0000000..8c75be5
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/hints
@@ -0,0 +1,3 @@
+scripts (source): older-debian-watch-file-standard 3 [debian/watch]
+scripts (source): multiple-debian-watch-file-standards 2 3 [debian/watch]
+scripts (source): debian-watch-file-standard 3 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/post-test b/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/legacy-scripts/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/
diff --git a/t/recipes/checks/debian/watch/standard/no-version/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/no-version/build-spec/debian/watch
new file mode 100644
index 0000000..4d3b502
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/no-version/build-spec/debian/watch
@@ -0,0 +1 @@
+http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/watch/standard/no-version/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/no-version/build-spec/fill-values
new file mode 100644
index 0000000..41649e0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/no-version/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: no-version
+Skeleton: upload-non-native
+Description: Watch file with no version
diff --git a/t/recipes/checks/debian/watch/standard/no-version/eval/desc b/t/recipes/checks/debian/watch/standard/no-version/eval/desc
new file mode 100644
index 0000000..c16a93c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/no-version/eval/desc
@@ -0,0 +1,2 @@
+Testname: no-version
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/no-version/eval/hints b/t/recipes/checks/debian/watch/standard/no-version/eval/hints
new file mode 100644
index 0000000..b3051e0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/no-version/eval/hints
@@ -0,0 +1 @@
+no-version (source): missing-debian-watch-file-standard [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/version-1/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/version-1/build-spec/debian/watch
new file mode 100644
index 0000000..8cd5a87
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-1/build-spec/debian/watch
@@ -0,0 +1,2 @@
+version=1
+http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/watch/standard/version-1/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/version-1/build-spec/fill-values
new file mode 100644
index 0000000..1f9c306
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-1/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: version-1
+Skeleton: upload-non-native
+Description: Watch file of version 1
diff --git a/t/recipes/checks/debian/watch/standard/version-1/eval/desc b/t/recipes/checks/debian/watch/standard/version-1/eval/desc
new file mode 100644
index 0000000..0304f2e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-1/eval/desc
@@ -0,0 +1,2 @@
+Testname: version-1
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/version-1/eval/hints b/t/recipes/checks/debian/watch/standard/version-1/eval/hints
new file mode 100644
index 0000000..6d27d24
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-1/eval/hints
@@ -0,0 +1 @@
+version-1 (source): unknown-debian-watch-file-standard 1 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/version-2/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/version-2/build-spec/debian/watch
new file mode 100644
index 0000000..a201846
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-2/build-spec/debian/watch
@@ -0,0 +1,2 @@
+version=2
+http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/watch/standard/version-2/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/version-2/build-spec/fill-values
new file mode 100644
index 0000000..d00cdfa
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-2/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: version-2
+Skeleton: upload-non-native
+Description: Watch file of version 2
diff --git a/t/recipes/checks/debian/watch/standard/version-2/eval/desc b/t/recipes/checks/debian/watch/standard/version-2/eval/desc
new file mode 100644
index 0000000..3d5177c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-2/eval/desc
@@ -0,0 +1,2 @@
+Testname: version-2
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/version-2/eval/hints b/t/recipes/checks/debian/watch/standard/version-2/eval/hints
new file mode 100644
index 0000000..fd0f141
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-2/eval/hints
@@ -0,0 +1,2 @@
+version-2 (source): obsolete-debian-watch-file-standard 2 [debian/watch]
+version-2 (source): debian-watch-file-standard 2 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/version-3/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/version-3/build-spec/debian/watch
new file mode 100644
index 0000000..5750c6f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-3/build-spec/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/watch/standard/version-3/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/version-3/build-spec/fill-values
new file mode 100644
index 0000000..ec6b701
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-3/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: version-3
+Skeleton: upload-non-native
+Description: Watch file of version 3
diff --git a/t/recipes/checks/debian/watch/standard/version-3/eval/desc b/t/recipes/checks/debian/watch/standard/version-3/eval/desc
new file mode 100644
index 0000000..fbb5105
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-3/eval/desc
@@ -0,0 +1,2 @@
+Testname: version-3
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/version-3/eval/hints b/t/recipes/checks/debian/watch/standard/version-3/eval/hints
new file mode 100644
index 0000000..31501a1
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-3/eval/hints
@@ -0,0 +1,2 @@
+version-3 (source): older-debian-watch-file-standard 3 [debian/watch]
+version-3 (source): debian-watch-file-standard 3 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/version-4/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/version-4/build-spec/debian/watch
new file mode 100644
index 0000000..259bb88
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-4/build-spec/debian/watch
@@ -0,0 +1,2 @@
+version=4
+http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/watch/standard/version-4/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/version-4/build-spec/fill-values
new file mode 100644
index 0000000..d7fd7de
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-4/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: version-4
+Skeleton: upload-non-native
+Description: Watch file of version 4
diff --git a/t/recipes/checks/debian/watch/standard/version-4/eval/desc b/t/recipes/checks/debian/watch/standard/version-4/eval/desc
new file mode 100644
index 0000000..4c3c00e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-4/eval/desc
@@ -0,0 +1,2 @@
+Testname: version-4
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/version-4/eval/hints b/t/recipes/checks/debian/watch/standard/version-4/eval/hints
new file mode 100644
index 0000000..244ebd0
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-4/eval/hints
@@ -0,0 +1 @@
+version-4 (source): debian-watch-file-standard 4 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/version-5/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/version-5/build-spec/debian/watch
new file mode 100644
index 0000000..6b8a6f4
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-5/build-spec/debian/watch
@@ -0,0 +1,2 @@
+version=5
+http://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
diff --git a/t/recipes/checks/debian/watch/standard/version-5/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/version-5/build-spec/fill-values
new file mode 100644
index 0000000..7f069bb
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-5/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: version-5
+Skeleton: upload-non-native
+Description: Watch file of version 5
diff --git a/t/recipes/checks/debian/watch/standard/version-5/eval/desc b/t/recipes/checks/debian/watch/standard/version-5/eval/desc
new file mode 100644
index 0000000..cd8cc36
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-5/eval/desc
@@ -0,0 +1,2 @@
+Testname: version-5
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/version-5/eval/hints b/t/recipes/checks/debian/watch/standard/version-5/eval/hints
new file mode 100644
index 0000000..5ebdc82
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/version-5/eval/hints
@@ -0,0 +1 @@
+version-5 (source): unknown-debian-watch-file-standard 5 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2340930
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/changelog.in
@@ -0,0 +1,14 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0-1) unstable; urgency=low
+
+ * Provoke debian-watch-file-specifies-old-upstream-version.
+
+ -- [% $author %] Thu, 01 Jan 2009 08:34:20 -0800
diff --git a/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..d83f52c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,52 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD
+P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO
+SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b
+bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB
+9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY
+9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg
+h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq
+Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C
+eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1
+n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d
+QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB
+tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0
+aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa
+RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm
+umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p
+PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF
+AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs
+MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5
+gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf
+198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes
+tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre
+nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI
+WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah
+mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X
+jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1
+HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp
+miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU
+VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX
+X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep
+a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw
+ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x
+WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz
+OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun
+mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy
+40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ
+4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1
+pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl
+CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+
+RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v
+Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY
+vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw
+2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl
+hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy
+kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz
+sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh
+PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5
+EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y
+jr6SfdNikIDjGYa+yuN6KGQsriza1aA=
+=CYsi
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/watch b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/watch
new file mode 100644
index 0000000..dc196dd
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/debian/watch
@@ -0,0 +1,32 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate
+
+# Test additional Sourceforge patterns. (See Bug#510398)
+ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ \
+ soprano-(.*)\.tar\.bz2
+http://sourceforge.net/project/showfiles.php?group_id=100501 \
+ .*/octaviz/octaviz-([\d\.]+).tar.gz.*
+http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.*
+
+# Unknown version number.
+version=42
+
+# Specifies the same version number as the package.
+https://example.com/ foo([\d.]+)\.tar\.gz 2.0.ds1-1 uupdate
+
+# Deprecated githubredir
+http://githubredir.debian.net/github/username/project /(.*).tar.gz
+
+# without any pgpsigurlmangle
+
+http://insecure.com /(.*).tar.gz
+https://secure.com /(.*).tar.gz
+
+# False positive for debian-watch-uses-insecure-uri
+http://sf.net/uses/redirector-([^-]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/fill-values b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/fill-values
new file mode 100644
index 0000000..185084f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/watch-file-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-general
+Skeleton: upload-non-native
+Version: 2.0.ds1-1
+Description: General watch file checks
diff --git a/t/recipes/checks/debian/watch/standard/watch-file-general/eval/desc b/t/recipes/checks/debian/watch/standard/watch-file-general/eval/desc
new file mode 100644
index 0000000..f376aa2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/watch-file-general/eval/desc
@@ -0,0 +1,3 @@
+Testname: watch-file-general
+See-Also: Debian Bug#510398
+Check: debian/watch/standard
diff --git a/t/recipes/checks/debian/watch/standard/watch-file-general/eval/hints b/t/recipes/checks/debian/watch/standard/watch-file-general/eval/hints
new file mode 100644
index 0000000..75c45f7
--- /dev/null
+++ b/t/recipes/checks/debian/watch/standard/watch-file-general/eval/hints
@@ -0,0 +1,4 @@
+watch-file-general (source): unknown-debian-watch-file-standard 42 [debian/watch]
+watch-file-general (source): older-debian-watch-file-standard 3 [debian/watch]
+watch-file-general (source): multiple-debian-watch-file-standards 2 3 42 [debian/watch]
+watch-file-general (source): debian-watch-file-standard 3 [debian/watch]
diff --git a/t/recipes/checks/debian/watch/two-upstream-components/build-spec/debian/watch b/t/recipes/checks/debian/watch/two-upstream-components/build-spec/debian/watch
new file mode 100644
index 0000000..ae00c12
--- /dev/null
+++ b/t/recipes/checks/debian/watch/two-upstream-components/build-spec/debian/watch
@@ -0,0 +1,6 @@
+version=4
+https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-([.[:digit:]]+).tar.gz
+
+opts="component=x1" https://github.com/a/x1/tags archives/v?([\d\-]+)\.tar\.gz
+
+opts="component=x2" https://github.com/a/x2 archives/v?([\d\-]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/two-upstream-components/build-spec/fill-values b/t/recipes/checks/debian/watch/two-upstream-components/build-spec/fill-values
new file mode 100644
index 0000000..b98e8f2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/two-upstream-components/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: two-upstream-components
+Skeleton: upload-non-native
+Description: Contains a watch file with 2 components
diff --git a/t/recipes/checks/debian/watch/two-upstream-components/eval/desc b/t/recipes/checks/debian/watch/two-upstream-components/eval/desc
new file mode 100644
index 0000000..37a05ff
--- /dev/null
+++ b/t/recipes/checks/debian/watch/two-upstream-components/eval/desc
@@ -0,0 +1,2 @@
+Testname: two-upstream-components
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/two-upstream-components/eval/hints b/t/recipes/checks/debian/watch/two-upstream-components/eval/hints
new file mode 100644
index 0000000..d7b3f59
--- /dev/null
+++ b/t/recipes/checks/debian/watch/two-upstream-components/eval/hints
@@ -0,0 +1,3 @@
+two-upstream-components (source): debian-watch-upstream-component https://github.com/a/x2 x2 [debian/watch:6]
+two-upstream-components (source): debian-watch-upstream-component https://github.com/a/x1/tags x1 [debian/watch:4]
+two-upstream-components (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..bd03c4e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1 @@
+Too lazy to fake this file
diff --git a/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/watch
new file mode 100644
index 0000000..6f30e20
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/debian/watch
@@ -0,0 +1,4 @@
+version=3
+# Trailing whitespace and missing continuation backslash intentional!
+opts=pgpsigurlmangle=s/$/.asc/
+https://www.example.com/Downloads/code-(.+)code\.zip
diff --git a/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/fill-values
new file mode 100644
index 0000000..b764faa
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-bug-765995/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-bug-765995
+Skeleton: upload-non-native
+Version: 2.0-1
+Description: Watch file that caused undef warning
diff --git a/t/recipes/checks/debian/watch/watch-file-bug-765995/eval/desc b/t/recipes/checks/debian/watch/watch-file-bug-765995/eval/desc
new file mode 100644
index 0000000..ff09232
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-bug-765995/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-bug-765995
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-bug-765995/eval/hints b/t/recipes/checks/debian/watch/watch-file-bug-765995/eval/hints
new file mode 100644
index 0000000..93efc33
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-bug-765995/eval/hints
@@ -0,0 +1,3 @@
+watch-file-bug-765995 (source): debian-watch-line-invalid opts=pgpsigurlmangle=s/$/.asc/ [debian/watch:3]
+watch-file-bug-765995 (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
+watch-file-bug-765995 (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/changelog.in
new file mode 100644
index 0000000..2340930
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/changelog.in
@@ -0,0 +1,14 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+
+ * Suppress "should close ITP bug" messages. (Closes: #123456)
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0-1) unstable; urgency=low
+
+ * Provoke debian-watch-file-specifies-old-upstream-version.
+
+ -- [% $author %] Thu, 01 Jan 2009 08:34:20 -0800
diff --git a/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..d83f52c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1,52 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFpEMFgBEADNYEVhITIZ/rVECuLWxDJUk4rV+v6IfJCxJzuXRfqbjkdLNsCD
+P83FOdvcxNQSrWPdSCgV1tDeDc18pNmfWDnu90zrLRipR1u7ln/ajTpx0RI7tHaO
+SCIJfo42iw7firz9IoegqZaH8LKCh63EaXxLD98MgRA9fcBTEaBSD+Wxh8yYL/5b
+bjdUu2FNNEi8f0POBAB3XInu80mqkEeVYPijd2T8Tc5xaxD90OBuuNGSiqKrJ+lB
+9TSxwr5E/9N+6fnCjrR4FVkZtyTELAdZm4CpQN26tinVolG1gDpMz5B27471oXPY
+9K92/UzTRllwuZ09pdBwpd4gu9mTXMLwOJ/S/+LJeSfCmby7QZiM/61NpS5EyaYg
+h+m8YyTUtulFqpWd2HxttXz0ii5C01LKUrNPqlQrxmfrACJ1tHvcngVQm4wyqMHq
+Uw5LYJ8FM7eS3JPeHpHqFGpY1VKx3nZAZGx+1As1ClvT7Og1KyuVY59w8qNaeJ8C
+eA9XrwGVbMm9PiTP+fyBykMaYpf5aGucH+GeBtkvmpyOyXqf7zrOqyRvY0QaMgt1
+n3jXcD7AZKHCp0wY6LYVa/sKqrDJtxoloBA6kV2Ui3kClOWmlfvm+i1Ecg7vCG8d
+QrJtZxo1Wu54dIr+g0qMFjlBA69OFYRXPzoaWFW1BKtNAYFoej9vW/f+0wARAQAB
+tDtMaW50aWFuIFRlc3QgVXBzdHJlYW0gS2V5IChXb3JraW5nLCBObyBFeHBpcmF0
+aW9uLCBNaW5pbWFsKYkCTgQTAQoAOBYhBPr6VG+KNaSTu27AqFtc4nOV5lb+BQJa
+RDBYAhsDBQsJCAcDBRUKCQgLBRYDAgEAAh4BAheAAAoJEFtc4nOV5lb+B3kQAMMm
+umaOq12REmLdKWMN7GOsxzV6fTF5xBjTgKfY9DCBeNV7tSuJGpGT9MaxRD5Yu/1p
+PDMGC9TkDxOEULBucmp7M//3FCuSnGQFBcObHNXY9FmLQ5MZJ32QUi8KLNIcDjuF
+AKMEYJ5AT50pBsGyLVGXL27HWndNV7jMeIX64gIN5chPKMHqCn0g/wTTaPY/kkEs
+MYirGmBQ83cIAv/1nywtIPeBnj+02Vu3B1hJIZYgmDQZwjZdd7HTxsVW0LAZEXs5
+gtWArfHO3zNKy6WkVE+xhNgZuVO3EyV46JW0bQ2RC7yY70/qFxX71co6p2+VaZgf
+198QtRddq9cKaSe68BnZesIp9YnT3xJVYeL6IrrMYNIZxlslL4/b+gKU3epHyFes
+tQP1tqkhnmC+Bxds6kx0ngPVfTfWM4Ruaeot51BuenZu82S1B3FB5B0qruCNyKre
+nl53nPaNkOERPOF654AXoIODTgnyaocCaQTPztOYm52X8u9qogf9wf1eEA9EZIBI
+WSbn3eCohN6qWvsdC0MMRDu0HB4S1QUyyOceNflXePg6SPvJSPHuOG/5DShcN6ah
+mgVMH44ecAWsh/8Uj1+Z39Ea07nfE3lCU/WR+DXJb56WaQChXN7AKITrNRd/Q61X
+jqrB6jWRSeVBKDidsFwI7oALdSgONE/ZEy+M4j76uQINBFpEMFgBEADCWJECQ6K1
+HgH7OwX7eY8ggEdCOYI/cTGx9rfzdqx67tc7fsF63BrO+nTHylcwXi9IAs695zvp
+miCnCu1EUVjfM+nD52kocVEhzFc/lcCq6d9ac7H9ItJgf3Qc2HpwcqvsNUTWPDMU
+VjQ8ciZ57qq601kIjVPuHjKRY96K9iHxUeVGh2n74JLYZL5IKO08WtQgPmPVLFDX
+X2iZXnZdW/X4xTYB+/+V/D1LyUIP3X7CzBNzJuYjP3vGDH3h4ulLWnDSmxKs6Aep
+a0sKu6+YD14/xXOi+buc0m6ghP7WePl9gYi6XePLdVPeLC9aiDi1tCWEVbbsinhw
+ODxLwndXCGUc+AVySdUrUMuRchNRI6Z5PW/a/RsuVmyORg1RSuFGLeJQZj1pAw6x
+WjxgioqoqydECIx4gCwGO/0GNZCfe5n11vuMEZ7SKbnrf5d58EQXOgV+yZumRKkz
+OmdKICjql6w5CealrvP/si2kfD3oVwqBeuM0aM8HmWTfrdESWrd8xqAxBlcDsIun
+mpsJ6obGN2mOaMFmOljukdzDFgMJMIrcS4UcGNzyQWUbz6JOSfPq96RkrTVsXMKy
+40Ygtwe63PS9lXGT2ojmiV193UrGJqEUjuAL79KXWkxTRFxvFwck9qK5RAX2F1GQ
+4ELDAFSKr8t6IpiYiTXaA3OTJfxJMK191QARAQABiQI2BBgBCgAgFiEE+vpUb4o1
+pJO7bsCoW1zic5XmVv4FAlpEMFgCGwwACgkQW1zic5XmVv4VEA//dOFj60ktKKsl
+CgRdtnuo9Sdd7IjShic67qoT0gFZRiMATaryM4ifjAcl03rxzGk5MOsltHFJr5h+
+RmaudKhCyksd1nQ2dBpFgPHyxVTS5/k+wMelP9kPailqiGUA735SP5mO/28YOT8v
+Xa4rwnTn6s9Ga7+lMN4I7LKRo47uGG89Og381tHSkW8DjFuLTme3TQDysG2MGlSY
+vTPJmF7xPCuG3s8J5RIrVwWbN0orWen9YWT1923+0CAZG8M+7AFxU5xxCFIBRKMw
+2tw/ovjtE9czuT743LMPlUJRc1pveYjVhLY9xUMQsPO6j41pdIL2X7txFjQqzjFl
+hpIJviupVWlV0vSS0Q7nAtvLTsjhXSyQriKqmfdsdcxXBz7LGRxEi5l/9zuW5GMy
+kD5ikQ05li6wkBdQYLS3ZBYkrj94LpNEqNZE3sfX33Yc5cpE2Bc4Ga+MxYxQwrfz
+sNNSp8jdf2FyFvlvRkO8UUgsW5PPOuwthb05bx7dQGfKvqySpd0JLrhxw8G8odJh
+PGzl0ig4F8xEitMc0lms5yzQGvtpEvSYLUs+4EJaf/XN9nRS+4e+GciTmp9XUM/5
+EtKOKXVuhHyaizqfpF4VR0Tbg65HHE3zLJMr7XTUGC0Zr+bj0n/V177R0XgptY7Y
+jr6SfdNikIDjGYa+yuN6KGQsriza1aA=
+=CYsi
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/watch
new file mode 100644
index 0000000..dc196dd
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-general/build-spec/debian/watch
@@ -0,0 +1,32 @@
+# watch file with upstream version mangling
+
+version=2
+opts="uversionmangle=s/$/ds/" \
+http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate
+
+version=3
+http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate
+
+# Test additional Sourceforge patterns. (See Bug#510398)
+ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ \
+ soprano-(.*)\.tar\.bz2
+http://sourceforge.net/project/showfiles.php?group_id=100501 \
+ .*/octaviz/octaviz-([\d\.]+).tar.gz.*
+http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.*
+
+# Unknown version number.
+version=42
+
+# Specifies the same version number as the package.
+https://example.com/ foo([\d.]+)\.tar\.gz 2.0.ds1-1 uupdate
+
+# Deprecated githubredir
+http://githubredir.debian.net/github/username/project /(.*).tar.gz
+
+# without any pgpsigurlmangle
+
+http://insecure.com /(.*).tar.gz
+https://secure.com /(.*).tar.gz
+
+# False positive for debian-watch-uses-insecure-uri
+http://sf.net/uses/redirector-([^-]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/watch-file-general/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-general/build-spec/fill-values
new file mode 100644
index 0000000..185084f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-general
+Skeleton: upload-non-native
+Version: 2.0.ds1-1
+Description: General watch file checks
diff --git a/t/recipes/checks/debian/watch/watch-file-general/eval/desc b/t/recipes/checks/debian/watch/watch-file-general/eval/desc
new file mode 100644
index 0000000..9f9961f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-general/eval/desc
@@ -0,0 +1,3 @@
+Testname: watch-file-general
+See-Also: Debian Bug#510398
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-general/eval/hints b/t/recipes/checks/debian/watch/watch-file-general/eval/hints
new file mode 100644
index 0000000..7383a4c
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-general/eval/hints
@@ -0,0 +1,24 @@
+watch-file-general (source): debian-watch-uses-insecure-uri http://sourceforge.net/projects/synce/files [debian/watch:15]
+watch-file-general (source): debian-watch-uses-insecure-uri http://sourceforge.net/project/showfiles.php?group_id=100501 [debian/watch:14]
+watch-file-general (source): debian-watch-uses-insecure-uri http://qa.debian.org/watch/sf.php?project=foo [debian/watch:5]
+watch-file-general (source): debian-watch-uses-insecure-uri http://insecure.com [debian/watch:28]
+watch-file-general (source): debian-watch-uses-insecure-uri http://githubredir.debian.net/github/username/project [debian/watch:24]
+watch-file-general (source): debian-watch-uses-insecure-uri http://ftp.sf.net/foo/foo_bar(.+)\.Z [debian/watch:8]
+watch-file-general (source): debian-watch-uses-insecure-uri ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ [debian/watch:12]
+watch-file-general (source): debian-watch-not-mangling-version https://secure.com /(.*).tar.gz [debian/watch:29]
+watch-file-general (source): debian-watch-not-mangling-version http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.* [debian/watch:15]
+watch-file-general (source): debian-watch-not-mangling-version http://sourceforge.net/project/showfiles.php?group_id=100501 .*/octaviz/octaviz-([\d\.]+).tar.gz.* [debian/watch:14]
+watch-file-general (source): debian-watch-not-mangling-version http://sf.net/uses/redirector-([^-]+)\.tar\.gz [debian/watch:32]
+watch-file-general (source): debian-watch-not-mangling-version http://insecure.com /(.*).tar.gz [debian/watch:28]
+watch-file-general (source): debian-watch-not-mangling-version http://githubredir.debian.net/github/username/project /(.*).tar.gz [debian/watch:24]
+watch-file-general (source): debian-watch-not-mangling-version ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ soprano-(.*)\.tar\.bz2 [debian/watch:12]
+watch-file-general (source): debian-watch-mangles-debian-version-improperly opts="uversionmangle=s/$/ds/" http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5]
+watch-file-general (source): debian-watch-lacks-sourceforge-redirector http://sourceforge.net/projects/synce/files http://downloads.sourceforge.net/.+/kcemirror-(.+).tar.gz.* [debian/watch:15]
+watch-file-general (source): debian-watch-lacks-sourceforge-redirector http://sourceforge.net/project/showfiles.php?group_id=100501 .*/octaviz/octaviz-([\d\.]+).tar.gz.* [debian/watch:14]
+watch-file-general (source): debian-watch-lacks-sourceforge-redirector http://ftp.sf.net/foo/foo_bar(.+)\.Z 5 uupdate [debian/watch:8]
+watch-file-general (source): debian-watch-lacks-sourceforge-redirector ftp://upload.sourceforge.net/pub/sourceforge/s/so/soprano/ soprano-(.*)\.tar\.bz2 [debian/watch:12]
+watch-file-general (source): debian-watch-file-uses-deprecated-sf-redirector-method http://qa.debian.org/watch/sf.php?project=foo scripts\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5]
+watch-file-general (source): debian-watch-file-uses-deprecated-githubredir http://githubredir.debian.net/github/username/project /(.*).tar.gz [debian/watch:24]
+watch-file-general (source): debian-watch-file-specifies-wrong-upstream-version 2.0.ds1-1 [debian/watch]
+watch-file-general (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
+watch-file-general (source): debian-watch-could-verify-download debian/upstream/signing-key.asc [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-native/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-native/build-spec/debian/watch
new file mode 100644
index 0000000..23b829d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-native/build-spec/debian/watch
@@ -0,0 +1,5 @@
+# watch file with upstream version mangling
+
+version=3
+https://somewhere.debian.org/foo/foo_bar(.+)\.tar\.gz 5 uupdate
+
diff --git a/t/recipes/checks/debian/watch/watch-file-native/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-native/build-spec/fill-values
new file mode 100644
index 0000000..72168c2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-native/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: watch-file-native
+Description: Native package with a watch file
diff --git a/t/recipes/checks/debian/watch/watch-file-native/eval/desc b/t/recipes/checks/debian/watch/watch-file-native/eval/desc
new file mode 100644
index 0000000..bd769e4
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-native/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-native
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-native/eval/hints b/t/recipes/checks/debian/watch/watch-file-native/eval/hints
new file mode 100644
index 0000000..c38b1c2
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-native/eval/hints
@@ -0,0 +1,2 @@
+watch-file-native (source): debian-watch-file-in-native-package [debian/watch]
+watch-file-native (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/changelog.in b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/changelog.in
new file mode 100644
index 0000000..0aaa2a6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/changelog.in
@@ -0,0 +1,14 @@
+[% $source %] ([% $version %]) unstable; urgency=low
+
+ * New upstream release.
+ * Lintian Test Suite.
+ * Test: [% $testname %]
+ * We forgot to update the watch file, lalala.
+
+ -- [% $author %] [% $date %]
+
+[% $source %] (1.0-1) unstable; urgency=low
+
+ * An earlier non-native version.
+
+ -- [% $author %] Tue, 1 Jan 2008 22:45:57 +0000
diff --git a/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/watch
new file mode 100644
index 0000000..ebaecbd
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz 1.0 uupdate
diff --git a/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/fill-values
new file mode 100644
index 0000000..e8c0c43
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-old-upstream-version
+Skeleton: upload-non-native
+Version: 2.0-1
+Description: Watch file with old upstream version
diff --git a/t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/desc b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/desc
new file mode 100644
index 0000000..fdffb7d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-old-upstream-version
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/hints b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/hints
new file mode 100644
index 0000000..7cdf746
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-old-upstream-version/eval/hints
@@ -0,0 +1,2 @@
+watch-file-old-upstream-version (source): debian-watch-file-specifies-old-upstream-version 1.0 [debian/watch]
+watch-file-old-upstream-version (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..bd03c4e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/upstream/signing-key.asc
@@ -0,0 +1 @@
+Too lazy to fake this file
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/watch
new file mode 100644
index 0000000..139bc40
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/debian/watch
@@ -0,0 +1,5 @@
+version=4
+opts="pgpmode=next" https://alioth.debian.org/frs/?group_id=30928 \
+ (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian
+opts="pgpmode=previous" https://alioth.debian.org/frs/?group_id=30928 \
+ (?:.*)/@PACKAGE@@ANY_VERSION@@SIGNATURE_EXT@ previous
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/fill-values
new file mode 100644
index 0000000..061e5ae
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-pgpmode-next
+Skeleton: upload-non-native
+Version: 2.0-1
+Description: Watch file with pgpmode=next
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/desc b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/desc
new file mode 100644
index 0000000..10373e6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/desc
@@ -0,0 +1,4 @@
+Testname: watch-file-pgpmode-next
+Test-Against: debian-watch-does-not-check-openpgp-signature
+See-Also: #841000
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/hints b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-next/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/debian/watch
new file mode 100644
index 0000000..190a7c5
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts="pgpmode=none" https://alioth.debian.org/frs/?group_id=30928 \
+ (?:.*)/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/fill-values
new file mode 100644
index 0000000..e419c0a
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-pgpmode-none
+Skeleton: upload-non-native
+Version: 2.0-1
+Description: Watch file with pgpmode=none
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/desc b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/desc
new file mode 100644
index 0000000..9797f85
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/desc
@@ -0,0 +1,4 @@
+Testname: watch-file-pgpmode-none
+Test-Against: debian-watch-file-pubkey-file-is-missing
+See-Also: #841000
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/hints b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/hints
new file mode 100644
index 0000000..da03c49
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pgpmode-none/eval/hints
@@ -0,0 +1 @@
+watch-file-pgpmode-none (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/debian/watch
new file mode 100644
index 0000000..8038deb
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/~rc/-rc/ \
+ https://www.example.com/software/foo/ .*/foo-([^-]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/fill-values
new file mode 100644
index 0000000..759c2e9
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-prerelease/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-prerelease
+Skeleton: upload-non-native
+Version: 1~rc1-1
+Description: Check mangling tags for upstream prereleases
diff --git a/t/recipes/checks/debian/watch/watch-file-prerelease/eval/desc b/t/recipes/checks/debian/watch/watch-file-prerelease/eval/desc
new file mode 100644
index 0000000..130e146
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-prerelease/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-prerelease
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-prerelease/eval/hints b/t/recipes/checks/debian/watch/watch-file-prerelease/eval/hints
new file mode 100644
index 0000000..9f86dc6
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-prerelease/eval/hints
@@ -0,0 +1,2 @@
+watch-file-prerelease (source): debian-watch-mangles-upstream-version-improperly opts=dversionmangle=s/~rc/-rc/ https://www.example.com/software/foo/ .*/foo-([^-]+)\.tar\.gz [debian/watch:3]
+watch-file-prerelease (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/debian/watch
new file mode 100644
index 0000000..7ac78bc
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="uversionmangle=s/-/./,dversionmangle=s/\.dfsg\d+$//,pgpsigurlmangle=s/$/.asc/" \
+ftp://ftp.imagemagick.org/pub/ImageMagick/ ImageMagick-(.*)\.tar\.xz
diff --git a/t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/fill-values
new file mode 100644
index 0000000..31946e9
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-pubkey-missing
+Skeleton: upload-non-native
+Version: 1+dfsg-1
+Description: Watch file if verify signature should check d/upstream/signing-key.{pgp,asc}
diff --git a/t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/desc b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/desc
new file mode 100644
index 0000000..de6e776
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-pubkey-missing
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/hints b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/hints
new file mode 100644
index 0000000..a7ae561
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-pubkey-missing/eval/hints
@@ -0,0 +1,2 @@
+watch-file-pubkey-missing (source): debian-watch-uses-insecure-uri ftp://ftp.imagemagick.org/pub/ImageMagick/ [debian/watch:3]
+watch-file-pubkey-missing (source): debian-watch-file-pubkey-file-is-missing [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/debian/watch
new file mode 100644
index 0000000..9104ee4
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="uversionmangle=s/.pre/~pre/,dversionmangle=s/@DEB_EXT@//,repacksuffix=+ds1" \
+ https://github.com/user/project/tags \
+ (?:.*?/)project@ANr_VERSION@\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/fill-values
new file mode 100644
index 0000000..8d0af82
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-should-mangle-unrel
+Skeleton: upload-non-native
+Version: 1+dfsg-1
+Description: Watch file should mangle version (false-positive)
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/desc b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/desc
new file mode 100644
index 0000000..67f3d93
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/desc
@@ -0,0 +1,4 @@
+Testname: watch-file-should-mangle-unrel
+Test-Against:
+ debian-watch-not-mangling-version
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints
new file mode 100644
index 0000000..e5e98dc
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle-unrel/eval/hints
@@ -0,0 +1 @@
+watch-file-should-mangle-unrel (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/debian/watch
new file mode 100644
index 0000000..6cc9db4
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/debian/watch
@@ -0,0 +1,11 @@
+# watch file with no version mangling, even though there's a dfsg in the
+# package version number.
+
+version=2
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate
+
+# version mangling is not needed in this case:
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz 0.24 uupdate
+
+# version mangling *is* needed in this case:
+https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/fill-values
new file mode 100644
index 0000000..8a8df44
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle/build-spec/fill-values
@@ -0,0 +1,4 @@
+Testname: watch-file-should-mangle
+Skeleton: upload-non-native
+Version: 1+dfsg-1
+Description: Watch file should mangle version
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle/eval/desc b/t/recipes/checks/debian/watch/watch-file-should-mangle/eval/desc
new file mode 100644
index 0000000..584f10d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-should-mangle
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-should-mangle/eval/hints b/t/recipes/checks/debian/watch/watch-file-should-mangle/eval/hints
new file mode 100644
index 0000000..ed53e0f
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-should-mangle/eval/hints
@@ -0,0 +1,3 @@
+watch-file-should-mangle (source): debian-watch-not-mangling-version https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz debian uupdate [debian/watch:5]
+watch-file-should-mangle (source): debian-watch-not-mangling-version https://www.example.com/dist/ dh7-test\.([\d.]+)\.tar\.gz [debian/watch:11]
+watch-file-should-mangle (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
diff --git a/t/recipes/checks/debian/watch/watch-file-template/build-spec/debian/watch b/t/recipes/checks/debian/watch/watch-file-template/build-spec/debian/watch
new file mode 100644
index 0000000..fdbc536
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-template/build-spec/debian/watch
@@ -0,0 +1,3 @@
+version=3
+# Example watch control file for uscan
+http://www.example.com/software/foo/ .*/<project>-([^-]+)\.tar\.gz
diff --git a/t/recipes/checks/debian/watch/watch-file-template/build-spec/fill-values b/t/recipes/checks/debian/watch/watch-file-template/build-spec/fill-values
new file mode 100644
index 0000000..fdad29e
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-template/build-spec/fill-values
@@ -0,0 +1,3 @@
+Testname: watch-file-template
+Skeleton: upload-non-native
+Description: Test for dh_make(1) templates
diff --git a/t/recipes/checks/debian/watch/watch-file-template/eval/desc b/t/recipes/checks/debian/watch/watch-file-template/eval/desc
new file mode 100644
index 0000000..c96ef04
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-template/eval/desc
@@ -0,0 +1,2 @@
+Testname: watch-file-template
+Check: debian/watch
diff --git a/t/recipes/checks/debian/watch/watch-file-template/eval/hints b/t/recipes/checks/debian/watch/watch-file-template/eval/hints
new file mode 100644
index 0000000..b0dd19d
--- /dev/null
+++ b/t/recipes/checks/debian/watch/watch-file-template/eval/hints
@@ -0,0 +1,3 @@
+watch-file-template (source): debian-watch-uses-insecure-uri http://www.example.com/software/foo/ [debian/watch:3]
+watch-file-template (source): debian-watch-does-not-check-openpgp-signature [debian/watch]
+watch-file-template (source): debian-watch-contains-dh_make-template Example watch control file for uscan [debian/watch]