# 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 rpm DESCRIPTION="Tools for creating initrd images" HOMEPAGE="http://www.redhat.com/" SRC_URI="http://ftp.redhat.com/pub/redhat/linux/updates/enterprise/4ES/en/os/SRPMS/mkinitrd-${PV}-1.1.src.rpm" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~ia64 ~ppc ~sparc x86" IUSE="selinux" DEPEND="dev-libs/popt !amd64? ( dev-libs/dietlibc ) virtual/os-headers" RDEPEND="app-shells/bash" PDEPEND="selinux? ( sys-apps/policycoreutils )" src_unpack() { rpm_src_unpack ${A} cd "${S}" # bug 127542 -- Invalid cpio format epatch "${FILESDIR}"/mkinitrd-4.2.0.3-cpio-format.patch # bug 42563 -- Kernel 2.6 fails to boot from md with initrd epatch "${FILESDIR}"/mkinitrd-4.2.0.3-raiddev.patch # bug 29694 -- Change vgwrapper to static vgscan and vgchange epatch "${FILESDIR}"/mkinitrd-lvm_statics.diff epatch "${FILESDIR}"/mkinitrd-nash-reiserfs-label.patch sed -i \ -e "/^CFLAGS/s: -Werror : ${CFLAGS} :" \ -e "/^LDFLAGS/s:$: ${LDFLAGS}:" \ grubby/Makefile nash/Makefile } src_compile() { cd "${S}"/nash emake || die "nash compile failed." cd "${S}"/grubby emake || die "grubby compile failed." } src_install() { into / dosbin grubby/grubby nash/nash mkinitrd || die doman grubby/grubby.8 nash/nash.8 mkinitrd.8 }