# HG changeset patch # User Pascal Bellard # Date 1388048537 0 # Node ID 8afe5a63756e5deaa5992ba4c3830f2da7a03a09 # Parent 69d061d983f529d7b95e5f9dffe7250b165840a1 remove linux-lxc diff -r 69d061d983f5 -r 8afe5a63756e linux-lxc/receipt --- a/linux-lxc/receipt Wed Dec 25 00:55:35 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -# SliTaz package receipt - -PACKAGE="linux-lxc" -VERSION="2.6.37" -CATEGORY="misc" -SHORT_DESC="The Linux kernel and modules with LXC support." -MAINTAINER="shann@slitaz.org" -TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://linuxcontainers.org/" -WGET_URL="http://people.slitaz.org/~shann/packages/$PACKAGE/$TARBALL" -PROVIDE="linux" - -DEPENDS="lxc" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/lib/firmware $fs/lib/modules - cp -a $src/boot $fs - cp -a $src/lib/modules/* $fs/lib/modules - cp -a $src/lib/firmware/* $fs/lib/firmware - chown -R root.root $fs -} - -# Pre and post install commands for Tazpkg. -post_install() -{ - echo "Update /etc/fstab for use cgroup..." - echo "none /cgroup cgroup defaults 0 0" >> /etc/fstab - - echo "Processing post-install commands..." - chroot "$1/" depmod -a $VERSION-lxc-slitaz - # GRUB stuff. - if [ -f "$1/boot/grub/menu.lst" ]; then - root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` - grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1` - # Add new kernel entry in case of upgrade for installed system. - if ! grep -q $PACKAGE-$VERSION-lxc-slitaz $1/boot/grub/menu.lst; then - cat >> $1/boot/grub/menu.lst << EOT - -title SliTaz GNU/Linux (Kernel $VERSION-lxc-slitaz) -$grub_dev -kernel /boot/vmlinuz-$VERSION-lxc-slitaz root=$root_dev -EOT - fi - # Display information message. - cat <