# HG changeset patch # User Pascal Bellard # Date 1311242426 -7200 # Node ID 8dc86d3cfac71fccd9d7566394f646e733e0ed16 # Parent 1ad8ae5ccf68dff8a3c384cc9ecddf6bc4dd94b7 Add lxc diff -r 1ad8ae5ccf68 -r 8dc86d3cfac7 lxc-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lxc-dev/receipt Thu Jul 21 12:00:26 2011 +0200 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="lxc-dev" +VERSION="0.7.4.1" +CATEGORY="development" +SHORT_DESC="Userspace control package for Linux Containers development files." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://lxc.sourceforge.net/" +WANTED="lxc" + +DEPENDS="lxc" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/share/pkgconfig $fs/usr/share +} diff -r 1ad8ae5ccf68 -r 8dc86d3cfac7 lxc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lxc/receipt Thu Jul 21 12:00:26 2011 +0200 @@ -0,0 +1,52 @@ +# SliTaz package receipt. + +PACKAGE="lxc" +VERSION="0.7.4.1" +CATEGORY="system-tools" +SHORT_DESC="Userspace control package for Linux Containers." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://lxc.sourceforge.net/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +DEPENDS="libcap perl" +BUILD_DEPENDS="libcap-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --mandir=/usr/share/man \ + --localstatedir=/var \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/var/lib/lxc + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib $fs/usr + sed -i 's|/usr/var/lib/lxc|/var/lib/lxc|;s|/bin/bash|/bin/ash|' \ + $fs/usr/bin/lxc-version $fs/usr/bin/lxc-netstat \ + $fs/usr/bin/lxc-destroy $fs/usr/bin/lxc-create \ + $fs/usr/bin/lxc-setcaps $fs/usr/bin/lxc-setuid \ + $fs/usr/bin/lxc-ls + sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \ + -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \ + -e 's/ < 3/ -lt 3/;s/ > 3/ -gt 3/' -e 's|/bin/bash|/bin/ash|' \ + $fs/usr/bin/lxc-checkconfig + chmod +x $fs/usr/bin/lxc-* +} + +post_install() +{ + [ -n "$1" ] && return + lxc-checkconfig | tee /dev/stderr | grep -q required && cat <