# 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://dside.dyndns.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 }