summaryrefslogtreecommitdiff
path: root/autoscripts
AgeCommit message (Collapse)AuthorFilesLines
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
2010-04-10Remove autoscripts for GConfJosselin Mouette4-12/+0
Starting from 2.28.1-2, the gconf2 package uses triggers which make the maintainer scripts obsolete.
2009-12-29consistent indentJoey Hess1-1/+1
2009-08-21dh_installudev transitionJoey Hess1-5/+0
* dh_installudev: Install rules files into new location /lib/udev/rules.d/ * dh_installudev: Add code to delete old conffiles unless they're modified, and in that case, rename them to override the corresponding file in /lib/udev. (Based on patch by Martin Pitt.) (Note that this file will not be deleted on purge -- I can't see a good way to determine when it's appropriate to do that.) * dh_installudev: Set default priority to 60; dropping the "z". If --priority=zNN is passed, treat that as priority NN. * Above Closes: #491117 * dh_installudev: Drop code handling move of /etc/udev/foo into /etc/udev/rules.d/.
2009-06-26dh_installinfo: No longer inserts install-info calls into maintainer scriptsJoey Hess2-6/+0
as that is now triggerized. Adds a dependency via misc:Depends to handle partial upgrades. Note that while dh_installinfo already required that info files had a INFO-DIR-SECTION, the new system also requires they have START-INFO-DIR-ENTRY and END-INFO-DIR-ENTRY for proper registration. I assume there will be some mass bug filing for any packages that do not have that. Closes: #528864
2009-05-29dh_gconf: Remove postrm fragment that handled schema migration from /etc to ↵Joey Hess1-10/+0
/usr. Closes: #531035
2009-05-27dh_scrollkeeper: Now a deprecated no-op. Closes: #530806Joey Hess2-6/+0
2009-04-10dh_desktop: Now a deprecated no-op, since desktop-file-utils uses triggers. ↵Joey Hess2-6/+0
Closes: #523474 (also Closes: #521960, #407701 as no longer applicable)
2009-03-09Revert "dh_installmenus: Now that a triggers capable menu and dpkg are in ↵Joey Hess2-0/+4
stable, menu does not need to be explicitly run in maintainer scripts, except for packages with menu-methods files. (See #473467)" This reverts commit 651be44c078b91112bf18d87d3629d23beb1a5c7. Conflicts: debian/changelog
2009-03-06dh_installdocs: No longer add maintainer script code to call doc-base, as it ↵Joey Hess2-7/+0
supports triggers in stable.
2009-03-06dh_installmenus: Now that a triggers capable menu and dpkg are in stable, ↵Joey Hess2-4/+0
menu does not need to be explicitly run in maintainer scripts, except for packages with menu-methods files. (See #473467)
2009-03-02conffile moving idiocyJoey Hess4-16/+18
* dh_installmodules: Give files in /etc/modprobe.d a .conf syntax, as required by new module-init-tools. * dh_installmodules: Add preinst and postinst code to handle cleanly renaming the modprobe.d files on upgrade. * Two updates to conffile moving code from wiki: - Support case where the conffile name is a substring of another conffile's name. - Support case where dpkg-query says the file is obsolete.