summaryrefslogtreecommitdiff
path: root/src/core/macros.systemd.in
Commit message (Collapse)AuthorAge
* rpm: add user macrosZbigniew Jędrzejewski-Szmek2014-10-27
|
* sysusers: add a new RPM macro for creating users directly from data passed ↵Lennart Poettering2014-08-19
| | | | | | | | | | | | | | | in via stdin This allows encoding users to create directly in %pre, which is necessary so that files owned by the RPM can be assigned to the right users/groups. This new macro does create a redundancy, as user definitions for all users that shall own files need to to be listed twice, once with this new macro, and then secondly, in the sysusers file shipped with the package. But there's little way around that, as the users of this type need to exist before we install the first file, but we actually want to ship the user information in a file.
* rpm: add RPM macros to apply sysusers, sysctl, and binfmt drop-insLennart Poettering2014-06-13
| | | | | | | | | | | | With this in place RPMs can make sure that whatever they drop in is immeidately applied, and not delayed until next reboot. This also moves systemd-sysusers back to /usr/bin, since hardcoding the path to /usr/lib in the macros would mean compatibility breaks in future, should we turn sysusers into a command that is actually OK for people to call directly. And given that that is quite likely to happen (since it is useful to prepare images with its --root= switch), let's just prepare for it.
* rpm: don't hardcode the binary paths in the macros, rely on $PATHLennart Poettering2014-06-13
| | | | | | this gives us a little bit more freedom to move things around later on, as we don't hardcode the systemd paths in old RPMs that shall work with new systemds.
* rpm: add RPM macro for creating tmpfiles entries after package installationLennart Poettering2013-07-16
|
* rpm: define a %_userunitdir macroLennart Poettering2013-06-17
|
* Move udevadm to rootbindirMichael Biebl2013-03-11
| | | | | The udevadm utility is needed during early boot, so move it to rootbindir to support split-/usr configurations.
* rpm: udevadm is actually in bindirZbigniew Jędrzejewski-Szmek2012-11-16
|
* rpm: update RPM macros to include definitions for more drop-in directories ↵Lennart Poettering2012-11-16
| | | | | | | | | | and for reloading/rebuilding configuration More specifically this adds a number of macros that resolve to directories for udev rules, hwdb entries, tmpfiles and sysctl. Thsi also includes three new macros for rebuilding the hwbd/catalog index when a package drops in new files
* rpm: expose preset dir as rpm macro and in systemd.pcLennart Poettering2012-09-13
|
* rpm: include RPM macro definition for .spec snippetsLennart Poettering2012-06-21
Let's try to standardize a bit the RPM macros used for installing/uninstalling services. This only covers the non-SysV compat bits, since that tends to vary widely between the various distros. Usage: Add %{?systemd_requires} to the header of the spec file. And then: %post %systemd_post foobar.service %preun %systemd_preun foobar.service %postun %systemd_postun foobar.service And, instead of the latter, in case the service shall be restarted on updates: %postun %systemd_postun_restart foobar.service