Contents of /branches/magellan-next/core/mkinitrd/mkinitrd-6.5.0-r1.smage2
Parent Directory | Revision Log
Revision 7909 -
(show annotations)
(download)
Fri Jun 3 21:23:44 2011 UTC (13 years, 3 months ago) by niro
File size: 1718 byte(s)
Fri Jun 3 21:23:44 2011 UTC (13 years, 3 months ago) by niro
File size: 1718 byte(s)
ver bump to 6.5.0-r1; grubby is now in an extra package for better dependency tracking with upcoming dracut
1 | # $Id$ |
2 | |
3 | PNAME="mkinitrd" |
4 | PVER="6.5.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 | >= sys-apps/grubby-7.0.17.1" |
23 | |
24 | # nasm is needed to rebuild syslinux |
25 | SDEPEND=">= virtual/kernel-sources |
26 | >= sys-apps/findutils-4 |
27 | >= sys-apps/sed-4 |
28 | >= dev-lang/nasm-2" |
29 | |
30 | PROVIDE="virtual/initramfs-tools" |
31 | |
32 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
33 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
34 | |
35 | sminclude mbuild |
36 | |
37 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # enable scsi,sata and pata checks for 2.6.29 as default |
45 | sed -i -e "s:^\(DOSCSI=\).*:\1yes:" \ |
46 | -e "s:^\(DOSATA=\).*:\1yes:" \ |
47 | -e "s:^\(DOPATA=\).*:\1yes:" \ |
48 | livecd/linuxrc.sh || die |
49 | |
50 | # fix version, we want ${PVER}-${PBUILD} |
51 | echo "${PVER}-${PBUILD}" > VERSION || die |
52 | |
53 | # fix libdir on 64bit arches |
54 | sed -i "s:^\(LIBDIR =\).*:\1 /usr/$(mlibdir):" livecd/Makefile || die |
55 | sed -i "s:^\(LIBDIR.*=\).*:\1 /usr/$(mlibdir)/mkinitrd:" isolinux/Makefile || die |
56 | } |
57 | |
58 | src_compile() |
59 | { |
60 | cd ${SRCDIR} |
61 | mmake ARCH=${ARCH/i*86/i386} || die |
62 | } |
63 | |
64 | preinstall() |
65 | { |
66 | if [[ ! -z $(magequery -n dracut) ]] |
67 | then |
68 | echo -e ${COLRED} |
69 | echo -e "Error: sys-apps/dracut is installed!!" |
70 | echo -e "mkinitrd will overwrite binaries from sys-apps/dracur and fully replace it." |
71 | echo -e "Please uninstall sys-apps/dracut first!" |
72 | echo -e ${COLDEFAULT} |
73 | die "sys-apps/dracut found!" |
74 | fi |
75 | } |