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
commitc32a082a3235c349f3d33d122c316978f94692a0 (patch)
treef54bb21747e789bab98f47fb2993f1a8dd26a98c /eclass/systemd.eclass
parentVersion bump, remove old. (diff)
downloadhistorical-c32a082a3235c349f3d33d122c316978f94692a0.tar.gz
historical-c32a082a3235c349f3d33d122c316978f94692a0.tar.bz2
historical-c32a082a3235c349f3d33d122c316978f94692a0.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