Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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