wok-6.x diff linux64/receipt @ rev 12770
zlib-dev: Up to 1.2.7 and add it to arm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 02:20:37 2012 +0200 (2012-05-13) |
parents | |
children | edd6117a0e47 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux64/receipt Sun May 13 02:20:37 2012 +0200 1.3 @@ -0,0 +1,85 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="linux64" 1.7 +VERSION="3.2.14" 1.8 +KBASEVER="${VERSION:0:3}" 1.9 +CATEGORY="base-system" 1.10 +SHORT_DESC="The Linux 64 bits kernel and modules." 1.11 +MAINTAINER="devel@slitaz.org" 1.12 +WEB_SITE="http://www.kernel.org/" 1.13 +WANTED="linux" 1.14 +PROVIDE="linux" 1.15 +CONFIG_FILES="/lib/modules/$KBASEVER-slitaz/modules.dep" 1.16 + 1.17 +DEPENDS="depmod" 1.18 + 1.19 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.20 +genpkg_rules() 1.21 +{ 1.22 + local path 1.23 + _pkg=$_pkg/linux64 1.24 + cp -a $_pkg/boot $fs 1.25 + # Compress all modules. 1.26 + #$wanted_stuff/gztazmod.sh $_pkg/lib/modules/$KBASEVER-slitaz 1.27 + path=$fs/lib/modules/$KBASEVER-slitaz/kernel 1.28 + mkdir -p $path 1.29 + cp -a $_pkg/lib/modules/$KBASEVER-slitaz/mo* \ 1.30 + $fs/lib/modules/$KBASEVER-slitaz 1.31 + # Get the base modules 1.32 + export src 1.33 + export _pkg 1.34 + mkdir -p $WOK/$PACKAGE/source/tmp 1.35 + $wanted_stuff/list_modules.sh \ 1.36 + $(cat $wanted_stuff/modules.list) > $WOK/$PACKAGE/source/tmp/modules.list 1.37 + while read module; do 1.38 + dir=$(dirname $module) 1.39 + [ -d $path/$dir ] || mkdir -p $path/$dir 1.40 + cp -a $_pkg/lib/modules/$KBASEVER-slitaz/kernel/$module $path/$dir 1.41 + done < $WOK/$PACKAGE/source/tmp/modules.list 1.42 + # Remove unresolved links 1.43 + rm -f $fs/lib/modules/$KBASEVER-slitaz/build 1.44 + rm -f $fs/lib/modules/$KBASEVER-slitaz/source 1.45 + # Cook all packages with a kernel module 1.46 + for i in $(cd $WOK; grep -l 'tazwok cook linux$' */receipt) 1.47 + do 1.48 + echo tazwok cook ${i%/receipt} 1.49 + done 1.50 + # Fixed modules.dep to use right path 1.51 + # saves 100kb of space too 1.52 + sed -i "s|$_pkg||g" $fs/lib/modules/$KBASEVER-slitaz/modules.dep 1.53 + sed -i "s|99.98.$KBASEVER-slitaz|$KBASEVER-slitaz|g" $fs/lib/modules/$KBASEVER-slitaz/modules.dep 1.54 + # Check and echo any module in kernel .config that's not added to 1.55 + # one of linux-* pkgs 1.56 + $wanted_stuff/check_modules.sh 1.57 +} 1.58 + 1.59 +# Pre and post install commands for Tazpkg. 1.60 +post_install() 1.61 +{ 1.62 + echo "Processing post-install commands..." 1.63 + chroot "$1/" depmod -a $KBASEVER-slitaz 1.64 + # GRUB stuff. 1.65 + if [ -f "$1/boot/grub/menu.lst" ]; then 1.66 + root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` 1.67 + grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1` 1.68 + # Add new kernel entry in case of upgrade for installed system. 1.69 + if ! grep -q $PACKAGE-$VERSION-slitaz $1/boot/grub/menu.lst; then 1.70 + cat >> $1/boot/grub/menu.lst << EOT 1.71 + 1.72 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.73 +$grub_dev 1.74 +kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev 1.75 +EOT 1.76 + fi 1.77 + # Display information message. 1.78 + cat <<EOT 1.79 +---- 1.80 +GRUB is installed, these tree lines must be in your /boot/grub/menu.lst: 1.81 + 1.82 +title SliTaz GNU/Linux (Kernel $VERSION-slitaz) 1.83 +$grub_dev 1.84 +kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev 1.85 +---- 1.86 +EOT 1.87 + fi 1.88 +}