diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-08-27 21:54:19 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-08-27 21:54:19 +0000 |
commit | c56b1c020b96d4efe4a7660ed693a2855d0b921f (patch) | |
tree | 4935375ff17d5e4599e13aa16a323205fc3bdc83 /eclass/systemd.eclass | |
parent | Add systemd_newtmpfilesd(). (diff) | |
download | historical-c56b1c020b96d4efe4a7660ed693a2855d0b921f.tar.gz historical-c56b1c020b96d4efe4a7660ed693a2855d0b921f.tar.bz2 historical-c56b1c020b96d4efe4a7660ed693a2855d0b921f.zip |
tmpfiles.d: ensure .conf suffix when installing.
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r-- | eclass/systemd.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 08f29cb0723f..4acd5de0af85 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.12 2012/08/27 21:53:04 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.13 2012/08/27 21:54:19 mgorny Exp $ # @ECLASS: systemd.eclass # @MAINTAINER: @@ -89,6 +89,11 @@ systemd_newunit() { systemd_dotmpfilesd() { debug-print-function ${FUNCNAME} "${@}" + for f; do + [[ ${f} == *.conf ]] \ + || die 'tmpfiles.d files need to have .conf suffix.' + done + ( insinto /usr/lib/tmpfiles.d/ doins "${@}" @@ -103,6 +108,9 @@ systemd_dotmpfilesd() { systemd_newtmpfilesd() { debug-print-function ${FUNCNAME} "${@}" + [[ ${2} == *.conf ]] \ + || die 'tmpfiles.d files need to have .conf suffix.' + ( insinto /usr/lib/tmpfiles.d/ newins "${@}" |