11
0

147 Commits

Author SHA256 Message Date
7e2e057b8a Accepting request 1291291 from Base:System
- Bump version to 26

- Introduce %udev_trigger_with_reload() for packages that need to trigger events
  in theirs scriplets. The new macro automatically triggers a reload of the udev
  rule files as this step is often overlooked by packages (bsc#1237143).

- Bump to version 25

- Turn %tmpfiles_create/%sysusers_create into NOPs
  The 2 following macros have also been converted into NOPs since we moved to
  file triggers. Some packages might have assumed that their effects were
  effective as soon as the macros return. However such assumption on tmpfiles
  can't work on transactional systems anyways where changes must take place on
  reboot.
  
  When a system user/group needs to be created in %%pre, so proper ownership are
  used when package's files are installed, "sysusers_create_package()" should be
  used.

OBS-URL: https://build.opensuse.org/request/show/1291291
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=48
2025-07-10 20:10:09 +00:00
e505f87a5f Accepting request 1094319 from Base:System
- Bump to version 24

- Drop %tmpfiles_create_package
  It can't work during transactional updates because the paths that
  systemd-tmpfiles usually operates on (such as /var) can't be changed. It
  appears that the only user of this macro doesn't really need this macro so
  let's drop it.

- Drop %sysusers_create_inline
  It's deprecated and the only user of this macro is being converted to
  %sysusers_create_package. So drop it now before the deprecated macro attracts
  more users.

- Unlike systemd-tmpfiles call in %tmpfiles_create_package(), systemd-sysusers
  must always be called by %sysusers_create_package() even on transactional
  systems since it's part of the macro contract. Writing to /etc is not
  recommended on such systems but it has to work anyways.

OBS-URL: https://build.opensuse.org/request/show/1094319
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=47
2023-06-23 19:52:20 +00:00
0cc0342925 - Bump to version 24
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=101
2023-06-21 08:51:21 +00:00
4dc045d4df - Drop %tmpfiles_create_package
It can't work during transactional updates because the paths that
  systemd-tmpfiles usually operates on (such as /var) can't be changed. It
  appears that the only user of this macro doesn't really need this macro so
  let's drop it.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=100
2023-06-20 16:04:19 +00:00
ca23be8300 - Drop %sysusers_create_inline
It's deprecated and the only user of this macro is being converted to
  %sysusers_create_package. So drop it now before the deprecated macro attracts
  more users.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=99
2023-06-20 16:00:45 +00:00
ff6965c5cb - Unlike systemd-tmpfiles call in %tmpfiles_create_package(), systemd-sysusers
must always be called by %sysusers_create_package() even on transactional
  systems since it's part of the macro contract. Writing to /etc is not
  recommended on such systems but it has to work anyways.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=98
2023-06-20 15:01:29 +00:00
3f53730fbd Accepting request 1093498 from Base:System
- Bump to version 23

- Restore the check that prevents systemd-tmpfiles to run during transactional updates
  The check has been mistakenly dropped during the switch to file-triggers.

OBS-URL: https://build.opensuse.org/request/show/1093498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=46
2023-06-16 14:53:13 +00:00
695ae9a4b5 - Bump to version 23
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=97
2023-06-16 13:11:51 +00:00
8cd9f77cbf - Restore the check that prevents systemd-tmpfiles to run during transactional updates
The check has been mistakenly dropped during the switch to file-triggers.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=96
2023-06-16 13:11:13 +00:00
5c9fe37785 Accepting request 1087187 from Base:System
- Bump to version 22

- Make sure that (future) users of %sysctl_apply() and %binfmt_apply() will call
  the macros with arguments.

- Test the presence of /run/systemd/system to check whether we're operating
  during transactional updates. Hence the behavior is the same when operating in
  a chroot or during transactional updates.
- Leave %sysctl_apply() and %binfmt_apply() empty (bsc#1211272)
  Only the former has very few users currently and none of them has specific
  code relying on the new sysctl values to be effective between the macros and
  the file triggers.

- Bump to version 21

- Rely on 'systemd-update-helper' shell script to implement %service_* macros
  The helper was introduced by upstream commit 6d825ab2d42d3219e49a1. The main
  advantage is that we no more need to rebuild all packages to update the macro
  definitions.
  Internally the script relies on file triggers for 'daemon-reload' operations
  and for restarting units (when needed).
- Update other macros to reflect the fact that systemd package provides file
  triggers for sysusers, tmpfiles, hwdb, and journal catalog.

OBS-URL: https://build.opensuse.org/request/show/1087187
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=45
2023-05-24 18:21:22 +00:00
25a2295a3a - Bump to version 22
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=95
2023-05-15 09:21:44 +00:00
db8376beab fix %tmpfiles_create_package and drop 'fi' leftover
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=94
2023-05-15 09:21:10 +00:00
ba6e5f27b2 avoid macros with empty bodies
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=93
2023-05-11 09:29:22 +00:00
9fee5b69d2 adjust the 2 last entries of the changlog
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=92
2023-05-10 16:28:52 +00:00
c32fb55b29 - Make sure that (futur) users of %sysctl_apply() and %binfmt_apply() will call
the macros with arguments.
- Leave %sysctl_apply() and %binfmt_apply() empty (bsc#1211272)
  Only the former has very few users currently and none of them has specific
  code relying on the new sysctl values between the macros and the file
  triggers.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=91
2023-05-10 12:40:05 +00:00
2aa56d936f update previous changelog entry
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=90
2023-05-10 10:00:07 +00:00
1ac61c191a - Test the presence of /run/systemd/system to check whether we're operating
during transactional updates. Hence the behavior is the same when operating in
  a chroot or during transactional updates.
- Leave %sysctl_apply() and %binfmt_apply() empty as there's no (interesting)
  user of these macros for now.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=89
2023-05-10 09:30:02 +00:00
d7c94ee34f - Bump to version 21
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=88
2023-05-09 14:09:59 +00:00
a97f9f97e5 - Rely on 'systemd-update-helper' shell script to implement %service_* macros
The helper was introduced by upstream commit 6d825ab2d42d3219e49a1. The main
  advantage is that we no more need to rebuild all packages to update the macro
  definitions.
  Internally the script relies on file triggers for 'daemon-reload' operations
  and for restarting units (when needed).
- Update other macros to reflect the fact that systemd package provides file
  triggers for sysusers, tmpfiles, hwdb, and journal catalog.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=87
2023-05-09 14:09:13 +00:00
65e4499aad Accepting request 1075207 from Base:System
- Bump to version 20

- %service_del_postun: make sure to restart services if /etc/sysconfig/service
  is not present.

- Drop support for -n/-f options in %service_del_postun
  These options have been deprecated since a long time and the last package
  relying on them (drkonqi5) in the Factory repository has been updated.

OBS-URL: https://build.opensuse.org/request/show/1075207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=44
2023-04-03 15:45:18 +00:00
bd396a705f - Bump to version 20
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=86
2023-03-29 11:38:28 +00:00
3b2c7f4694 - %service_del_postun: make sure to restart services if /etc/sysconfig/service
is not present.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=85
2023-03-29 11:35:52 +00:00
3d2aa53763 - Drop support for -n/-f options in %service_del_postun
These options have been deprecated since a long time and the last package
  relying on them (drkonqi5) in the Factory repository has been updated.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=84
2023-03-29 10:42:15 +00:00
ee0e9c503a Accepting request 1061222 from Base:System
- Bump to version 19

- `udevadm hwdb` is deprecated, use `systemd-hwdb` instead.

OBS-URL: https://build.opensuse.org/request/show/1061222
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=43
2023-01-28 17:42:42 +00:00
a8a48f191f - Bump to version 19
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=83
2023-01-26 14:12:56 +00:00
ef8c808e84 - udevadm hwdb is deprecated, use systemd-hwdb instead.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=82
2023-01-26 14:11:52 +00:00
5e6ce41a2e Accepting request 1037703 from Base:System
- Bump to version 18

- Add %_user_tmpfilesdir macro

OBS-URL: https://build.opensuse.org/request/show/1037703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=42
2022-11-25 12:11:09 +00:00
c89bcb87a5 - Bump to version 18
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=81
2022-11-23 17:14:27 +00:00
ccdb965aa5 Accepting request 1037656 from home:dancermak:branches:Base:System
Add %_user_tmpfilesdir macro

OBS-URL: https://build.opensuse.org/request/show/1037656
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=80
2022-11-23 17:12:56 +00:00
4d32552d81 Accepting request 1007693 from Base:System
- Bump to version 17

- Fix syntax error in %tmpfiles_create_package() (bsc#1203945)

OBS-URL: https://build.opensuse.org/request/show/1007693
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=41
2022-10-10 16:43:05 +00:00
756bd2c050 - Bump to version 17
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=79
2022-10-03 13:08:03 +00:00
4680d9ecb7 - Fix syntax error in %tmpfiles_create_package() (bsc#1203945)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=78
2022-10-03 13:00:50 +00:00
4179f1a8d5 Accepting request 955694 from Base:System
- Bump to version 16

- Drop enablement symlink migration support of SysV init scripts
  This was announced here:
  https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/

OBS-URL: https://build.opensuse.org/request/show/955694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=40
2022-02-19 18:21:13 +00:00
5b629403ed - Bump to version 16
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=77
2022-02-17 18:53:38 +00:00
8609970ea8 - Drop enablement symlink migration support of SysV init scripts
This was announced here:
  https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=76
2022-02-17 18:53:00 +00:00
af577426eb Accepting request 947356 from Base:System
- Bump to version 15

- %sysusers_create_inline was wrongly marked as deprecated
- %sysusers_create can be useful in certain cases and won't go away until we'll
  move to file triggers. So don't mark it as deprecated too

OBS-URL: https://build.opensuse.org/request/show/947356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=39
2022-01-22 07:17:46 +00:00
ccdcf965ab - Bump to version 15
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=75
2022-01-19 08:27:38 +00:00
ccdbdfce8d - %sysusers_create_inline was wrongly marked as deprecated
- %sysusers_create can be useful in certain cases and won't go away until we'll
  move to file triggers. So don't mark it as deprecated too

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=74
2022-01-18 21:06:57 +00:00
c89bed18ac Accepting request 931955 from Base:System
- Bump version to 14

- Introduce %_systemd_util_dir
  It's a backport of upstream commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82.

OBS-URL: https://build.opensuse.org/request/show/931955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=38
2021-11-21 22:51:15 +00:00
6f9fe0af97 - Bump version to 14
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=73
2021-11-17 12:31:01 +00:00
bbea6a0733 - Introduce %_systemd_util_dir
It's a backport of upstream commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=72
2021-11-17 12:27:43 +00:00
e39be33398 Accepting request 922188 from Base:System
OBS-URL: https://build.opensuse.org/request/show/922188
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=37
2021-10-25 13:16:41 +00:00
818d21e58d Accepting request 922165 from home:dimstar:Factory
- Use %{load:} instead of %{?load:}: fix build with RPM 4.17.

OBS-URL: https://build.opensuse.org/request/show/922165
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=71
2021-09-29 13:21:24 +00:00
efa0f81b4c Accepting request 903200 from Base:System
- Bump to version 13

- Make use of "Suggests:" in %systemd_ordering
  Until libzypp supports "OrderWithRequires:", we need to specify a
  similar ordering constraint that can be understood by the dep solver
  as well. Hence the use of "Suggests:" in %systemd_ordering
  (workaround for bsc#1187332).

OBS-URL: https://build.opensuse.org/request/show/903200
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=36
2021-07-03 18:50:32 +00:00
4a8a20b75d - Bump to version 13
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=70
2021-06-30 09:59:52 +00:00
ad43e5ad9f - Make use of "Suggests:" in %systemd_ordering
Until libzypp supports "OrderWithRequires:", we need to specify a
  similar ordering constraint that can be understood by the dep solver
  as well. Hence the use of "Suggests:" in %systemd_ordering
  (workaround for bsc#1187332).

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=69
2021-06-30 09:59:17 +00:00
a42dcffc95 Accepting request 894598 from Base:System
- Bump to version 12

- Introduce %sysusers_create_package
  %sysusers_create and %sysusers_create_inline are now deprecated and
  the new macro should be used instead.
  Upstream commit 07a7d4a0040d221ff09e527e91c112b4ffab1dba.
- Introduce %tmpfiles_create_package
  %%tmpfiles_create is now deprecreated and the new macros should be
  used instead.
  Upstream commit 0f78fee8d039000b987848a558fbaa15d916e14e.

- %sysusers_create_inline: use here-docs instead of echo (bsc#1186282)
  Upstream commit dd2490ae12ad1e1795ecbf8f8944b950da9c8d06.

OBS-URL: https://build.opensuse.org/request/show/894598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=35
2021-05-23 21:30:19 +00:00
bbc4a5b794 - Bump to version 12
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=68
2021-05-20 10:18:45 +00:00
37d00203df - Introduce %sysusers_create_package
%sysusers_create and %sysusers_create_inline are now deprecated and
  the new macro should be used instead.
  Upstream commit 07a7d4a0040d221ff09e527e91c112b4ffab1dba.
- Introduce %tmpfiles_create_package
  %%tmpfiles_create is now deprecreated and the new macros should be
  used instead.
  Upstream commit 0f78fee8d039000b987848a558fbaa15d916e14e.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=67
2021-05-20 10:17:34 +00:00
f0c8ea9afc - %sysusers_create_inline: use here-docs instead of echo (bsc#1186282)
Upstream commit dd2490ae12ad1e1795ecbf8f8944b950da9c8d06.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=66
2021-05-20 09:47:35 +00:00
35bb9dbe84 Accepting request 877267 from Base:System
- Bump to version 11

- Don't pass -f to rm in %service_add_post nor %systemd_user_post

- Add a %systemd_user_pre macro that creates a
  /run/systemd/rpm/needs-user-preset/$service file for each new
  service being installed so %systemd_user_post can call
  `systemctl --global preset $service` properly for newly
  installed user services (boo#1183051, boo#1183012).

- Fix %systemd_user_post. The --global parameter was handled as if
  it was another service name so %systemd_user_post wasn't working
  properly. Replace %systemd_user_post with the code from
  %service_add_post it was being expanded to but correctly passing
  --global to systemctl (boo#1183051, boo#1182661).

OBS-URL: https://build.opensuse.org/request/show/877267
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=34
2021-03-11 19:06:48 +00:00
6fc47e8204 - Bump to version 11
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=65
2021-03-05 15:09:00 +00:00
4463ee13e3 Accepting request 876976 from home:alarrosa:branches:Base:System
- Don't pass -f to rm in %service_add_post nor %systemd_user_post

OBS-URL: https://build.opensuse.org/request/show/876976
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=64
2021-03-05 11:19:59 +00:00
a079230c8d Accepting request 876971 from home:alarrosa:branches:Base:System
- Add a %systemd_user_pre macro that creates a
  /run/systemd/rpm/needs-user-preset/$service file for each new
  service being installed so %systemd_user_post can call
  `systemctl --global preset $service` properly for newly
  installed user services (boo#1183051, boo#1183012).

OBS-URL: https://build.opensuse.org/request/show/876971
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=63
2021-03-05 11:09:08 +00:00
9f0979dfb3 Accepting request 876963 from home:alarrosa:branches:Base:System
- Fix %systemd_user_post. The --global parameter was handled as if
  it was another service name so %systemd_user_post wasn't working
  properly. Replace %systemd_user_post with the code from
  %service_add_post it was being expanded to but correctly passing
  --global to systemctl (boo#1183051, boo#1182661).

OBS-URL: https://build.opensuse.org/request/show/876963
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=62
2021-03-05 10:58:52 +00:00
7dc94d55a2 Accepting request 871420 from Base:System
- Bump version to 10

- Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE
  counterparts
  Packagers can now choose to use the upstream or the SUSE variants
  indifferently. For consistency the SUSE variants should be preferred
  since almost all SUSE packages already use them but the upstream
  versions might be usefull in certain cases where packages need to
  support multiple distros based on RPM.

- Improve the logic used to apply the presets (bsc#1177039)
  Before presests were applied at a) package installation b) new units
  introduced via a package update (but after making sure that it was
  not a SysV initscript being converted).
  The problem is that a) didn't handle package a renaming or split
  properly since the package with the new name is installed rather
  being updated and therefore the presets were applied even if they
  were already with the old name.
  We now cover this case (and the other ones) by applying presets only
  if the units are new and the services are not being migrated. This
  regardless of whether this happens during an install or an update.

OBS-URL: https://build.opensuse.org/request/show/871420
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=33
2021-02-17 17:09:42 +00:00
b9ed9090dc - Bump version to 10
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=61
2021-02-12 11:46:53 +00:00
a4d73fe809 - Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE
counterparts
  Packagers can now choose to use the upstream or the SUSE variants
  indifferently. For consistency the SUSE variants should be preferred
  since almost all SUSE packages already use them but the upstream
  versions might be usefull in certain cases where packages need to
  support multiple distros based on RPM.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=60
2021-02-12 11:45:54 +00:00
988d319a8f - Improve the logic used to apply the presets (bsc#1177039)
Before presests were applied at a) package installation b) new units
  introduced via a package update (but after making sure that it was
  not a SysV initscript being converted).
  The problem is that a) didn't handle package a renaming or split
  properly since the package with the new name is installed rather
  being updated and therefore the presets were applied even if they
  were already with the old name.
  We now cover this case (and the other ones) by applying presets only
  if the units are new and the services are not being migrated. This
  regardless of whether this happens during an install or an update.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=59
2021-02-12 11:01:43 +00:00
9a8aa1a4fc Accepting request 850414 from Base:System
- Bump version to 9

- daemon-reload is not needed in %service_add_post
  Applying presets, ie enabling/disabling units, doesn't require to
  update units loaded in PID1 memory. It's actually needed after and
  it's done implicitly by `systemctl preset`.

- Rename the tag file used to detect when presets need to be applied
  Rather than placing these tags directly under /run, let's place them
  under /run/systemd/rpm. This also has the benefit to make the
  workaround for bsc#1059627 no more needed.

- %service_del_preun doesn't accept -f/-n options anymore
  The few package calling %service_del_preun with '-f' or '-n' option
  have been fixed. These options are not needed anymore.

OBS-URL: https://build.opensuse.org/request/show/850414
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=32
2020-11-29 11:18:35 +00:00
e45618db9a update comment in changelogs to reflect that systemctl preset does a daemon-reload
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=58
2020-11-24 11:02:18 +00:00
e531b48b7a - Bump version to 9
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=57
2020-11-23 20:33:49 +00:00
f90fb4cf4f - daemon-reload is not needed in %service_add_post
Applying presets, ie enabling/disabling units, doesn't require to
  update units loaded in PID1 memory. It's actually needed after but
  it's done only once by %service_del_postun.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=56
2020-11-23 20:19:37 +00:00
f65be0ea90 - Rename the tag file used to detect when presets need to be applied
Rather than placing these tags directly under /run, let's place them
  under /run/systemd/rpm. This also has the benefit to make the
  workaround for bsc#1059627 no more needed.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=55
2020-11-23 18:03:40 +00:00
991b3b62db - %service_del_preun doesn't accept -f/-n options anymore
The few package calling %service_del_preun with '-f' or '-n' option
  have been fixed. These options are not needed anymore.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=54
2020-11-23 17:29:55 +00:00
b24f8bd8f8 Accepting request 847458 from Base:System
- Bump version to 8

- Introduce %service_del_postun_with_restart()
  It's the counterpart of %service_del_postun_without_restart() and
  replaces the '-f' option of %service_del_postun().
- Expand %service_del_postun_without_restart in %service_del_postun

- Add a missing space in %_restart_on_update()

- Bump version to 7

- Dont apply presets when migrating from a disabled initscript (bsc#1178481)

- Bump version to 6

- Test for the presence of systemd only once in %service_add_post

- 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.

- Make rpmbuild load our own macros.systemd to import %{%_unitdir} properly
  Ideally we should also own other %{_*dir} paths...
- Stop owning /usr/lib/systemd directory as no package other than
  systemd is supposed to put files there.

- 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

OBS-URL: https://build.opensuse.org/request/show/847458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=31
2020-11-23 14:36:32 +00:00
221719424c - Bump version to 8
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=53
2020-11-10 11:22:09 +00:00
163b073fa1 - Introduce %service_del_postun_with_restart()
It's the counterpart of %service_del_postun_without_restart() and
  replaces the '-f' option of %service_del_postun().
- Expand %service_del_postun_without_restart in %service_del_postun

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=52
2020-11-10 11:04:59 +00:00
198ba4caa7 - Add a missing space in %_restart_on_update()
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=51
2020-11-10 09:13:24 +00:00
e3e0721640 - Bump version to 7
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=50
2020-11-09 11:40:24 +00:00
4097fa89ce - Dont apply presets when migrating from a disabled initscript (bsc#1178481)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=49
2020-11-09 11:38:05 +00:00
179aa8a211 Fix typo
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=48
2020-11-09 09:26:07 +00:00
aba6870f75 - Bump version to 6
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=47
2020-11-09 08:48:05 +00:00
d3585cac9c Update one comment
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=46
2020-11-09 08:46:43 +00:00
664f945153 - Test for the presence of systemd only once in %service_add_post
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=45
2020-11-09 08:43:46 +00:00
b8ac3768b4 - 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.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=44
2020-11-09 07:45:47 +00:00
fe75626308 - Make rpmbuild load our own macros.systemd to import %{%_unitdir} properly
Ideally we should also own other %{_*dir} paths...
- Bump version to 5

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=43
2020-11-09 07:15:43 +00:00
6873a04f30 - 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.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=42
2020-11-02 14:40:43 +00:00
4dd7db0039 document the previous change
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=41
2020-11-02 08:55:25 +00:00
c6f0727a32 - Drop DISABLE_STOP_ON_REMOVAL support (jsc#SLE-8968)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=40
2020-10-30 17:40:53 +00:00
bb2e625770 Accepting request 839132 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/839132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=30
2020-10-08 11:07:31 +00:00
622c3bb210 - Bump version to 4.1
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=39
2020-09-25 09:26:01 +00:00
d149e5b431 Accepting request 829086 from Base:System
OBS-URL: https://build.opensuse.org/request/show/829086
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=29
2020-08-31 15:14:46 +00:00
d81d9c2469 Accepting request 829057 from home:Pharaoh_Atem:branches:Base:System
- Sync missing macros of directory paths from upstream systemd macros
  + %_environmentdir
  + %_modulesloaddir
  + %_modprobedir

OBS-URL: https://build.opensuse.org/request/show/829057
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=38
2020-08-25 06:25:03 +00:00
d1fdb9ed76 Accepting request 684199 from Base:System
OBS-URL: https://build.opensuse.org/request/show/684199
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=28
2019-03-14 21:42:15 +00:00
8fac5fa9ed Accepting request 684198 from home:fbui:branches:Base:System
- $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.

OBS-URL: https://build.opensuse.org/request/show/684198
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=37
2019-03-12 08:20:41 +00:00
4a1ed673cc Accepting request 680402 from Base:System
OBS-URL: https://build.opensuse.org/request/show/680402
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=27
2019-03-04 08:08:29 +00:00
f337315c0b Accepting request 680383 from home:fbui:branches:Base:System
- 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.

OBS-URL: https://build.opensuse.org/request/show/680383
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=36
2019-03-01 09:27:15 +00:00
7b2e3f4d22 - 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

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=35
2019-02-27 14:16:36 +00:00
ec2ade1bb2 - Restore one daemon-reload command
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=34
2019-02-27 12:21:44 +00:00
8685313b9b - Bump version to 4
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=33
2019-02-25 09:56:11 +00:00
Thomas Blume
e5d6d1a3e5 Accepting request 678270 from home:fbui:branches:Base:System
- 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.

OBS-URL: https://build.opensuse.org/request/show/678270
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=32
2019-02-25 09:47:37 +00:00
283ce5b854 - 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.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=31
2019-02-21 18:00:10 +00:00
c79891677b Accepting request 653628 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/653628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=26
2018-12-10 11:22:13 +00:00
7ac942a4ee - systemd-sysv-convert has been moved from /usr/sbin to /usr/lib/systemd
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=30
2018-11-26 13:56:33 +00:00
89a0103cb2 Accepting request 611238 from Base:System
- remove confusing --user before --global
  Backport from
  28d36da64a.
  This was spotted in bsc#1090785.
- Fix %systemd_post(): it's never called during package removal
  Also make it useful by restoring its original implementation.
- Import more definitions from upstream (v237)
- Fix system_user_post macro for usage with RPM 4.14, backport from
  https://github.com/systemd/systemd/commit/e67ba783.
- 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()
  The main advantage is that we pass only one argument to
  systemd-sysv-convert script. The later can now be improved/rewritten
  to handle only one argument and return a useful exit status.
- Make sure to apply presets if packages start shipping units during upgrades (bsc#1071543)
  If a package started shipping units during upgrade only sysv
  migration was done. However if the package didn't ship any sysv
  scripts before no presets were applied.
  Now during upgrades, preset are always applied (still only during
  the first time the units are installed) then followed by the sysv
  migration machinery.
  The downside of this is that migrated services can have symlinks in
  both runlevel.target.wants/ (created by the sysv migration) and in
  the directory specified by the [Install] sections (created by
  "systemctl preset")...
  The whole thing should be rewritten.
- Make sure to clean up "new-in-upgrade" tag file (bsc#1059627)
  The tag file might have been incorrectly left by a preceding update.
- Restore previous changes
- Revert previous changes
  Also added reasons why the previous changes would be needed.
- Don't execute systemd-tmpfiles if we run in transactional update
  mode
  If you do transactional updates, it doesn't make any sense to
  execute the tmpfiles. They will only create a lot of directories,
  files or symlinks in empty directories without any use and later
  hidden under the real mount points. With transactional updates, you
  should do such things always during the boot phase, as designed by
  systemd (and like Fedora and RHEL doing, but in their use case it's
  in my opinion a bug).
- Remove a useless test in %service_add_pre()
  The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was
  always true.
- BuildIgnore systemd-rpm-macros: a small cycle that can be
  avoided. system-rpm-macros is being pulled in by rpm-build as
  conveniance to the packagers.
- Reference bsc#956849 to please the new OBS 'sanity' check (bsc#1041386)
  %tmpfiles_create is already part of the version shipped by Factory
  so there's nothing to do here execpt mentioning (bsc#956849).
- Kill preset macros
  The last users have been fixed so these macros are no more used by
  any package.
  The introduction of them was a bad idea and only the branding preset
  package is still using a similar mechanism but at least it's now
  self contained in this package. Also the package calls now a shell
  script instead of rpm macros.
  Upstream is working on making this completely obsolete so the preset
  branding package could be cleaned up for good.
- RPM group fix
- %service_add_post() suppress daemon-reload when in installation 
  system (bsc#982343)
- Allow the packagers to specify the options -f and -n on the
  macros %service_del_preun(), %service_del_postun(), %systemd_post(),
  and %systemd_preun() (boo#968405) 
- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
  when specified by a package directly in the .spec file. Some
  package know that a restart of their service is fatal
  (boo#968405).
- Support of DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE 
  from /etc/sysconfig/service (bsc#955996)
- Skip %systemd_preset_* during the clean installation to prevent
  presetting of all services (boo#946216).
- Add %systemd_preset_pre and %systemd_preset_posttrans that will
  do one shot presetting of all services with changed system
  preset. It makes possible to to fix bad default service state
  (bnc#900935#c46, FATE#318949, FATE#317727, bnc#921075).
- Increment version to 3.
- Check for presence/executability of systemd programs before
  executing them, and do not suppress warnings/errors resulting
  from them.
- Update with new macros from systemd 218
- Remove empty sections from specfile
- Mark /etc/rpm/macros.systemd as configuration file 
- Apply then delete patch systemd-daemon-reload-before-service-restart.patch
- Add orignal systemd macros as well (boo#807164)
- make systemd aware of changed unit file content after update
  add systemd-daemon-reload-before-service-restart.patch 
 
- Add a %_ntpunitsdir macro 
- Add support to not restart services if running in YaST2 or
  if DISABLE_RESTART_ON_UPDATE is set to yes [bnc#858429]
- Require coreutils as rm and touch are used
- Make systemd rpm macros package a separate to avoid rebuild of
  the full package tree if systemd package change 
- Resync with systemd v205 macros
- New package with systemd rpm macros to avoid unnecessary build time
  dependencies

OBS-URL: https://build.opensuse.org/request/show/611238
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=25
2018-05-25 19:33:50 +00:00
c6c149ba4c - remove confusing --user before --global
Backport from
  28d36da64a.
  This was spotted in bsc#1090785.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=29
2018-05-22 12:56:47 +00:00
03ebeca141 Accepting request 576778 from Base:System
- Fix %systemd_post(): it's never called during package removal
  Also make it useful by restoring its original implementation.
- Import more definitions from upstream (v237)
- Fix system_user_post macro for usage with RPM 4.14, backport from
  https://github.com/systemd/systemd/commit/e67ba783.
- 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()
  The main advantage is that we pass only one argument to
  systemd-sysv-convert script. The later can now be improved/rewritten
  to handle only one argument and return a useful exit status.
- Make sure to apply presets if packages start shipping units during upgrades (bsc#1071543)
  If a package started shipping units during upgrade only sysv
  migration was done. However if the package didn't ship any sysv
  scripts before no presets were applied.
  Now during upgrades, preset are always applied (still only during
  the first time the units are installed) then followed by the sysv
  migration machinery.
  The downside of this is that migrated services can have symlinks in
  both runlevel.target.wants/ (created by the sysv migration) and in
  the directory specified by the [Install] sections (created by
  "systemctl preset")...
  The whole thing should be rewritten.
- Make sure to clean up "new-in-upgrade" tag file (bsc#1059627)
  The tag file might have been incorrectly left by a preceding update.
- Restore previous changes
- Revert previous changes
  Also added reasons why the previous changes would be needed.
- Don't execute systemd-tmpfiles if we run in transactional update
  mode
  If you do transactional updates, it doesn't make any sense to
  execute the tmpfiles. They will only create a lot of directories,
  files or symlinks in empty directories without any use and later
  hidden under the real mount points. With transactional updates, you
  should do such things always during the boot phase, as designed by
  systemd (and like Fedora and RHEL doing, but in their use case it's
  in my opinion a bug).
- Remove a useless test in %service_add_pre()
  The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was
  always true.
- BuildIgnore systemd-rpm-macros: a small cycle that can be
  avoided. system-rpm-macros is being pulled in by rpm-build as
  conveniance to the packagers.
- Reference bsc#956849 to please the new OBS 'sanity' check (bsc#1041386)
  %tmpfiles_create is already part of the version shipped by Factory
  so there's nothing to do here execpt mentioning (bsc#956849).
- Kill preset macros
  The last users have been fixed so these macros are no more used by
  any package.
  The introduction of them was a bad idea and only the branding preset
  package is still using a similar mechanism but at least it's now
  self contained in this package. Also the package calls now a shell
  script instead of rpm macros.
  Upstream is working on making this completely obsolete so the preset
  branding package could be cleaned up for good.
- RPM group fix
- %service_add_post() suppress daemon-reload when in installation 
  system (bsc#982343)
- Allow the packagers to specify the options -f and -n on the
  macros %service_del_preun(), %service_del_postun(), %systemd_post(),
  and %systemd_preun() (boo#968405) 
- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
  when specified by a package directly in the .spec file. Some
  package know that a restart of their service is fatal
  (boo#968405).
- Support of DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE 
  from /etc/sysconfig/service (bsc#955996)
- Skip %systemd_preset_* during the clean installation to prevent
  presetting of all services (boo#946216).
- Add %systemd_preset_pre and %systemd_preset_posttrans that will
  do one shot presetting of all services with changed system
  preset. It makes possible to to fix bad default service state
  (bnc#900935#c46, FATE#318949, FATE#317727, bnc#921075).
- Increment version to 3.
- Check for presence/executability of systemd programs before
  executing them, and do not suppress warnings/errors resulting
  from them.
- Update with new macros from systemd 218
- Remove empty sections from specfile
- Mark /etc/rpm/macros.systemd as configuration file 
- Apply then delete patch systemd-daemon-reload-before-service-restart.patch
- Add orignal systemd macros as well (boo#807164)
- make systemd aware of changed unit file content after update
  add systemd-daemon-reload-before-service-restart.patch 
 
- Add a %_ntpunitsdir macro 
- Add support to not restart services if running in YaST2 or
  if DISABLE_RESTART_ON_UPDATE is set to yes [bnc#858429]
- Require coreutils as rm and touch are used
- Make systemd rpm macros package a separate to avoid rebuild of
  the full package tree if systemd package change 
- Resync with systemd v205 macros
- New package with systemd rpm macros to avoid unnecessary build time
  dependencies

OBS-URL: https://build.opensuse.org/request/show/576778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=24
2018-02-16 20:26:30 +00:00
3adc1714da - Fix %systemd_post(): it's never called during package removal
Also make it useful by restoring its original implementation.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=28
2018-02-14 14:07:02 +00:00
1f25658464 - Import more definitions from upstream (v237)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=27
2018-02-12 16:58:33 +00:00
633172ab0f Accepting request 568183 from Base:System
OBS-URL: https://build.opensuse.org/request/show/568183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=23
2018-01-26 12:34:22 +00:00
30f9356379 Accepting request 568124 from home:dimstar:Factory
- 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

OBS-URL: https://build.opensuse.org/request/show/568124
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=26
2018-01-22 14:11:14 +00:00
d7bf56383d Accepting request 557293 from Base:System
OBS-URL: https://build.opensuse.org/request/show/557293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=22
2018-01-02 15:31:39 +00:00
dcc8869b9f Accepting request 556888 from home:fbui:branches:Base:System
- 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)

OBS-URL: https://build.opensuse.org/request/show/556888
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=25
2017-12-15 09:52:31 +00:00
d1be0ff64f - Make sure to clean up "new-in-upgrade" tag file (bsc#1059627)
The tag file might have been incorrectly left by a preceding update.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=24
2017-12-01 10:51:04 +00:00
5305ff9a1f - Restore previous changes
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=23
2017-11-22 14:47:28 +00:00
cf13919858 Accepting request 542585 from Base:System
OBS-URL: https://build.opensuse.org/request/show/542585
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=21
2017-11-21 14:17:45 +00:00
b7d0b19728 - Revert previous changes
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=22
2017-11-17 09:25:35 +00:00
ecab9f8fb5 Accepting request 542567 from home:kukuk:branches:Base:System
- Don't execute systemd-tmpfiles if we run in transactional update
  mode

OBS-URL: https://build.opensuse.org/request/show/542567
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=21
2017-11-17 09:10:26 +00:00
d010d67735 Accepting request 540274 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/540274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=20
2017-11-14 11:40:28 +00:00
d0cd081100 - Remove a useless test in %service_add_pre()
The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was
  always true.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=20
2017-11-02 16:12:23 +00:00
036073adb7 Accepting request 501312 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/501312
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=19
2017-06-12 13:10:18 +00:00
5e363286ea Accepting request 500587 from home:dimstar:Factory
- BuildIgnore systemd-rpm-macros: a small cycle that can be
  avoided. system-rpm-macros is being pulled in by rpm-build as
  conveniance to the packagers.

OBS-URL: https://build.opensuse.org/request/show/500587
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=19
2017-06-06 08:26:34 +00:00
729db3f61e Reference bsc#956849 to please the new OBS 'sanity' check (bsc#1041386)
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=18
2017-06-02 09:37:54 +00:00
30c7c5735e Accepting request 479261 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/479261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=18
2017-03-21 21:42:35 +00:00
e4ed23ee4e Accepting request 478957 from home:fbui:branches:Base:System
- Kill preset macros

OBS-URL: https://build.opensuse.org/request/show/478957
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=17
2017-03-14 14:17:09 +00:00
39da991d6b Accepting request 449718 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/449718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=17
2017-01-19 09:35:33 +00:00
Thomas Blume
e03239fdc0 Accepting request 449714 from home:jengelh:branches:Base:System
- RPM group fix

OBS-URL: https://build.opensuse.org/request/show/449714
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=16
2017-01-11 16:20:27 +00:00
d578345058 Accepting request 400387 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/400387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=16
2016-06-12 16:50:11 +00:00
349a80f2cb Accepting request 399987 from home:tsaupe:branches:Base:System:systemd-rpm-macros-bsc982343
%service_add_post() suppress daemon-reload when in installation system

OBS-URL: https://build.opensuse.org/request/show/399987
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=15
2016-06-07 08:03:30 +00:00
007e3d4617 Accepting request 365189 from Base:System
- Allow the packagers to specify the options -f and -n on the
  macros %service_del_preun(), %service_del_postun(), %systemd_post(),
  and %systemd_preun() (boo#968405) 

- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
  when specified by a package directly in the .spec file. Some
  package know that a restart of their service is fatal
  (boo#968405).

OBS-URL: https://build.opensuse.org/request/show/365189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=15
2016-03-05 12:04:54 +00:00
35441a3b44 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=14
2016-03-03 10:09:49 +00:00
34f074503f Accepting request 362153 from home:dimstar:Factory
- Also honor DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE
  when specified by a package directly in the .spec file. Some
  package know that a restart of their service is fatal
  (boo#968405).

OBS-URL: https://build.opensuse.org/request/show/362153
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=13
2016-02-29 07:00:30 +00:00
8547095cde Accepting request 345465 from Base:System
- Support of DISABLE_STOP_ON_REMOVAL and DISABLE_RESTART_ON_UPDATE 
  from /etc/sysconfig/service (bsc#955996)

OBS-URL: https://build.opensuse.org/request/show/345465
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=14
2015-11-26 16:00:40 +00:00
32642573a0 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=12
2015-11-20 16:54:39 +00:00
43d284c882 Accepting request 332066 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/332066
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=13
2015-10-14 14:34:29 +00:00
Stephan Kulow
301f758bd3 Accepting request 332015 from home:sbrabec:branches:systemd-preset-2
- Skip %systemd_preset_* during the clean installation to prevent
  presetting of all services (boo#946216).

OBS-URL: https://build.opensuse.org/request/show/332015
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=11
2015-09-19 05:53:33 +00:00
Stephan Kulow
da0eff5875 Accepting request 320740 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/320740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=12
2015-09-19 04:51:35 +00:00
5f77f48552 Accepting request 320474 from home:sbrabec:branches:systemd-preset
- Add %systemd_preset_pre and %systemd_preset_posttrans that will
  do one shot presetting of all services with changed system
  preset. It makes possible to to fix bad default service state
  (bnc#900935#c46, FATE#318949, FATE#317727, bnc#921075).
- Increment version to 3.

OBS-URL: https://build.opensuse.org/request/show/320474
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=10
2015-08-05 15:23:06 +00:00
Stephan Kulow
779e2cbd00 Accepting request 315790 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/315790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=11
2015-07-21 11:24:38 +00:00
a40b70d414 Accepting request 312224 from home:jengelh:branches:Base:System
- Check for presence/executability of systemd programs before
  executing them, and do not suppress warnings/errors resulting
  from them.

OBS-URL: https://build.opensuse.org/request/show/312224
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=9
2015-07-10 08:14:04 +00:00
7fc41dd518 Accepting request 280857 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/280857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=10
2015-01-30 05:00:48 +00:00
12d04da2cd Accepting request 280610 from home:jengelh:branches:Base:System
- Update with new macros from systemd 218

OBS-URL: https://build.opensuse.org/request/show/280610
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=8
2015-01-12 09:12:57 +00:00
71c439266f Accepting request 263010 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/263010
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=9
2014-12-01 13:00:25 +00:00
a5d2fa379b .
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=7
2014-11-18 15:16:57 +00:00
45953f9b68 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=6
2014-11-18 13:57:10 +00:00
Stephan Kulow
cb52adcdfc Accepting request 256919 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/256919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=8
2014-10-19 17:27:24 +00:00
9c1f03c0b4 Accepting request 256883 from home:tsaupe:branches:Base:System
make systemd aware of changed unit file content after update

OBS-URL: https://build.opensuse.org/request/show/256883
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=5
2014-10-16 14:07:21 +00:00
Stephan Kulow
bc6fa70f5a Accepting request 227774 from Base:System
- Add a %_ntpunitsdir macro 

- Add support to not restart services if running in YaST2 or
  if DISABLE_RESTART_ON_UPDATE is set to yes [bnc#858429]

OBS-URL: https://build.opensuse.org/request/show/227774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=6
2014-04-06 07:53:59 +00:00
7c92600cb3 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=4
2014-03-27 14:45:24 +00:00
bb1da458e8 Accepting request 227735 from home:fcrozat:branches:Base:System
- Add support to not restart services if running in YaST2 or
  if DISABLE_RESTART_ON_UPDATE is set to yes [bnc#858429]

OBS-URL: https://build.opensuse.org/request/show/227735
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=3
2014-03-27 12:38:37 +00:00
Tomáš Chvátal
81a5da2128 Accepting request 224203 from Base:System
- Require coreutils as rm and touch are used

OBS-URL: https://build.opensuse.org/request/show/224203
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=5
2014-02-28 15:25:24 +00:00
bf76b3fc74 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=2
2014-02-28 10:10:57 +00:00
Stephan Kulow
f1dbc7e965 Accepting request 221246 from Base:System
- Make systemd rpm macros package a separate to avoid rebuild of
  the full package tree if systemd package change

OBS-URL: https://build.opensuse.org/request/show/221246
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=4
2014-02-11 09:46:34 +00:00
Stephan Kulow
12dd43bb94 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=3 2014-02-07 13:56:41 +00:00
4fc530766b Split 13.1 from Factory
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=2
2013-09-20 08:12:39 +00:00
Stephan Kulow
c614fc8313 add link
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd-rpm-macros?expand=0&rev=1
2013-06-20 13:51:16 +00:00

Diff Content Not Available