wok-current rev 25403

updated vzctl (3.0.25.1 -> 4.11.1)
author Hans-G?nter Theisgen
date Tue Aug 02 16:35:24 2022 +0100 (2022-08-02)
parents 1730124f1afa
children 5fd42c74daba
files vzctl/receipt
line diff
     1.1 --- a/vzctl/receipt	Tue Aug 02 15:22:50 2022 +0100
     1.2 +++ b/vzctl/receipt	Tue Aug 02 16:35:24 2022 +0100
     1.3 @@ -1,16 +1,17 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="vzctl"
     1.7 -VERSION="3.0.25.1"
     1.8 +VERSION="4.11.1"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="OpenVZ containers control utility"
    1.11 +SHORT_DESC="OpenVZ containers control utility."
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="https://wiki.openvz.org/Main_Page"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WEB_SITE="https://openvz.livejournal.com/"
    1.18 -WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
    1.19 +WGET_URL="https://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
    1.20  
    1.21 -DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
    1.22 +DEPENDS="bash bridge-utils gzip logrotate procmail tar udev"
    1.23  BUILD_DEPENDS="sed"
    1.24  
    1.25  # What is the latest version available today?
    1.26 @@ -23,49 +24,54 @@
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	cd $src
    1.31 -	
    1.32  	# Apply patches
    1.33 -	while read patch_file; do
    1.34 -		if [ -f done.$patch_file ]; then
    1.35 +	while read patch_file
    1.36 +	  do
    1.37 +		if [ -f done.$patch_file ]
    1.38 +		  then
    1.39  			echo "Skipping $patch_file"
    1.40  			continue
    1.41  		fi
    1.42  		echo "Apply $patch_file"
    1.43  		patch -p1 < $stuff/$patch_file || return 1
    1.44  		touch done.$patch_file
    1.45 -	done <<EOT
    1.46 +	  done <<EOT
    1.47  vzctl-${VERSION}-Makefile.u
    1.48  EOT
    1.49 -	./configure \
    1.50 -		--prefix=/usr \
    1.51 -		--localstatedir=/var \
    1.52 -		--enable-bashcomp \
    1.53 -		--enable-logrotate \
    1.54 +	./configure			\
    1.55 +		--prefix=/usr		\
    1.56 +		--localstatedir=/var	\
    1.57 +		--enable-bashcomp	\
    1.58 +		--enable-logrotate	\
    1.59 +		--without-cgroup	\
    1.60 +		--without-ploop		\
    1.61  		$CONFIGURE_ARGS &&
    1.62 -	make && make DESTDIR=$DESTDIR install && make DESTDIR=$DESTDIR install-slitaz
    1.63 +	make	&&
    1.64 +	make	install		\
    1.65 +		DESTDIR=$DESTDIR &&
    1.66 +	make	install-slitaz	\
    1.67 +		DESTDIR=$DESTDIR
    1.68  }
    1.69  
    1.70  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.71  genpkg_rules()
    1.72  {
    1.73 -	mkdir -p $fs/usr/lib \
    1.74 -		$fs/usr/share
    1.75 -		
    1.76 -	cp -a $install/usr/sbin $fs/usr
    1.77 -	cp -a $install/usr/lib/vzctl $fs/usr/lib
    1.78 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.79 -	cp -a $install/etc $fs/
    1.80 -	cp -a $install/var/ $fs/
    1.81 -	cp -a $install/vz/ $fs/
    1.82 -	
    1.83 +	mkdir -p $fs/usr/lib
    1.84 +	mkdir -p $fs/usr/share
    1.85 +
    1.86 +	cp -a $install/usr/sbin			$fs/usr
    1.87 +	cp -a $install/usr/libexec/vzctl	$fs/usr/lib
    1.88 +	cp -a $install/usr/lib/*.so*		$fs/usr/lib
    1.89 +	cp -a $install/etc			$fs
    1.90 +	cp -a $install/var			$fs
    1.91 +	cp -a $install/vz			$fs
    1.92 +
    1.93  	# fix permissions
    1.94 -	chmod 0755 $fs/usr/lib/vzctl/scripts/v*
    1.95 -	chmod 0755 $fs/usr/sbin/*
    1.96 -	chmod 0755 $fs/etc/init.d/vz
    1.97 -	
    1.98 -	# Copy slitaz script and config
    1.99 -	cp -a stuff/slitaz.conf $fs/etc/vz/dists
   1.100 -	cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
   1.101 +	chmod 0755				$fs/usr/lib/vzctl/scripts/v*
   1.102 +	chmod 0755				$fs/usr/sbin/*
   1.103 +	chmod 0755				$fs/etc/init.d/vz
   1.104 +
   1.105 +	# Copy slitaz script and configuration
   1.106 +	cp -a stuff/slitaz.conf			$fs/etc/vz/dists
   1.107 +	cp -a stuff/slitaz-*.sh			$fs/etc/vz/dists/scripts
   1.108  }
   1.109 -