summaryrefslogtreecommitdiff
path: root/autoscripts
AgeCommit message (Collapse)AuthorFilesLines
2018-10-28dh_installsystemd: Refactor to suport new maintscripts actions easierFabian Grünbichler2-2/+2
Extracted from MR !14. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-14dh_installsystemduser: New helper to handle systemd user instance unitsDaniele Nicolodi3-0/+42
Add a new 'dh_installsystemduser' helper responsible for istalling package maintainer supplied systemd user instance units and to produce postinst and postrm maintiner scripts code blocks to appropriately enable, mask and disable units when the package is installed, upgraded, or removed.
2018-09-03Make dh_install{init,systemd}'s autoscripts independent [c12]Niels Thykier4-4/+4
Have dh_installinit use the new --skip-systemd-native parameter and let dh_installsystemd always generate autoscript snippets for systemd services. This ensures that dh_installsystemd's snippet will be used for starting the services and will among other ensure that services are properly unmasked before started. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-02dh_installinit: Skip systemctl daemon-reload in c12Niels Thykier1-7/+0
It is not dh_installinit's job and dh_installsystemd already does it. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-18dh_installinitramfs: New helper toolNiels Thykier2-0/+10
2018-04-07dh_usrlocal: Use default owner+mode from Policy v4.1.4Niels Thykier1-2/+15
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-15autoscripts/postinst-systemd-restart: Fix indentationChristoph Biedl1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-20autoscripts/postinst-*: Handle all current abort-* casesNiels Thykier15-17/+19
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-14autoscripts: Improve rollback handlingNiels Thykier11-43/+54
On failed upgrades, dpkg can potentially roll back to the existing version of a package. Improve the scripts to handle this case better. In particularly, ensure that the "postinst" snippets are also run on an "abort-upgrade". Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-01autoscripts/*systemd*: Consistently use "|| true"Niels Thykier3-5/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-04dh_installsystemd,dh_systemd_start: Use restart instad of try-restartNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-12-15systemd_start: do not start when --no-start and --restart-after-upgrade are ↵Felipe Sateler1-0/+6
combined But do restart on upgrades Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-09Merge dh-systemd into debhelper properMichael Biebl8-0/+60
2016-06-15dh_installcatalogs: Explicitly activate sgml-base triggerHelmut Grohne1-8/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-30Drop all uses of autoscripts/*-moveconffileNiels Thykier2-18/+0
The transition for these must have been completed with Wheezy (and probably even Squeeze). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-04-02autoscripts/*-makeshlibs: Remove unneeded filesNiels Thykier2-6/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-17Remove dh_suidregisterNiels Thykier2-12/+0
Last known usage in Debian is in a package that FTBFS. The texlive-bin package also have a reference to the tool, but according the maintainer that invokation does not happen during the Debian build. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-16Revert "Remove dh_suidregister"Niels Thykier2-0/+12
This reverts commit 79a7701dc13dfdcbff1df8e191a87586a7abcd62. Lintian's report on dh_suidregister is unreliable and misses some instances.
2016-01-16Remove dh_suidregisterNiels Thykier2-12/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-15Revert "Remove unused makeshlibs autoscripts"Niels Thykier2-0/+6
This reverts commit adde59b0f80bacfcfb93d061644d51bbcaca5b05.
2016-01-06Revert "dh_installmenu: Remove unncessary snippets for menu files"Niels Thykier2-0/+4
This reverts commit a88e4f7901e6f416afe1167ace57f8d6f79ed59e. We still need the snippet for /executable/ menu files.
2016-01-05dh_installmenu: Remove unncessary snippets for menu filesNiels Thykier2-4/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-05Remove the unused python autoscripts snippetsNiels Thykier2-10/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-05Remove unused makeshlibs autoscriptsNiels Thykier2-6/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-26Revert "dh_installinit: Disable init scripts on removal"Niels Thykier1-9/+2
This reverts commit 0f09b1f88b36eeb99d0b7df8ae2702442e03b45f.
2015-11-26Revert "postrm-init: Tweak to avoid triggering a lintian warning"Niels Thykier1-10/+9
This reverts commit 2059ab8e431cd7ba8392f79c70950e44ce04dc64.
2015-11-07postrm-init: Tweak to avoid triggering a lintian warningNiels Thykier1-9/+10
Lintian should be updated to accept two calls to update-rc.d eventually. But in the mean time, rewrite the script so we do not trigger a lintian warning. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06dh_installinit: Disable init scripts on removalNiels Thykier1-2/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06dh_installinit: Conditionally run the postint snippetsNiels Thykier4-16/+24
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-18Revert "dh_makeshlibs [compat 10]: Pass -X to ldconfig"Niels Thykier2-6/+0
This reverts commit 3543394784238e0f0c75988bb7a647fab0d8c26c. The glibc maintainers said this change would not make sense to deploy in debhelper. Instead, the change (if any) should be done on the glibc side.
2015-04-28Check for emacs-package-install before using itPaul Wise3-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-04dh_makeshlibs [compat 10]: Pass -X to ldconfigNiels Thykier2-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2013-11-03Update dh_installemacsen for emacsen-common 2.0.Modestas Vainius3-4/+9
Update dh_installemacsen and related scripts to follow /usr/share/doc/emacsen-common/debian-emacs-policy.gz as of emacsen-common package version 2.0.5. The changes include: * Install debian/package.emacsen-compat into usr/lib/emacsen-common/packages/compat/package if present * All maintainer scripts test for existance of /var/lib/emacsen-common/state/package/installed/emacsen-common as mandated by policy. * Generate and install preinst maintainer script if needed.
2013-05-07dh_installinit: remove duplicate systemd-tmpfiles callMichael Stapelberg2-12/+0
This was left over in commit 469c74d0ac by mistake. The code is in autoscripts/postinst-init-tmpfiles and gets pulled in only when tmpfiles are actually present.
2013-05-04dh_installinit: call systemd-tmpfiles with the config file namesMichael Stapelberg1-1/+1
This makes the invocation more specific and thus less likely to have any unwanted side effects. The invocation before was: systemd-tmpfiles --create >/dev/null || true With this commit, it becomes: systemd-tmpfiles --create bacula.conf >/dev/null || true (for bacula-fd shipping /etc/tmpfiles.d/bacula.conf)
2013-03-20systemd: update check to look for /run/systemd/systemMichael Stapelberg4-4/+4
The old check (for /sys/fs/cgroup/systemd) is a false-positive on systems which use standalone logind, but not systemd. The new one is recommended and used by upstream systemd in their sd_booted() implementation, see http://cgit.freedesktop.org/systemd/systemd/tree/src/libsystemd-daemon/sd-daemon.c#n518
2012-10-29dh_installinit: only add systemd-tmpfiles --create when shipping tmpfilesMichael Stapelberg2-6/+5
2012-10-28Support systemd in dh_installinit and postinst/postrmMichael Stapelberg4-0/+25
2012-10-28Revert "Support systemd in dh_installinit and postinst/postrm"Joey Hess4-25/+0
This reverts commit a0a7bb3433cba64677cf25c469d626552da9f356. New patch sent.
2012-10-15Support systemd in dh_installinit and postinst/postrmMichael Stapelberg4-0/+25
2012-08-30Merge branch 'wheezy'Joey Hess1-2/+3
2012-08-30dh_installcatalogs: Adjust catalog conffile conversion to avoid dpkg ↵9.20120830Joey Hess1-2/+3
conffile prompt when upgrading from a removed package. Closes: #81194
2012-08-27Do not call update-mime and update-mime-database in maint. scripts as they ↵Charles Plessy4-10/+0
are triggered.
2012-05-28dh_installcatalogs: Turn /etc/sgml/$package.cat into conffiles and introduce ↵Joey Hess4-11/+8
dependency on trigger-based sgml-base. Closes: #477751 Thanks, Helmut Grohne
2011-08-23dh_ucf: fix test for ucf/ucfr availability and quote filenamesJeroen Schot2-7/+7
2011-04-28dh_ucf: Fix missing space before ']'s in postrm autoscript.Jeroen Schot1-2/+2
While making postrm-ucf more like the other autoscripts I introduced two typo's in the code. This patch fixes them.
2011-04-25Bug#213078: debhelper: please consider providing dh_ucfJeroen Schot2-0/+16
Here is a patch against the master branch that adds such a command called dh_installucf. It also registers the conffiles with ucfr and removes stray ucf-{new,old,dist} files on purge.
2011-01-25dh_installinit: never call init scripts directly, only through invoke-rc.dSteve Langasek4-20/+4
2010-11-02maintscript filesJoey Hess1-0/+1
dh_installdeb: Support debian/package.maintscript files, which can contain dpkg-maintscript-helper commands. This can be used to automate moving or removing conffiles, or anything added to dpkg-maintscript-helper later on. Closes: #574443 (Thanks, Colin Watson)
2010-06-16postrm-init: Avoid calling the error handler if update-rc.d fails. Closes: ↵Joey Hess1-1/+1
#586065