diff options
Diffstat (limited to 'sys-apps/mkinitrd/mkinitrd-6.0.93-r2.ebuild')
-rw-r--r-- | sys-apps/mkinitrd/mkinitrd-6.0.93-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sys-apps/mkinitrd/mkinitrd-6.0.93-r2.ebuild b/sys-apps/mkinitrd/mkinitrd-6.0.93-r2.ebuild new file mode 100644 index 0000000..2412cbd --- /dev/null +++ b/sys-apps/mkinitrd/mkinitrd-6.0.93-r2.ebuild @@ -0,0 +1,47 @@ +# 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 + epatch "${FILESDIR}"/mkinitrd-6.0.93-ds2.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 +} + |