summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2011-06-24 13:13:24 +0000
committerJeremy Olexa <darkside@gentoo.org>2011-06-24 13:13:24 +0000
commitdb625160fc4dfb06143b3e89f68bf0a9039de5e2 (patch)
treed5bf862d657d79159c8e7f85260d550188e35642 /eclass/systemd.eclass
parentVersion bump, remove old. (diff)
downloadgentoo-2-db625160fc4dfb06143b3e89f68bf0a9039de5e2.tar.gz
gentoo-2-db625160fc4dfb06143b3e89f68bf0a9039de5e2.tar.bz2
gentoo-2-db625160fc4dfb06143b3e89f68bf0a9039de5e2.zip
return an EPREFIX'd path in systemd_get_unitdir(), approved by maintainer
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r--eclass/systemd.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 2396eaefed71..f171a9b36bff 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.5 2011/06/19 16:05:10 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.6 2011/06/24 13:13:24 darkside Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -35,9 +35,10 @@ esac
# Output the path for the systemd unit directory (not including ${D}).
# This function always succeeds, even if systemd is not installed.
systemd_get_unitdir() {
+ has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
debug-print-function ${FUNCNAME} "${@}"
- echo -n /lib/systemd/system
+ echo -n "${EPREFIX}"/lib/systemd/system
}
# @FUNCTION: systemd_dounit