wok-6.x rev 8057
Add: vzquota
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 21 00:56:32 2011 +0100 (2011-01-21) |
parents | daa2159acc30 |
children | 811617bdf56d |
files | vzquota/receipt vzquota/stuff/vzquota-3.0.12.u |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/vzquota/receipt Fri Jan 21 00:56:32 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 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/vzquota/stuff/vzquota-3.0.12.u Fri Jan 21 00:56:32 2011 +0100 2.3 @@ -0,0 +1,25 @@ 2.4 +--- vzquota-3.0.12-ori/src/Makefile Thu Mar 6 20:28:38 2008 2.5 ++++ vzquota-3.0.12/src/Makefile Fri Dec 31 10:33:49 2010 2.6 +@@ -18,7 +18,7 @@ 2.7 + INSTALL = install 2.8 + PREFIX = /usr 2.9 + SBINDIR = ${PREFIX}/sbin 2.10 +-VARDIR = /var 2.11 ++VARDIR = /var/lib 2.12 + MANDIR = ${PREFIX}/share/man 2.13 + 2.14 + #DEBUG = -D_DEBUG -g3 -ggdb3 -p -pg 2.15 +--- vzquota-3.0.12-ori/src/vzdqload.c Thu Mar 6 20:28:38 2008 2.16 ++++ vzquota-3.0.12/src/vzdqload.c Fri Dec 31 10:33:39 2010 2.17 +@@ -20,7 +20,10 @@ 2.18 + #include <sys/types.h> 2.19 + 2.20 + /* to include vsscanf() */ 2.21 +-#define __USE_ISOC99 2.22 ++#ifndef __USE_ISOC99 2.23 ++ #define __USE_ISOC99 2.24 ++#endif 2.25 ++ 2.26 + #include <stdio.h> 2.27 + 2.28 + #include <stdlib.h>