1 |
mgorny 12/12/31 13:09:09 |
2 |
|
3 |
Modified: ChangeLog systemd.eclass |
4 |
Log: |
5 |
Add function to get user unit directory, as requested in bug #449304. |
6 |
|
7 |
Revision Changes Path |
8 |
1.585 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.585&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.585&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.584&r2=1.585 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.584 |
18 |
retrieving revision 1.585 |
19 |
diff -u -r1.584 -r1.585 |
20 |
--- ChangeLog 31 Dec 2012 13:08:12 -0000 1.584 |
21 |
+++ ChangeLog 31 Dec 2012 13:09:09 -0000 1.585 |
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.584 2012/12/31 13:08:12 mgorny Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.585 2012/12/31 13:09:09 mgorny Exp $ |
27 |
+ |
28 |
+ 31 Dec 2012; Michał Górny <mgorny@g.o> systemd.eclass: |
29 |
+ Add function to get user unit directory, as requested in bug #449304. |
30 |
|
31 |
31 Dec 2012; Michał Górny <mgorny@g.o> systemd.eclass: |
32 |
Add function to update systemd journal catalog database. |
33 |
|
34 |
|
35 |
|
36 |
1.21 eclass/systemd.eclass |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.21&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?rev=1.21&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/systemd.eclass?r1=1.20&r2=1.21 |
41 |
|
42 |
Index: systemd.eclass |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v |
45 |
retrieving revision 1.20 |
46 |
retrieving revision 1.21 |
47 |
diff -u -r1.20 -r1.21 |
48 |
--- systemd.eclass 31 Dec 2012 13:08:12 -0000 1.20 |
49 |
+++ systemd.eclass 31 Dec 2012 13:09:09 -0000 1.21 |
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.20 2012/12/31 13:08:12 mgorny Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.21 2012/12/31 13:09:09 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_userunitdir |
63 |
+# @DESCRIPTION: |
64 |
+# Output the path for the systemd user unit directory (not including |
65 |
+# ${D}). This function always succeeds, even if systemd is not |
66 |
+# installed. |
67 |
+systemd_get_userunitdir() { |
68 |
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
69 |
+ debug-print-function ${FUNCNAME} "${@}" |
70 |
+ |
71 |
+ echo "${EPREFIX}/usr/lib/systemd/user" |
72 |
+} |
73 |
+ |
74 |
# @FUNCTION: systemd_get_utildir |
75 |
# @DESCRIPTION: |
76 |
# Output the path for the systemd utility directory (not including |