wok view lxc/receipt @ rev 17044

Add paulstretch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 19 18:02:31 2014 +0200 (2014-08-19)
parents 59e18fea0fd0
children 4175a35819c8
line source
1 # SliTaz package receipt.
3 PACKAGE="lxc"
4 VERSION="1.0.0"
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://linuxcontainers.org/"
11 WGET_URL="${WEB_SITE}downloads/$TARBALL"
13 DEPENDS="libcap perl util-linux-getopt linux-netfilter linux-bridge iptables bridge-utils"
14 BUILD_DEPENDS="libcap-dev util-linux-getopt"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr --mandir=/usr/share/man \
21 --sysconfdir=/etc \
22 --libexec=/usr/lib/$PACKAGE \
23 --localstatedir=/var \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share $fs/var/lib/lxc
33 cp -a $install/usr/share/lxc $fs/usr/share
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib $fs/usr
36 rm -rf $fs/usr/lib/pkgconfig
37 cp -a $install/etc $fs
38 cp -a $install/var $fs
39 sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
40 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
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 }