# SliTaz package receipt. PACKAGE="lxc" VERSION="4.0.12" CATEGORY="system-tools" SHORT_DESC="Userspace control package for Linux Containers." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="LGPL2.1" WEB_SITE="https://linuxcontainers.org/lxc/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://linuxcontainers.org/downloads/$PACKAGE/$TARBALL" DEPENDS="bridge-utils gcc83-lib-base gnutls iptables libcap linux-bridge linux-netfilter perl util-linux-getopt" BUILD_DEPENDS="gcc83 gnutls-dev libcap-dev util-linux-getopt" # What is the latest version available today? current_version() { wget -O - https://linuxcontainers.org/lxc/downloads/ 2>/dev/null | \ sed '/\/lxc-[0-9]/!d;s|.*lxc-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ CC=gcc-83 \ CXX=g++-83 \ --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --libexec=/usr/lib/$PACKAGE \ --localstatedir=/var \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/share/lxc $fs/usr/share cook_copy_folders bin cook_copy_folders lib rm -rf $fs/usr/lib/pkgconfig cook_copy_folders etc cook_copy_folders var sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \ -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \ $fs/usr/bin/lxc-checkconfig chmod +x $fs/usr/bin/lxc-* } post_install() { [ -n "$1" ] && return lxc-checkconfig | tee /dev/stderr | grep -q required && cat <