Magellan Linux

Contents of /branches/magellan-next/core/mkinitrd/mkinitrd-6.4.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7895 - (show annotations) (download)
Fri Jun 3 19:00:39 2011 UTC (12 years, 11 months ago) by niro
File size: 1689 byte(s)
-provide initramfs-tools
1 # $Id$
2
3 PNAME="mkinitrd"
4 PVER="6.4.0"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Mkinitrd creates filesystem images for use as initial ramdisk (initrd) images."
11 HOMEPAGE="http://magellan-linux.de/"
12
13 DEPEND=">= sys-apps/gawk-3
14 >= sys-apps/which-2.20
15 >= sys-apps/debianutils-2
16 >= sys-apps/module-init-tools-3.12
17 >= app-arch/cpio-2
18 >= sys-fs/e2fsprogs-1.41
19 >= sys-apps/v86d-0.1.9
20 >= dev-libs/popt-1.16
21 >= sys-apps/util-linux-2.19"
22
23 # nasm is needed to rebuild syslinux
24 SDEPEND=">= virtual/kernel-sources
25 >= sys-apps/findutils-4
26 >= sys-apps/sed-4
27 >= dev-lang/nasm-2"
28
29 PROVIDE="virtual/initramfs-tools"
30
31 SRCFILE="${PNAME}-${PVER}.tar.bz2"
32 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
33
34 sminclude mbuild
35
36 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
37
38 src_prepare()
39 {
40 munpack ${SRCFILE} || die
41 cd ${SRCDIR}
42
43 # enable scsi,sata and pata checks for 2.6.29 as default
44 sed -i -e "s:^\(DOSCSI=\).*:\1yes:" \
45 -e "s:^\(DOSATA=\).*:\1yes:" \
46 -e "s:^\(DOPATA=\).*:\1yes:" \
47 livecd/linuxrc.sh || die
48
49 # fix version, we want ${PVER}-${PBUILD}
50 echo "${PVER}-${PBUILD}" > VERSION || die
51
52 # fix libdir on 64bit arches
53 sed -i "s:^\(LIBDIR =\).*:\1 /usr/$(mlibdir):" livecd/Makefile || die
54 sed -i "s:^\(LIBDIR.*=\).*:\1 /usr/$(mlibdir)/mkinitrd:" isolinux/Makefile || die
55 }
56
57 src_compile()
58 {
59 cd ${SRCDIR}
60 mmake ARCH=${ARCH/i*86/i386} || die
61 }
62
63 preinstall()
64 {
65 if [[ ! -z $(magequery -n dracut) ]]
66 then
67 echo -e ${COLRED}
68 echo -e "Error: sys-apps/dracut is installed!!"
69 echo -e "mkinitrd will overwrite binaries from sys-apps/dracur and fully replace it."
70 echo -e "Please uninstall sys-apps/dracut first!"
71 echo -e ${COLDEFAULT}
72 die "sys-apps/dracut found!"
73 fi
74 }