blob: 0968d8ce7e0e06f981c58642657b7cc05a95fbe3 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mkinitrd/mkinitrd-3.5.7.ebuild,v 1.8 2004/07/15 01:58:59 agriffis Exp $
inherit eutils
IUSE="selinux"
DESCRIPTION="Tools for creating initrd images"
HOMEPAGE="http://www.redhat.com"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
DEPEND="dev-libs/popt
>=sys-kernel/linux-headers-2.4.19-r1
x86? ( dev-libs/dietlibc )"
RDEPEND="app-shells/bash"
PDEPEND="selinux? ( sys-apps/policycoreutils )"
src_unpack() {
unpack ${A}
cd ${S}
use selinux && epatch ${FILESDIR}/mkinitrd-selinux.diff
}
src_compile() {
cd ${S}/nash
emake || die "nash compile failed."
cd ${S}/grubby
emake || die "grubby compile failed."
}
src_install() {
into /
dosbin ${S}/grubby/grubby ${S}/nash/nash ${S}/mkinitrd
doman ${S}/grubby/grubby.8 ${S}/nash/nash.8 ${S}/mkinitrd.8
}
|