wok annotate vzquota/receipt @ rev 8852
Updated mirror-tools to use slitaz-dev-tools.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 25 00:34:53 2011 +0000 (2011-02-25) |
parents | 756516242df3 |
children | 3758381d47af |
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" |
gokhlayeh@8615 | 24 patch -p1 < ../stuff/$patch_file || return 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 |