wok-6.x view lxc/receipt @ rev 15162

Up xorg-xf86-input-keyboard (1.7.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 18:41:28 2013 +0000 (2013-08-15)
parents 8dc86d3cfac7
children c95f2bc361ec
line source
1 # SliTaz package receipt.
3 PACKAGE="lxc"
4 VERSION="0.7.4.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Userspace control package for Linux Containers."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://lxc.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="libcap perl"
14 BUILD_DEPENDS="libcap-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr --mandir=/usr/share/man \
21 --localstatedir=/var \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/var/lib/lxc
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 sed -i 's|/usr/var/lib/lxc|/var/lib/lxc|;s|/bin/bash|/bin/ash|' \
34 $fs/usr/bin/lxc-version $fs/usr/bin/lxc-netstat \
35 $fs/usr/bin/lxc-destroy $fs/usr/bin/lxc-create \
36 $fs/usr/bin/lxc-setcap $fs/usr/bin/lxc-setuid \
37 $fs/usr/bin/lxc-ls
38 sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
39 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
40 -e 's/ < 3/ -lt 3/;s/ > 3/ -gt 3/' -e 's|/bin/bash|/bin/ash|' \
41 $fs/usr/bin/lxc-checkconfig
42 chmod +x $fs/usr/bin/lxc-*
43 }
45 post_install()
46 {
47 [ -n "$1" ] && return
48 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT
50 You have to fix your kernel configuration first to use lxc !
52 EOT
53 }