wok-current view vzctl/receipt @ rev 8057
Add: vzquota
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 21 00:56:32 2011 +0100 (2011-01-21) |
parents | |
children | 0b4cf0d9e1b5 |
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 || exit 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 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib \
43 $fs/usr/share
45 cp -a $_pkg/usr/sbin $fs/usr
46 cp -a $_pkg/usr/lib/vzctl $fs/usr/lib
47 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
48 cp -a $_pkg/etc $fs/
49 cp -a $_pkg/var/ $fs/
50 cp -a $_pkg/vz/ $fs/
52 # fix permissions
53 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
54 chmod 0755 $fs/usr/sbin/*
55 chmod 0755 $fs/etc/init.d/vz
57 # Copy slitaz script and config
58 cp -a stuff/slitaz.conf $fs/etc/vz/dists
59 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
60 }