summaryrefslogtreecommitdiffstats
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--autoscripts/maintscript-helper1
-rw-r--r--autoscripts/postinst-alternatives3
-rw-r--r--autoscripts/postinst-emacsen5
-rw-r--r--autoscripts/postinst-icons5
-rw-r--r--autoscripts/postinst-init6
-rw-r--r--autoscripts/postinst-init-nostart5
-rw-r--r--autoscripts/postinst-init-restart11
-rw-r--r--autoscripts/postinst-init-tmpfiles7
-rw-r--r--autoscripts/postinst-menu3
-rw-r--r--autoscripts/postinst-menu-method7
-rw-r--r--autoscripts/postinst-modules5
-rw-r--r--autoscripts/postinst-systemd-dont-enable15
-rw-r--r--autoscripts/postinst-systemd-enable15
-rw-r--r--autoscripts/postinst-systemd-restart11
-rw-r--r--autoscripts/postinst-systemd-restartnostart8
-rw-r--r--autoscripts/postinst-systemd-start6
-rw-r--r--autoscripts/postinst-systemd-user-dont-enable15
-rw-r--r--autoscripts/postinst-systemd-user-enable15
-rw-r--r--autoscripts/postinst-sysusers3
-rw-r--r--autoscripts/postinst-ucf4
-rw-r--r--autoscripts/postinst-usrlocal29
-rw-r--r--autoscripts/postinst-wm6
-rw-r--r--autoscripts/postinst-wm-noman4
-rw-r--r--autoscripts/postinst-xfonts3
-rw-r--r--autoscripts/postrm-debconf4
-rw-r--r--autoscripts/postrm-icons3
-rw-r--r--autoscripts/postrm-init3
-rw-r--r--autoscripts/postrm-menu1
-rw-r--r--autoscripts/postrm-menu-method3
-rw-r--r--autoscripts/postrm-modules3
-rw-r--r--autoscripts/postrm-sgmlcatalog3
-rw-r--r--autoscripts/postrm-systemd12
-rw-r--r--autoscripts/postrm-systemd-reload-only3
-rw-r--r--autoscripts/postrm-systemd-user12
-rw-r--r--autoscripts/postrm-ucf12
-rw-r--r--autoscripts/postrm-xfonts3
-rw-r--r--autoscripts/preinst-emacsen5
-rw-r--r--autoscripts/prerm-alternatives3
-rw-r--r--autoscripts/prerm-emacsen3
-rw-r--r--autoscripts/prerm-init3
-rw-r--r--autoscripts/prerm-init-norestart3
-rw-r--r--autoscripts/prerm-systemd3
-rw-r--r--autoscripts/prerm-systemd-restart3
-rw-r--r--autoscripts/prerm-usrlocal7
-rw-r--r--autoscripts/prerm-wm3
45 files changed, 287 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..aa2eed0
--- /dev/null
+++ b/autoscripts/postinst-icons
@@ -0,0 +1,5 @@
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
+ if which update-icon-caches >/dev/null 2>&1 ; then
+ update-icon-caches #DIRLIST#
+ fi
+fi
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init
new file mode 100644
index 0000000..535b40c
--- /dev/null
+++ b/autoscripts/postinst-init
@@ -0,0 +1,6 @@
+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
+ 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..19dff68
--- /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 [ -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..f258293
--- /dev/null
+++ b/autoscripts/postinst-init-tmpfiles
@@ -0,0 +1,7 @@
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
+ # In case this system is running systemd, we need to ensure that all
+ # necessary tmpfiles (if any) are created before starting.
+ if [ -d /run/systemd/system ] ; then
+ systemd-tmpfiles --create #TMPFILES# >/dev/null || true
+ fi
+fi
diff --git a/autoscripts/postinst-menu b/autoscripts/postinst-menu
new file mode 100644
index 0000000..b56a346
--- /dev/null
+++ b/autoscripts/postinst-menu
@@ -0,0 +1,3 @@
+if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
+ update-menus
+fi
diff --git a/autoscripts/postinst-menu-method b/autoscripts/postinst-menu-method
new file mode 100644
index 0000000..c56d625
--- /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 "`which update-menus 2>/dev/null`" ]; 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..6ecec62
--- /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
+ # This will only remove masks created by d-s-h on package removal.
+ 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..c0b2574
--- /dev/null
+++ b/autoscripts/postinst-systemd-enable
@@ -0,0 +1,15 @@
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
+ # This will only remove masks created by d-s-h on package removal.
+ 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..d3f199c
--- /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 [ -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..6a24ad8
--- /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 [ -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..0837257
--- /dev/null
+++ b/autoscripts/postinst-systemd-user-dont-enable
@@ -0,0 +1,15 @@
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
+ if deb-systemd-helper --user debian-installed #UNITFILE# ; then
+ # This will only remove masks created by d-s-h on package removal.
+ 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
diff --git a/autoscripts/postinst-systemd-user-enable b/autoscripts/postinst-systemd-user-enable
new file mode 100644
index 0000000..b16f61f
--- /dev/null
+++ b/autoscripts/postinst-systemd-user-enable
@@ -0,0 +1,15 @@
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
+ # This will only remove masks created by d-s-h on package removal.
+ 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
diff --git a/autoscripts/postinst-sysusers b/autoscripts/postinst-sysusers
new file mode 100644
index 0000000..7784e53
--- /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 #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..96390e4
--- /dev/null
+++ b/autoscripts/postinst-xfonts
@@ -0,0 +1,3 @@
+if which update-fonts-dir >/dev/null 2>&1; 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..9e00f03
--- /dev/null
+++ b/autoscripts/postrm-icons
@@ -0,0 +1,3 @@
+if which update-icon-caches >/dev/null 2>&1 ; then
+ update-icon-caches #DIRLIST#
+fi
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
new file mode 100644
index 0000000..1c29298
--- /dev/null
+++ b/autoscripts/postrm-init
@@ -0,0 +1,3 @@
+if [ "$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..a180558
--- /dev/null
+++ b/autoscripts/postrm-menu
@@ -0,0 +1 @@
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method
new file mode 100644
index 0000000..ffa1e48
--- /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 "`which update-menus 2>/dev/null`" ]; 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..d95013b
--- /dev/null
+++ b/autoscripts/postrm-systemd
@@ -0,0 +1,12 @@
+if [ "$1" = "remove" ]; then
+ if [ -x "/usr/bin/deb-systemd-helper" ]; then
+ deb-systemd-helper mask #UNITFILES# >/dev/null || true
+ fi
+fi
+
+if [ "$1" = "purge" ]; then
+ if [ -x "/usr/bin/deb-systemd-helper" ]; then
+ deb-systemd-helper purge #UNITFILES# >/dev/null || true
+ deb-systemd-helper unmask #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..c251c34
--- /dev/null
+++ b/autoscripts/postrm-systemd-reload-only
@@ -0,0 +1,3 @@
+if [ -d /run/systemd/system ] && [ "$1" = remove ]; 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..bf48d1a
--- /dev/null
+++ b/autoscripts/postrm-systemd-user
@@ -0,0 +1,12 @@
+if [ "$1" = "remove" ]; then
+ if [ -x "/usr/bin/deb-systemd-helper" ] ; then
+ deb-systemd-helper --user mask #UNITFILES# >/dev/null || true
+ fi
+fi
+
+if [ "$1" = "purge" ]; then
+ if [ -x "/usr/bin/deb-systemd-helper" ] ; then
+ deb-systemd-helper --user purge #UNITFILES# >/dev/null || true
+ deb-systemd-helper --user unmask #UNITFILES# >/dev/null || true
+ fi
+fi
diff --git a/autoscripts/postrm-ucf b/autoscripts/postrm-ucf
new file mode 100644
index 0000000..da37572
--- /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 "`which ucf 2>/dev/null`" ]; then
+ ucf --purge "#UCFDEST#"
+ fi
+ if [ -x "`which ucfr 2>/dev/null`" ]; then
+ ucfr --purge #PACKAGE# "#UCFDEST#"
+ fi
+fi
diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts
new file mode 100644
index 0000000..cd476a3
--- /dev/null
+++ b/autoscripts/postrm-xfonts
@@ -0,0 +1,3 @@
+if [ -x "`which update-fonts-dir 2>/dev/null`" ]; 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/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..f8707b9
--- /dev/null
+++ b/autoscripts/prerm-init
@@ -0,0 +1,3 @@
+if [ -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..97f2174
--- /dev/null
+++ b/autoscripts/prerm-init-norestart
@@ -0,0 +1,3 @@
+if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; 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..d85223f
--- /dev/null
+++ b/autoscripts/prerm-systemd
@@ -0,0 +1,3 @@
+if [ -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..13b0388
--- /dev/null
+++ b/autoscripts/prerm-systemd-restart
@@ -0,0 +1,3 @@
+if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
+ deb-systemd-invoke 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