wok-6.x view vzctl/receipt @ rev 12770
zlib-dev: Up to 1.2.7 and add it to arm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 02:20:37 2012 +0200 (2012-05-13) |
parents | 940b5937e496 |
children | 2a21689b0af7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="vzctl"
4 VERSION="3.0.25.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenVZ containers control utility"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
9 BUILD_DEPENDS="sed"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://wiki.openvz.org/Main_Page"
12 WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Apply patches
20 while read patch_file; do
21 if [ -f done.$patch_file ]; then
22 echo "Skipping $patch_file"
23 continue
24 fi
25 echo "Apply $patch_file"
26 patch -p1 < $stuff/$patch_file || return 1
27 touch done.$patch_file
28 done <<EOT
29 vzctl-${VERSION}-Makefile.u
30 EOT
31 ./configure \
32 --prefix=/usr \
33 --localstatedir=/var \
34 --enable-bashcomp \
35 --enable-logrotate \
36 $CONFIGURE_ARGS &&
37 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib \
44 $fs/usr/share
46 cp -a $_pkg/usr/sbin $fs/usr
47 cp -a $_pkg/usr/lib/vzctl $fs/usr/lib
48 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
49 cp -a $_pkg/etc $fs/
50 cp -a $_pkg/var/ $fs/
51 cp -a $_pkg/vz/ $fs/
53 # fix permissions
54 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
55 chmod 0755 $fs/usr/sbin/*
56 chmod 0755 $fs/etc/init.d/vz
58 # Copy slitaz script and config
59 cp -a stuff/slitaz.conf $fs/etc/vz/dists
60 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
61 }