summaryrefslogtreecommitdiff
blob: e1eceba471842a86e3db7cbedc3985c77881a6a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3
inherit systemd

DESCRIPTION="Service files for sys-apps/systemd"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd http://en.gentoo-wiki.com/wiki/Systemd"
SRC_URI="basic? ( http://0pointer.de/public/systemd-units/sshd.service
	http://0pointer.de/public/systemd-units/sshd.socket
	http://0pointer.de/public/systemd-units/sshd@.service )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+basic +desktop server sysv"

RDEPEND=""
DEPEND=""

src_install() {
	if use basic; then
		systemd_dounit "${FILESDIR}"/services-basic/*
		systemd_dounit "${DISTDIR}/sshd.service"
		systemd_dounit "${DISTDIR}/sshd.socket"
		systemd_dounit "${DISTDIR}/sshd@.service"
	fi

	if use server; then
		systemd_dounit "${FILESDIR}"/services-server/*
		systemd_dotmpfilesd "${FILESDIR}"/tmpfiles-server/*
	fi

	if use desktop; then
		systemd_dounit "${FILESDIR}"/services-desktop/*
	fi

	if use sysv; then
		systemd_dounit "${FILESDIR}"/services-sysv/*
	fi
}