wok view lxc/receipt @ rev 23586
updated python-xlwt (0.7.2 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 14:31:06 2020 +0100 (2020-04-07) |
parents | 4175a35819c8 |
children | 34e801e0eb52 |
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 CC=gcc-83 \
23 CXX=g++-83 \
24 --prefix=/usr \
25 --mandir=/usr/share/man \
26 --sysconfdir=/etc \
27 --libexec=/usr/lib/$PACKAGE \
28 --localstatedir=/var \
29 $CONFIGURE_ARGS &&
30 make -j 1 &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 mkdir -p $fs/var/lib/lxc
40 cp -a $install/usr/share/lxc $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
44 rm -rf $fs/usr/lib/pkgconfig
46 cp -a $install/etc $fs
47 cp -a $install/var $fs
49 sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
50 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
51 $fs/usr/bin/lxc-checkconfig
52 chmod +x $fs/usr/bin/lxc-*
53 }
55 post_install()
56 {
57 [ -n "$1" ] && return
58 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT
60 You have to fix your kernel configuration first to use lxc !
62 EOT
63 }