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

Diff of /eclass/systemd.eclass

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

Revision 1.23 Revision 1.24
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.23 2013/04/13 22:35:53 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.24 2013/04/13 22:36:51 mgorny Exp $
4 4
5# @ECLASS: systemd.eclass 5# @ECLASS: systemd.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# systemd@gentoo.org 7# systemd@gentoo.org
8# @BLURB: helper functions to install systemd units 8# @BLURB: helper functions to install systemd units
60# @FUNCTION: _systemd_get_userunitdir 60# @FUNCTION: _systemd_get_userunitdir
61# @INTERNAL 61# @INTERNAL
62# @DESCRIPTION: 62# @DESCRIPTION:
63# Get unprefixed userunitdir. 63# Get unprefixed userunitdir.
64_systemd_get_userunitdir() { 64_systemd_get_userunitdir() {
65 if $($(tc-getPKG_CONFIG) --exists systemd); then 65 if $(tc-getPKG_CONFIG) --exists systemd; then
66 echo "$($(tc-getPKG_CONFIG) --variable=systemduserunitdir systemd)" 66 echo "$($(tc-getPKG_CONFIG) --variable=systemduserunitdir systemd)"
67 else 67 else
68 echo /usr/lib/systemd/user 68 echo /usr/lib/systemd/user
69 fi 69 fi
70} 70}
84# @FUNCTION: _systemd_get_utildir 84# @FUNCTION: _systemd_get_utildir
85# @INTERNAL 85# @INTERNAL
86# @DESCRIPTION: 86# @DESCRIPTION:
87# Get unprefixed utildir. 87# Get unprefixed utildir.
88_systemd_get_utildir() { 88_systemd_get_utildir() {
89 if $($(tc-getPKG_CONFIG) --exists systemd); then 89 if $(tc-getPKG_CONFIG) --exists systemd; then
90 echo "$($(tc-getPKG_CONFIG) --variable=systemdutildir systemd)" 90 echo "$($(tc-getPKG_CONFIG) --variable=systemdutildir systemd)"
91 else 91 else
92 echo /usr/lib/systemd 92 echo /usr/lib/systemd
93 fi 93 fi
94} 94}

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20