wok-next view lxc/receipt @ rev 21420
updated puzzles ( -> 20200413)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 27 17:23:45 2020 +0100 (2020-04-27) |
parents | 5841522533ec |
children |
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="https://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="$PACKAGE-dev"
17 compile_rules() {
18 ./configure \
19 --libexec=/usr/lib/$PACKAGE \
20 $CONFIGURE_ARGS &&
21 fix libtool &&
22 make &&
23 make DESTDIR=$install 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 }