Contents of /trunk/deprecated/mkinitrd/mkinitrd-6.5.0-r1.smage2
Parent Directory | Revision Log
Revision 10561 -
(show annotations)
(download)
Wed Jan 25 18:59:22 2012 UTC (12 years, 8 months ago) by niro
File size: 1695 byte(s)
Wed Jan 25 18:59:22 2012 UTC (12 years, 8 months ago) by niro
File size: 1695 byte(s)
-moved to 'deprecated'
1 | # $Id$ |
2 | |
3 | PNAME="mkinitrd" |
4 | PVER="6.5.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="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 | >= sys-apps/which-2.20 |
14 | >= sys-apps/debianutils-2 |
15 | >= sys-apps/module-init-tools-3.12 |
16 | >= app-arch/cpio-2 |
17 | >= sys-fs/e2fsprogs-1.41 |
18 | >= sys-apps/v86d-0.1.9 |
19 | >= dev-libs/popt-1.16 |
20 | >= sys-apps/util-linux-2.19 |
21 | >= sys-apps/grubby-7.0.17.1" |
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 | } |