wok-6.x view linux/receipt @ rev 532
fix depmod args
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 09 17:18:31 2008 +0000 (2008-04-09) |
parents | cd99ec381938 |
children | c77621e18bbb |
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 while read patch_file; do
18 echo "Apply $patch_file"
19 patch -p1 < ../stuff/$patch_file
20 done <<EOT
21 boot-kernel.u
22 $PACKAGE-lzma-$VERSION.u
23 decompress_unlzma.u
24 EOT
25 make mrproper
26 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
27 while read patch_file; do
28 echo "Apply $patch_file"
29 patch -p1 < ../stuff/$patch_file
30 done <<EOT
31 config-acpi-$VERSION.u
32 linux-utf8-$VERSION.u
33 config-ieee1394-$VERSION.u
34 linux-lzma-export.u
35 config-tun-$VERSION.u
36 config-reiserfs-$VERSION.u
37 config-wireless-$VERSION.u
38 EOT
39 make oldconfig
40 make bzImage
41 make modules
42 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
43 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 local path
50 mkdir $fs/boot
51 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
52 # Compress all modules.
53 # Package module-init-tools is compiled with zlib support.
54 #
55 ./stuff/gztazmod.sh $_pkg/lib/modules/$VERSION-slitaz
56 path=$fs/lib/modules/$VERSION-slitaz/kernel
57 mkdir -p $path
58 cp -a $_pkg/lib/modules/$VERSION-slitaz/mo* $fs/lib/modules/$VERSION-slitaz
59 while read module; do
60 dir=$(dirname $module)
61 [ -d $fs/$dir ] || mkdir -p $fs/$dir
62 cp -a $_pkg/$path/$module $fs/$path/$dir
63 done < stuff/modules-$VERSION.list
64 # Remove unresolved links
65 rm -f $fs/lib/modules/$VERSION-slitaz/build
66 rm -f $fs/lib/modules/$VERSION-slitaz/source
67 }
69 # Pre and post install commands for Tazpkg.
70 # GRUB stuf.
71 post_install()
72 {
73 echo "Processing post-install commands..."
74 depmod -a -b /$1
75 echo "----"
76 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
77 echo "Example /boot/grub/menu.lst"
78 echo -e "
79 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
80 root(hd0,0)
81 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
82 echo "----"
83 }