wok view vzctl/receipt @ rev 20679
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 26 12:26:47 2019 +0100 (2019-01-26) |
parents | 2a21689b0af7 |
children | 669f61f44760 |
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="https://openvz.livejournal.com/"
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 }