wok-current annotate lxc/receipt @ rev 24830

busybox-1.31.1: inserted CONFIG_FEATURE_SYSLOG_INFO=y in config and config-ssfs
author Hans-G?nter Theisgen
date Thu Mar 24 06:49:50 2022 +0100 (2022-03-24)
parents f4b38c321469
children 1fdcf67228f2
rev   line source
pascal@10905 1 # SliTaz package receipt.
pascal@10905 2
pascal@10905 3 PACKAGE="lxc"
Hans-G?nter@23150 4 VERSION="3.2.1"
pascal@10905 5 CATEGORY="system-tools"
pascal@10905 6 SHORT_DESC="Userspace control package for Linux Containers."
pascal@10905 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15082 8 LICENSE="LGPL2.1"
Hans-G?nter@21391 9 WEB_SITE="https://linuxcontainers.org/lxc/"
Hans-G?nter@21391 10
pascal@10905 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21391 12 WGET_URL="https://linuxcontainers.org/downloads/$PACKAGE/$TARBALL"
pascal@10905 13
Hans-G?nter@23150 14 DEPENDS="bridge-utils gcc83-lib-base gnutls iptables libcap linux-bridge
Hans-G?nter@23150 15 linux-netfilter perl util-linux-getopt"
Hans-G?nter@21391 16 BUILD_DEPENDS="gcc83 gnutls-dev libcap-dev util-linux-getopt"
pascal@10905 17
pascal@24497 18 # What is the latest version available today?
pascal@24497 19 current_version()
pascal@24497 20 {
pascal@24497 21 wget -O - https://linuxcontainers.org/lxc/downloads/ 2>/dev/null | \
pascal@24497 22 sed '/\/lxc-[0-9]/!d;s|.*lxc-||;s|.tar.*||;q'
pascal@24497 23 }
pascal@24497 24
pascal@10905 25 # Rules to configure and make the package.
pascal@10905 26 compile_rules()
pascal@10905 27 {
Hans-G?nter@21391 28 ./configure \
Hans-G?nter@21391 29 CC=gcc-83 \
Hans-G?nter@21391 30 CXX=g++-83 \
Hans-G?nter@21391 31 --prefix=/usr \
Hans-G?nter@21391 32 --mandir=/usr/share/man \
Hans-G?nter@21391 33 --sysconfdir=/etc \
Hans-G?nter@21391 34 --libexec=/usr/lib/$PACKAGE \
Hans-G?nter@21391 35 --localstatedir=/var \
Hans-G?nter@21391 36 $CONFIGURE_ARGS &&
Hans-G?nter@21391 37 make -j 1 &&
pascal@10905 38 make DESTDIR=$DESTDIR install
pascal@10905 39 }
pascal@10905 40
pascal@10905 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@10905 42 genpkg_rules()
pascal@10905 43 {
Hans-G?nter@21391 44 mkdir -p $fs/usr/share
Hans-G?nter@21391 45 mkdir -p $fs/var/lib/lxc
Hans-G?nter@21391 46
Hans-G?nter@21391 47 cp -a $install/usr/share/lxc $fs/usr/share
Hans-G?nter@21391 48 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21391 49 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21391 50
Hans-G?nter@23150 51 rm -rf $fs/usr/lib/pkgconfig
Hans-G?nter@21391 52
Hans-G?nter@21391 53 cp -a $install/etc $fs
Hans-G?nter@21391 54 cp -a $install/var $fs
Hans-G?nter@21391 55
Hans-G?nter@23150 56 sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
pascal@10905 57 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
pascal@10905 58 $fs/usr/bin/lxc-checkconfig
Hans-G?nter@23150 59 chmod +x $fs/usr/bin/lxc-*
pascal@10905 60 }
pascal@10905 61
pascal@10905 62 post_install()
pascal@10905 63 {
pascal@10905 64 [ -n "$1" ] && return
pascal@10905 65 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT
pascal@10905 66
pascal@10905 67 You have to fix your kernel configuration first to use lxc !
pascal@10905 68
pascal@10905 69 EOT
pascal@10905 70 }