wok-next annotate vzquota/receipt @ rev 8057
Add: vzquota
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 21 00:56:32 2011 +0100 (2011-01-21) |
parents | |
children | 0b4cf0d9e1b5 |
rev | line source |
---|---|
erjo@8057 | 1 # SliTaz package receipt. |
erjo@8057 | 2 |
erjo@8057 | 3 PACKAGE="vzquota" |
erjo@8057 | 4 VERSION="3.0.12" |
erjo@8057 | 5 CATEGORY="systzm-tools" |
erjo@8057 | 6 SHORT_DESC="Virtuozzo/OpenVZ disk quota control utility" |
erjo@8057 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@8057 | 8 DEPENDS="" |
erjo@8057 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@8057 | 10 WEB_SITE="http://openvz.org" |
erjo@8057 | 11 WGET_URL="http://download.openvz.org/utils/$PACKAGE/$VERSION/src/$TARBALL" |
erjo@8057 | 12 |
erjo@8057 | 13 # Rules to configure and make the package. |
erjo@8057 | 14 compile_rules() |
erjo@8057 | 15 { |
erjo@8057 | 16 cd $src |
erjo@8057 | 17 # Apply patches |
erjo@8057 | 18 while read patch_file; do |
erjo@8057 | 19 if [ -f done.$patch_file ]; then |
erjo@8057 | 20 echo "Skipping $patch_file" |
erjo@8057 | 21 continue |
erjo@8057 | 22 fi |
erjo@8057 | 23 echo "Apply $patch_file" |
erjo@8057 | 24 patch -p1 < ../stuff/$patch_file || exit 1 |
erjo@8057 | 25 touch done.$patch_file |
erjo@8057 | 26 done <<EOT |
erjo@8057 | 27 vzquota-${VERSION}.u |
erjo@8057 | 28 EOT |
erjo@8057 | 29 |
erjo@8057 | 30 make && make DESTDIR=$PWD/_pkg install |
erjo@8057 | 31 } |
erjo@8057 | 32 |
erjo@8057 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8057 | 34 genpkg_rules() |
erjo@8057 | 35 { |
erjo@8057 | 36 mkdir -p $fs/usr $fs/var/lib/vzquota |
erjo@8057 | 37 cp -a $_pkg/usr/sbin $fs/usr |
erjo@8057 | 38 } |
erjo@8057 | 39 |