wok view linux/receipt @ rev 232

Slitaz-loram: do not trust mksquashfs status
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 16 23:00:26 2008 +0100 (2008-02-16)
parents 24d5f71c9b33
children 122236d5dd65
line source
1 # SliTaz package receipt.
3 PACKAGE="linux"
4 VERSION="2.6.24.2"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel and modules."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.kernel.org/"
10 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 # lzma and boot patch from pascal
17 patch -p1 < ../stuff/boot-kernel.u
18 patch -p1 < ../stuff/$PACKAGE-lzma-$VERSION.u
19 patch -p1 < ../stuff/decompress_unlzma.u
20 make mrproper
21 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
22 make oldconfig
23 make bzImage
24 make modules
25 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir $fs/boot
32 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
33 cp -a $_pkg/* $fs
34 # Compress all modules.
35 # Package module-init-tools is compiled with zlib support.
36 #
37 ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
38 }
40 # Pre and post install commands for Tazpkg.
41 # GRUB stuf.
42 post_install()
43 {
44 echo "Processing post-install commands..."
45 echo "----"
46 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
47 echo "Example /boot/grub/menu.lst"
48 echo -e "
49 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
50 root(hd0,0)
51 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
52 echo "----"
53 }