Receipt for package "vzctl"
# SliTaz package receipt. PACKAGE="vzctl" VERSION="4.11.1" CATEGORY="system-tools" SHORT_DESC="OpenVZ containers control utility." MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" WEB_SITE="https://wiki.openvz.org/Main_Page" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}" DEPENDS="bash bridge-utils gzip logrotate procmail tar udev" BUILD_DEPENDS="sed" # What is the latest version available today? current_version() { wget -O - http://download.openvz.org/utils/${PACKAGE}/ 2>/dev/null | \ sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { # Apply patches while read patch_file do if [ -f done.$patch_file ] then echo "Skipping $patch_file" continue fi echo "Apply $patch_file" patch -p1 < $stuff/$patch_file || return 1 touch done.$patch_file done <<EOT vzctl-${VERSION}-Makefile.u EOT ./configure \ --prefix=/usr \ --localstatedir=/var \ --enable-bashcomp \ --enable-logrotate \ --without-cgroup \ --without-ploop \ $CONFIGURE_ARGS && make && make install \ DESTDIR=$DESTDIR && make install-slitaz \ DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib mkdir -p $fs/usr/share cp -a $install/usr/sbin $fs/usr cp -a $install/usr/libexec/vzctl $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/etc $fs cp -a $install/var $fs cp -a $install/vz $fs # fix permissions chmod 0755 $fs/usr/lib/vzctl/scripts/v* chmod 0755 $fs/usr/sbin/* chmod 0755 $fs/etc/init.d/vz # Copy slitaz script and configuration cp -a stuff/slitaz.conf $fs/etc/vz/dists cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts }
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)