wok-next view vzctl/receipt @ rev 18035
Up: tazpanel (480), tazpkg (802)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 09 21:58:06 2015 +0200 (2015-05-09) |
parents | b7319995b37e |
children | 10df65db91ad |
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 LICENSE="GPL2"
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 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
14 BUILD_DEPENDS="sed"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # Apply patches
22 while read patch_file; do
23 if [ -f done.$patch_file ]; then
24 echo "Skipping $patch_file"
25 continue
26 fi
27 echo "Apply $patch_file"
28 patch -p1 < $stuff/$patch_file || return 1
29 touch done.$patch_file
30 done <<EOT
31 vzctl-${VERSION}-Makefile.u
32 EOT
33 ./configure \
34 --prefix=/usr \
35 --localstatedir=/var \
36 --enable-bashcomp \
37 --enable-logrotate \
38 $CONFIGURE_ARGS &&
39 make && make DESTDIR=$DESTDIR install && make DESTDIR=$DESTDIR install-slitaz
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib \
46 $fs/usr/share
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/usr/lib/vzctl $fs/usr/lib
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/etc $fs/
52 cp -a $install/var/ $fs/
53 cp -a $install/vz/ $fs/
55 # fix permissions
56 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
57 chmod 0755 $fs/usr/sbin/*
58 chmod 0755 $fs/etc/init.d/vz
60 # Copy slitaz script and config
61 cp -a stuff/slitaz.conf $fs/etc/vz/dists
62 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
63 }