wok-next diff lxc/receipt @ rev 20390
Up cookutils (1018), evilvte
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 01 16:24:18 2017 +0200 (2017-12-01) |
parents | c44a7d2a11ed |
children | d43bf7aae921 |
line diff
1.1 --- a/lxc/receipt Fri Feb 21 20:49:34 2014 +0000 1.2 +++ b/lxc/receipt Fri Dec 01 16:24:18 2017 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="lxc" 1.8 -VERSION="1.0.0" 1.9 +VERSION="2.1.1" 1.10 CATEGORY="system-tools" 1.11 SHORT_DESC="Userspace control package for Linux Containers." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 @@ -10,13 +10,12 @@ 1.14 WEB_SITE="http://linuxcontainers.org/" 1.15 WGET_URL="${WEB_SITE}downloads/$TARBALL" 1.16 1.17 -DEPENDS="libcap perl util-linux-getopt linux-netfilter linux-bridge iptables bridge-utils" 1.18 BUILD_DEPENDS="libcap-dev util-linux-getopt" 1.19 +SPLIT="lxc-dev" 1.20 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 { 1.24 - cd $src 1.25 ./configure --prefix=/usr --mandir=/usr/share/man \ 1.26 --sysconfdir=/etc \ 1.27 --libexec=/usr/lib/$PACKAGE \ 1.28 @@ -29,20 +28,32 @@ 1.29 # Rules to gen a SliTaz package suitable for Tazpkg. 1.30 genpkg_rules() 1.31 { 1.32 - mkdir -p $fs/usr/share $fs/var/lib/lxc 1.33 - cp -a $install/usr/share/lxc $fs/usr/share 1.34 - cp -a $install/usr/bin $fs/usr 1.35 - cp -a $install/usr/lib $fs/usr 1.36 - rm -rf $fs/usr/lib/pkgconfig 1.37 - cp -a $install/etc $fs 1.38 - cp -a $install/var $fs 1.39 - sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \ 1.40 - -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \ 1.41 - $fs/usr/bin/lxc-checkconfig 1.42 - chmod +x $fs/usr/bin/lxc-* 1.43 + case $PACKAGE in 1.44 + lxc) 1.45 + DEPENDS="libcap perl util-linux-getopt linux-netfilter \ 1.46 + linux-bridge iptables bridge-utils" 1.47 + mkdir -p $fs/usr/share $fs/var/lib/lxc 1.48 + cp -a $install/usr/share/lxc $fs/usr/share 1.49 + cp -a $install/usr/bin $fs/usr 1.50 + cp -a $install/usr/lib $fs/usr 1.51 + rm -rf $fs/usr/lib/pkgconfig 1.52 + cp -a $install/etc $fs 1.53 + cp -a $install/var $fs 1.54 + sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \ 1.55 + -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \ 1.56 + $fs/usr/bin/lxc-checkconfig 1.57 + chmod +x $fs/usr/bin/lxc-* 1.58 + ;; 1.59 + lxc-dev) 1.60 + DEPENDS="lxc pkg-config" 1.61 + mkdir -p $fs/usr/lib 1.62 + cp -a $install/usr/include $fs/usr 1.63 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.64 + ;; 1.65 + esac 1.66 } 1.67 1.68 -post_install() 1.69 +post_install_lxc() 1.70 { 1.71 [ -n "$1" ] && return 1.72 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT