packaging: Use dh-sysuser
We can drop adding the group manually. We move the udev triggering to the end to ensure the group is already there. Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Vendored
+1
@@ -6,6 +6,7 @@ Build-Depends:
|
|||||||
dbus,
|
dbus,
|
||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13),
|
||||||
dh-sequence-gir,
|
dh-sequence-gir,
|
||||||
|
dh-sequence-installsysusers,
|
||||||
gsettings-desktop-schemas <!nocheck>,
|
gsettings-desktop-schemas <!nocheck>,
|
||||||
gi-docgen <!nodoc>,
|
gi-docgen <!nodoc>,
|
||||||
gir1.2-gio-2.0-dev <!nogir>,
|
gir1.2-gio-2.0-dev <!nogir>,
|
||||||
|
|||||||
Vendored
+1
@@ -1,5 +1,6 @@
|
|||||||
usr/bin/
|
usr/bin/
|
||||||
usr/lib/systemd/user
|
usr/lib/systemd/user
|
||||||
|
usr/lib/sysusers.d/feedbackd.conf
|
||||||
usr/lib/udev/
|
usr/lib/udev/
|
||||||
usr/libexec/
|
usr/libexec/
|
||||||
usr/share/dbus-1/
|
usr/share/dbus-1/
|
||||||
|
|||||||
Vendored
+4
-7
@@ -17,12 +17,12 @@ set -e
|
|||||||
# for details, see https://www.debian.org/doc/debian-policy/ or
|
# for details, see https://www.debian.org/doc/debian-policy/ or
|
||||||
# the debian-policy package
|
# the debian-policy package
|
||||||
|
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
if ! getent group feedbackd >/dev/null; then
|
|
||||||
addgroup --quiet --system feedbackd
|
|
||||||
fi
|
|
||||||
|
|
||||||
# we ship udev rules, so trigger an update
|
# we ship udev rules, so trigger an update
|
||||||
udevadm trigger --subsystem-match=leds --subsystem-match=input --action=change || true
|
udevadm trigger --subsystem-match=leds --subsystem-match=input --action=change || true
|
||||||
;;
|
;;
|
||||||
@@ -37,9 +37,6 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# dh_installdeb will replace this with shell code automatically
|
# dh_installdeb will replace this with shell code automatically
|
||||||
# generated by other debhelper scripts.
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user