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

gettext-tools: typo
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 27 01:25:04 2015 +0200 (2015-10-27)
parents b7319995b37e
children 6135577f4d08
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"
pascal@15363 8 LICENSE="GPL2"
erjo@8056 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@8056 10 WEB_SITE="http://wiki.openvz.org/Main_Page"
erjo@8056 11 WGET_URL="http://download.openvz.org/utils/${PACKAGE}/${VERSION}/src/${TARBALL}"
erjo@8056 12
pascal@15363 13 DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
pascal@15363 14 BUILD_DEPENDS="sed"
pascal@15363 15
erjo@8056 16 # Rules to configure and make the package.
erjo@8056 17 compile_rules()
erjo@8056 18 {
erjo@8056 19 cd $src
erjo@8056 20
erjo@8056 21 # Apply patches
erjo@8056 22 while read patch_file; do
erjo@8056 23 if [ -f done.$patch_file ]; then
erjo@8056 24 echo "Skipping $patch_file"
erjo@8056 25 continue
erjo@8056 26 fi
erjo@8056 27 echo "Apply $patch_file"
pascal@8974 28 patch -p1 < $stuff/$patch_file || return 1
erjo@8056 29 touch done.$patch_file
erjo@8056 30 done <<EOT
erjo@8056 31 vzctl-${VERSION}-Makefile.u
erjo@8056 32 EOT
erjo@8056 33 ./configure \
erjo@8056 34 --prefix=/usr \
erjo@8056 35 --localstatedir=/var \
erjo@8056 36 --enable-bashcomp \
gokhlayeh@11573 37 --enable-logrotate \
gokhlayeh@11573 38 $CONFIGURE_ARGS &&
pascal@15363 39 make && make DESTDIR=$DESTDIR install && make DESTDIR=$DESTDIR install-slitaz
erjo@8056 40 }
erjo@8056 41
erjo@8056 42 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8056 43 genpkg_rules()
erjo@8056 44 {
erjo@8056 45 mkdir -p $fs/usr/lib \
erjo@8056 46 $fs/usr/share
erjo@8056 47
pascal@15363 48 cp -a $install/usr/sbin $fs/usr
pascal@15363 49 cp -a $install/usr/lib/vzctl $fs/usr/lib
pascal@15363 50 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15363 51 cp -a $install/etc $fs/
pascal@15363 52 cp -a $install/var/ $fs/
pascal@15363 53 cp -a $install/vz/ $fs/
erjo@8056 54
erjo@8056 55 # fix permissions
erjo@8056 56 chmod 0755 $fs/usr/lib/vzctl/scripts/v*
erjo@8056 57 chmod 0755 $fs/usr/sbin/*
erjo@8056 58 chmod 0755 $fs/etc/init.d/vz
erjo@8056 59
erjo@8056 60 # Copy slitaz script and config
erjo@8056 61 cp -a stuff/slitaz.conf $fs/etc/vz/dists
erjo@8056 62 cp -a stuff/slitaz-*.sh $fs/etc/vz/dists/scripts
erjo@8056 63 }
erjo@8056 64