wok-current annotate vzquota/receipt @ rev 25727

Add miss stuff folder for libxml++, dbus-c++
author Stanislas Leduc <shann@slitaz.org>
date Tue Nov 05 13:46:37 2024 +0000 (3 weeks ago)
parents c1e7c7ea9c19
children
rev   line source
erjo@8057 1 # SliTaz package receipt.
erjo@8057 2
erjo@8057 3 PACKAGE="vzquota"
Hans-G?nter@23728 4 VERSION="3.1"
slaxemulator@8857 5 CATEGORY="system-tools"
erjo@8057 6 SHORT_DESC="Virtuozzo/OpenVZ disk quota control utility"
erjo@8057 7 MAINTAINER="erjo@slitaz.org"
pascal@15363 8 LICENSE="GPL2"
Hans-G?nter@23728 9 WEB_SITE="https://openvz.org"
Hans-G?nter@23728 10
erjo@8057 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@8057 12 WGET_URL="http://download.openvz.org/utils/$PACKAGE/$VERSION/src/$TARBALL"
erjo@8057 13
pascal@15363 14 DEPENDS=""
pascal@15363 15
pascal@24476 16 # What is the latest version available today?
pascal@24476 17 current_version()
pascal@24476 18 {
pascal@24476 19 wget -O - http://download.openvz.org/utils/$PACKAGE/ 2>/dev/null | \
pascal@24476 20 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
pascal@24476 21 }
pascal@24476 22
erjo@8057 23 # Rules to configure and make the package.
erjo@8057 24 compile_rules()
erjo@8057 25 {
pascal@20212 26 sed -i 's|uname -m|echo i486|' src/Makefile
Hans-G?nter@23728 27
erjo@8057 28 # Apply patches
Hans-G?nter@23728 29 # while read patch_file; do
Hans-G?nter@23728 30 # if [ -f done.$patch_file ]; then
Hans-G?nter@23728 31 # echo "Skipping $patch_file"
Hans-G?nter@23728 32 # continue
Hans-G?nter@23728 33 # fi
Hans-G?nter@23728 34 # echo "Apply $patch_file"
Hans-G?nter@23728 35 # patch -p1 < $stuff/$patch_file || return 1
Hans-G?nter@23728 36 # touch done.$patch_file
Hans-G?nter@23728 37 # done <<EOT
Hans-G?nter@23728 38 #vzquota-${VERSION}.u
Hans-G?nter@23728 39 #EOT
erjo@8057 40
Hans-G?nter@23728 41 patch --input=$stuff/patches/Makefile-3.1 \
Hans-G?nter@23728 42 src/Makefile
Hans-G?nter@23729 43 export INSTALL=install
Hans-G?nter@23728 44
Hans-G?nter@23728 45 make &&
Hans-G?nter@23728 46 make DESTDIR=$DESTDIR install
erjo@8057 47 }
erjo@8057 48
erjo@8057 49 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8057 50 genpkg_rules()
erjo@8057 51 {
Hans-G?nter@23728 52 mkdir -p $fs/usr
Hans-G?nter@23728 53 mkdir -p $fs/var/lib/vzquota
Hans-G?nter@23728 54
Hans-G?nter@23728 55 cp -a $install/usr/sbin $fs/usr
erjo@8057 56 }