wok-undigest view vzctl/receipt @ rev 201

Up: vzctl (3.0.25.1)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Jan 02 22:25:36 2011 +0100 (2011-01-02)
parents 43c144c2cd66
children
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"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://wiki.openvz.org/Main_Page"
11 WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
18 # Apply patches
19 while read patch_file; do
20 if [ -f done.$patch_file ]; then
21 echo "Skipping $patch_file"
22 continue
23 fi
24 echo "Apply $patch_file"
25 patch -p1 < ../stuff/$patch_file || exit 1
26 touch done.$patch_file
27 done <<EOT
28 vzctl-${VERSION}-Makefile.u
29 EOT
30 ./configure \
31 --prefix=/usr \
32 --localstatedir=/var \
33 --enable-bashcomp \
34 --enable-logrotate &&
35 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib \
42 $fs/usr/share
44 cp -a $_pkg/usr/sbin $fs/usr
45 cp -a $_pkg/usr/lib/vzctl $fs/usr/lib
46 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
47 cp -a $_pkg/etc $fs/
48 cp -a $_pkg/var/ $fs/
49 cp -a $_pkg/vz/ $fs/
51 # fix permissions
52 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
53 chmod 0755 $fs/usr/sbin/*
54 chmod 0755 $fs/etc/init.d/vz
55 }