summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-10-30 21:56:31 +0000
committerMichał Górny <mgorny@gentoo.org>2012-10-30 21:56:31 +0000
commit5da67361004fa8b1feee9c9fc39929db9fd5693b (patch)
treea9fa4595f041fae8ac0a5cdbe173a00386404fee
parentstable ppc, bug #440296 (diff)
downloadhistorical-5da67361004fa8b1feee9c9fc39929db9fd5693b.tar.gz
historical-5da67361004fa8b1feee9c9fc39929db9fd5693b.tar.bz2
historical-5da67361004fa8b1feee9c9fc39929db9fd5693b.zip
Add systemd_with_utildir() as well.
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/systemd.eclass13
2 files changed, 16 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 4224e0f9f0b9..c9579868dd9a 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.487 2012/10/30 21:29:32 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.488 2012/10/30 21:56:31 mgorny Exp $
+
+ 30 Oct 2012; Michał Górny <mgorny@gentoo.org> systemd.eclass:
+ Add systemd_with_utildir() as well.
30 Oct 2012; Michał Górny <mgorny@gentoo.org> systemd.eclass:
Introduce systemd_get_utildir() wrt bug #440320.
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 2c4a2567d5de..47e342b38902 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.17 2012/10/30 21:29:32 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.18 2012/10/30 21:56:31 mgorny Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -164,6 +164,17 @@ systemd_with_unitdir() {
echo --with-${optname}="$(systemd_get_unitdir)"
}
+# @FUNCTION: systemd_with_utildir
+# @DESCRIPTION:
+# Output '--with-systemdsystemutildir' as used by some packages to install
+# systemd helpers. This function always succeeds. Its output may be quoted
+# in order to preserve whitespace in paths.
+systemd_with_utildir() {
+ debug-print-function ${FUNCNAME} "${@}"
+
+ echo --with-systemdutildir="$(systemd_get_utildir)"
+}
+
# @FUNCTION: systemd_to_myeconfargs
# @DESCRIPTION:
# Add '--with-systemdsystemunitdir' as expected by systemd-aware configure