summaryrefslogtreecommitdiff
blob: c3a0a8de6248de6000f203247b7a724f7624abf6 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd-sysv-utils/systemd-sysv-utils-37.ebuild,v 1.1 2012/01/07 22:38:20 mgorny Exp $

EAPI=4

MY_P=systemd-${PV}

DESCRIPTION="sysvinit compatibility symlinks and manpages"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
SRC_URI="http://www.freedesktop.org/software/systemd/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="!sys-apps/sysvinit
	sys-apps/systemd"

S=${WORKDIR}/${MY_P}/man

src_install() {
	for app in halt poweroff reboot runlevel shutdown telinit; do
		doman ${app}.8
		dosym ../usr/bin/systemctl /sbin/${app}
	done

	newman init.1 init.8
	dosym ../usr/bin/systemd /sbin/init
}