wok-6.x view vzctl/receipt @ rev 24528

updated exiv2 and exiv2-dev (0.27.3 -> 0.27.5)
author Hans-G?nter Theisgen
date Wed Feb 23 07:22:56 2022 +0100 (2022-02-23)
parents 6135577f4d08
children a2287a3e06b6
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - http://download.openvz.org/utils/${PACKAGE}/ 2>/dev/null | \
20 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
28 # Apply patches
29 while read patch_file; do
30 if [ -f done.$patch_file ]; then
31 echo "Skipping $patch_file"
32 continue
33 fi
34 echo "Apply $patch_file"
35 patch -p1 < $stuff/$patch_file || return 1
36 touch done.$patch_file
37 done <<EOT
38 vzctl-${VERSION}-Makefile.u
39 EOT
40 ./configure \
41 --prefix=/usr \
42 --localstatedir=/var \
43 --enable-bashcomp \
44 --enable-logrotate \
45 $CONFIGURE_ARGS &&
46 make && make DESTDIR=$DESTDIR install && make DESTDIR=$DESTDIR install-slitaz
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib \
53 $fs/usr/share
55 cp -a $install/usr/sbin $fs/usr
56 cp -a $install/usr/lib/vzctl $fs/usr/lib
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 cp -a $install/etc $fs/
59 cp -a $install/var/ $fs/
60 cp -a $install/vz/ $fs/
62 # fix permissions
63 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
64 chmod 0755 $fs/usr/sbin/*
65 chmod 0755 $fs/etc/init.d/vz
67 # Copy slitaz script and config
68 cp -a stuff/slitaz.conf $fs/etc/vz/dists
69 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
70 }