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

Diff of /eclass/systemd.eclass

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

Revision 1.12 Revision 1.13
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.12 2012/08/27 21:53:04 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.13 2012/08/27 21:54:19 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
87# Install systemd tmpfiles.d files. Uses doins, thus it is fatal 87# Install systemd tmpfiles.d files. Uses doins, thus it is fatal
88# in EAPI 4 and non-fatal in earlier EAPIs. 88# in EAPI 4 and non-fatal in earlier EAPIs.
89systemd_dotmpfilesd() { 89systemd_dotmpfilesd() {
90 debug-print-function ${FUNCNAME} "${@}" 90 debug-print-function ${FUNCNAME} "${@}"
91 91
92 for f; do
93 [[ ${f} == *.conf ]] \
94 || die 'tmpfiles.d files need to have .conf suffix.'
95 done
96
92 ( 97 (
93 insinto /usr/lib/tmpfiles.d/ 98 insinto /usr/lib/tmpfiles.d/
94 doins "${@}" 99 doins "${@}"
95 ) 100 )
96} 101}
100# @DESCRIPTION: 105# @DESCRIPTION:
101# Install systemd tmpfiles.d file under a new name. Uses newins, thus it 106# 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. 107# is fatal in EAPI 4 and non-fatal in earlier EAPIs.
103systemd_newtmpfilesd() { 108systemd_newtmpfilesd() {
104 debug-print-function ${FUNCNAME} "${@}" 109 debug-print-function ${FUNCNAME} "${@}"
110
111 [[ ${2} == *.conf ]] \
112 || die 'tmpfiles.d files need to have .conf suffix.'
105 113
106 ( 114 (
107 insinto /usr/lib/tmpfiles.d/ 115 insinto /usr/lib/tmpfiles.d/
108 newins "${@}" 116 newins "${@}"
109 ) 117 )

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

  ViewVC Help
Powered by ViewVC 1.1.20