wok-stable view linux/receipt @ rev 245

Linux: acpi support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 19 14:02:08 2008 +0100 (2008-02-19)
parents 938fc6a41f5a
children f808fda230ba
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 patch -p1 < ../stuff/config-acpi-$VERSION.u
23 make oldconfig
24 make bzImage
25 make modules
26 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir $fs/boot
33 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
34 cp -a $_pkg/* $fs
35 # Compress all modules.
36 # Package module-init-tools is compiled with zlib support.
37 #
38 ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
39 }
41 # Pre and post install commands for Tazpkg.
42 # GRUB stuf.
43 post_install()
44 {
45 echo "Processing post-install commands..."
46 echo "----"
47 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
48 echo "Example /boot/grub/menu.lst"
49 echo -e "
50 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
51 root(hd0,0)
52 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
53 echo "----"
54 }