tmpfiles.eclass: Support using on non-Linux systems
authorMichał Górny <mgorny@gentoo.org>
Sun, 30 Apr 2017 18:39:57 +0000 (20:39 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 1 Jan 2018 10:34:44 +0000 (11:34 +0100)
commit4feccc918d676aa859f4c989456127dd69dbc7d3
tree6032aad293cc6f2fd712ac6b7316431ce2813840
parent6bba9e75c21c0dd46b8e04f13d63fbc966eb0d8d
tmpfiles.eclass: Support using on non-Linux systems

Fix the eclass code to remove the misguided Linux conditionals.
The whole purpose of the eclass was to avoid having to implement
fallback logic for systems not having service manager tmpfiles.d
support. Making it conditional to Linux implied that for non-Linux
systems (Prefix, FreeBSD) we would have to implement explicit fallback
to create the necessary directories.

While systemd (and therefore systemd-tmpfilesd) is indeed
Linux-specific, the opentmpfiles implementation should be pretty
portable and there is no reason to restrict it to Linux only, or to
prevent using it on non-Linux OpenRC (and non-OpenRC) systems.
eclass/tmpfiles.eclass