From 81a1cb9028b75304b0261dfd91ba04c0e6b07bb4 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 27 Jan 2002 06:34:33 +0000 Subject: r506: * Introduced the debian/compat file. This is the new, preferred way to say what debhelper compatability level your package uses. It has the big advantage of being available to debhelper when you run it at the command line, as well as in debian/rules. * A new v4 feature: dh_installinit, in v4 mode, will use invoke-rc.d. This is in v4 for testing, but I may well roll it back into v3 (and earlier) once woody is released and I don't have to worry about breaking things (and, presumably, once invoke-rc.d enters policy). * Some debhelper commands will now build up a new substvars variable, ${misc:Depends}, based on things they know your package needs to depend on. For example, dh_installinit in v4 mode adds sysvinit (>= 2.80-1) to that dep list, and dh_installxfonts adds a dep on xutils. This variable should make it easier to keep track of what your package needs to depends on, supplimenting the ${shlibs:Depends} and ${perl:Depends} substvars. Hmm, this appears to be based loosely on an idea by Masato Taruishi , filtered through a long period of mulling it over. Closes: #76352 * Use the addsubstvar function I wrote for the above in dh_perl too. --- autoscripts/postinst-init-invoke | 4 ++++ autoscripts/postinst-init-norestart-invoke | 8 ++++++++ autoscripts/postrm-init-invoke | 3 +++ autoscripts/prerm-init-invoke | 3 +++ autoscripts/prerm-init-norestart-invoke | 3 +++ 5 files changed, 21 insertions(+) create mode 100644 autoscripts/postinst-init-invoke create mode 100644 autoscripts/postinst-init-norestart-invoke create mode 100644 autoscripts/postrm-init-invoke create mode 100644 autoscripts/prerm-init-invoke create mode 100644 autoscripts/prerm-init-norestart-invoke (limited to 'autoscripts') diff --git a/autoscripts/postinst-init-invoke b/autoscripts/postinst-init-invoke new file mode 100644 index 00000000..217a7c8b --- /dev/null +++ b/autoscripts/postinst-init-invoke @@ -0,0 +1,4 @@ +if [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + invoke-rc.d #SCRIPT# start +fi diff --git a/autoscripts/postinst-init-norestart-invoke b/autoscripts/postinst-init-norestart-invoke new file mode 100644 index 00000000..440e8c78 --- /dev/null +++ b/autoscripts/postinst-init-norestart-invoke @@ -0,0 +1,8 @@ +if [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + if [ "$1" = "configure" ]; then + if [ -z "$2" -o "$2" = "" ]; then + invoke-rc.d #SCRIPT# start + fi + fi +fi diff --git a/autoscripts/postrm-init-invoke b/autoscripts/postrm-init-invoke new file mode 100644 index 00000000..1c292982 --- /dev/null +++ b/autoscripts/postrm-init-invoke @@ -0,0 +1,3 @@ +if [ "$1" = "purge" ] ; then + update-rc.d #SCRIPT# remove >/dev/null +fi diff --git a/autoscripts/prerm-init-invoke b/autoscripts/prerm-init-invoke new file mode 100644 index 00000000..ced7aba6 --- /dev/null +++ b/autoscripts/prerm-init-invoke @@ -0,0 +1,3 @@ +if [ -x "/etc/init.d/#SCRIPT#" ]; then + invoke-rc.d #SCRIPT# stop +fi diff --git a/autoscripts/prerm-init-norestart-invoke b/autoscripts/prerm-init-norestart-invoke new file mode 100644 index 00000000..f04d45cf --- /dev/null +++ b/autoscripts/prerm-init-norestart-invoke @@ -0,0 +1,3 @@ +if [ -x "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then + invoke-rc.d #SCRIPT# stop +fi -- cgit v1.2.3