wok-6.x annotate sshguard/receipt @ rev 24302

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 15 16:22:40 2022 +0000 (2022-01-15)
parents 9bbac86a37f7
children
rev   line source
pascal@14764 1 # SliTaz package receipt.
pascal@14764 2
pascal@14764 3 PACKAGE="sshguard"
Hans-G?nter@24289 4 VERSION="2.4.2"
pascal@14764 5 CATEGORY="security"
Hans-G?nter@21968 6 TAGS="ssh"
Hans-G?nter@21968 7 SHORT_DESC="Protects networked hosts from brute force attacks."
pascal@14764 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14764 9 LICENSE="BSD"
Hans-G?nter@21968 10 WEB_SITE="https://www.sshguard.net/"
Hans-G?nter@21968 11
pascal@20520 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20520 13 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
pascal@14764 14
pascal@14764 15 DEPENDS="iptables"
pascal@14764 16 BUILD_DEPENDS=""
pascal@14764 17
pascal@24295 18 current_version()
pascal@24295 19 {
pascal@24295 20 wget -O - https://bitbucket.org/sshguard/sshguard/downloads/?tab=tags 2>/dev/null | \
pascal@24302 21 sed '/tar..z/!d;s|.*/v||;s|.tar.*||;q'
pascal@24295 22 }
pascal@24295 23
pascal@14764 24 # Rules to configure and make the package.
pascal@14764 25 compile_rules()
pascal@14764 26 {
Hans-G?nter@21968 27 ./configure \
Hans-G?nter@21968 28 --prefix=/usr \
Hans-G?nter@21968 29 --sysconfdir=/etc \
Hans-G?nter@21968 30 --mandir=/usr/share/man \
pascal@14764 31 $CONFIGURE_ARGS &&
pascal@14764 32 make &&
Hans-G?nter@24289 33 make install DESTDIR=$DESTDIR
pascal@14764 34 }
pascal@14764 35
pascal@14764 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14764 37 genpkg_rules()
pascal@14764 38 {
Hans-G?nter@24289 39 cook_copy_folders sbin
Hans-G?nter@24289 40 cook_copy_folders libexec
pascal@14764 41 }