summaryrefslogtreecommitdiff
path: root/sys-apps/systemd/systemd-9999.ebuild
blob: 1a8052fb21a2dae5998f5bcbd02aff73dbb331b0 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit autotools git

EGIT_BRANCH="master"
EGIT_REPO_URI="git://anongit.freedesktop.org/systemd"

DESCRIPTION="Systemd : rethinking PID 1"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk pam +tcpwrap"

RDEPEND="
	  >=sys-apps/dbus-1.3.2
	  dev-libs/dbus-glib
	  >=sys-fs/udev-160
	  >=sys-kernel/linux-headers-2.6.32
	  sys-libs/libcap
	  gtk? ( >=x11-libs/gtk+-2.20 )
	  tcpwrap? ( sys-apps/tcp-wrappers )
	  pam? ( virtual/pam )
	  >=dev-lang/vala-0.8
	  >=app-admin/syslog-ng-3"
DEPEND="${RDEPEND}
	app-text/docbook-xml-dtd:4.2
	app-text/docbook-xsl-stylesheets
	app-text/build-docbook-catalog
	dev-libs/libxslt"

CFLAGS+=" -g -O0"
WANT_AUTOMAKE=1.11

src_unpack() {
	git_src_unpack
}

src_prepare() {
	epatch "${FILESDIR}"/*.patch
}

src_prepare() {
	eautoreconf
}

src_configure() {
	econf --with-distro=gentoo \
		$(use_enable gtk) \
		--prefix=/usr \
		--with-rootdir=/ \
		$(use_enable pam) \
		$(use_enable tcpwrap)
}

src_install() {
	# make sure all directory are created
	mkdir -p "${D}"/cgroup/{cpu,cpuacct,cpuset,debug,devices,freezer,memory,ns,systemd}
	emake DESTDIR="${D}" install
	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
}