wok view linux/receipt @ rev 262

Add a few X app (xcursorgen to build slitaz-polar-cursors
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 24 20:46:37 2008 +0100 (2008-02-24)
parents f808fda230ba
children 9a39cdc4c1ef
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 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir $fs/boot
34 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
35 cp -a $_pkg/* $fs
36 # Compress all modules.
37 # Package module-init-tools is compiled with zlib support.
38 #
39 ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
40 }
42 # Pre and post install commands for Tazpkg.
43 # GRUB stuf.
44 post_install()
45 {
46 echo "Processing post-install commands..."
47 echo "----"
48 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
49 echo "Example /boot/grub/menu.lst"
50 echo -e "
51 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
52 root(hd0,0)
53 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
54 echo "----"
55 }