wok view utftpd/receipt @ rev 25598
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 12:03:07 2023 +0000 (17 months ago) |
parents | 934055de50e2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="utftpd"
4 VERSION="0.2.4"
5 CATEGORY="network"
6 SHORT_DESC="A tiny TFTP server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.ohse.de/uwe/software/utftpd.html"
11 WGET_URL="https://www.ohse.de/uwe/releases/$TARBALL"
12 TAGS="tftp"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE 2>/dev/null | \
18 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure --prefix=/usr $CONFIGURE_ARGS &&
25 make clean && make
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/sbin $install/usr/man/man8
32 cp -a $src/utftpd.8 $install/usr/man/man8
33 cp -a $src/utftpd $fs/usr/sbin
34 }