wok view linux/receipt @ rev 54

Fixed deps for alsa-lib, busybox, pcmciautils
author Christophe Lincoln <pankso@slitaz.org>
date Fri Dec 21 20:34:38 2007 +0100 (2007-12-21)
parents
children 938fc6a41f5a
line source
1 # SliTaz package receipt.
3 PACKAGE="linux"
4 VERSION="2.6.22.9"
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/i386/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 }