wok-next rev 20293

Up lxc (2.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 18:57:22 2017 +0100 (2017-11-08)
parents d3adbeea3a9f
children 0fd9d6a0dc21
files lxc-dev/receipt lxc/receipt
line diff
     1.1 --- a/lxc-dev/receipt	Wed Nov 08 19:39:57 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="lxc-dev"
     1.7 -VERSION="1.0.0"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="Userspace control package for Linux Containers development files."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="LGPL2.1"
    1.12 -WEB_SITE="http://lxc.sourceforge.net/"
    1.13 -WANTED="lxc"
    1.14 -
    1.15 -DEPENDS="lxc pkg-config"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.18 -genpkg_rules()                                      
    1.19 -{
    1.20 -	mkdir -p $fs/usr/lib
    1.21 -	cp -a $install/usr/include $fs/usr
    1.22 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.23 -}
     2.1 --- a/lxc/receipt	Wed Nov 08 19:39:57 2017 +0200
     2.2 +++ b/lxc/receipt	Wed Nov 08 18:57:22 2017 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="lxc"
     2.8 -VERSION="1.0.0"
     2.9 +VERSION="2.1.1"
    2.10  CATEGORY="system-tools"
    2.11  SHORT_DESC="Userspace control package for Linux Containers."
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13 @@ -10,13 +10,12 @@
    2.14  WEB_SITE="http://linuxcontainers.org/"
    2.15  WGET_URL="${WEB_SITE}downloads/$TARBALL"
    2.16  
    2.17 -DEPENDS="libcap perl util-linux-getopt linux-netfilter linux-bridge iptables bridge-utils"
    2.18  BUILD_DEPENDS="libcap-dev util-linux-getopt"
    2.19 +SPLIT="lxc-dev"
    2.20  
    2.21  # Rules to configure and make the package.
    2.22  compile_rules()
    2.23  {
    2.24 -	cd $src
    2.25  	./configure --prefix=/usr --mandir=/usr/share/man \
    2.26  		--sysconfdir=/etc \
    2.27  		--libexec=/usr/lib/$PACKAGE \
    2.28 @@ -29,20 +28,32 @@
    2.29  # Rules to gen a SliTaz package suitable for Tazpkg.   
    2.30  genpkg_rules()                                      
    2.31  {
    2.32 -	mkdir -p $fs/usr/share $fs/var/lib/lxc
    2.33 -	cp -a $install/usr/share/lxc $fs/usr/share
    2.34 -	cp -a $install/usr/bin $fs/usr
    2.35 -	cp -a $install/usr/lib $fs/usr
    2.36 -	rm -rf $fs/usr/lib/pkgconfig
    2.37 -	cp -a $install/etc $fs
    2.38 -	cp -a $install/var $fs
    2.39 -	sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
    2.40 -		-e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
    2.41 -		$fs/usr/bin/lxc-checkconfig
    2.42 -	chmod +x $fs/usr/bin/lxc-*
    2.43 +	case $PACKAGE in
    2.44 +	lxc)
    2.45 +		DEPENDS="libcap perl util-linux-getopt linux-netfilter \
    2.46 +			linux-bridge iptables bridge-utils"
    2.47 +		mkdir -p $fs/usr/share $fs/var/lib/lxc
    2.48 +		cp -a $install/usr/share/lxc $fs/usr/share
    2.49 +		cp -a $install/usr/bin $fs/usr
    2.50 +		cp -a $install/usr/lib $fs/usr
    2.51 +		rm -rf $fs/usr/lib/pkgconfig
    2.52 +		cp -a $install/etc $fs
    2.53 +		cp -a $install/var $fs
    2.54 +		sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
    2.55 +			-e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
    2.56 +			$fs/usr/bin/lxc-checkconfig
    2.57 +		chmod +x $fs/usr/bin/lxc-*
    2.58 +		;;
    2.59 +	lxc-dev)
    2.60 +		DEPENDS="lxc pkg-config"
    2.61 +		mkdir -p $fs/usr/lib
    2.62 +		cp -a $install/usr/include $fs/usr
    2.63 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    2.64 +		;;
    2.65 +	esac
    2.66  }
    2.67  
    2.68 -post_install()
    2.69 +post_install_lxc()
    2.70  {
    2.71  	[ -n "$1" ] && return
    2.72  	lxc-checkconfig  | tee /dev/stderr | grep -q required && cat <<EOT