summaryrefslogtreecommitdiff
path: root/autoscripts
AgeCommit message (Collapse)AuthorFilesLines
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.
2009-02-02dh_gconf: Support mandatory settings. Closes: #513923Joey Hess2-2/+2
2008-05-08dh_installinit: Add --restart-after-upgrade, which avoids stopping a daemon ↵Joey Hess1-0/+13
in the prerm, and instead restarts it in the postinst, keeping its downtime minimal. Since some daemons could break if files are upgraded while they're running, it's not the default. It might become the default in a future (v8) compatability level. Closes: #471060
2007-11-02* dh_icons: Now that GTK 2.12 has entered testing, use the much simpler toJoey Hess2-20/+4
call update-icon-caches command. Thanks, Josselin Mouette.
2007-09-18r2030: * dh_installmodules: Since modutils is gone, stop supportingjoeyh2-8/+0
debian/*.modutils files. Warn about such files. Closes: #443127
2007-07-13r2017: * dh_icons: Check for index.theme files before updating the cache.5.0.53joeyh1-1/+1
Closes: #432824
2007-07-09r2013: * Remove DOS line endings from dh_icons scriptlets. Thanks, Daniel ↵joeyh2-22/+22
Holbach. Closes: #432321
2007-07-08r2010: * dh_icons: New program to update Freedesktop icon caches. Thanksjoeyh2-0/+22
to Josselin Mouette, Ross Burton, Jordi Mallach, and Loïc Minier. Closes: #329460 * Note that as a transitional measure, dh_icons will currently only update existing caches, and not create and new caches. Once everything is updating the icon caches, this will be changed. See #329460 for the full plan.
2007-05-31r2004: file. (Thanks Wakko)joeyh1-1/+1
* Use dpkg-query to retrieve conffile info in udev rules upgrade code rather than parsing status directly. (Thanks Guillem)
2007-04-20r1997: * dh_installwm: Fix several stupid bugs, including:joeyh2-1/+5
- man page handling was supposed to be v6 only and was not - typo in alternatives call - use the basename of the wm to get the man page name Closes: #420158 * dh_installwm: Also make the code to find the man page more robust and fall back to not registering a man page if it is not found.
2007-04-16r1990: releasing version 5.0.465.0.46joeyh1-1/+1
2007-04-12r1985: cleanupjoeyh2-11/+11
2007-04-12r1984: * dh_installudev: Install udev rules directly into ↵joeyh3-7/+20
/etc/udev/rules.d/, not using the symlinks. MD has agreed that this is more appropriate for most packages. * That fixes the longstanding bug that the symlink was only made on brand new installs of the package, rather than on upgrade to the first version that includes the udev rules file. Closes: #359614 * dh_installudev: Add preinst and postinst code to handle cleanly moving the rules file to the new location on upgrade. * This would be a good time for the many packages that manage rules files w/o using dh_installudev to begin to use it..
2007-04-09r1980: * prerm and postrm scripts are now generated in a reverse order thanjoeyh1-1/+3
preinst and postinst scripts. For example, if a package uses dh_pysupport before dh_installinit, the prerm will first stop the init script and then remove the python files. * Introducing beginning of v6 mode. * dh_installwm: In v6 mode, install a slave manpage link for x-window-manager.1.gz. Done in v6 mode because some window managers probably work around this longstanding debhelper bug by registering the slave on their own. This bug was only fixable once programs moved out of /usr/X11R6. Closes: #85963 * dh_builddeb: In v6 mode, fix bug in DH_ALWAYS_EXCLUDE handling, to work the same as all the other code in debhelper. This could only be fixed in v6 mode because packages may potentially legitimately rely on the old buggy behavior. Closes: #242834 * dh_installman: In v6 mode, overwrite exsiting man pages. Closes: #288250
2007-04-09r1978: * dh_installudev: Don't fail if the link already somehow exists on ↵joeyh1-1/+1
initial package install. Closes: #415717
2007-01-21r1967: * dh_installudev: Fix postrm to not fail if the udev symlink is missing.joeyh1-2/+3
Closes: #406921
2006-11-07r1956: * Correct some incorrect instances of "v4 only" in docs. Closes: #381536joeyh2-4/+1
* dh_installinfo: Put the section madness to bed by not passing any section information to install-info. Current install-info parses INFO-DIR-SECTION on its own if that's not specified. Closes: #337215
2006-06-12r1932: split the scripts for the two cases, undo behavior change5.0.37joeyh4-6/+8
2006-06-12r1931: * dh_installxfonts: In postrm, run the deregistraton code even on ↵joeyh1-1/+1
upgrade, in case an upgrade involves moving fonts around (or removing or renaming fonts). Closes: #372686
2006-06-09r1929: * dh_installmodules: depmod -a is no longer run during boot, so if a ↵joeyh2-2/+6
module package is installed for a kernel other than the running kernel, just running depmod -a in the postinst is no longer sufficient. Instead, run depmod -a -F /boot/System.map-<kvers> <kvers> The kernel version is guessed at based on the path to the modules in the package. Closes: #301424 * Note: behavior change due to the above: The mere existence of a debian/package.modules file will no longer make dh_installmodules add code to maintainer scripts. * Untested.
2006-02-23r1881: * Add dh_installudev by Marco d'Itri.joeyh2-0/+7
2006-01-16r1856: * dh_python: Temporarily revert change in 5.0.13 to make use of5.0.17joeyh2-6/+0
python-support for packages providing private modules or python-only modules, since python policy hasn't been updated for this yet. Closes: #347758
2006-01-08r1845: addjoeyh4-0/+12
2006-01-08r1844: merge python and gconf changes from python-supportjoeyh1-1/+0
2005-12-08r1827: releasing version 5.0.95.0.9joey2-2/+6
2005-11-08r1814: * Remove hardcoded pathc to update-modules and gconf-schemas in variousjoey4-4/+4
script fragments.
2005-11-03r1809: releasing version 5.0.25.0.2joey1-1/+1
2005-09-22r1786: releasing version 4.9.94.9.9joey2-20/+2
2005-06-28r1770: releasing version 4.9.34.9.3joey1-1/+1
2005-04-14r1746: * dh_installmodules autoscripts: Now that return code 3 is allocated byjoey2-2/+2
update-modules to indicate /etc/modules.conf is not automatically generated, we can ignore that return code since it's not a condition that should fail an installation. Closes: #165400
2005-01-05r1737: releasing version 4.2.304.2.30joey9-7/+17
2004-10-12r1717: releasing version 4.2.214.2.21joey2-0/+6
2004-07-12r1703: * dh_cgonf: deal with problems if /etc/gconf/schemas doesn't exist ↵4.2.15joey1-4/+7
any more (#258901)
2004-07-11r1700: * Make dh_gconf postinst more portable.4.2.14joey1-1/+1
* Strip spoch when generating udeb filenames. Closes: #258864
2004-07-08r1695: * dh_gconf: gconf schemas moved to /usr/share/gconf/schemas. Relocatejoey4-3/+12
schemas from /etc/gconf/schemas. (Josselin Mouette) * dh_gconf: kill gconfd-2 so that the newly installed schemas are available straight away. (Josselin Mouette) * dh_gconf: fix bashism in restart of gconfd-2 * dh_gconf: fix innaccuracy in man page; gconfd-2 is HUPPed, not killed. * dh_scrollkeeper: stop adding scrollkeeper to misc:Depends, since the postinst will not run it if it's not installed, and a single run after it's installed is sufficient to find all documents. Closes: #256745 * dh_fixperms: make .ali files mode 444 to prevent recompilation by GNAT. For speed, only scan for .ali files in usr/lib/ada. Closes: #245211 * dh_python: check to make sure compileall.py is available before running it in the postinst. Closes: #253112 * dh_installmodules: install debian/package.modprobe into etc/modprobe.d/ for module-init-tools. These files can sometimes need to differ from the etc/modutils/ files. Closes: #204336, #234495 * dh_installmanpages is now deprecated. * Add a test case for bug #244157, and fixed the inverted ok() parameters in the others, and added a few new tests. * dh_link: applied GOTO Masanori's patch to fix conversion of existing relative symlinks between top level directories. Closes: #244157