chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rpm: don't hardcode the binary paths in the macros, rely on $PATH
[elogind.git]
/
src
/
core
/
macros.systemd.in
diff --git
a/src/core/macros.systemd.in
b/src/core/macros.systemd.in
index 4ad8186fae5d24617e881a0e2cf6c96ad57679c5..167016a85a050d235918156e99abc7b3430ab8e6 100644
(file)
--- a/
src/core/macros.systemd.in
+++ b/
src/core/macros.systemd.in
@@
-37,38
+37,42
@@
Requires(postun): systemd \
%systemd_post() \
if [ $1 -eq 1 ] ; then \
# Initial installation \
%systemd_post() \
if [ $1 -eq 1 ] ; then \
# Initial installation \
-
@rootbindir@/
systemctl preset %{?*} >/dev/null 2>&1 || : \
+ systemctl preset %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}
%systemd_preun() \
if [ $1 -eq 0 ] ; then \
# Package removal, not upgrade \
fi \
%{nil}
%systemd_preun() \
if [ $1 -eq 0 ] ; then \
# Package removal, not upgrade \
-
@rootbindir@/
systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \
-
@rootbindir@/
systemctl stop %{?*} > /dev/null 2>&1 || : \
+ systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \
+ systemctl stop %{?*} > /dev/null 2>&1 || : \
fi \
%{nil}
%systemd_postun() \
fi \
%{nil}
%systemd_postun() \
-
@rootbindir@/
systemctl daemon-reload >/dev/null 2>&1 || : \
+systemctl daemon-reload >/dev/null 2>&1 || : \
%{nil}
%systemd_postun_with_restart() \
%{nil}
%systemd_postun_with_restart() \
-
@rootbindir@/
systemctl daemon-reload >/dev/null 2>&1 || : \
+systemctl daemon-reload >/dev/null 2>&1 || : \
if [ $1 -ge 1 ] ; then \
# Package upgrade, not uninstall \
if [ $1 -ge 1 ] ; then \
# Package upgrade, not uninstall \
-
@rootbindir@/
systemctl try-restart %{?*} >/dev/null 2>&1 || : \
+ systemctl try-restart %{?*} >/dev/null 2>&1 || : \
fi \
%{nil}
%udev_hwdb_update() \
fi \
%{nil}
%udev_hwdb_update() \
-
@rootbindir@/
udevadm hwdb --update >/dev/null 2>&1 || : \
+udevadm hwdb --update >/dev/null 2>&1 || : \
%{nil}
%udev_rules_update() \
%{nil}
%udev_rules_update() \
-
@rootbindir@/
udevadm control --reload >/dev/null 2>&1 || : \
+udevadm control --reload >/dev/null 2>&1 || : \
%{nil}
%journal_catalog_update() \
%{nil}
%journal_catalog_update() \
-@rootbindir@/journalctl --update-catalog >/dev/null 2>&1 || : \
+journalctl --update-catalog >/dev/null 2>&1 || : \
+%{nil}
+
+%tmpfiles_create() \
+systemd-tmpfiles --create %{?*} >/dev/null 2>&1 || : \
%{nil}
%{nil}