wok-current annotate drbl/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents f33d804b2693
children 1be16cc1cd50
rev   line source
shann@14581 1 # SliTaz package receipt.
shann@14581 2
shann@14581 3 PACKAGE="drbl"
Hans-G?nter@20853 4 VERSION="2.25.10"
shann@14581 5 CATEGORY="misc"
al@14590 6 SHORT_DESC="Diskless Remote Boot in Linux"
shann@14581 7 MAINTAINER="shann@slitaz.org"
al@14590 8 LICENSE="GPL2"
al@14590 9 WEB_SITE="http://drbl.org/"
Hans-G?nter@20853 10
Hans-G?nter@20853 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@14583 12 WGET_URL="http://free.nchc.org.tw/$PACKAGE-core/src/stable/$TARBALL"
shann@14581 13
al@14590 14 DEPENDS="bash bc binutils dialog disktype dmidecode e2fsprogs ethtool expect \
al@14590 15 file gnu-netcat lzop memtest mtools openssh parted partimage perl pigz procps \
al@14590 16 reiserfsprogs rsync strace tcpdump syslinux systemd udpcast"
al@14590 17 BUILD_DEPENDS=""
shann@14581 18
pascal@24439 19 # What is the latest version available today?
pascal@24439 20 current_version()
pascal@24439 21 {
pascal@24439 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24439 24 }
pascal@24439 25
shann@14581 26 # Rules to configure and make the package.
shann@14581 27 compile_rules()
shann@14581 28 {
pascal@14583 29 make DESTDIR=$DESTDIR install
shann@14581 30 }
shann@14581 31
shann@14581 32 # Rules to gen a SliTaz package suitable for Tazpkg.
shann@14581 33 genpkg_rules()
shann@14581 34 {
al@14590 35 cp -a $install/* $fs/
shann@14581 36 }