wok-6.x annotate vzctl/receipt @ rev 12411

Up: slitaz-configs (5.0) Buch of new change and less deps (use lxde meta packages in flavors :-)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 20 18:14:53 2012 +0200 (2012-04-20)
parents 940b5937e496
children 2a21689b0af7
rev   line source
erjo@8056 1 # SliTaz package receipt.
erjo@8056 2
erjo@8056 3 PACKAGE="vzctl"
erjo@8056 4 VERSION="3.0.25.1"
erjo@8056 5 CATEGORY="system-tools"
erjo@8056 6 SHORT_DESC="OpenVZ containers control utility"
erjo@8056 7 MAINTAINER="erjo@slitaz.org"
erjo@8056 8 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
erjo@8056 9 BUILD_DEPENDS="sed"
erjo@8056 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@8056 11 WEB_SITE="http://wiki.openvz.org/Main_Page"
erjo@8056 12 WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
erjo@8056 13
erjo@8056 14 # Rules to configure and make the package.
erjo@8056 15 compile_rules()
erjo@8056 16 {
erjo@8056 17 cd $src
erjo@8056 18
erjo@8056 19 # Apply patches
erjo@8056 20 while read patch_file; do
erjo@8056 21 if [ -f done.$patch_file ]; then
erjo@8056 22 echo "Skipping $patch_file"
erjo@8056 23 continue
erjo@8056 24 fi
erjo@8056 25 echo "Apply $patch_file"
pascal@8974 26 patch -p1 < $stuff/$patch_file || return 1
erjo@8056 27 touch done.$patch_file
erjo@8056 28 done <<EOT
erjo@8056 29 vzctl-${VERSION}-Makefile.u
erjo@8056 30 EOT
erjo@8056 31 ./configure \
erjo@8056 32 --prefix=/usr \
erjo@8056 33 --localstatedir=/var \
erjo@8056 34 --enable-bashcomp \
gokhlayeh@11573 35 --enable-logrotate \
gokhlayeh@11573 36 $CONFIGURE_ARGS &&
erjo@8056 37 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg install-slitaz
erjo@8056 38 }
erjo@8056 39
erjo@8056 40 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8056 41 genpkg_rules()
erjo@8056 42 {
erjo@8056 43 mkdir -p $fs/usr/lib \
erjo@8056 44 $fs/usr/share
erjo@8056 45
erjo@8056 46 cp -a $_pkg/usr/sbin $fs/usr
erjo@8056 47 cp -a $_pkg/usr/lib/vzctl $fs/usr/lib
erjo@8056 48 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
erjo@8056 49 cp -a $_pkg/etc $fs/
erjo@8056 50 cp -a $_pkg/var/ $fs/
erjo@8056 51 cp -a $_pkg/vz/ $fs/
erjo@8056 52
erjo@8056 53 # fix permissions
erjo@8056 54 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
erjo@8056 55 chmod 0755 $fs/usr/sbin/*
erjo@8056 56 chmod 0755 $fs/etc/init.d/vz
erjo@8056 57
erjo@8056 58 # Copy slitaz script and config
erjo@8056 59 cp -a stuff/slitaz.conf $fs/etc/vz/dists
erjo@8056 60 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
erjo@8056 61 }
erjo@8056 62