Age | Commit message (Collapse) | Author | Files | Lines |
|
Extracted from MR !14.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
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.
|
|
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>
|
|
It is not dh_installinit's job and dh_installsystemd already does it.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
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>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
combined
But do restart on upgrades
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
The transition for these must have been completed with Wheezy (and
probably even Squeeze).
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
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>
|
|
This reverts commit 79a7701dc13dfdcbff1df8e191a87586a7abcd62.
Lintian's report on dh_suidregister is unreliable and misses some
instances.
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
This reverts commit adde59b0f80bacfcfb93d061644d51bbcaca5b05.
|
|
This reverts commit a88e4f7901e6f416afe1167ace57f8d6f79ed59e.
We still need the snippet for /executable/ menu files.
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
This reverts commit 0f09b1f88b36eeb99d0b7df8ae2702442e03b45f.
|
|
This reverts commit 2059ab8e431cd7ba8392f79c70950e44ce04dc64.
|
|
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>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
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.
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
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.
|
|
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.
|
|
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)
|
|
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
|
|
|
|
|
|
This reverts commit a0a7bb3433cba64677cf25c469d626552da9f356.
New patch sent.
|
|
|
|
|
|
conffile prompt when upgrading from a removed package. Closes: #81194
|
|
are triggered.
|
|
dependency on trigger-based sgml-base. Closes: #477751 Thanks, Helmut Grohne
|
|
|
|
While making postrm-ucf more like the other autoscripts I introduced two typo's
in the code. This patch fixes them.
|
|
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.
|
|
|
|
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)
|
|
#586065
|