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

Diff of /eclass/systemd.eclass

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

Revision 1.2 Revision 1.3
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.2 2011/05/04 16:02:10 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.3 2011/06/11 06:06:43 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
52 insinto "$(systemd_get_unitdir)" 52 insinto "$(systemd_get_unitdir)"
53 doins "${@}" 53 doins "${@}"
54 ) 54 )
55} 55}
56 56
57# @FUNCTION: systemd_dotmpfilesd
58# @USAGE: tmpfilesd1 [...]
59# @DESCRIPTION:
60# Install systemd tmpfiles.d files. Uses doins, thus it is fatal
61# in EAPI 4 and non-fatal in earlier EAPIs.
62systemd_dotmpfilesd() {
63 debug-print-function ${FUNCNAME} "${@}"
64
65 (
66 insinto /usr/lib/tmpfiles.d/
67 doins "${@}"
68 )
69}
70
57# @FUNCTION: systemd_enable_service 71# @FUNCTION: systemd_enable_service
58# @USAGE: target service 72# @USAGE: target service
59# @DESCRIPTION: 73# @DESCRIPTION:
60# Enable service in desired target, e.g. install a symlink for it. 74# Enable service in desired target, e.g. install a symlink for it.
61# Uses dosym, thus it is fatal in EAPI 4 and non-fatal in earlier 75# Uses dosym, thus it is fatal in EAPI 4 and non-fatal in earlier

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20