Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog systemd.eclass
Date: Sat, 31 May 2014 10:23:40
Message-Id: 20140531102337.0050B2004E@flycatcher.gentoo.org
1 mgorny 14/05/31 10:23:36
2
3 Modified: ChangeLog systemd.eclass
4 Log:
5 Add systemd_{do,new}userunit.
6
7 Revision Changes Path
8 1.1278 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1278&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1278&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1277&r2=1.1278
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.1277
18 retrieving revision 1.1278
19 diff -u -r1.1277 -r1.1278
20 --- ChangeLog 28 May 2014 18:53:20 -0000 1.1277
21 +++ ChangeLog 31 May 2014 10:23:36 -0000 1.1278
22 @@ -1,6 +1,9 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1277 2014/05/28 18:53:20 mgorny Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1278 2014/05/31 10:23:36 mgorny Exp $
27 +
28 + 31 May 2014; Michał Górny <mgorny@g.o> systemd.eclass:
29 + Add systemd_{do,new}userunit.
30
31 28 May 2014; Michał Górny <mgorny@g.o> multilib-build.eclass:
32 Fix ABI flag stripping in multilib_get_enabled_abis(), bug #511682.
33
34
35
36 1.32 eclass/systemd.eclass
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.32&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.32&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?r1=1.31&r2=1.32
41
42 Index: systemd.eclass
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v
45 retrieving revision 1.31
46 retrieving revision 1.32
47 diff -u -r1.31 -r1.32
48 --- systemd.eclass 22 Oct 2013 15:14:40 -0000 1.31
49 +++ systemd.eclass 31 May 2014 10:23:36 -0000 1.32
50 @@ -1,6 +1,6 @@
51 -# Copyright 1999-2013 Gentoo Foundation
52 +# Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.31 2013/10/22 15:14:40 mgorny Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.32 2014/05/31 10:23:36 mgorny Exp $
56
57 # @ECLASS: systemd.eclass
58 # @MAINTAINER:
59 @@ -133,6 +133,34 @@
60 )
61 }
62
63 +# @FUNCTION: systemd_douserunit
64 +# @USAGE: <unit>...
65 +# @DESCRIPTION:
66 +# Install systemd user unit(s). Uses doins, thus it is fatal in EAPI 4
67 +# and non-fatal in earlier EAPIs.
68 +systemd_douserunit() {
69 + debug-print-function ${FUNCNAME} "${@}"
70 +
71 + (
72 + insinto "$(_systemd_get_userunitdir)"
73 + doins "${@}"
74 + )
75 +}
76 +
77 +# @FUNCTION: systemd_newuserunit
78 +# @USAGE: <old-name> <new-name>
79 +# @DESCRIPTION:
80 +# Install systemd user unit with a new name. Uses newins, thus it
81 +# is fatal in EAPI 4 and non-fatal in earlier EAPIs.
82 +systemd_newuserunit() {
83 + debug-print-function ${FUNCNAME} "${@}"
84 +
85 + (
86 + insinto "$(_systemd_get_userunitdir)"
87 + newins "${@}"
88 + )
89 +}
90 +
91 # @FUNCTION: systemd_install_serviced
92 # @USAGE: <conf-file> [<service.d>]
93 # @DESCRIPTION: