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

Diff of /eclass/systemd.eclass

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

Revision 1.19 Revision 1.20
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.19 2012/11/21 09:06:42 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.20 2012/12/31 13:08:12 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
182 myeconfargs=( 182 myeconfargs=(
183 "${myeconfargs[@]}" 183 "${myeconfargs[@]}"
184 --with-systemdsystemunitdir="$(systemd_get_unitdir)" 184 --with-systemdsystemunitdir="$(systemd_get_unitdir)"
185 ) 185 )
186} 186}
187
188# @FUNCTION: systemd_update_catalog
189# @DESCRIPTION:
190# Update the journald catalog. This needs to be called after installing
191# or removing catalog files.
192#
193# If systemd is not installed, no operation will be done. The catalog
194# will be (re)built once systemd is installed.
195#
196# See: http://www.freedesktop.org/wiki/Software/systemd/catalog
197systemd_update_catalog() {
198 debug-print-function ${FUNCNAME} "${@}"
199
200 # Make sure to work on the correct system.
201 local journalctl=${EPREFIX}/usr/bin/journalctl
202 if [[ -x ${journalctl} ]]; then
203 ebegin "Updating systemd journal catalogs"
204 journalctl --update-catalog
205 eend $?
206 else
207 debug-print "${FUNCNAME}: journalctl not found."
208 fi
209}

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20