diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-10-30 21:29:32 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-10-30 21:29:32 +0000 |
commit | aa69504d6a7eee9b8a602dcc815a3d9cf32211d1 (patch) | |
tree | 88e5178826e701236b32ac1fb256befc1c3ffb86 /eclass/systemd.eclass | |
parent | Remove empty depend to fix bug #436310 (diff) | |
download | historical-aa69504d6a7eee9b8a602dcc815a3d9cf32211d1.tar.gz historical-aa69504d6a7eee9b8a602dcc815a3d9cf32211d1.tar.bz2 historical-aa69504d6a7eee9b8a602dcc815a3d9cf32211d1.zip |
Introduce systemd_get_utildir() wrt bug #440320.
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r-- | eclass/systemd.eclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index d5da09cddbf0..2c4a2567d5de 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.16 2012/10/30 20:24:09 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.17 2012/10/30 21:29:32 mgorny Exp $ # @ECLASS: systemd.eclass # @MAINTAINER: @@ -49,6 +49,18 @@ systemd_get_unitdir() { echo "${EPREFIX}$(_systemd_get_unitdir)" } +# @FUNCTION: systemd_get_utildir +# @DESCRIPTION: +# Output the path for the systemd utility directory (not including +# ${D}). This function always succeeds, even if systemd is not +# installed. +systemd_get_utildir() { + has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= + debug-print-function ${FUNCNAME} "${@}" + + echo "${EPREFIX}/usr/lib/systemd" +} + # @FUNCTION: systemd_dounit # @USAGE: unit1 [...] # @DESCRIPTION: |