Magellan Linux

Annotation of /smage/branches/alx-0_6_0/core/mkinitrd/mkinitrd-6.3.5-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3401 - (hide annotations) (download)
Tue Apr 3 14:36:27 2012 UTC (12 years, 1 month ago) by niro
File size: 2587 byte(s)
-fixed a infinitive loop with klibc
1 niro 3400 # $Id$
2    
3     PNAME="mkinitrd"
4     PVER="6.3.5"
5     PBUILD="r4"
6    
7     PCATEGORIE="sys-apps"
8    
9     DESCRIPTION="Mkinitrd creates filesystem images for use as initial ramdisk (initrd) images."
10     HOMEPAGE="http://magellan-linux.de/"
11    
12     DEPEND=">= sys-apps/gawk-3
13     >= virtual/which
14     >= virtual/debianutils
15     >= sys-apps/module-init-tools-3.12
16     >= app-arch/cpio-2
17     >= virtual/gzip
18     >= sys-fs/e2fsprogs-1.41
19     >= dev-libs/popt-1.16
20     >= sys-apps/util-linux-2.19
21     >= sys-apps/v86d-0.1.10"
22    
23     # nasm is needed to rebuild syslinux
24     SDEPEND=">= virtual/kernel-sources
25     >= sys-apps/findutils-4
26     >= virtual/sed
27     >= dev-lang/nasm-2"
28    
29     SRCFILE="${PNAME}-${PVER}.tar.bz2"
30     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
31    
32     REMOVE_DEPRECATED_MAGE_TARGETS=1
33     ALX_ONLY_KEEP="sbin usr/sbin usr/$(mlibdir)/mkinitrd etc/conf.d/mkinitrd"
34     sminclude mbuild alx-split
35    
36     SRC_URI=(
37     mirror://${PNAME}/${SRCFILE}
38     mirror://${PNAME}/${PNAME}-${PVER}-no-glib2-dep.patch
39     mirror://${PNAME}/${PNAME}-${PVER}-respect-rootdelay-and-mount-devtmpfs-in-sysroot-if-supported.patch
40     mirror://${PNAME}/${PNAME}-${PVER}-add-linurc-symlink-to-sysroot.patch
41     mirror://${PNAME}/${PNAME}-${PVER}-fix-dev-handling.patch
42 niro 3401 mirror://${PNAME}/${PNAME}-${PVER}-klibc-mm1-circdep.patch
43    
44 niro 3400 )
45    
46     src_prepare()
47     {
48     munpack ${SRCFILE} || die
49     cd ${SRCDIR}
50    
51     # no need to link against glib2 - removed in later versions
52     mpatch ${PNAME}-${PVER}-no-glib2-dep.patch || die
53    
54     # respect rootdelay given in cmdline and mount devtmpfs in sysroot before switch-root if supported
55     mpatch ${PNAME}-${PVER}-respect-rootdelay-and-mount-devtmpfs-in-sysroot-if-supported.patch || die
56    
57     # add missinig /linuxrc -> /sbin/init symlink to sysroot
58     mpatch ${PNAME}-${PVER}-add-linurc-symlink-to-sysroot.patch || die
59    
60     # fix broken devtmpfs handling of prior patch and only mount dev if really needed
61     # do not umount initrds dev,proc,sys but mount move it to real sysroot
62     mpatch ${PNAME}-${PVER}-fix-dev-handling.patch || die
63    
64 niro 3401 # fix a inifinitive loop with klibc
65     mpatch ${PNAME}-${PVER}-klibc-mm1-circdep.patch || die
66    
67 niro 3400 # enable scsi,sata and pata checks for 2.6.29 as default
68     sed -i -e "s:^\(DOSCSI=\).*:\1yes:" \
69     -e "s:^\(DOSATA=\).*:\1yes:" \
70     -e "s:^\(DOPATA=\).*:\1yes:" \
71     livecd/linuxrc.sh || die
72    
73     # fix version, we want ${PVER}-${PBUILD}
74     echo "${PVER}-${PBUILD}" > VERSION || die
75    
76     # fix libdir on 64bit arches
77     sed -i "s:^\(LIBDIR =\).*:\1 /usr/$(mlibdir):" livecd/Makefile || die
78     sed -i "s:^\(LIBDIR.*=\).*:\1 /usr/$(mlibdir)/mkinitrd:" isolinux/Makefile || die
79     }
80    
81     src_compile()
82     {
83     cd ${SRCDIR}
84     mmake ARCH=${ARCH/i*86/i386} || die
85     }
86    
87     preinstall()
88     {
89     add_conf_prot_ignore /etc/conf.d/mkinitrd
90     }