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: Tue, 30 Oct 2012 21:29:50
Message-Id: 20121030212932.E2F9D21600@flycatcher.gentoo.org
1 mgorny 12/10/30 21:29:32
2
3 Modified: ChangeLog systemd.eclass
4 Log:
5 Introduce systemd_get_utildir() wrt bug #440320.
6
7 Revision Changes Path
8 1.487 eclass/ChangeLog
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.487&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.487&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.486&r2=1.487
13
14 Index: ChangeLog
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
17 retrieving revision 1.486
18 retrieving revision 1.487
19 diff -u -r1.486 -r1.487
20 --- ChangeLog 30 Oct 2012 20:24:09 -0000 1.486
21 +++ ChangeLog 30 Oct 2012 21:29:32 -0000 1.487
22 @@ -1,6 +1,9 @@
23 # ChangeLog for eclass directory
24 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.486 2012/10/30 20:24:09 mgorny Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.487 2012/10/30 21:29:32 mgorny Exp $
27 +
28 + 30 Oct 2012; Michał Górny <mgorny@g.o> systemd.eclass:
29 + Introduce systemd_get_utildir() wrt bug #440320.
30
31 30 Oct 2012; Michał Górny <mgorny@g.o> systemd.eclass:
32 Replace "echo -n" with "echo", bash removes trailing newline in subshells
33
34
35
36 1.17 eclass/systemd.eclass
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.17&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.17&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?r1=1.16&r2=1.17
41
42 Index: systemd.eclass
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v
45 retrieving revision 1.16
46 retrieving revision 1.17
47 diff -u -r1.16 -r1.17
48 --- systemd.eclass 30 Oct 2012 20:24:09 -0000 1.16
49 +++ systemd.eclass 30 Oct 2012 21:29:32 -0000 1.17
50 @@ -1,6 +1,6 @@
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.16 2012/10/30 20:24:09 mgorny Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.17 2012/10/30 21:29:32 mgorny Exp $
55
56 # @ECLASS: systemd.eclass
57 # @MAINTAINER:
58 @@ -49,6 +49,18 @@
59 echo "${EPREFIX}$(_systemd_get_unitdir)"
60 }
61
62 +# @FUNCTION: systemd_get_utildir
63 +# @DESCRIPTION:
64 +# Output the path for the systemd utility directory (not including
65 +# ${D}). This function always succeeds, even if systemd is not
66 +# installed.
67 +systemd_get_utildir() {
68 + has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
69 + debug-print-function ${FUNCNAME} "${@}"
70 +
71 + echo "${EPREFIX}/usr/lib/systemd"
72 +}
73 +
74 # @FUNCTION: systemd_dounit
75 # @USAGE: unit1 [...]
76 # @DESCRIPTION: