wok-next view lxc/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 757d032c55c7 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxc"
4 VERSION="2.1.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 WEB_SITE="http://linuxcontainers.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}downloads/$TARBALL"
14 BUILD_DEPENDS="libcap-dev util-linux-getopt"
15 SPLIT="lxc-dev"
17 compile_rules() {
18 ./configure \
19 --libexec=/usr/lib/$PACKAGE \
20 $CONFIGURE_ARGS &&
21 fix libtool &&
22 make &&
23 make DESTDIR=$DESTDIR install || return 1
25 sed \
26 -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
27 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
28 -i $install/usr/bin/lxc-checkconfig
29 chmod +x $install/usr/bin/lxc-*
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 lxc)
35 copy @std
36 DEPENDS="libcap perl util-linux-getopt linux-netfilter \
37 linux-bridge iptables bridge-utils"
38 ;;
39 lxc-dev)
40 copy @dev
41 ;;
42 esac
43 }
45 post_install_lxc() {
46 [ -n "$1" ] && return
47 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT
49 You have to fix your kernel configuration first to use lxc !
51 EOT
52 }