blob: 8fb632b11b4fc0f76be935878b2f47125d88478f (
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
|
# 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 $
inherit eutils flag-o-matic
MDVER="2.1"
DESCRIPTION="Tools for creating initrd images"
HOMEPAGE="http://www.redhat.com/"
SRC_URI="http://dside.dyndns.org/files/darklin/mkinitrd/${P}.tar.bz2
mirror://kernel/linux/utils/raid/mdadm/mdadm-${MDVER}.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}"
unpack mdadm-${MDVER}.tar.bz2
tar xjf ${FILESDIR}/mkinitrd-insmod-3.5.24.tar.bz2
tar xjf ${FILESDIR}/mdadm-2.1.tar.bz2
epatch "${FILESDIR}"/mkinitrd-${PV}-mdk.patch.bz2 || die
epatch "${FILESDIR}"/mkinitrd-ds.patch || die
epatch "${FILESDIR}"/mkinitrd-ds-raid.patch || die
epatch "${FILESDIR}"/mkinitrd-swsusp2.patch || die
#SDS
epatch "${FILESDIR}"/mkinitrd-ds-grubby_compile.patch || die
#EDS
epatch "${FILESDIR}"/nash-ds-remount.patch || die
# bug 29694 -- Change vgwrapper to static vgscan and vgchange
# epatch "${FILESDIR}"/mkinitrd-lvm_statics.diff
sed -i \
-e "/^CFLAGS/s: -Werror : ${CFLAGS} :" \
-e "/^LDFLAGS/s:$: ${LDFLAGS}:" \
grubby/Makefile nash/Makefile
cd mdadm-* || die
epatch "${FILESDIR}"/mdadm-ds-static.patch || die
}
src_compile() {
cd "${S}"/nash
emake || die "nash compile failed."
cd "${S}"/grubby
emake || die "grubby compile failed."
cd "${S}"/mdadm-*
emake || die "mdadm compile failed."
}
src_install() {
into /
dosbin grubby/grubby nash/nash mkinitrd || die
install -c -m 755 mdadm-*/mdadm ${D}/sbin/mdadm.static || die
doman grubby/grubby.8 nash/nash.8 mkinitrd.8
}
|