wok annotate quota/receipt @ rev 25510
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 20:36:56 2023 +0000 (18 months ago) |
parents | ad0bc3efbf37 |
children | 29df00e1e19d |
rev | line source |
---|---|
pascal@14762 | 1 # SliTaz package receipt. |
pascal@14762 | 2 |
pascal@14762 | 3 PACKAGE="quota" |
Hans-G?nter@23603 | 4 VERSION="4.05" |
pascal@14762 | 5 CATEGORY="system-tools" |
Hans-G?nter@23603 | 6 SHORT_DESC="Tools for the Linux Diskquota system." |
pascal@14762 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14762 | 8 LICENSE="GPL2" |
pascal@25510 | 9 WEB_SITE="https://sourceforge.net/projects/linuxquota/" |
Hans-G?nter@23603 | 10 |
pascal@14762 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14762 | 12 WGET_URL="$SF_MIRROR/linuxquota/quota-tools/$VERSION/$TARBALL" |
pascal@14762 | 13 |
pascal@14762 | 14 DEPENDS="e2fsprogs" |
Hans-G?nter@23603 | 15 BUILD_DEPENDS="e2fsprogs-dev gettext" |
pascal@14762 | 16 |
pascal@24348 | 17 # What is the latest version available today? |
pascal@24348 | 18 current_version() |
pascal@24348 | 19 { |
pascal@24348 | 20 wget -O - https://sourceforge.net/projects/linuxquota/files/quota-tools/ 2>/dev/null | \ |
pascal@24348 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 22 sed '/scope="row/!d;s|.*/quota-tools/||;s|/.*||;q' |
pascal@24348 | 23 } |
pascal@24348 | 24 |
pascal@14762 | 25 # Rules to configure and make the package. |
pascal@14762 | 26 compile_rules() |
pascal@14762 | 27 { |
pascal@25340 | 28 export LDFLAGS="$LDFLAGS -lpthread" |
Hans-G?nter@23603 | 29 ./configure \ |
Hans-G?nter@23603 | 30 --prefix=/usr \ |
Hans-G?nter@23603 | 31 --sysconfdir=/etc \ |
Hans-G?nter@23603 | 32 --mandir=/usr/share/man \ |
pascal@14762 | 33 $CONFIGURE_ARGS && |
pascal@14762 | 34 make && |
pascal@14763 | 35 make ROOTDIR=$DESTDIR install 2>&1 | grep -v '*.2' |
pascal@14762 | 36 } |
pascal@14762 | 37 |
pascal@14762 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14762 | 39 genpkg_rules() |
pascal@14762 | 40 { |
pascal@14762 | 41 mkdir -p $fs/usr |
Hans-G?nter@23603 | 42 |
Hans-G?nter@23603 | 43 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23603 | 44 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@23603 | 45 cp -a $install/etc $fs |
pascal@14762 | 46 } |