HomeFreeBSD

Fix systemd_ RPM macros usage on Debian-based distributions

Description

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

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Feb 2 2018, 9:50 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 2 2018, 9:50 PM
Parents
rG1b66810bad0a: Change os->os_next_write_raw to work per txg
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfbd42542686a: Fix systemd_ RPM macros usage on Debian-based distributions (authored by LOLi <loli10K@users.noreply.github.com>).Feb 2 2018, 9:50 PM