/[gentoo-x86]/eclass/systemd.eclass
Gentoo

Diff of /eclass/systemd.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.5 2011/06/19 16:05:10 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.6 2011/06/24 13:13:24 darkside Exp $
4 4
5# @ECLASS: systemd.eclass 5# @ECLASS: systemd.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# mgorny@gentoo.org 7# mgorny@gentoo.org
8# @BLURB: helper functions to install systemd units 8# @BLURB: helper functions to install systemd units
33# @FUNCTION: systemd_get_unitdir 33# @FUNCTION: systemd_get_unitdir
34# @DESCRIPTION: 34# @DESCRIPTION:
35# Output the path for the systemd unit directory (not including ${D}). 35# Output the path for the systemd unit directory (not including ${D}).
36# This function always succeeds, even if systemd is not installed. 36# This function always succeeds, even if systemd is not installed.
37systemd_get_unitdir() { 37systemd_get_unitdir() {
38 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
38 debug-print-function ${FUNCNAME} "${@}" 39 debug-print-function ${FUNCNAME} "${@}"
39 40
40 echo -n /lib/systemd/system 41 echo -n "${EPREFIX}"/lib/systemd/system
41} 42}
42 43
43# @FUNCTION: systemd_dounit 44# @FUNCTION: systemd_dounit
44# @USAGE: unit1 [...] 45# @USAGE: unit1 [...]
45# @DESCRIPTION: 46# @DESCRIPTION:

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20