From: Lennart Poettering Date: Tue, 16 Jul 2013 16:15:48 +0000 (+0200) Subject: rpm: add RPM macro for creating tmpfiles entries after package installation X-Git-Tag: v206~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=042e33ae3a7feb08c8105f1345fd244315109405;p=thirdparty%2Fsystemd.git rpm: add RPM macro for creating tmpfiles entries after package installation --- diff --git a/TODO b/TODO index 4be6249419e..7401a5781e5 100644 --- a/TODO +++ b/TODO @@ -56,6 +56,8 @@ CGroup Rework Completion: Features: +* Fedora: post FPC ticket to move add %tmpfiles_create to the packaging guidelines + * add rpm macros for applying tmpfiles --create after package installation * when parsing calendar timestamps support the UTC timezone (even if we won't support arbitrary timezone specs, support UTC itself certainly makes sense), also support syntaxes such as +0200 diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in index 4ad8186fae5..89b48259ad6 100644 --- a/src/core/macros.systemd.in +++ b/src/core/macros.systemd.in @@ -72,3 +72,7 @@ fi \ %journal_catalog_update() \ @rootbindir@/journalctl --update-catalog >/dev/null 2>&1 || : \ %{nil} + +%tmpfiles_create() \ +@rootbindir@/systemd-tmpfiles --create %{?*} >/dev/null 2>&1 || : \ +%{nil}