]> git.proxmox.com Git - mirror_zfs.git/commit
Fix systemd_ RPM macros usage on Debian-based distributions
authorLOLi <loli10K@users.noreply.github.com>
Fri, 2 Feb 2018 21:50:42 +0000 (22:50 +0100)
committerTony Hutter <hutter2@llnl.gov>
Wed, 14 Mar 2018 23:10:36 +0000 (16:10 -0700)
commit29b79dcfe90a67a919c2f42fbaa2e557ea484bd5
tree610ac2d7beaaef544677bdc8fbbcf5ff340be56c
parentecc972c7f009e1fa75900e276a4c1306c55b5722
Fix systemd_ RPM macros usage on Debian-based distributions

Debian-based distributions do not seem to provide RPM macros for
dealing with systemd pre- and post- (un)install actions: this results
in errors when installing or upgrading .deb packages because the
resulting control scripts contain the following unresolved macros:

 * %systemd_post
 * %systemd_preun
 * %systemd_postun

Fix this by providing default values for postinstall, preuninstall and
postuninstall scripts when these macros are not defined.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7074
Closes #7100
rpm/generic/zfs.spec.in