Package: acpid Version: 1:2.0.31-1 Severity: wishlist Tags: patch User: ru...@packages.debian.org Usertags: runscript
Dear Maintainer, please consider including support for Runit initialization system. Patch attached. This patch is /not/ to be included into Buster, it introduces build dependency on version of `dh-runit' that is in experimental. Also, I modelled runscript after systemd unit file. Init.d script in addition loads kernel modules. What is the reason for such mismatch? Is systemd unit file is incomplete or modules loading is no longer needed in init script? From 2d7140fca54f2d54edeacf4dce6ce10d49d501e7 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov <kact...@debian.org> Date: Sun, 24 Feb 2019 21:33:40 +0000 Subject: [PATCH] Add native runit script --- debian/acpid.runit | 1 + debian/acpid.runscript | 5 +++++ debian/control | 3 ++- debian/rules | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 debian/acpid.runit create mode 100644 debian/acpid.runscript diff --git a/debian/acpid.runit b/debian/acpid.runit new file mode 100644 index 0000000..d9c6b54 --- /dev/null +++ b/debian/acpid.runit @@ -0,0 +1 @@ +debian/acpid.runscript logscript,name=acpid,since=1:2.0.31-2 diff --git a/debian/acpid.runscript b/debian/acpid.runscript new file mode 100644 index 0000000..d74e0db --- /dev/null +++ b/debian/acpid.runscript @@ -0,0 +1,5 @@ +#!/usr/bin/env /lib/runit/invoke-run +exec 2>&1 +exec /usr/bin/env -i /usr/sbin/acpid --foreground ${OPTIONS:-} + +# vim: ft=sh diff --git a/debian/control b/debian/control index 8201366..d45a33a 100644 --- a/debian/control +++ b/debian/control @@ -5,13 +5,14 @@ Maintainer: Debian Acpi Team <pkg-acpi-de...@lists.alioth.debian.org> Uploaders: Michael Meskes <mes...@debian.org>, Loic Minier <l...@dooz.org> Standards-Version: 4.2.1 -Build-Depends: debhelper (>= 11), dpkg-dev (>= 1.15.7) +Build-Depends: debhelper (>= 11), dpkg-dev (>= 1.15.7), dh-runit (>= 2.8.8) Vcs-Git: https://salsa.debian.org/debian/acpid.git Vcs-Browser: https://salsa.debian.org/debian/acpid Homepage: http://sourceforge.net/projects/acpid2/ Package: acpid Architecture: linux-any +Breaks: ${runit:Breaks} Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.2-14), diff --git a/debian/rules b/debian/rules index 7df4ff4..cbff7af 100755 --- a/debian/rules +++ b/debian/rules @@ -6,7 +6,7 @@ export DEB_CFLAGS_MAINT_PREPEND = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURC export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing %: - dh ${@} + dh ${@} --with runit override_dh_installsystemd: dh_installsystemd --no-enable --name=acpid
pgpZwHbK_yqvr.pgp
Description: PGP signature