profiles/arch/*/package.use.mask: drop obsolete mutt[notmuch]
[gentoo.git] / eclass / tmpfiles.eclass
index a8bb9061ec8cc618cb1b2f60ff158dfc427cce46..360c5e3b816f78b398cc08ec69c519e0a170573c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 2016-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: tmpfiles.eclass
@@ -63,7 +63,7 @@ esac
 RDEPEND="virtual/tmpfiles"
 
 # @FUNCTION: dotmpfiles
-# @USAGE: dotmpfiles <tmpfiles.d_file> ...
+# @USAGE: <tmpfiles.d_file> ...
 # @DESCRIPTION:
 # Install one or more tmpfiles.d files into /usr/lib/tmpfiles.d.
 dotmpfiles() {
@@ -84,7 +84,7 @@ dotmpfiles() {
 }
 
 # @FUNCTION: newtmpfiles
-# @USAGE: newtmpfiles <old-name> <new-name>.conf
+# @USAGE: <old-name> <new-name>.conf
 # @DESCRIPTION:
 # Install a tmpfiles.d file in /usr/lib/tmpfiles.d under a new name.
 newtmpfiles() {
@@ -102,7 +102,7 @@ newtmpfiles() {
 }
 
 # @FUNCTION: tmpfiles_process
-# @USAGE: tmpfiles_process <filename> <filename> ...
+# @USAGE: <filename> <filename> ...
 # @DESCRIPTION:
 # Call a tmpfiles.d implementation to create new volatile and temporary
 # files and directories.
@@ -113,7 +113,7 @@ tmpfiles_process() {
        [[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
 
        # Only process tmpfiles for the currently running system
-       if [[ ${ROOT} != / ]]; then
+       if [[ ${ROOT:-/} != / ]]; then
                ewarn "Warning: tmpfiles.d not processed on ROOT != /. If you do not use"
                ewarn "a service manager supporting tmpfiles.d, you need to run"
                ewarn "the following command after booting (or chroot-ing with all"