wok annotate vsftpd/receipt @ rev 25531
Add some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 10:05:50 2023 +0000 (20 months ago) |
parents | 934055de50e2 |
children |
rev | line source |
---|---|
pascal@11228 | 1 # SliTaz package receipt. |
pascal@11228 | 2 |
pascal@11228 | 3 PACKAGE="vsftpd" |
Hans-G?nter@25402 | 4 VERSION="3.0.5" |
pascal@11228 | 5 CATEGORY="network" |
Hans-G?nter@22117 | 6 SHORT_DESC="Secure FTP server." |
pascal@11228 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15363 | 8 LICENSE="GPL2" |
Hans-G?nter@22117 | 9 WEB_SITE="https://security.appspot.com/vsftpd.html" |
Hans-G?nter@22117 | 10 |
pascal@11228 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
samuel_trassare@11864 | 12 WGET_URL="https://security.appspot.com/downloads/$TARBALL" |
pascal@11228 | 13 |
pascal@24462 | 14 # What is the latest version available today? |
pascal@24462 | 15 current_version() |
pascal@24462 | 16 { |
pascal@24462 | 17 wget -O - $WEB_SITE 2>/dev/null | gunzip 2> /dev/null | \ |
pascal@24462 | 18 sed '/vsftpd-/!d;/tar..z/!d;s|.*vsftpd-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24462 | 19 } |
pascal@24462 | 20 |
pascal@11228 | 21 # Rules to configure and make the package. |
pascal@11228 | 22 compile_rules() |
pascal@11228 | 23 { |
pascal@11228 | 24 make |
pascal@11228 | 25 } |
pascal@11228 | 26 |
pascal@11228 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11228 | 28 genpkg_rules() |
pascal@11228 | 29 { |
Hans-G?nter@22117 | 30 mkdir -p $fs/usr/bin |
Hans-G?nter@22117 | 31 mkdir -p $fs/etc |
Hans-G?nter@22117 | 32 |
Hans-G?nter@22117 | 33 cp -a $src/vsftpd $fs/usr/bin |
Hans-G?nter@22117 | 34 cp -a $src/vsftpd.conf $fs/etc |
Hans-G?nter@25402 | 35 chown root:root $fs/etc/vsftpd.conf |
pascal@11228 | 36 } |