summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/init-d/init.d-symlink
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/init-d/init.d-symlink
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/init-d/init.d-symlink')
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links2
-rwxr-xr-xt/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst4
-rwxr-xr-xt/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm6
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values3
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/eval/desc5
-rw-r--r--t/recipes/checks/init-d/init.d-symlink/eval/hints1
6 files changed, 21 insertions, 0 deletions
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links
new file mode 100644
index 0000000..2fe7261
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/links
@@ -0,0 +1,2 @@
+/lib/init/upstart-job etc/init.d/lintian
+/lib/init/upstart-job etc/init.d/lintian-unreg
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst
new file mode 100755
index 0000000..ed6bc65
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+update-rc.d lintian defaults >/dev/null
+#DEBHELPER#
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm
new file mode 100755
index 0000000..4bf5ee6
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/debian/postrm
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+if [ "$1" = purse ] ; then
+ update-rc.d lintian remove >/dev/null
+fi
+#DEBHELPER#
diff --git a/t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values b/t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values
new file mode 100644
index 0000000..f6ac70a
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: init.d-symlink
+Description: Check proper handling of symlinked init scripts
diff --git a/t/recipes/checks/init-d/init.d-symlink/eval/desc b/t/recipes/checks/init-d/init.d-symlink/eval/desc
new file mode 100644
index 0000000..5f98c29
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/eval/desc
@@ -0,0 +1,5 @@
+Testname: init.d-symlink
+Test-Against:
+ init.d-script-not-included-in-package
+ init.d-script-not-marked-as-conffile
+Check: init-d
diff --git a/t/recipes/checks/init-d/init.d-symlink/eval/hints b/t/recipes/checks/init-d/init.d-symlink/eval/hints
new file mode 100644
index 0000000..8d92c7c
--- /dev/null
+++ b/t/recipes/checks/init-d/init.d-symlink/eval/hints
@@ -0,0 +1 @@
+init.d-symlink (binary): upstart-job-in-etc-init.d-not-registered-via-update-rc.d [etc/init.d/lintian-unreg]