[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 03/04: Add test to make sure masked services are not complained about



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 2fc9bc8156678da3d667b778288c0460479eb24f
Author: Felipe Sateler <fsateler@debian.org>
Date:   Thu Jul 16 19:24:38 2015 -0300

    Add test to make sure masked services are not complained about
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/tests/systemd-general/debian/debian/links       |  1 +
 t/tests/systemd-general/debian/debian/masked.init | 27 +++++++++++++++++++++++
 t/tests/systemd-general/debian/debian/rules       |  1 +
 t/tests/systemd-general/tags                      |  1 +
 4 files changed, 30 insertions(+)

diff --git a/t/tests/systemd-general/debian/debian/links b/t/tests/systemd-general/debian/debian/links
new file mode 100644
index 0000000..c022cff
--- /dev/null
+++ b/t/tests/systemd-general/debian/debian/links
@@ -0,0 +1 @@
+/dev/null /lib/systemd/system/masked.service
diff --git a/t/tests/systemd-general/debian/debian/masked.init b/t/tests/systemd-general/debian/debian/masked.init
new file mode 100644
index 0000000..0f6abf0
--- /dev/null
+++ b/t/tests/systemd-general/debian/debian/masked.init
@@ -0,0 +1,27 @@
+#!/bin/sh
+# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
+if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
+    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
+fi
+### BEGIN INIT INFO
+# Provides:          masked
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Example initscript
+# Description:       This file should be used to construct scripts to be
+#                    placed in /etc/init.d.  This example start a
+#                    single forking daemon capable of writing a pid
+#                    file.  To get other behavoirs, implemend
+#                    do_start(), do_stop() or other functions to
+#                    override the defaults in /lib/init/init-d-script.
+### END INIT INFO
+
+# Author: Foo Bar <foobar@baz.org>
+#
+# Please remove the "Author" lines above and replace them
+# with your own name if you copy and modify this script.
+
+DESC="Description of the service"
+DAEMON=/usr/sbin/daemonexecutablename
diff --git a/t/tests/systemd-general/debian/debian/rules b/t/tests/systemd-general/debian/debian/rules
index ef793af..ea39c0e 100644
--- a/t/tests/systemd-general/debian/debian/rules
+++ b/t/tests/systemd-general/debian/debian/rules
@@ -13,6 +13,7 @@ override_dh_install:
 	mkfifo $(INITD_DIR)/fifo-pipe-as-init
 	mkfifo $(SYSD_DIR)/fifo-pipe-as-init.service
 	install -m 0755 debian/bootmisc.sh $(INITD_DIR)
+	install -m 0755 debian/masked.init $(INITD_DIR)/masked
 	touch $(INITD_DIR)/README
 
 override_dh_fixperms:
diff --git a/t/tests/systemd-general/tags b/t/tests/systemd-general/tags
index d570cdb..9f35134 100644
--- a/t/tests/systemd-general/tags
+++ b/t/tests/systemd-general/tags
@@ -14,5 +14,6 @@ W: systemd-general: init.d-script-does-not-source-init-functions etc/init.d/syst
 W: systemd-general: maintainer-script-calls-systemctl postrm:6
 W: systemd-general: script-in-etc-init.d-not-registered-via-update-rc.d etc/init.d/bootmisc.sh
 W: systemd-general: script-in-etc-init.d-not-registered-via-update-rc.d etc/init.d/fifo-pipe-as-init
+W: systemd-general: script-in-etc-init.d-not-registered-via-update-rc.d etc/init.d/masked
 W: systemd-general: systemd-service-file-refers-to-obsolete-target etc/systemd/system/test.service syslog.target
 W: systemd-general: systemd-service-file-refers-to-obsolete-target usr/lib/systemd/system/test.service syslog.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: