# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils pam DESCRIPTION="Replacement for sysvinit with extensive usage of parallelization" HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd" SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk pam +tcpwrap nosysv" RDEPEND=">=sys-apps/dbus-1.3.1 sys-libs/libcap >=sys-fs/udev-160 gtk? ( >=x11-libs/gtk+-2.20 ) tcpwrap? ( sys-apps/tcp-wrappers ) pam? ( virtual/pam ) " DEPEND="${RDEPEND} >=dev-lang/vala-0.8 >=sys-kernel/linux-headers-2.6.32 " src_compile() { # This is only a temporary workaround, remove as soon as possible epatch "${FILESDIR}/${PN}-3-dbus-1.3.2.patch" || die "epatch failed" #epatch "${FILESDIR}/${PN}-3-systemadm.vala.patch" #epatch "${FILESDIR}/${PN}-3-systemadm.c.patch" || die "epatch failed" myconf="--with-distro=gentoo --with-rootdir=/ $(use_enable gtk) $(use_enable pam) $(use_enable tcpwrap)" if use nosysv ; then myconf="${myconf} --with-sysvinit-path=/none/here --with-sysvrcd-path=/none/here" fi econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" dodoc "${D}/usr/share/doc/systemd"/* && \ rm -r "${D}/usr/share/doc/systemd/" cd "${D}/usr/share/man/man8/" for i in halt poweroff reboot runlevel shutdown telinit; do mv "${i}.8" "systemd.${i}.8" done }