wok-4.x annotate linux/receipt @ rev 1108
Add: wireshark (Network protocol analyzer)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jul 19 16:52:36 2008 +0200 (2008-07-19) |
parents | da3467381855 |
children | d442045183a5 |
rev | line source |
---|---|
pankso@3 | 1 # SliTaz package receipt. |
pankso@3 | 2 |
pankso@3 | 3 PACKAGE="linux" |
pascal@886 | 4 VERSION="2.6.25.5" |
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 |
pascal@1093 | 16 mkdir slitaz |
pascal@1093 | 17 echo "$WGET_URL" > slitaz/url |
pascal@1093 | 18 cp ../stuff/gztazmod.sh ../stuff/list_modules.sh slitaz |
pascal@886 | 19 # lzma and misc patches from pascal |
pascal@521 | 20 while read patch_file; do |
pascal@521 | 21 echo "Apply $patch_file" |
pascal@881 | 22 patch -p1 < ../stuff/$patch_file || return 1 |
pascal@1093 | 23 echo "$patch_file" >> slitaz/patches |
pascal@1093 | 24 cp ../stuff/$patch_file slitaz/$patch_file |
pascal@521 | 25 done <<EOT |
pascal@521 | 26 $PACKAGE-lzma-$VERSION.u |
pascal@886 | 27 $PACKAGE-utf8-$VERSION.u |
pascal@886 | 28 $PACKAGE-diff-$VERSION.u |
pascal@905 | 29 $PACKAGE-rootdev.u |
pascal@521 | 30 EOT |
erjo@253 | 31 make mrproper |
erjo@253 | 32 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config |
erjo@253 | 33 make oldconfig |
pascal@1093 | 34 ln .config slitaz/config |
erjo@253 | 35 make bzImage |
erjo@253 | 36 make modules |
erjo@253 | 37 make INSTALL_MOD_PATH=$PWD/_pkg modules_install |
pascal@886 | 38 make INSTALL_HDR_PATH=$PWD/_pkg/usr headers_install |
erjo@253 | 39 } |
erjo@253 | 40 |
pankso@3 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3 | 42 genpkg_rules() |
pankso@3 | 43 { |
pascal@521 | 44 local path |
pankso@3 | 45 mkdir $fs/boot |
pascal@214 | 46 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz |
pankso@3 | 47 # Compress all modules. |
pankso@3 | 48 # Package module-init-tools is compiled with zlib support. |
pankso@3 | 49 # |
pascal@521 | 50 ./stuff/gztazmod.sh $_pkg/lib/modules/$VERSION-slitaz |
pascal@521 | 51 path=$fs/lib/modules/$VERSION-slitaz/kernel |
pascal@521 | 52 mkdir -p $path |
pascal@521 | 53 cp -a $_pkg/lib/modules/$VERSION-slitaz/mo* $fs/lib/modules/$VERSION-slitaz |
pascal@886 | 54 cp ./stuff/list_modules.sh $src |
pascal@886 | 55 export src |
pascal@886 | 56 export _pkg |
pascal@886 | 57 $src/list_modules.sh $(cat stuff/modules-$VERSION.list) > $src/modules.list |
pascal@521 | 58 while read module; do |
pascal@521 | 59 dir=$(dirname $module) |
pankso@535 | 60 [ -d $path/$dir ] || mkdir -p $path/$dir |
pankso@535 | 61 cp -a $_pkg/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir |
pascal@886 | 62 done < $src/modules.list |
pascal@397 | 63 # Remove unresolved links |
pascal@397 | 64 rm -f $fs/lib/modules/$VERSION-slitaz/build |
pascal@397 | 65 rm -f $fs/lib/modules/$VERSION-slitaz/source |
pascal@886 | 66 # Package all linux pkgs |
pascal@886 | 67 for i in $(cd $WOK; ls -d linux-*) |
pankso@871 | 68 do |
pascal@886 | 69 tazwok genpkg $i |
pascal@886 | 70 done |
pascal@886 | 71 # Cook all packages with a kernel module |
pascal@886 | 72 for i in $(cd $WOK; grep -l 'tazwok cook linux$' */receipt) |
pascal@886 | 73 do |
pascal@886 | 74 echo tazwok cook ${i%/receipt} |
pankso@871 | 75 done |
pankso@3 | 76 } |
pankso@3 | 77 |
pankso@3 | 78 # Pre and post install commands for Tazpkg. |
pankso@3 | 79 # GRUB stuf. |
pankso@3 | 80 post_install() |
pankso@3 | 81 { |
pascal@521 | 82 echo "Processing post-install commands..." |
pascal@886 | 83 depmod -a -b "$1/" $VERSION-slitaz |
pascal@886 | 84 cat <<EOT |
pascal@886 | 85 ---- |
pascal@886 | 86 If you have GRUB installed, you can add tree lines to boot SliTaz. |
pascal@886 | 87 Example /boot/grub/menu.lst |
pascal@886 | 88 |
pankso@3 | 89 title SliTaz GNU/Linux (Kernel $VERSION-slitaz) |
pankso@3 | 90 root(hd0,0) |
pascal@886 | 91 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771 |
pascal@886 | 92 ---- |
pascal@886 | 93 EOT |
pankso@3 | 94 } |