Source: tmux Version: 3.3a-3 Tags: patch tmux manages its entry in /etc/shells using add-shell/remove-shell. Consider managing this entry declaratively instead. Since version 5.3-1, debianutils recognizes /usr/share/debianutils/shells.d/tmux and will add those shells to /etc/shells via dpkg triggers. I'm attaching a patch for your convenience.
Helmut
diff --minimal -Nru tmux-3.3a/debian/changelog tmux-3.3a/debian/changelog --- tmux-3.3a/debian/changelog 2022-10-31 17:55:13.000000000 +0100 +++ tmux-3.3a/debian/changelog 2022-11-02 10:22:05.000000000 +0100 @@ -1,3 +1,10 @@ +tmux (3.3a-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Manage /etc/shells using dpkg triggers. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 02 Nov 2022 10:22:05 +0100 + tmux (3.3a-3) unstable; urgency=medium * debian/source/lintian-overrides: Update renamed lintian tag names in diff --minimal -Nru tmux-3.3a/debian/control tmux-3.3a/debian/control --- tmux-3.3a/debian/control 2022-10-31 17:34:11.000000000 +0100 +++ tmux-3.3a/debian/control 2022-11-02 10:22:03.000000000 +0100 @@ -20,7 +20,8 @@ Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, - ${shlibs:Depends} + ${shlibs:Depends}, + debianutils (>= 5.3-1~) Description: terminal multiplexer tmux enables a number of terminals (or windows) to be accessed and controlled from a single terminal like screen. tmux runs as a diff --minimal -Nru tmux-3.3a/debian/postinst tmux-3.3a/debian/postinst --- tmux-3.3a/debian/postinst 2022-09-03 17:46:31.000000000 +0200 +++ tmux-3.3a/debian/postinst 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -#!/bin/sh - -set -e - -if [ "$1" = "configure" ] && [ -z "$2" ]; then - add-shell /usr/bin/tmux -fi - -#DEBHELPER# diff --minimal -Nru tmux-3.3a/debian/postrm tmux-3.3a/debian/postrm --- tmux-3.3a/debian/postrm 2022-06-09 20:03:15.000000000 +0200 +++ tmux-3.3a/debian/postrm 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -#!/bin/sh - -set -e - -if [ "$1" = "remove" ]; then - remove-shell /usr/bin/tmux -fi - -#DEBHELPER# diff --minimal -Nru tmux-3.3a/debian/rules tmux-3.3a/debian/rules --- tmux-3.3a/debian/rules 2022-06-09 20:03:15.000000000 +0200 +++ tmux-3.3a/debian/rules 2022-11-02 10:21:50.000000000 +0100 @@ -7,3 +7,6 @@ override_dh_auto_configure: dh_auto_configure -- --enable-utempter + +execute_after_dh_auto_install: + install -D -m644 debian/shells $(CURDIR)/debian/tmux/usr/share/debianutils/shells.d/tmux diff --minimal -Nru tmux-3.3a/debian/shells tmux-3.3a/debian/shells --- tmux-3.3a/debian/shells 1970-01-01 01:00:00.000000000 +0100 +++ tmux-3.3a/debian/shells 2022-11-02 10:21:07.000000000 +0100 @@ -0,0 +1 @@ +/usr/bin/tmux

