]> granicus.if.org Git - zfs/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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Feb 2018 21:50:42 +0000 (13:50 -0800)
commitfbd42542686af053f0d162ec4630ffd4fff1cc30
treea3ada75c16128038832ffa4b1afcc4b6564af8b6
parent1b66810bad0a893031c6d49613aa83dc359bf034
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