Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7604 - (show annotations) (download)
Fri May 27 18:35:13 2011 UTC (12 years, 11 months ago) by niro
File size: 1300 byte(s)
auto added: ver bump to 6.4.0-r1
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 >= sys-apps/util-linux-2.19"
21
22 # nasm is needed to rebuild syslinux
23 SDEPEND=">= virtual/kernel-sources
24 >= sys-apps/findutils-4
25 >= sys-apps/sed-4
26 >= dev-lang/nasm-2"
27
28 SRCFILE="${PNAME}-${PVER}.tar.bz2"
29 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30
31 sminclude mbuild
32
33 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
34
35 src_prepare()
36 {
37 munpack ${SRCFILE} || die
38 cd ${SRCDIR}
39
40 # enable scsi,sata and pata checks for 2.6.29 as default
41 sed -i -e "s:^\(DOSCSI=\).*:\1yes:" \
42 -e "s:^\(DOSATA=\).*:\1yes:" \
43 -e "s:^\(DOPATA=\).*:\1yes:" \
44 livecd/linuxrc.sh || die
45
46 # fix version, we want ${PVER}-${PBUILD}
47 echo "${PVER}-${PBUILD}" > VERSION || die
48
49 # fix libdir on 64bit arches
50 sed -i "s:^\(LIBDIR =\).*:\1 /usr/$(mlibdir):" livecd/Makefile || die
51 sed -i "s:^\(LIBDIR.*=\).*:\1 /usr/$(mlibdir)/mkinitrd:" isolinux/Makefile || die
52 }
53
54 src_compile()
55 {
56 cd ${SRCDIR}
57 mmake ARCH=${ARCH/i*86/i386} || die
58 }