diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-08-27 21:53:04 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-08-27 21:53:04 +0000 |
commit | 55229bf87dca572532253f32c709ee863bbf6bb4 (patch) | |
tree | ffa52a110f6d6fd8579235d4c4e7016332b1b3b2 /eclass/systemd.eclass | |
parent | New snapshot. (diff) | |
download | gentoo-2-55229bf87dca572532253f32c709ee863bbf6bb4.tar.gz gentoo-2-55229bf87dca572532253f32c709ee863bbf6bb4.tar.bz2 gentoo-2-55229bf87dca572532253f32c709ee863bbf6bb4.zip |
Add systemd_newtmpfilesd().
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r-- | eclass/systemd.eclass | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 1ddc9b00faa4..08f29cb0723f 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.11 2012/01/07 17:53:47 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.12 2012/08/27 21:53:04 mgorny Exp $ # @ECLASS: systemd.eclass # @MAINTAINER: @@ -95,6 +95,20 @@ systemd_dotmpfilesd() { ) } +# @FUNCTION: systemd_newtmpfilesd +# @USAGE: oldname newname.conf +# @DESCRIPTION: +# Install systemd tmpfiles.d file under a new name. Uses newins, thus it +# is fatal in EAPI 4 and non-fatal in earlier EAPIs. +systemd_newtmpfilesd() { + debug-print-function ${FUNCNAME} "${@}" + + ( + insinto /usr/lib/tmpfiles.d/ + newins "${@}" + ) +} + # @FUNCTION: systemd_enable_service # @USAGE: target service # @DESCRIPTION: |