From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../build-spec/debian/binary.docs | 3 + .../build-spec/debian/binary.init | 21 +++++++ .../build-spec/debian/binary.install | 9 +++ .../build-spec/debian/binary.manpages | 1 + .../files-bad-perm-owner/build-spec/debian/clean | 1 + .../build-spec/debian/control.in | 30 ++++++++++ .../build-spec/debian/game.install | 1 + .../build-spec/debian/game.manpages | 1 + .../files-bad-perm-owner/build-spec/debian/rules | 31 +++++++++++ .../files-bad-perm-owner/build-spec/fill-values | 3 + .../files-bad-perm-owner/build-spec/orig/README | 1 + .../files-bad-perm-owner/build-spec/orig/read-only | 1 + .../build-spec/orig/sample.ali | 1 + .../files-bad-perm-owner/build-spec/orig/script | 20 +++++++ .../files-bad-perm-owner/build-spec/orig/some-file | 2 + .../checks/cron/files-bad-perm-owner/eval/desc | 2 + .../checks/cron/files-bad-perm-owner/eval/hints | 1 + .../build-spec/debian/install | 2 + .../build-spec/fill-values | 3 + .../build-spec/orig/_bad-pkcs11.module | 0 .../build-spec/orig/cron-script.hourly | 3 + .../files-foo-violates-expected-naming/eval/desc | 2 + .../files-foo-violates-expected-naming/eval/hints | 1 + .../build-spec/debian/README.Debian | 5 ++ .../legacy-etcfiles/build-spec/debian/changelog.in | 7 +++ .../legacy-etcfiles/build-spec/debian/conffiles | 5 ++ .../build-spec/debian/conffiles.only | 2 + .../cron/legacy-etcfiles/build-spec/debian/control | 20 +++++++ .../cron/legacy-etcfiles/build-spec/debian/rules | 64 ++++++++++++++++++++++ .../cron/legacy-etcfiles/build-spec/fill-values | 5 ++ .../cron/legacy-etcfiles/build-spec/orig/improper | 2 + .../cron/legacy-etcfiles/build-spec/orig/proper | 2 + t/recipes/checks/cron/legacy-etcfiles/eval/desc | 2 + t/recipes/checks/cron/legacy-etcfiles/eval/hints | 1 + .../checks/cron/legacy-etcfiles/eval/post-test | 1 + 35 files changed, 256 insertions(+) create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.docs create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.init create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.install create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.manpages create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/clean create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/control.in create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.install create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.manpages create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/rules create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/fill-values create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/README create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/read-only create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/sample.ali create mode 100755 t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/script create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/some-file create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/eval/desc create mode 100644 t/recipes/checks/cron/files-bad-perm-owner/eval/hints create mode 100644 t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/debian/install create mode 100644 t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/fill-values create mode 100644 t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/_bad-pkcs11.module create mode 100755 t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/cron-script.hourly create mode 100644 t/recipes/checks/cron/files-foo-violates-expected-naming/eval/desc create mode 100644 t/recipes/checks/cron/files-foo-violates-expected-naming/eval/hints create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/README.Debian create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/changelog.in create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/conffiles create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/conffiles.only create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/control create mode 100755 t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/rules create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/fill-values create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/orig/improper create mode 100644 t/recipes/checks/cron/legacy-etcfiles/build-spec/orig/proper create mode 100644 t/recipes/checks/cron/legacy-etcfiles/eval/desc create mode 100644 t/recipes/checks/cron/legacy-etcfiles/eval/hints create mode 100644 t/recipes/checks/cron/legacy-etcfiles/eval/post-test (limited to 't/recipes/checks/cron') diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.docs b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.docs new file mode 100644 index 0000000..42f92ea --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.docs @@ -0,0 +1,3 @@ +read-only +README +some-file diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.init b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.init new file mode 100644 index 0000000..4ebbdf5 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.init @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +### BEGIN INIT INFO +# Provides: binary +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Useless +# Description: Does nothing +### END INIT INFO + +. /lib/lsb/init-functions + +case "$1" in + start|stop|force-reload|restart|status|*) + echo hello world + ;; +esac diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.install b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.install new file mode 100644 index 0000000..c759290 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.install @@ -0,0 +1,9 @@ +sample.ali usr/lib/some-where/ +script-uid usr/bin/ +script-ugid usr/bin/ +script-gid usr/bin/ +script-wexec usr/bin/ +script-wuid usr/bin/ +script-ro usr/bin/ +script etc/cron.d/ +script etc/emacs.d/ diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.manpages b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.manpages new file mode 100644 index 0000000..ad3e735 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/binary.manpages @@ -0,0 +1 @@ +script-*.1 diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/clean b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/clean new file mode 100644 index 0000000..1e7cec6 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/clean @@ -0,0 +1 @@ +script*.1 diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/control.in b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/control.in new file mode 100644 index 0000000..5c8703f --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/control.in @@ -0,0 +1,30 @@ +Source: [% $source %] +Priority: optional +Section: devel +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: binary-targets + +Package: binary +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, lsb-base (>= 3.0-6) +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: game +Architecture: all +Section: games +Depends: ${misc:Depends} +Description: [% $description %] - game + This is a test package designed to exercise some feature or tag of + 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. + . + Game package. + diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.install b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.install new file mode 100644 index 0000000..f708f99 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.install @@ -0,0 +1 @@ +script usr/games/ diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.manpages b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.manpages new file mode 100644 index 0000000..8d16fb4 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/game.manpages @@ -0,0 +1 @@ +script.1 diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/rules b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/rules new file mode 100644 index 0000000..951f84c --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +GPKG:=game +PKG:=binary + +%: + dh $@ + +override_dh_auto_build: + for N in uid gid ugid wexec wuid ro; do \ + sed s/script/script-$$N/ < script > script-$$N ; \ + pod2man --section 1 script-$$N > script-$$N.1 ; \ + done + pod2man --section 1 script > script.1 + +override_dh_fixperms: + dh_fixperms + + chmod 0444 debian/$(PKG)/usr/share/doc/$(PKG)/read-only + chmod 4755 debian/$(PKG)/usr/bin/script-uid + chmod 2755 debian/$(PKG)/usr/bin/script-gid + chmod 6755 debian/$(PKG)/usr/bin/script-ugid + chmod 0775 debian/$(PKG)/usr/bin/script-wexec + chmod 4744 debian/$(PKG)/usr/bin/script-wuid + chmod 0751 debian/$(PKG)/usr/bin/script-ro + chmod 0644 debian/$(PKG)/usr/lib/some-where/sample.ali + chmod 0744 debian/$(PKG)/usr/share/doc/$(PKG) + chmod 0755 debian/$(PKG)/usr/share/doc/$(PKG)/some-file + chmod 0755 debian/$(PKG)/etc/cron.d/script + chmod 0755 debian/$(PKG)/etc/emacs.d/script + chmod 0765 debian/$(PKG)/etc/init.d/binary diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/fill-values b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/fill-values new file mode 100644 index 0000000..c914891 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-bad-perm-owner +Description: General permissions and owner tests diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/README b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/README new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/README @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/read-only b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/read-only new file mode 100644 index 0000000..1a3fca1 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/read-only @@ -0,0 +1 @@ +Fadango on the core diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/sample.ali b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/sample.ali new file mode 100644 index 0000000..fec3fc8 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/sample.ali @@ -0,0 +1 @@ +This is not a valid ali file diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/script b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/script new file mode 100755 index 0000000..8521013 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/script @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +echo "Aloha" + +exit 0 + +=head1 NAME + +script -- prints Aloha to stdout + +=head1 SYNOPSIS + + script + +=head1 DESCRIPTION + +Prints Aloha to stdout and that is it. + diff --git a/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/some-file b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/some-file new file mode 100644 index 0000000..0dfa8ff --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/build-spec/orig/some-file @@ -0,0 +1,2 @@ +This is executable and should not be. :) + - Unfortunately it triggers an extra tag... oh well. diff --git a/t/recipes/checks/cron/files-bad-perm-owner/eval/desc b/t/recipes/checks/cron/files-bad-perm-owner/eval/desc new file mode 100644 index 0000000..952600a --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/eval/desc @@ -0,0 +1,2 @@ +Testname: files-bad-perm-owner +Check: cron diff --git a/t/recipes/checks/cron/files-bad-perm-owner/eval/hints b/t/recipes/checks/cron/files-bad-perm-owner/eval/hints new file mode 100644 index 0000000..c371cc7 --- /dev/null +++ b/t/recipes/checks/cron/files-bad-perm-owner/eval/hints @@ -0,0 +1 @@ +binary (binary): bad-permissions-for-etc-cron.d-script 0755 != 0644 [etc/cron.d/script] diff --git a/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/debian/install b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/debian/install new file mode 100644 index 0000000..02c3f92 --- /dev/null +++ b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/debian/install @@ -0,0 +1,2 @@ +_bad-pkcs11.module usr/share/p11-kit/modules/ +cron-script.hourly etc/cron.hourly/ diff --git a/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/fill-values b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/fill-values new file mode 100644 index 0000000..abbdaca --- /dev/null +++ b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-foo-violates-expected-naming +Description: Test naming conventions not being followed diff --git a/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/_bad-pkcs11.module b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/_bad-pkcs11.module new file mode 100644 index 0000000..e69de29 diff --git a/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/cron-script.hourly b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/cron-script.hourly new file mode 100755 index 0000000..ad6e129 --- /dev/null +++ b/t/recipes/checks/cron/files-foo-violates-expected-naming/build-spec/orig/cron-script.hourly @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "Hallo World" diff --git a/t/recipes/checks/cron/files-foo-violates-expected-naming/eval/desc b/t/recipes/checks/cron/files-foo-violates-expected-naming/eval/desc new file mode 100644 index 0000000..9b3431a --- /dev/null +++ b/t/recipes/checks/cron/files-foo-violates-expected-naming/eval/desc @@ -0,0 +1,2 @@ +Testname: files-foo-violates-expected-naming +Check: cron diff --git a/t/recipes/checks/cron/files-foo-violates-expected-naming/eval/hints b/t/recipes/checks/cron/files-foo-violates-expected-naming/eval/hints new file mode 100644 index 0000000..7d9bb33 --- /dev/null +++ b/t/recipes/checks/cron/files-foo-violates-expected-naming/eval/hints @@ -0,0 +1 @@ +files-foo-violates-expected-naming (binary): run-parts-cron-filename-contains-illegal-chars [etc/cron.hourly/cron-script.hourly] diff --git a/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/README.Debian b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/README.Debian new file mode 100644 index 0000000..e289bfb --- /dev/null +++ b/t/recipes/checks/cron/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 , Mon, 18 Feb 2008 16:40:55 -0800 diff --git a/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/changelog.in b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/changelog.in new file mode 100644 index 0000000..00cdc77 --- /dev/null +++ b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/changelog.in @@ -0,0 +1,7 @@ +etcfiles ([% $version %]) [% $distribution %]; urgency=low + + * Acknowledge NMU (Closes: #123456). + * initial setup + + -- Lintian Maintainers Fri, 21 Sep 2001 11:56:02 -0700 + diff --git a/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/conffiles b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/conffiles new file mode 100644 index 0000000..76032b7 --- /dev/null +++ b/t/recipes/checks/cron/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/cron/legacy-etcfiles/build-spec/debian/conffiles.only b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/conffiles.only new file mode 100644 index 0000000..a4b3895 --- /dev/null +++ b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/conffiles.only @@ -0,0 +1,2 @@ +/etc/etcfiles/foo +/etc/etcfiles/bar diff --git a/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/control b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/control new file mode 100644 index 0000000..f3dbda7 --- /dev/null +++ b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/control @@ -0,0 +1,20 @@ +Source: etcfiles +Section: misc +Priority: optional +Maintainer: Lintian Maintainers +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/cron/legacy-etcfiles/build-spec/debian/rules b/t/recipes/checks/cron/legacy-etcfiles/build-spec/debian/rules new file mode 100755 index 0000000..97ff09f --- /dev/null +++ b/t/recipes/checks/cron/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/cron/legacy-etcfiles/build-spec/fill-values b/t/recipes/checks/cron/legacy-etcfiles/build-spec/fill-values new file mode 100644 index 0000000..86deb10 --- /dev/null +++ b/t/recipes/checks/cron/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/cron/legacy-etcfiles/build-spec/orig/improper b/t/recipes/checks/cron/legacy-etcfiles/build-spec/orig/improper new file mode 100644 index 0000000..23656f4 --- /dev/null +++ b/t/recipes/checks/cron/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/cron/legacy-etcfiles/build-spec/orig/proper b/t/recipes/checks/cron/legacy-etcfiles/build-spec/orig/proper new file mode 100644 index 0000000..f3dc68b --- /dev/null +++ b/t/recipes/checks/cron/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/cron/legacy-etcfiles/eval/desc b/t/recipes/checks/cron/legacy-etcfiles/eval/desc new file mode 100644 index 0000000..0432bda --- /dev/null +++ b/t/recipes/checks/cron/legacy-etcfiles/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-etcfiles +Check: cron diff --git a/t/recipes/checks/cron/legacy-etcfiles/eval/hints b/t/recipes/checks/cron/legacy-etcfiles/eval/hints new file mode 100644 index 0000000..733886c --- /dev/null +++ b/t/recipes/checks/cron/legacy-etcfiles/eval/hints @@ -0,0 +1 @@ +etcfiles (binary): run-parts-cron-filename-contains-illegal-chars [etc/cron.daily/cronfile-contains.fullstop] diff --git a/t/recipes/checks/cron/legacy-etcfiles/eval/post-test b/t/recipes/checks/cron/legacy-etcfiles/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/cron/legacy-etcfiles/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ -- cgit v1.2.3