1 |
commit: 23d068c81ea7e71d480a60d202d5e750c366927e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 14:02:18 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 14:02:18 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=23d068c8 |
7 |
|
8 |
[systemd.eclass] Add a function to output --with-... |
9 |
|
10 |
--- |
11 |
eclass/systemd.eclass | 12 +++++++++++- |
12 |
1 files changed, 11 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass |
15 |
index d5d90ee..e227829 100644 |
16 |
--- a/eclass/systemd.eclass |
17 |
+++ b/eclass/systemd.eclass |
18 |
@@ -1,4 +1,4 @@ |
19 |
-# Copyright 1999-2010 Gentoo Foundation |
20 |
+# Copyright 1999-2011 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Header: $ |
23 |
|
24 |
@@ -53,3 +53,13 @@ systemd_enable_service() { |
25 |
dodir "${ud}"/"${target}".wants && \ |
26 |
dosym ../"${service}" "${ud}"/"${target}".wants |
27 |
} |
28 |
+ |
29 |
+# @FUNCTION: systemd_with_unitdir |
30 |
+# @DESCRIPTION: |
31 |
+# Output '--with-systemdsystemunitdir' as expected by systemd-aware configure |
32 |
+# scripts. |
33 |
+systemd_dounit() { |
34 |
+ debug-print-function ${FUNCNAME} "${@}" |
35 |
+ |
36 |
+ echo -n --with-systemdsystemunitdir="$(systemd_get_unitdir)" |
37 |
+} |