summaryrefslogtreecommitdiffstats
path: root/sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild
blob: 4498e669499c493ab58b3ef82cec76df728760c6 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mkinitrd/mkinitrd-4.2.0.3.ebuild,v 1.2 2005/08/29 01:56:57 vapier Exp $

EAPI=4
inherit eutils flag-o-matic

MDVER="2.1"

DESCRIPTION="Tools for creating initrd images"
HOMEPAGE="http://www.redhat.com/"
SRC_URI="http://darksoft.org/files/darklin/mkinitrd/${P}.tar.bz2"

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

DEPEND="dev-libs/popt
	virtual/os-headers"
RDEPEND="app-shells/bash"
PDEPEND="selinux? ( sys-apps/policycoreutils )"

src_unpack() {
        unpack ${P}.tar.bz2
	cd "${S}"
	tar xjf "${FILESDIR}"/mkinitrd-mdk-patches-6.0.93.tar.bz2
	for name in patches/*; do
	    epatch  $name || die
	done
	epatch "${FILESDIR}"/mkinitrd-ds-vitalsunion.diff || die
	epatch "${FILESDIR}"/mkinitrd-6.0.93-ds.diff || die
	find . -name "Makefile*" -exec sed -i 's|-Werror||g' {} \;
	sed -i -e 's|CFLAGS\s*[\?]=|CFLAGS +=|g' -e 's|LDFLAGS\s*[\?]=|LDFLAGS +=|g' Makefile.inc
}

src_compile() {
	emake || die "compile failed."
	
}

src_install() {
	into /
	emake DESTDIR="${D}" install
}