diff options
Diffstat (limited to '')
51 files changed, 299 insertions, 0 deletions
diff --git a/autoscripts/maintscript-helper b/autoscripts/maintscript-helper new file mode 100644 index 0000000..c7e06c4 --- /dev/null +++ b/autoscripts/maintscript-helper @@ -0,0 +1 @@ +dpkg-maintscript-helper #PARAMS# -- "$@" diff --git a/autoscripts/postinst-alternatives b/autoscripts/postinst-alternatives new file mode 100644 index 0000000..eb59f69 --- /dev/null +++ b/autoscripts/postinst-alternatives @@ -0,0 +1,3 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then + update-alternatives #INSTALL_OPTIONS# +fi diff --git a/autoscripts/postinst-emacsen b/autoscripts/postinst-emacsen new file mode 100644 index 0000000..0d3fd13 --- /dev/null +++ b/autoscripts/postinst-emacsen @@ -0,0 +1,5 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-install ] ; then + /usr/lib/emacsen-common/emacs-package-install --postinst #PACKAGE# + fi +fi diff --git a/autoscripts/postinst-icons b/autoscripts/postinst-icons new file mode 100644 index 0000000..802134b --- /dev/null +++ b/autoscripts/postinst-icons @@ -0,0 +1,5 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if command -v update-icon-caches >/dev/null; then + update-icon-caches #DIRLIST# + fi +fi diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init new file mode 100644 index 0000000..8da1a73 --- /dev/null +++ b/autoscripts/postinst-init @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# start || #ERROR_HANDLER# + fi +fi diff --git a/autoscripts/postinst-init-nostart b/autoscripts/postinst-init-nostart new file mode 100644 index 0000000..820a106 --- /dev/null +++ b/autoscripts/postinst-init-nostart @@ -0,0 +1,5 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null || #ERROR_HANDLER# + fi +fi diff --git a/autoscripts/postinst-init-restart b/autoscripts/postinst-init-restart new file mode 100644 index 0000000..d52182b --- /dev/null +++ b/autoscripts/postinst-init-restart @@ -0,0 +1,11 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null + if [ -n "$2" ]; then + _dh_action=restart + else + _dh_action=start + fi + invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# $_dh_action || #ERROR_HANDLER# + fi +fi diff --git a/autoscripts/postinst-init-tmpfiles b/autoscripts/postinst-init-tmpfiles new file mode 100644 index 0000000..b9f7191 --- /dev/null +++ b/autoscripts/postinst-init-tmpfiles @@ -0,0 +1,5 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -x "$(command -v systemd-tmpfiles)" ]; then + systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --create #TMPFILES# >/dev/null || true + fi +fi diff --git a/autoscripts/postinst-menu b/autoscripts/postinst-menu new file mode 100644 index 0000000..08c14ea --- /dev/null +++ b/autoscripts/postinst-menu @@ -0,0 +1,3 @@ +if [ "$1" = "configure" ] && [ -x "`command -v update-menus`" ] && [ -x "$DPKG_ROOT`command -v update-menus`" ]; then + update-menus +fi diff --git a/autoscripts/postinst-menu-method b/autoscripts/postinst-menu-method new file mode 100644 index 0000000..deec034 --- /dev/null +++ b/autoscripts/postinst-menu-method @@ -0,0 +1,7 @@ +inst=/etc/menu-methods/#PACKAGE# +if [ -f $inst ]; then + chmod a+x $inst + if [ -x "`command -v update-menus`" ] && [ -x "$DPKG_ROOT`command -v update-menus`" ]; then + update-menus + fi +fi diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules new file mode 100644 index 0000000..9f8d205 --- /dev/null +++ b/autoscripts/postinst-modules @@ -0,0 +1,5 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -e /boot/System.map-#KVERS# ]; then + depmod -a -F /boot/System.map-#KVERS# #KVERS# || true + fi +fi diff --git a/autoscripts/postinst-systemd-dont-enable b/autoscripts/postinst-systemd-dont-enable new file mode 100644 index 0000000..8cd2bf4 --- /dev/null +++ b/autoscripts/postinst-systemd-dont-enable @@ -0,0 +1,15 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if deb-systemd-helper debian-installed #UNITFILE#; then + # The following line should be removed in trixie or trixie+1 + deb-systemd-helper unmask #UNITFILE# >/dev/null || true + + if deb-systemd-helper --quiet was-enabled #UNITFILE#; then + # Create new symlinks, if any. + deb-systemd-helper enable #UNITFILE# >/dev/null || true + fi + fi + + # Update the statefile to add new symlinks (if any), which need to be cleaned + # up on purge. Also remove old symlinks. + deb-systemd-helper update-state #UNITFILE# >/dev/null || true +fi diff --git a/autoscripts/postinst-systemd-enable b/autoscripts/postinst-systemd-enable new file mode 100644 index 0000000..d06c2fe --- /dev/null +++ b/autoscripts/postinst-systemd-enable @@ -0,0 +1,15 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + # The following line should be removed in trixie or trixie+1 + deb-systemd-helper unmask #UNITFILE# >/dev/null || true + + # was-enabled defaults to true, so new installations run enable. + if deb-systemd-helper --quiet was-enabled #UNITFILE#; then + # Enables the unit on first installation, creates new + # symlinks on upgrades if the unit file has changed. + deb-systemd-helper enable #UNITFILE# >/dev/null || true + else + # Update the statefile to add new symlinks (if any), which need to be + # cleaned up on purge. Also remove old symlinks. + deb-systemd-helper update-state #UNITFILE# >/dev/null || true + fi +fi diff --git a/autoscripts/postinst-systemd-restart b/autoscripts/postinst-systemd-restart new file mode 100644 index 0000000..8155bc0 --- /dev/null +++ b/autoscripts/postinst-systemd-restart @@ -0,0 +1,11 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + if [ -n "$2" ]; then + _dh_action=#RESTART_ACTION# + else + _dh_action=start + fi + deb-systemd-invoke $_dh_action #UNITFILES# >/dev/null || true + fi +fi diff --git a/autoscripts/postinst-systemd-restartnostart b/autoscripts/postinst-systemd-restartnostart new file mode 100644 index 0000000..ebba20b --- /dev/null +++ b/autoscripts/postinst-systemd-restartnostart @@ -0,0 +1,8 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + if [ -n "$2" ]; then + deb-systemd-invoke #RESTART_ACTION# #UNITFILES# >/dev/null || true + fi + fi +fi diff --git a/autoscripts/postinst-systemd-start b/autoscripts/postinst-systemd-start new file mode 100644 index 0000000..9072c53 --- /dev/null +++ b/autoscripts/postinst-systemd-start @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + deb-systemd-invoke start #UNITFILES# >/dev/null || true + fi +fi diff --git a/autoscripts/postinst-systemd-user-dont-enable b/autoscripts/postinst-systemd-user-dont-enable new file mode 100644 index 0000000..a916f2f --- /dev/null +++ b/autoscripts/postinst-systemd-user-dont-enable @@ -0,0 +1,17 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ]; then + if deb-systemd-helper --user debian-installed #UNITFILE# ; then + # The following line should be removed in trixie or trixie+1 + deb-systemd-helper --user unmask #UNITFILE# >/dev/null || true + + if deb-systemd-helper --quiet --user was-enabled #UNITFILE# ; then + # Create new symlinks, if any. + deb-systemd-helper --user enable #UNITFILE# >/dev/null || true + fi + fi + + # Update the statefile to add new symlinks (if any), which need to be cleaned + # up on purge. Also remove old symlinks. + deb-systemd-helper --user update-state #UNITFILE# >/dev/null || true + fi +fi diff --git a/autoscripts/postinst-systemd-user-enable b/autoscripts/postinst-systemd-user-enable new file mode 100644 index 0000000..b400c84 --- /dev/null +++ b/autoscripts/postinst-systemd-user-enable @@ -0,0 +1,17 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ] ; then + # The following line should be removed in trixie or trixie+1 + deb-systemd-helper --user unmask #UNITFILE# >/dev/null || true + + # was-enabled defaults to true, so new installations run enable. + if deb-systemd-helper --quiet --user was-enabled #UNITFILE# ; then + # Enables the unit on first installation, creates new + # symlinks on upgrades if the unit file has changed. + deb-systemd-helper --user enable #UNITFILE# >/dev/null || true + else + # Update the statefile to add new symlinks (if any), which need to be + # cleaned up on purge. Also remove old symlinks. + deb-systemd-helper --user update-state #UNITFILE# >/dev/null || true + fi + fi +fi diff --git a/autoscripts/postinst-systemd-user-restart b/autoscripts/postinst-systemd-user-restart new file mode 100644 index 0000000..5b84939 --- /dev/null +++ b/autoscripts/postinst-systemd-user-restart @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then + systemctl --global daemon-reload >/dev/null || true + deb-systemd-invoke --user restart #UNITFILES# >/dev/null || true + fi +fi diff --git a/autoscripts/postinst-sysusers b/autoscripts/postinst-sysusers new file mode 100644 index 0000000..fdd27d6 --- /dev/null +++ b/autoscripts/postinst-sysusers @@ -0,0 +1,3 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} #CONFILE_BASENAME# +fi diff --git a/autoscripts/postinst-ucf b/autoscripts/postinst-ucf new file mode 100644 index 0000000..7445e94 --- /dev/null +++ b/autoscripts/postinst-ucf @@ -0,0 +1,4 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then + ucf "#UCFSRC#" "#UCFDEST#" + ucfr #PACKAGE# "#UCFDEST#" +fi diff --git a/autoscripts/postinst-usrlocal b/autoscripts/postinst-usrlocal new file mode 100644 index 0000000..e856e0f --- /dev/null +++ b/autoscripts/postinst-usrlocal @@ -0,0 +1,29 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then +( + default_mode=0755 + default_user=root + default_group=root + if [ -e /etc/staff-group-for-usr-local ]; then + default_mode=02775 + default_group=staff + fi + while read line; do + set -- $line + dir="$1"; mode="$2"; user="$3"; group="$4" + if [ "$mode" = "default" ]; then + mode="$default_mode" + user="$default_user" + group="$default_group" + fi + if [ ! -e "$dir" ]; then + if mkdir "$dir" 2>/dev/null; then + if chown "$user":"$group" "$dir" ; then + chmod "$mode" "$dir" || true + fi + fi + fi + done +) << DATA +#DIRS# +DATA +fi diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm new file mode 100644 index 0000000..be00872 --- /dev/null +++ b/autoscripts/postinst-wm @@ -0,0 +1,6 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then + update-alternatives --install /usr/bin/x-window-manager \ + x-window-manager #WM# #PRIORITY# \ + --slave /usr/share/man/man1/x-window-manager.1.gz \ + x-window-manager.1.gz #WMMAN# +fi diff --git a/autoscripts/postinst-wm-noman b/autoscripts/postinst-wm-noman new file mode 100644 index 0000000..07e8d9a --- /dev/null +++ b/autoscripts/postinst-wm-noman @@ -0,0 +1,4 @@ +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then + update-alternatives --install /usr/bin/x-window-manager \ + x-window-manager #WM# #PRIORITY# +fi diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts new file mode 100644 index 0000000..93ca535 --- /dev/null +++ b/autoscripts/postinst-xfonts @@ -0,0 +1,3 @@ +if command -v update-fonts-dir >/dev/null; then + #CMDS# +fi diff --git a/autoscripts/postrm-debconf b/autoscripts/postrm-debconf new file mode 100644 index 0000000..5a61724 --- /dev/null +++ b/autoscripts/postrm-debconf @@ -0,0 +1,4 @@ +if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge +fi diff --git a/autoscripts/postrm-icons b/autoscripts/postrm-icons new file mode 100644 index 0000000..c77c52a --- /dev/null +++ b/autoscripts/postrm-icons @@ -0,0 +1,3 @@ +if command -v update-icon-caches >/dev/null; then + update-icon-caches #DIRLIST# +fi diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init new file mode 100644 index 0000000..6b81341 --- /dev/null +++ b/autoscripts/postrm-init @@ -0,0 +1,6 @@ +if [ "$1" = "remove" ] && [ -x "/etc/init.d/#SCRIPT#" ] ; then + chmod -x "/etc/init.d/#SCRIPT#" >/dev/null || true +fi +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then + update-rc.d #SCRIPT# remove >/dev/null +fi diff --git a/autoscripts/postrm-menu b/autoscripts/postrm-menu new file mode 100644 index 0000000..4c4b00c --- /dev/null +++ b/autoscripts/postrm-menu @@ -0,0 +1 @@ +if [ -x "`command -v update-menus`" ] && [ -x "$DPKG_ROOT`command -v update-menus`" ]; then update-menus ; fi diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method new file mode 100644 index 0000000..bcbdf47 --- /dev/null +++ b/autoscripts/postrm-menu-method @@ -0,0 +1,3 @@ +inst=/etc/menu-methods/#PACKAGE# +if [ "$1" = "remove" ] && [ -f "$inst" ]; then chmod a-x $inst ; fi +if [ -x "`command -v update-menus`" ] && [ -x "$DPKG_ROOT`command -v update-menus`" ]; then update-menus ; fi diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules new file mode 100644 index 0000000..c2577dd --- /dev/null +++ b/autoscripts/postrm-modules @@ -0,0 +1,3 @@ +if [ -e /boot/System.map-#KVERS# ]; then + depmod -a -F /boot/System.map-#KVERS# #KVERS# || true +fi diff --git a/autoscripts/postrm-sgmlcatalog b/autoscripts/postrm-sgmlcatalog new file mode 100644 index 0000000..f8278e6 --- /dev/null +++ b/autoscripts/postrm-sgmlcatalog @@ -0,0 +1,3 @@ +if [ "$1" = "purge" ]; then + rm -f #CENTRALCAT#.old +fi diff --git a/autoscripts/postrm-systemd b/autoscripts/postrm-systemd new file mode 100644 index 0000000..a782f3a --- /dev/null +++ b/autoscripts/postrm-systemd @@ -0,0 +1,5 @@ +if [ "$1" = "purge" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper purge #UNITFILES# >/dev/null || true + fi +fi diff --git a/autoscripts/postrm-systemd-reload-only b/autoscripts/postrm-systemd-reload-only new file mode 100644 index 0000000..dac15c3 --- /dev/null +++ b/autoscripts/postrm-systemd-reload-only @@ -0,0 +1,3 @@ +if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then + systemctl --system daemon-reload >/dev/null || true +fi diff --git a/autoscripts/postrm-systemd-user b/autoscripts/postrm-systemd-user new file mode 100644 index 0000000..0745d6f --- /dev/null +++ b/autoscripts/postrm-systemd-user @@ -0,0 +1,5 @@ +if [ "$1" = "purge" ]; then + if [ -z "${DPKG_ROOT:-}" ] && [ -x "/usr/bin/deb-systemd-helper" ] ; then + deb-systemd-helper --user purge #UNITFILES# >/dev/null || true + fi +fi diff --git a/autoscripts/postrm-systemd-user-reload-only b/autoscripts/postrm-systemd-user-reload-only new file mode 100644 index 0000000..8f41121 --- /dev/null +++ b/autoscripts/postrm-systemd-user-reload-only @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then + systemctl --global daemon-reload >/dev/null || true +fi diff --git a/autoscripts/postrm-ucf b/autoscripts/postrm-ucf new file mode 100644 index 0000000..ff2f32c --- /dev/null +++ b/autoscripts/postrm-ucf @@ -0,0 +1,12 @@ +if [ "$1" = "purge" ]; then + for ext in .ucf-new .ucf-old .ucf-dist ""; do + rm -f "#UCFDEST#$ext" + done + + if [ -x "`command -v ucf`" ]; then + ucf --purge "#UCFDEST#" + fi + if [ -x "`command -v ucfr`" ]; then + ucfr --purge #PACKAGE# "#UCFDEST#" + fi +fi diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts new file mode 100644 index 0000000..57610dc --- /dev/null +++ b/autoscripts/postrm-xfonts @@ -0,0 +1,3 @@ +if [ -x "`command -v update-fonts-dir`" ]; then + #CMDS# +fi diff --git a/autoscripts/preinst-emacsen b/autoscripts/preinst-emacsen new file mode 100644 index 0000000..c4285d9 --- /dev/null +++ b/autoscripts/preinst-emacsen @@ -0,0 +1,5 @@ +if ( [ "$1" = "install" ] || [ "$1" = "upgrade" ] ) \ + && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-install ] +then + /usr/lib/emacsen-common/emacs-package-install --preinst #PACKAGE# +fi diff --git a/autoscripts/preinst-init-chmod b/autoscripts/preinst-init-chmod new file mode 100644 index 0000000..4001b82 --- /dev/null +++ b/autoscripts/preinst-init-chmod @@ -0,0 +1,3 @@ +if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/#SCRIPT#" ] ; then + chmod +x "/etc/init.d/#SCRIPT#" >/dev/null || true +fi diff --git a/autoscripts/preinst-init-stop b/autoscripts/preinst-init-stop new file mode 100644 index 0000000..1cb0175 --- /dev/null +++ b/autoscripts/preinst-init-stop @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = upgrade ] && [ -x "/etc/init.d/#SCRIPT#" ] ; then + invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# stop || #ERROR_HANDLER# +fi diff --git a/autoscripts/preinst-systemd-stop b/autoscripts/preinst-systemd-stop new file mode 100644 index 0000000..f425510 --- /dev/null +++ b/autoscripts/preinst-systemd-stop @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then + deb-systemd-invoke stop #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/prerm-alternatives b/autoscripts/prerm-alternatives new file mode 100644 index 0000000..72eb2cf --- /dev/null +++ b/autoscripts/prerm-alternatives @@ -0,0 +1,3 @@ +if [ "$1" = "remove" ]; then + update-alternatives #RM_OPTIONS# +fi diff --git a/autoscripts/prerm-emacsen b/autoscripts/prerm-emacsen new file mode 100644 index 0000000..4c7c2b0 --- /dev/null +++ b/autoscripts/prerm-emacsen @@ -0,0 +1,3 @@ +if [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common -a -x /usr/lib/emacsen-common/emacs-package-remove ] ; then + /usr/lib/emacsen-common/emacs-package-remove --prerm #PACKAGE# +fi diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init new file mode 100644 index 0000000..94fbcf1 --- /dev/null +++ b/autoscripts/prerm-init @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/#SCRIPT#" ]; then + invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# stop || #ERROR_HANDLER# +fi diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart new file mode 100644 index 0000000..a9408eb --- /dev/null +++ b/autoscripts/prerm-init-norestart @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -x "/etc/init.d/#SCRIPT#" ] ; then + invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# stop || #ERROR_HANDLER# +fi diff --git a/autoscripts/prerm-systemd b/autoscripts/prerm-systemd new file mode 100644 index 0000000..2810349 --- /dev/null +++ b/autoscripts/prerm-systemd @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ]; then + deb-systemd-invoke stop #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/prerm-systemd-restart b/autoscripts/prerm-systemd-restart new file mode 100644 index 0000000..17ee105 --- /dev/null +++ b/autoscripts/prerm-systemd-restart @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then + deb-systemd-invoke stop #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/prerm-systemd-user-stop b/autoscripts/prerm-systemd-user-stop new file mode 100644 index 0000000..beab394 --- /dev/null +++ b/autoscripts/prerm-systemd-user-stop @@ -0,0 +1,3 @@ +if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = remove ] && [ -d /run/systemd/system ] ; then + deb-systemd-invoke --user stop #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/prerm-usrlocal b/autoscripts/prerm-usrlocal new file mode 100644 index 0000000..baafc23 --- /dev/null +++ b/autoscripts/prerm-usrlocal @@ -0,0 +1,7 @@ +( + while read dir; do + rmdir "$dir" 2>/dev/null || true + done +) << DATA +#JUSTDIRS# +DATA diff --git a/autoscripts/prerm-wm b/autoscripts/prerm-wm new file mode 100644 index 0000000..b97d627 --- /dev/null +++ b/autoscripts/prerm-wm @@ -0,0 +1,3 @@ +if [ "$1" = "remove" ]; then + update-alternatives --remove x-window-manager #WM# +fi |