wok-next annotate linux/receipt @ rev 419

get-skype: declare /usr/share/pixmaps/skype.png
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 12 21:32:51 2008 +0000 (2008-03-12)
parents 60102f5f62dd
children cd99ec381938
rev   line source
pankso@3 1 # SliTaz package receipt.
pankso@3 2
pankso@3 3 PACKAGE="linux"
pascal@214 4 VERSION="2.6.24.2"
pankso@3 5 CATEGORY="base-system"
pankso@3 6 SHORT_DESC="The Linux kernel and modules."
pankso@289 7 MAINTAINER="pascal.bellard@slitaz.org"
pankso@3 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@3 9 WEB_SITE="http://www.kernel.org/"
pankso@3 10 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
pankso@3 11
pankso@3 12 # Rules to configure and make the package.
pankso@3 13 compile_rules()
pankso@3 14 {
erjo@253 15 cd $src
erjo@253 16 # lzma and boot patch from pascal
erjo@253 17 patch -p1 < ../stuff/boot-kernel.u
erjo@253 18 patch -p1 < ../stuff/$PACKAGE-lzma-$VERSION.u
erjo@253 19 patch -p1 < ../stuff/decompress_unlzma.u
erjo@253 20 make mrproper
erjo@253 21 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
erjo@253 22 patch -p1 < ../stuff/config-acpi-$VERSION.u
pascal@280 23 patch -p1 < ../stuff/linux-utf8-$VERSION.u
pascal@307 24 patch -p1 < ../stuff/config-ieee1394-$VERSION.u
pascal@310 25 patch -p1 < ../stuff/linux-lzma-export.u
pascal@337 26 patch -p1 < ../stuff/config-tun-$VERSION.u
erjo@253 27 make oldconfig
erjo@253 28 make bzImage
erjo@253 29 make modules
erjo@253 30 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
erjo@253 31 }
erjo@253 32
pankso@3 33
pankso@3 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3 35 genpkg_rules()
pankso@3 36 {
pankso@3 37 mkdir $fs/boot
pascal@214 38 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
pankso@3 39 cp -a $_pkg/* $fs
pankso@3 40 # Compress all modules.
pankso@3 41 # Package module-init-tools is compiled with zlib support.
pankso@3 42 #
pankso@3 43 ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
pascal@397 44 # Remove unresolved links
pascal@397 45 rm -f $fs/lib/modules/$VERSION-slitaz/build
pascal@397 46 rm -f $fs/lib/modules/$VERSION-slitaz/source
pankso@3 47 }
pankso@3 48
pankso@3 49 # Pre and post install commands for Tazpkg.
pankso@3 50 # GRUB stuf.
pankso@3 51 post_install()
pankso@3 52 {
pankso@3 53 echo "Processing post-install commands..."
pankso@3 54 echo "----"
pankso@3 55 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
pankso@3 56 echo "Example /boot/grub/menu.lst"
pankso@3 57 echo -e "
pankso@3 58 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
pankso@3 59 root(hd0,0)
pankso@3 60 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
pankso@3 61 echo "----"
pankso@3 62 }