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

Diff of /eclass/systemd.eclass

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

Revision 1.11 Revision 1.12
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.11 2012/01/07 17:53:47 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.12 2012/08/27 21:53:04 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
93 insinto /usr/lib/tmpfiles.d/ 93 insinto /usr/lib/tmpfiles.d/
94 doins "${@}" 94 doins "${@}"
95 ) 95 )
96} 96}
97 97
98# @FUNCTION: systemd_newtmpfilesd
99# @USAGE: oldname newname.conf
100# @DESCRIPTION:
101# Install systemd tmpfiles.d file under a new name. Uses newins, thus it
102# is fatal in EAPI 4 and non-fatal in earlier EAPIs.
103systemd_newtmpfilesd() {
104 debug-print-function ${FUNCNAME} "${@}"
105
106 (
107 insinto /usr/lib/tmpfiles.d/
108 newins "${@}"
109 )
110}
111
98# @FUNCTION: systemd_enable_service 112# @FUNCTION: systemd_enable_service
99# @USAGE: target service 113# @USAGE: target service
100# @DESCRIPTION: 114# @DESCRIPTION:
101# Enable service in desired target, e.g. install a symlink for it. 115# Enable service in desired target, e.g. install a symlink for it.
102# Uses dosym, thus it is fatal in EAPI 4 and non-fatal in earlier 116# Uses dosym, thus it is fatal in EAPI 4 and non-fatal in earlier

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20