# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/mkinitcpio/mkinitcpio-0.9.2-r3.ebuild,v 1.1 2013/01/22 14:00:48 ssuominen Exp $ EAPI=4 inherit eutils linux-info DESCRIPTION="Modular initramfs image creation utility ported from Arch Linux" HOMEPAGE="http://www.archlinux.org/" MY_MODULES_VER="0_p20120704" SRC_URI="ftp://ftp.archlinux.org/other/${PN}/${P}.tar.gz http://xmw.de/mirror/mkinitcpio-modules/mkinitcpio-modules-${MY_MODULES_VER}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="cryptsetup device-mapper dmraid mdadm pcmcia udev" DEPEND="sys-apps/sed" RDEPEND="app-arch/cpio app-arch/gzip app-arch/libarchive app-shells/bash >=sys-apps/busybox-1.20[static] sys-apps/coreutils sys-apps/file sys-apps/findutils sys-apps/grep >=sys-apps/kmod-12-r1 >=sys-apps/util-linux-2.21 udev? ( >=virtual/udev-197 ) device-mapper? ( sys-fs/lvm2[static] ) cryptsetup? ( sys-fs/cryptsetup[static] ) mdadm? ( sys-fs/mdadm[static] ) dmraid? ( sys-fs/dmraid[static] ) pcmcia? ( || ( >sys-apps/pcmciautils-018[staticsocket] "${D}"/etc/mkinitcpio.d/${KV_FULL}.preset || die } pkg_postinst() { einfo elog "Set your hooks in /etc/mkinitcpio.conf accordingly!" elog "Missing hooks can lead to an unbootanle system!" einfo }