summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/systemd.eclass16
2 files changed, 19 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 1eccc2304bf6..b4f470719c7f 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.378 2012/08/22 01:41:12 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.379 2012/08/27 21:53:04 mgorny Exp $
+
+ 27 Aug 2012; Michał Górny <mgorny@gentoo.org> systemd.eclass:
+ Add systemd_newtmpfilesd().
22 Aug 2012; Christoph Junghans <ottxor@gentoo.org> unpacker.eclass:
added support for cpio archives
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: