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

Diff of /eclass/systemd.eclass

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

Revision 1.16 Revision 1.17
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.16 2012/10/30 20:24:09 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.17 2012/10/30 21:29:32 mgorny 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
45systemd_get_unitdir() { 45systemd_get_unitdir() {
46 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= 46 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
47 debug-print-function ${FUNCNAME} "${@}" 47 debug-print-function ${FUNCNAME} "${@}"
48 48
49 echo "${EPREFIX}$(_systemd_get_unitdir)" 49 echo "${EPREFIX}$(_systemd_get_unitdir)"
50}
51
52# @FUNCTION: systemd_get_utildir
53# @DESCRIPTION:
54# Output the path for the systemd utility directory (not including
55# ${D}). This function always succeeds, even if systemd is not
56# installed.
57systemd_get_utildir() {
58 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
59 debug-print-function ${FUNCNAME} "${@}"
60
61 echo "${EPREFIX}/usr/lib/systemd"
50} 62}
51 63
52# @FUNCTION: systemd_dounit 64# @FUNCTION: systemd_dounit
53# @USAGE: unit1 [...] 65# @USAGE: unit1 [...]
54# @DESCRIPTION: 66# @DESCRIPTION:

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20