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

Diff of /eclass/systemd.eclass

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

Revision 1.4 Revision 1.5
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.4 2011/06/16 16:39:18 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.5 2011/06/19 16:05:10 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
49 debug-print-function ${FUNCNAME} "${@}" 49 debug-print-function ${FUNCNAME} "${@}"
50 50
51 ( 51 (
52 insinto "$(systemd_get_unitdir)" 52 insinto "$(systemd_get_unitdir)"
53 doins "${@}" 53 doins "${@}"
54 )
55}
56
57# @FUNCTION: systemd_newunit
58# @USAGE: oldname newname
59# @DESCRIPTION:
60# Install systemd unit with a new name. Uses newins, thus it is fatal
61# in EAPI 4 and non-fatal in earlier EAPIs.
62systemd_newunit() {
63 debug-print-function ${FUNCNAME} "${@}"
64
65 (
66 insinto "$(systemd_get_unitdir)"
67 newins "${@}"
54 ) 68 )
55} 69}
56 70
57# @FUNCTION: systemd_dotmpfilesd 71# @FUNCTION: systemd_dotmpfilesd
58# @USAGE: tmpfilesd1 [...] 72# @USAGE: tmpfilesd1 [...]

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

  ViewVC Help
Powered by ViewVC 1.1.20