mgorny      14/05/31 10:23:36

  Modified:             ChangeLog systemd.eclass
  Log:
  Add systemd_{do,new}userunit.

Revision  Changes    Path
1.1278               eclass/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1278&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1278&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1277&r2=1.1278

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1277
retrieving revision 1.1278
diff -u -r1.1277 -r1.1278
--- ChangeLog   28 May 2014 18:53:20 -0000      1.1277
+++ ChangeLog   31 May 2014 10:23:36 -0000      1.1278
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1277 2014/05/28 
18:53:20 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1278 2014/05/31 
10:23:36 mgorny Exp $
+
+  31 May 2014; Michał Górny <mgo...@gentoo.org> systemd.eclass:
+  Add systemd_{do,new}userunit.
 
   28 May 2014; Michał Górny <mgo...@gentoo.org> multilib-build.eclass:
   Fix ABI flag stripping in multilib_get_enabled_abis(), bug #511682.



1.32                 eclass/systemd.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.32&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.32&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?r1=1.31&r2=1.32

Index: systemd.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- systemd.eclass      22 Oct 2013 15:14:40 -0000      1.31
+++ systemd.eclass      31 May 2014 10:23:36 -0000      1.32
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.31 2013/10/22 
15:14:40 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.32 2014/05/31 
10:23:36 mgorny Exp $
 
 # @ECLASS: systemd.eclass
 # @MAINTAINER:
@@ -133,6 +133,34 @@
        )
 }
 
+# @FUNCTION: systemd_douserunit
+# @USAGE: <unit>...
+# @DESCRIPTION:
+# Install systemd user unit(s). Uses doins, thus it is fatal in EAPI 4
+# and non-fatal in earlier EAPIs.
+systemd_douserunit() {
+       debug-print-function ${FUNCNAME} "${@}"
+
+       (
+               insinto "$(_systemd_get_userunitdir)"
+               doins "${@}"
+       )
+}
+
+# @FUNCTION: systemd_newuserunit
+# @USAGE: <old-name> <new-name>
+# @DESCRIPTION:
+# Install systemd user unit with a new name. Uses newins, thus it
+# is fatal in EAPI 4 and non-fatal in earlier EAPIs.
+systemd_newuserunit() {
+       debug-print-function ${FUNCNAME} "${@}"
+
+       (
+               insinto "$(_systemd_get_userunitdir)"
+               newins "${@}"
+       )
+}
+
 # @FUNCTION: systemd_install_serviced
 # @USAGE: <conf-file> [<service.d>]
 # @DESCRIPTION:




Reply via email to