wok view vzctl/receipt @ rev 25430
Up os-prober (1.81)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 19 06:26:39 2022 +0000 (2022-08-19) |
parents | 669f61f44760 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="vzctl"
4 VERSION="4.11.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenVZ containers control utility."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.openvz.org/Main_Page"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
14 DEPENDS="bash bridge-utils gzip logrotate procmail tar udev"
15 BUILD_DEPENDS="sed"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - http://download.openvz.org/utils/${PACKAGE}/ 2>/dev/null | \
21 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Apply patches
28 while read patch_file
29 do
30 if [ -f done.$patch_file ]
31 then
32 echo "Skipping $patch_file"
33 continue
34 fi
35 echo "Apply $patch_file"
36 patch -p1 < $stuff/$patch_file || return 1
37 touch done.$patch_file
38 done <<EOT
39 vzctl-${VERSION}-Makefile.u
40 EOT
41 ./configure \
42 --prefix=/usr \
43 --localstatedir=/var \
44 --enable-bashcomp \
45 --enable-logrotate \
46 --without-cgroup \
47 --without-ploop \
48 $CONFIGURE_ARGS &&
49 make &&
50 make install \
51 DESTDIR=$DESTDIR &&
52 make install-slitaz \
53 DESTDIR=$DESTDIR
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib
60 mkdir -p $fs/usr/share
62 cp -a $install/usr/sbin $fs/usr
63 cp -a $install/usr/libexec/vzctl $fs/usr/lib
64 cp -a $install/usr/lib/*.so* $fs/usr/lib
65 cp -a $install/etc $fs
66 cp -a $install/var $fs
67 cp -a $install/vz $fs
69 # fix permissions
70 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
71 chmod 0755 $fs/usr/sbin/*
72 chmod 0755 $fs/etc/init.d/vz
74 # Copy slitaz script and configuration
75 cp -a stuff/slitaz.conf $fs/etc/vz/dists
76 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
77 }