wok annotate utftpd/receipt @ rev 25494

Add finch & btop (thanks ceel)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 30 08:50:05 2022 +0000 (23 months ago)
parents a5ee74db1fee
children e4cc6a0d37f0
rev   line source
pascal@23881 1 # SliTaz package receipt.
pascal@23881 2
pascal@23881 3 PACKAGE="utftpd"
pascal@23881 4 VERSION="0.2"
pascal@23881 5 CATEGORY="network"
pascal@23881 6 SHORT_DESC="A tiny TFTP server"
pascal@23881 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@23881 8 LICENSE="GPL2"
pascal@23881 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@23881 10 WEB_SITE="http://svana.org/kleptog/tftp/index.html"
pascal@23881 11 WGET_URL="http://svana.org/kleptog/tftp/$TARBALL"
pascal@23881 12 TAGS="tftp"
pascal@23881 13
pascal@24462 14 # What is the latest version available today?
pascal@24462 15 current_version()
pascal@24462 16 {
pascal@24462 17 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 18 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24462 19 }
pascal@24462 20
pascal@23881 21 # Rules to configure and make the package.
pascal@23881 22 compile_rules()
pascal@23881 23 {
pascal@23881 24 make clean && make
pascal@23881 25 }
pascal@23881 26
pascal@23881 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23881 28 genpkg_rules()
pascal@23881 29 {
pascal@23881 30 mkdir -p $fs/usr/sbin $install/usr/man/man8
pascal@23881 31 cp -a $src/utftpd.8 $install/usr/man/man8
pascal@23881 32 cp -a $src/utftpd $fs/usr/sbin
pascal@23881 33 }