Control: tags 1029441 + patch Control: tags 1029441 + pending Dear maintainer,
I've prepared an NMU for usbauth-notifier (versioned as 1.0.4-2.1) and uploaded it to DELAYED/7. Please feel free to tell me if I should cancel it. cu Adrian
diff -Nru usbauth-notifier-1.0.4/debian/changelog usbauth-notifier-1.0.4/debian/changelog --- usbauth-notifier-1.0.4/debian/changelog 2023-01-11 10:46:45.000000000 +0200 +++ usbauth-notifier-1.0.4/debian/changelog 2023-02-19 00:24:21.000000000 +0200 @@ -1,3 +1,13 @@ +usbauth-notifier (1.0.4-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Remove the unused debconf handling. + * Move the addgroup calls from the preinst to the postinst + and make failure fatal. + * Add the missing dependency on adduser. (Closes: #1029441) + + -- Adrian Bunk <b...@debian.org> Sun, 19 Feb 2023 00:24:21 +0200 + usbauth-notifier (1.0.4-2) unstable; urgency=medium * Fix d/watch issue diff -Nru usbauth-notifier-1.0.4/debian/control usbauth-notifier-1.0.4/debian/control --- usbauth-notifier-1.0.4/debian/control 2023-01-11 10:40:05.000000000 +0200 +++ usbauth-notifier-1.0.4/debian/control 2023-02-19 00:24:21.000000000 +0200 @@ -9,7 +9,6 @@ libudev-dev, libdbus-1-dev, pkg-config, - po-debconf Standards-Version: 4.6.1 Homepage: https://github.com/kochstefan/usbauth-all/tree/master/usbauth-notifier Vcs-Git: https://salsa.debian.org/debian/usbauth-notifier.git @@ -18,8 +17,7 @@ Package: usbauth-notifier Architecture: linux-any -Pre-Depends: debconf -Depends: ${shlibs:Depends}, ${misc:Depends}, usbauth +Depends: ${shlibs:Depends}, ${misc:Depends}, usbauth, adduser Description: Notifier for USB Firewall to use with desktop environments A notifier for the usbauth firewall against BadUSB attacks. The user could manually allow or deny USB devices. Every user that wants use the notifier must diff -Nru usbauth-notifier-1.0.4/debian/postinst usbauth-notifier-1.0.4/debian/postinst --- usbauth-notifier-1.0.4/debian/postinst 2021-02-08 11:16:10.000000000 +0200 +++ usbauth-notifier-1.0.4/debian/postinst 2023-02-19 00:24:21.000000000 +0200 @@ -2,8 +2,13 @@ set -e -# source debconf library -. /usr/share/debconf/confmodule +if ! getent group usbauth>/dev/null; then + addgroup --system --quiet usbauth +fi + +if ! getent group usbauth-notifier>/dev/null; then + addgroup --system --quiet usbauth-notifier +fi NPRIV_PATH=/usr/libexec/usbauth-npriv NOTIFIER_DIR=/usr/libexec/usbauth-notifier @@ -19,6 +24,4 @@ #DEBHELPER# -db_stop - exit 0 diff -Nru usbauth-notifier-1.0.4/debian/postrm usbauth-notifier-1.0.4/debian/postrm --- usbauth-notifier-1.0.4/debian/postrm 2021-02-08 11:16:10.000000000 +0200 +++ usbauth-notifier-1.0.4/debian/postrm 2023-02-19 00:24:21.000000000 +0200 @@ -2,17 +2,11 @@ set -e -# source debconf library -. /usr/share/debconf/confmodule - if [ "$1" = "purge" ]; then delgroup --system --quiet usbauth || true delgroup --system --quiet usbauth-notifier || true - db_purge fi #DEBHELPER# -db_stop - exit 0 diff -Nru usbauth-notifier-1.0.4/debian/preinst usbauth-notifier-1.0.4/debian/preinst --- usbauth-notifier-1.0.4/debian/preinst 2021-02-08 11:16:10.000000000 +0200 +++ usbauth-notifier-1.0.4/debian/preinst 1970-01-01 02:00:00.000000000 +0200 @@ -1,20 +0,0 @@ -#!/bin/sh - -set -e - -# source debconf library -. /usr/share/debconf/confmodule - -if ! getent group usbauth>/dev/null; then - addgroup --system --quiet usbauth || true -fi - -if ! getent group usbauth-notifier>/dev/null; then - addgroup --system --quiet usbauth-notifier || true -fi - -#DEBHELPER# - -db_stop - -exit 0