wok-6.x view lxc/receipt @ rev 21432

updated merkaartor (0.18.1 -> 0.18.3)
author Hans-G?nter Theisgen
date Sat Apr 27 10:50:46 2019 +0100 (2019-04-27)
parents c44a7d2a11ed
children f4b38c321469
line source
1 # SliTaz package receipt.
3 PACKAGE="lxc"
4 VERSION="3.1.0"
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 gnutls iptables libcap linux-bridge linux-netfilter \
15 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 }