wok-next annotate lxc/receipt @ rev 21180
updated qt5 again (5.10.1 -> 5.13.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 16 16:52:21 2019 +0100 (2019-07-16) |
parents | 5841522533ec |
children |
rev | line source |
---|---|
pascal@20293 | 1 # SliTaz package receipt v2. |
pascal@10905 | 2 |
pascal@10905 | 3 PACKAGE="lxc" |
pascal@20293 | 4 VERSION="2.1.1" |
pascal@10905 | 5 CATEGORY="system-tools" |
al@20534 | 6 SHORT_DESC="Userspace control package for Linux Containers" |
pascal@10905 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15082 | 8 LICENSE="LGPL2.1" |
al@21020 | 9 WEB_SITE="https://linuxcontainers.org/" |
al@20534 | 10 |
pascal@10905 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15569 | 12 WGET_URL="${WEB_SITE}downloads/$TARBALL" |
pascal@10905 | 13 |
pascal@15569 | 14 BUILD_DEPENDS="libcap-dev util-linux-getopt" |
al@21020 | 15 SPLIT="$PACKAGE-dev" |
pascal@10905 | 16 |
al@20534 | 17 compile_rules() { |
al@20534 | 18 ./configure \ |
pascal@15570 | 19 --libexec=/usr/lib/$PACKAGE \ |
al@20534 | 20 $CONFIGURE_ARGS && |
al@20595 | 21 fix libtool && |
pascal@10905 | 22 make && |
al@21020 | 23 make DESTDIR=$install install || return 1 |
al@20534 | 24 |
al@20534 | 25 sed \ |
al@20534 | 26 -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \ |
al@20534 | 27 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \ |
al@20534 | 28 -i $install/usr/bin/lxc-checkconfig |
al@20534 | 29 chmod +x $install/usr/bin/lxc-* |
pascal@10905 | 30 } |
pascal@10905 | 31 |
al@20534 | 32 genpkg_rules() { |
pascal@20293 | 33 case $PACKAGE in |
al@20534 | 34 lxc) |
al@20534 | 35 copy @std |
al@20534 | 36 DEPENDS="libcap perl util-linux-getopt linux-netfilter \ |
pascal@20293 | 37 linux-bridge iptables bridge-utils" |
al@20534 | 38 ;; |
al@20534 | 39 lxc-dev) |
al@20534 | 40 copy @dev |
al@20534 | 41 ;; |
pascal@20293 | 42 esac |
pascal@10905 | 43 } |
pascal@10905 | 44 |
al@20534 | 45 post_install_lxc() { |
pascal@10905 | 46 [ -n "$1" ] && return |
pascal@10905 | 47 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT |
pascal@10905 | 48 |
pascal@10905 | 49 You have to fix your kernel configuration first to use lxc ! |
pascal@10905 | 50 |
pascal@10905 | 51 EOT |
pascal@10905 | 52 } |