diff options
Diffstat (limited to 't/recipes/checks/menus/executable-in-docbase')
7 files changed, 37 insertions, 0 deletions
diff --git a/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/doc-base.doc1 b/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/doc-base.doc1 new file mode 100755 index 0000000..247aa43 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/doc-base.doc1 @@ -0,0 +1,8 @@ +Document: doc1.txt +Title: Document 1 +Author: Lintian maintainers +Abstract: Document 1 +Section: Programming/Something + +Format: text +Files: /usr/share/doc/executable-in-docbase/doc1.txt diff --git a/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/docs b/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/docs new file mode 100644 index 0000000..a672847 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/docs @@ -0,0 +1 @@ +doc1.txt diff --git a/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/rules b/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/rules new file mode 100755 index 0000000..49468b5 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/build-spec/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +pkg = $(shell dh_listpackages) + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_installdocs: + dh_installdocs + chmod 755 debian/$(pkg)/usr/share/doc-base/executable-in-docbase.doc1.txt + +# 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 diff --git a/t/recipes/checks/menus/executable-in-docbase/build-spec/fill-values b/t/recipes/checks/menus/executable-in-docbase/build-spec/fill-values new file mode 100644 index 0000000..5685561 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: executable-in-docbase +Skeleton: upload-native +Description: Test with an executable file in /usr/share/doc-base +# doc-base installation paths now include the package name, see Bug#980903 +Extra-Build-Depends: debhelper (>= 13.4) diff --git a/t/recipes/checks/menus/executable-in-docbase/build-spec/orig/doc1.txt b/t/recipes/checks/menus/executable-in-docbase/build-spec/orig/doc1.txt new file mode 100644 index 0000000..5071182 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/build-spec/orig/doc1.txt @@ -0,0 +1 @@ +Document 1 diff --git a/t/recipes/checks/menus/executable-in-docbase/eval/desc b/t/recipes/checks/menus/executable-in-docbase/eval/desc new file mode 100644 index 0000000..362b7e7 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/eval/desc @@ -0,0 +1,2 @@ +Testname: executable-in-docbase +Check: menus diff --git a/t/recipes/checks/menus/executable-in-docbase/eval/hints b/t/recipes/checks/menus/executable-in-docbase/eval/hints new file mode 100644 index 0000000..5a8a6c1 --- /dev/null +++ b/t/recipes/checks/menus/executable-in-docbase/eval/hints @@ -0,0 +1 @@ +executable-in-docbase (binary): executable-in-usr-share-docbase 0755 [usr/share/doc-base/executable-in-docbase.doc1.txt] |