| 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.13 2012/08/27 21:54:19 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.14 2012/08/27 21:55:01 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 |
| … | |
… | |
| 27 | |
27 | |
| 28 | case ${EAPI:-0} in |
28 | case ${EAPI:-0} in |
| 29 | 0|1|2|3|4) ;; |
29 | 0|1|2|3|4) ;; |
| 30 | *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established." |
30 | *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established." |
| 31 | esac |
31 | esac |
| 32 | |
|
|
| 33 | # Block systemd version without the migration helper. |
|
|
| 34 | DEPEND="!<sys-apps/systemd-29-r4 |
|
|
| 35 | !=sys-apps/systemd-37-r1" |
|
|
| 36 | |
32 | |
| 37 | # @FUNCTION: _systemd_get_unitdir |
33 | # @FUNCTION: _systemd_get_unitdir |
| 38 | # @INTERNAL |
34 | # @INTERNAL |
| 39 | # @DESCRIPTION: |
35 | # @DESCRIPTION: |
| 40 | # Get unprefixed unitdir. |
36 | # Get unprefixed unitdir. |