Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7894 - (hide annotations) (download)
Fri Jun 3 18:57:06 2011 UTC (12 years, 11 months ago) by niro
File size: 1446 byte(s)
-fixed a typo in plymouth dep
1 niro 7892 # $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 niro 7894 >= sys-apps/plymouth-0.8.3
28 niro 7892 >= sys-fs/udev-171"
29    
30     SRCFILE="${PNAME}-${PVER}.tar.bz2"
31     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
32    
33 niro 7893 sminclude mbuild
34    
35 niro 7892 SRC_URI=(
36     http://www.kernel.org/pub/linux/utils/boot/${PNAME}/${SRCFILE}
37     mirror://${PNAME}/${SRCFILE}
38     )
39    
40     UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/boot/${PNAME} | lasttarball"
41    
42     src_compile()
43     {
44     cd ${SRCDIR}
45     mmake || die
46     }
47    
48     src_install()
49     {
50     cd ${SRCDIR}
51     mmake DESTDIR=${BINDIR} sysconfdir=/etc sbindir=/sbin || die
52     minstalldocs AUTHORS COPYING HACKING NEWS README* TODO || die
53     }
54    
55     preinstall()
56     {
57     if [[ ! -z $(magequery -n mkinitrd) ]]
58     then
59     echo -e ${COLRED}
60     echo -e "Error: sys-apps/mkinitrd is installed!!"
61     echo -e "dracut will overwrite binaries from sys-apps/mkinitrd and fully replace it."
62     echo -e "Please uninstall sys-apps/mkinitrd first!"
63     echo -e ${COLDEFAULT}
64     die "sys-apps/mkinitrd found!"
65     fi
66     }