wok-current diff vzquota/receipt @ rev 8170

imported patch toolchain/automake.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:49 2011 +0100 (2011-01-27)
parents
children 0b4cf0d9e1b5
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/vzquota/receipt	Thu Jan 27 00:20:49 2011 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="vzquota"
     1.7 +VERSION="3.0.12"
     1.8 +CATEGORY="systzm-tools"
     1.9 +SHORT_DESC="Virtuozzo/OpenVZ disk quota control utility"
    1.10 +MAINTAINER="erjo@slitaz.org"
    1.11 +DEPENDS=""
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13 +WEB_SITE="http://openvz.org"
    1.14 +WGET_URL="http://download.openvz.org/utils/$PACKAGE/$VERSION/src/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	# Apply patches
    1.21 +	while read patch_file; do
    1.22 +		if [ -f done.$patch_file ]; then
    1.23 +			echo "Skipping $patch_file"
    1.24 +			continue
    1.25 +		fi
    1.26 +		echo "Apply $patch_file"
    1.27 +		patch -p1 < ../stuff/$patch_file || exit 1
    1.28 +		touch done.$patch_file
    1.29 +	done <<EOT
    1.30 +vzquota-${VERSION}.u
    1.31 +EOT
    1.32 +
    1.33 +	make && make DESTDIR=$PWD/_pkg install
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr $fs/var/lib/vzquota
    1.40 +	cp -a $_pkg/usr/sbin $fs/usr
    1.41 +}
    1.42 +