wok-current view linux/receipt @ rev 322

Home made SQLite pixmap and up desktop file with French
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 04 14:35:42 2008 +0100 (2008-03-04)
parents cd72bbc8d9c4
children 60102f5f62dd
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="pascal.bellard@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 patch -p1 < ../stuff/config-acpi-$VERSION.u
23 patch -p1 < ../stuff/linux-utf8-$VERSION.u
24 patch -p1 < ../stuff/config-ieee1394-$VERSION.u
25 patch -p1 < ../stuff/linux-lzma-export.u
26 make oldconfig
27 make bzImage
28 make modules
29 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
30 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir $fs/boot
37 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
38 cp -a $_pkg/* $fs
39 # Compress all modules.
40 # Package module-init-tools is compiled with zlib support.
41 #
42 ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
43 }
45 # Pre and post install commands for Tazpkg.
46 # GRUB stuf.
47 post_install()
48 {
49 echo "Processing post-install commands..."
50 echo "----"
51 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
52 echo "Example /boot/grub/menu.lst"
53 echo -e "
54 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
55 root(hd0,0)
56 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
57 echo "----"
58 }