wok rev 15717

remove linux-lxc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 26 09:02:17 2013 +0000 (2013-12-26)
parents 69d061d983f5
children 595b6d418abe
files linux-lxc/receipt
line diff
     1.1 --- a/linux-lxc/receipt	Wed Dec 25 00:55:35 2013 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,57 +0,0 @@
     1.4 -# SliTaz package receipt
     1.5 -
     1.6 -PACKAGE="linux-lxc"
     1.7 -VERSION="2.6.37"
     1.8 -CATEGORY="misc"
     1.9 -SHORT_DESC="The Linux kernel and modules with LXC support."
    1.10 -MAINTAINER="shann@slitaz.org"
    1.11 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 -WEB_SITE="http://linuxcontainers.org/"
    1.13 -WGET_URL="http://people.slitaz.org/~shann/packages/$PACKAGE/$TARBALL"
    1.14 -PROVIDE="linux"
    1.15 -
    1.16 -DEPENDS="lxc"
    1.17 -
    1.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 -genpkg_rules()
    1.20 -{
    1.21 -	mkdir -p $fs/lib/firmware $fs/lib/modules
    1.22 -        cp -a $src/boot $fs
    1.23 -        cp -a $src/lib/modules/*  $fs/lib/modules
    1.24 -        cp -a $src/lib/firmware/* $fs/lib/firmware
    1.25 -        chown -R root.root $fs
    1.26 -}
    1.27 -
    1.28 -# Pre and post install commands for Tazpkg.
    1.29 -post_install()
    1.30 -{
    1.31 -    echo "Update /etc/fstab for use cgroup..."
    1.32 -    echo "none            /cgroup      cgroup  defaults           0       0" >> /etc/fstab
    1.33 -
    1.34 -    echo "Processing post-install commands..."
    1.35 -    chroot "$1/" depmod -a $VERSION-lxc-slitaz
    1.36 -    # GRUB stuff.
    1.37 -    if [ -f "$1/boot/grub/menu.lst" ]; then
    1.38 -        root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1`
    1.39 -                grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1`
    1.40 -                # Add new kernel entry in case of upgrade for installed system.
    1.41 -                if ! grep -q $PACKAGE-$VERSION-lxc-slitaz $1/boot/grub/menu.lst; then
    1.42 -                cat >> $1/boot/grub/menu.lst << EOT
    1.43 -
    1.44 -title SliTaz GNU/Linux (Kernel $VERSION-lxc-slitaz)
    1.45 -$grub_dev
    1.46 -kernel /boot/vmlinuz-$VERSION-lxc-slitaz root=$root_dev
    1.47 -EOT
    1.48 -                fi
    1.49 -                # Display information message.
    1.50 -        cat <<EOT
    1.51 -----
    1.52 -GRUB is installed, these tree lines must be in your /boot/grub/menu.lst:
    1.53 -
    1.54 -title  SliTaz GNU/Linux (Kernel $VERSION-lxc-slitaz)
    1.55 -$grub_dev
    1.56 -kernel /boot/vmlinuz-$VERSION-lxc-slitaz root=$root_dev
    1.57 -----
    1.58 -EOT
    1.59 -        fi
    1.60 -}