wok-current view lxc/receipt @ rev 25156

updated ptxdist (2020.03.0 -> 2020.12.0)
author Hans-G?nter Theisgen
date Thu Jun 30 15:51:09 2022 +0100 (2022-06-30)
parents 34e801e0eb52
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lxc"
4 VERSION="4.0.12"
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/lxc/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://linuxcontainers.org/downloads/$PACKAGE/$TARBALL"
14 DEPENDS="bridge-utils gcc83-lib-base gnutls iptables libcap linux-bridge
15 linux-netfilter perl util-linux-getopt"
16 BUILD_DEPENDS="gcc83 gnutls-dev libcap-dev util-linux-getopt"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://linuxcontainers.org/lxc/downloads/ 2>/dev/null | \
22 sed '/\/lxc-[0-9]/!d;s|.*lxc-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 CC=gcc-83 \
30 CXX=g++-83 \
31 --prefix=/usr \
32 --mandir=/usr/share/man \
33 --sysconfdir=/etc \
34 --libexec=/usr/lib/$PACKAGE \
35 --localstatedir=/var \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/share/lxc $fs/usr/share
48 cook_copy_folders bin
49 cook_copy_folders lib
51 rm -rf $fs/usr/lib/pkgconfig
53 cook_copy_folders etc
54 cook_copy_folders var
56 sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
57 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
58 $fs/usr/bin/lxc-checkconfig
59 chmod +x $fs/usr/bin/lxc-*
60 }
62 post_install()
63 {
64 [ -n "$1" ] && return
65 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT
67 You have to fix your kernel configuration first to use lxc !
69 EOT
70 }