Revisions of systemd-rpm-macros

Franck Bui's avatar Franck Bui (fbui) committed (revision 44)
- No need to run 'systemd-sysv-convert --save' in %service_add_pre anymore
  Due to the fact that the initscripts being removed during package
  updates are still available in %post, systemd-sysv-convert has been
  reworked so it's only needed to call it in %post.
Franck Bui's avatar Franck Bui (fbui) committed (revision 43)
- Make rpmbuild load our own macros.systemd to import %{%_unitdir} properly
  Ideally we should also own other %{_*dir} paths...
- Bump version to 5
Franck Bui's avatar Franck Bui (fbui) committed (revision 42)
- DISABLE_RESTART_ON_UDPATE is no more read from the (build) environment
  %service_del_postun_without_restart is the interface that should be
  used by packages that need to prevent theirs services from being
  restarted.
Franck Bui's avatar Franck Bui (fbui) committed (revision 41)
document the previous change
Franck Bui's avatar Franck Bui (fbui) committed (revision 40)
- Drop DISABLE_STOP_ON_REMOVAL support (jsc#SLE-8968)
Franck Bui's avatar Franck Bui (fbui) committed (revision 39)
- Bump version to 4.1
Franck Bui's avatar Franck Bui (fbui) accepted request 829057 from Neal Gompa's avatar Neal Gompa (Pharaoh_Atem) (revision 38)
- Sync missing macros of directory paths from upstream systemd macros
  + %_environmentdir
  + %_modulesloaddir
  + %_modprobedir
Franck Bui's avatar Franck Bui (fbui) accepted request 684198 from Franck Bui's avatar Franck Bui (fbui) (revision 37)
- $1 can never be empty or it's an rpm bug

- Get rid of $FIRST_ARG
  $FIRST_ARG was probably introduced because the %service_* macros
  were playing tricks on the shell positional parameters. This is bad
  practice and error prone so let's assume that no macros should do
  that anymore and hence it's safe to assume that positional
  parameters remains unchanged after any rpm macro call.
  All users of $FIRST_ARG should have been fixed by now and in most
  cases the use of the variable was unneeded (since the macros don't
  change the shell parameters) and thus confusing.
  'net-snmp' has a different use of FIRST_ARG though as it tried to
  fake an update during a package installation. Fortunately this could
  have been fixed too.
Franck Bui's avatar Franck Bui (fbui) accepted request 680383 from Franck Bui's avatar Franck Bui (fbui) (revision 36)
- Fix %_restart_on_update_force: drop one extra trailing '}'
  Thanks Werner for spotting.

- Simplify %_restart_on_update and %_stop_on_removal
  There's no need to spawn sub shells when these macros are used.

- Macros arguments are mandatory
  Especially in %_restart_on_update_never and %_stop_on_removal_never,
  let's assume that they always receive unit names as arguments. This
  allows to make them slightly simpler (less rpm macro black magic).
  Callers will fail earlier if no arguments are passed anyway.
Franck Bui's avatar Franck Bui (fbui) committed (revision 35)
- Make sure %_restart_on_update_never and %_stop_on_removal_never
  don't expand to the empty string
  Otherwise sequences like the following would result in incorrect
  shell syntax:
  if [ ]; then
     %_restart_on_update_never
  fi
Franck Bui's avatar Franck Bui (fbui) committed (revision 34)
- Restore one daemon-reload command
Franck Bui's avatar Franck Bui (fbui) committed (revision 33)
- Bump version to 4
Thomas Blume's avatar Thomas Blume (tsaupe) accepted request 678270 from Franck Bui's avatar Franck Bui (fbui) (revision 32)
- Introduce %service_del_postun_without_restart
  This is another step to make the SUSE rpm macros closer to their
  upstream counterparts.
  Introduce %service_del_postun_without_restart which should help in
  getting rid of '-f' and '-n' switches of %service_del_postun.
Franck Bui's avatar Franck Bui (fbui) committed (revision 31)
- Drop $YAST_IS_RUNNING in favor of $SYSTEMD_OFFLINE (bsc#1117489)
  libzypp now kindly defines SYSTEMD_OFFLINE when appropriate (see
  bsc#1118758). Therefore we don't need to rely on YAST_IS_RUNNING
  anymore. It's a tiny step to make the SUSE macros closer to their
  upstream counterparts.
Franck Bui's avatar Franck Bui (fbui) committed (revision 30)
- systemd-sysv-convert has been moved from /usr/sbin to /usr/lib/systemd
Franck Bui's avatar Franck Bui (fbui) committed (revision 29)
- remove confusing --user before --global
  Backport from
  https://github.com/systemd/systemd/commit/28d36da64a7a23a55e8d0a139f2620384fd058b3.
  This was spotted in bsc#1090785.
Franck Bui's avatar Franck Bui (fbui) committed (revision 28)
- Fix %systemd_post(): it's never called during package removal
  Also make it useful by restoring its original implementation.
Franck Bui's avatar Franck Bui (fbui) committed (revision 27)
- Import more definitions from upstream (v237)
Franck Bui's avatar Franck Bui (fbui) accepted request 568124 from Dominique Leuenberger's avatar Dominique Leuenberger (dimstar) (revision 26)
- Fix system_user_post macro for usage with RPM 4.14, backport from
  https://github.com/systemd/systemd/commit/e67ba783.

Addresses build issues like
https://build.opensuse.org/package/live_build_log/openSUSE:Factory/appimaged/standard/x86_64
Franck Bui's avatar Franck Bui (fbui) accepted request 556888 from Franck Bui's avatar Franck Bui (fbui) (revision 25)
- Move macros.systemd in /usr/lib/rpm
  The file is not supposed to be customized by the user.

- Make %systemd_add_pre() more similar to %systemd_add_post()

- Make sure to apply presets if packages start shipping units during upgrades (bsc#1071543)
Displaying revisions 61 - 80 of 104
openSUSE Build Service is sponsored by