wok annotate lxc/receipt @ rev 25433

Add httpfs2-enhanced
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 26 10:41:11 2022 +0000 (2022-08-26)
parents 34e801e0eb52
children
rev   line source
pascal@10905 1 # SliTaz package receipt.
pascal@10905 2
pascal@10905 3 PACKAGE="lxc"
Hans-G?nter@24868 4 VERSION="4.0.12"
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@24868 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@24868 37 make &&
Hans-G?nter@24868 38 make install DESTDIR=$DESTDIR
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
Hans-G?nter@21391 46 cp -a $install/usr/share/lxc $fs/usr/share
Hans-G?nter@24868 47
Hans-G?nter@24868 48 cook_copy_folders bin
Hans-G?nter@24868 49 cook_copy_folders lib
Hans-G?nter@21391 50
Hans-G?nter@23150 51 rm -rf $fs/usr/lib/pkgconfig
Hans-G?nter@21391 52
Hans-G?nter@24868 53 cook_copy_folders etc
Hans-G?nter@24868 54 cook_copy_folders var
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/' \
Hans-G?nter@24868 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 }