From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild (limited to 'sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild') diff --git a/sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild b/sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild new file mode 100644 index 0000000..418a001 --- /dev/null +++ b/sys-apps/mkinitrd/mkinitrd-6.0.93-r1.ebuild @@ -0,0 +1,46 @@ +# 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 +} + -- cgit v1.2.3