wok diff linux/receipt @ rev 145
UP : htop (0.7)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 21 23:34:21 2008 +0100 (2008-01-21) |
parents | |
children | 938fc6a41f5a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/receipt Mon Jan 21 23:34:21 2008 +0100 1.3 @@ -0,0 +1,53 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux" 1.7 +VERSION="2.6.22.9" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="The Linux kernel and modules." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.12 +WEB_SITE="http://www.kernel.org/" 1.13 +WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v2.6/$TARBALL" 1.14 + 1.15 +# Rules to configure and make the package. 1.16 +compile_rules() 1.17 +{ 1.18 + cd $src 1.19 + # lzma and boot patch from pascal 1.20 + patch -p1 < ../stuff/boot-kernel.u 1.21 + patch -p1 < ../stuff/$PACKAGE-lzma-$VERSION.u 1.22 + patch -p1 < ../stuff/decompress_unlzma.u 1.23 + make mrproper 1.24 + cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config 1.25 + make oldconfig 1.26 + make bzImage 1.27 + make modules 1.28 + make INSTALL_MOD_PATH=$PWD/_pkg modules_install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir $fs/boot 1.35 + cp -a $src/arch/i386/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz 1.36 + cp -a $_pkg/* $fs 1.37 + # Compress all modules. 1.38 + # Package module-init-tools is compiled with zlib support. 1.39 + # 1.40 + ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz 1.41 +} 1.42 + 1.43 +# Pre and post install commands for Tazpkg. 1.44 +# GRUB stuf. 1.45 +post_install() 1.46 +{ 1.47 + echo "Processing post-install commands..." 1.48 + echo "----" 1.49 + echo "If you have GRUB installed, you can add tree lines to boot SliTaz." 1.50 + echo "Example /boot/grub/menu.lst" 1.51 + echo -e " 1.52 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.53 + root(hd0,0) 1.54 + kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n" 1.55 + echo "----" 1.56 +}