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

Up: libtorrent to 0.13.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jan 24 03:00:29 2014 +0000 (2014-01-24)
parents a6115e95700f
children c44a7d2a11ed
line source
1 # SliTaz package receipt.
3 PACKAGE="lxc"
4 VERSION="0.9.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 }