summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-06-11 06:06:43 +0000
committerMichał Górny <mgorny@gentoo.org>2011-06-11 06:06:43 +0000
commit22e78c205799bfe839e9b8414e79534923cdb9b4 (patch)
tree8a54c4313840e8e3fc0ec22d33298aa8f546d59f /eclass/systemd.eclass
parent[bump] dev-perl/Text-Table-1.123.0 (diff)
downloadgentoo-2-22e78c205799bfe839e9b8414e79534923cdb9b4.tar.gz
gentoo-2-22e78c205799bfe839e9b8414e79534923cdb9b4.tar.bz2
gentoo-2-22e78c205799bfe839e9b8414e79534923cdb9b4.zip
Introduce systemd_dotmpfilesd() for installing tmpfiles.d files.
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r--eclass/systemd.eclass16
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 3499e91a083d..1cee9e0fd09a 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.2 2011/05/04 16:02:10 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.3 2011/06/11 06:06:43 mgorny Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -54,6 +54,20 @@ systemd_dounit() {
)
}
+# @FUNCTION: systemd_dotmpfilesd
+# @USAGE: tmpfilesd1 [...]
+# @DESCRIPTION:
+# Install systemd tmpfiles.d files. Uses doins, thus it is fatal
+# in EAPI 4 and non-fatal in earlier EAPIs.
+systemd_dotmpfilesd() {
+ debug-print-function ${FUNCNAME} "${@}"
+
+ (
+ insinto /usr/lib/tmpfiles.d/
+ doins "${@}"
+ )
+}
+
# @FUNCTION: systemd_enable_service
# @USAGE: target service
# @DESCRIPTION: