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

Diff of /eclass/systemd.eclass

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

Revision 1.31 Revision 1.32
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.31 2013/10/22 15:14:40 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.32 2014/05/31 10:23:36 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
127systemd_newunit() { 127systemd_newunit() {
128 debug-print-function ${FUNCNAME} "${@}" 128 debug-print-function ${FUNCNAME} "${@}"
129 129
130 ( 130 (
131 insinto "$(_systemd_get_unitdir)" 131 insinto "$(_systemd_get_unitdir)"
132 newins "${@}"
133 )
134}
135
136# @FUNCTION: systemd_douserunit
137# @USAGE: <unit>...
138# @DESCRIPTION:
139# Install systemd user unit(s). Uses doins, thus it is fatal in EAPI 4
140# and non-fatal in earlier EAPIs.
141systemd_douserunit() {
142 debug-print-function ${FUNCNAME} "${@}"
143
144 (
145 insinto "$(_systemd_get_userunitdir)"
146 doins "${@}"
147 )
148}
149
150# @FUNCTION: systemd_newuserunit
151# @USAGE: <old-name> <new-name>
152# @DESCRIPTION:
153# Install systemd user unit with a new name. Uses newins, thus it
154# is fatal in EAPI 4 and non-fatal in earlier EAPIs.
155systemd_newuserunit() {
156 debug-print-function ${FUNCNAME} "${@}"
157
158 (
159 insinto "$(_systemd_get_userunitdir)"
132 newins "${@}" 160 newins "${@}"
133 ) 161 )
134} 162}
135 163
136# @FUNCTION: systemd_install_serviced 164# @FUNCTION: systemd_install_serviced

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20