wok view lxc/receipt @ rev 24768

libwebkit: bison 3 fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 12:46:44 2022 +0000 (2022-03-19)
parents f4b38c321469
children 1fdcf67228f2
line source
1 # SliTaz package receipt.
3 PACKAGE="lxc"
4 VERSION="3.2.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/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 -j 1 &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
45 mkdir -p $fs/var/lib/lxc
47 cp -a $install/usr/share/lxc $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib $fs/usr
51 rm -rf $fs/usr/lib/pkgconfig
53 cp -a $install/etc $fs
54 cp -a $install/var $fs
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 }