Magellan Linux

Contents of /branches/magellan-next/core/dracut/dracut-010-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7896 - (show annotations) (download)
Fri Jun 3 19:00:50 2011 UTC (12 years, 11 months ago) by niro
File size: 1481 byte(s)
-provide initramfs-tools
1 # $Id$
2
3 PNAME="dracut"
4 PVER="010"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Initramfs generator using udev which fully replaces mkinitrd."
11 HOMEPAGE="https://dracut.wiki.kernel.org/"
12
13 DEPEND=">= app-shells/bash-4.2
14 >= app-shells/dash-0.5.6.1
15 >= app-arch/bzip2-1.0.6
16 >= app-arch/gzip-1.4
17 >= app-arch/cpio-2.11
18 >= sys-apps/tar-1.26
19 >= sys-apps/coreutils-8.12
20 >= sys-apps/findutils-4.4
21 >= sys-apps/grep-2.8
22 >= sys-apps/kbd-1.15
23 >= sys-apps/module-init-tools-3.12
24 >= sys-apps/sed-4.2
25 >= sys-apps/util-linux-2.19
26 >= sys-apps/v86d-0.1.9
27 >= sys-apps/plymouth-0.8.3
28 >= sys-fs/udev-171"
29
30 PROVIDE="virtual/initramfs-tools"
31
32 SRCFILE="${PNAME}-${PVER}.tar.bz2"
33 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
34
35 sminclude mbuild
36
37 SRC_URI=(
38 http://www.kernel.org/pub/linux/utils/boot/${PNAME}/${SRCFILE}
39 mirror://${PNAME}/${SRCFILE}
40 )
41
42 UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/boot/${PNAME} | lasttarball"
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47 mmake || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53 mmake DESTDIR=${BINDIR} sysconfdir=/etc sbindir=/sbin || die
54 minstalldocs AUTHORS COPYING HACKING NEWS README* TODO || die
55 }
56
57 preinstall()
58 {
59 if [[ ! -z $(magequery -n mkinitrd) ]]
60 then
61 echo -e ${COLRED}
62 echo -e "Error: sys-apps/mkinitrd is installed!!"
63 echo -e "dracut will overwrite binaries from sys-apps/mkinitrd and fully replace it."
64 echo -e "Please uninstall sys-apps/mkinitrd first!"
65 echo -e ${COLDEFAULT}
66 die "sys-apps/mkinitrd found!"
67 fi
68 }