wok annotate chkexploit/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents f3e78a86c67b
children bc2b9d9bed6f
rev   line source
pascal@18139 1 # SliTaz package receipt.
pascal@18139 2
pascal@18139 3 PACKAGE="chkexploit"
pascal@18139 4 VERSION="1.13"
pascal@18139 5 CATEGORY="security"
pascal@18139 6 SHORT_DESC="Check the system for vulnerabilities to some publicly available exploits."
pascal@18139 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18139 8 LICENSE="GPL"
pascal@18139 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18139 10 WEB_SITE="http://www.chkrootkit.org/"
pascal@18139 11 WGET_URL="ftp://ftp.pangeia.com.br/pub/seg/pac/$TARBALL"
pascal@18139 12
pascal@24491 13 # What is the latest version available today?
pascal@24491 14 current_version()
pascal@24491 15 {
pascal@24491 16 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24491 17 sed '/chkexploit-/!d;/tar/!d;s|.*chkexploit-||;s|.tar.*||' | sort -Vr | sed q
pascal@24491 18 }
pascal@24491 19
pascal@18139 20 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18139 21 genpkg_rules()
pascal@18139 22 {
pascal@18139 23 mkdir -p $fs/usr/share/chkrootkit
pascal@18139 24 cp $src/chkexploit $fs/usr/share/chkrootkit
pascal@18139 25 }