wok annotate sagan-rules/receipt @ rev 24988
Fix perl-gd & tcptrack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 12 11:01:25 2022 +0000 (2022-05-12) |
parents | 164fcaca1cd0 |
children | de1a43f5b15c |
rev | line source |
---|---|
erjo@11418 | 1 # SliTaz package receipt. |
erjo@11418 | 2 |
erjo@11418 | 3 PACKAGE="sagan-rules" |
slaxemulator@11420 | 4 VERSION="08222011" |
erjo@11418 | 5 CATEGORY="security" |
erjo@11418 | 6 SHORT_DESC="sagan rules" |
erjo@11418 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15587 | 8 LICENSE="BSD" |
erjo@11418 | 9 WEB_SITE="http://sagan.softwink.com/" |
erjo@11418 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@11418 | 11 WGET_URL="http://sagan.softwink.com/rules/$TARBALL" |
erjo@11418 | 12 |
pascal@24425 | 13 # What is the latest version available today? |
pascal@24425 | 14 current_version() |
pascal@24425 | 15 { |
pascal@24425 | 16 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 17 sed "/current/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 18 } |
pascal@24425 | 19 |
erjo@11418 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11418 | 21 genpkg_rules() |
erjo@11418 | 22 { |
erjo@11418 | 23 mkdir -p $fs/etc/sagan/rules |
slaxemulator@11420 | 24 cp -a $src/* $fs/etc/sagan/rules |
erjo@11418 | 25 } |