wok-next view lxc/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 55b6644290f8
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxc"
4 VERSION="2.1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Userspace control package for Linux Containers."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://linuxcontainers.org/"
11 WGET_URL="${WEB_SITE}downloads/$TARBALL"
13 BUILD_DEPENDS="libcap-dev util-linux-getopt"
14 SPLIT="lxc-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure --prefix=/usr --mandir=/usr/share/man \
20 --sysconfdir=/etc \
21 --libexec=/usr/lib/$PACKAGE \
22 --localstatedir=/var \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 case $PACKAGE in
32 lxc)
33 DEPENDS="libcap perl util-linux-getopt linux-netfilter \
34 linux-bridge iptables bridge-utils"
35 mkdir -p $fs/usr/share $fs/var/lib/lxc
36 cp -a $install/usr/share/lxc $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 rm -rf $fs/usr/lib/pkgconfig
40 cp -a $install/etc $fs
41 cp -a $install/var $fs
42 sed -i -e 's/^is_set(/zgrep() { zcat | grep "$@"; }\n\n&/' \
43 -e 's/\(.*\$GREP .*\)\(\$CONFIG.*\)/\1< \2/' \
44 $fs/usr/bin/lxc-checkconfig
45 chmod +x $fs/usr/bin/lxc-*
46 ;;
47 lxc-dev)
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/include $fs/usr
50 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
51 ;;
52 esac
53 }
55 post_install_lxc()
56 {
57 [ -n "$1" ] && return
58 lxc-checkconfig | tee /dev/stderr | grep -q required && cat <<EOT
60 You have to fix your kernel configuration first to use lxc !
62 EOT
63 }