wok annotate modsecurity-apache/receipt @ rev 24433

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 18:42:31 2022 +0000 (2022-02-12)
parents 20b4935ebb5d
children 526dda97861f
rev   line source
pascal@15889 1 # SliTaz package receipt.
pascal@15889 2
pascal@15889 3 PACKAGE="modsecurity-apache"
Hans-G?nter@21465 4 VERSION="2.9.3"
pascal@15889 5 CATEGORY="network"
pascal@15889 6 SHORT_DESC="Web application firewall engine."
pascal@15889 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15889 8 LICENSE="Apache"
pascal@15889 9 WEB_SITE="https://www.modsecurity.org/"
pascal@15889 10
Hans-G?nter@21465 11 SOURCE="modsecurity"
Hans-G?nter@21465 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@21465 13 WGET_URL="${WEB_SITE}tarball/$VERSION/$TARBALL"
Hans-G?nter@21465 14
Hans-G?nter@21465 15 DEPENDS="apache apr apr-util curl libssl pcre util-linux-uuid zlib"
Hans-G?nter@21465 16 BUILD_DEPENDS="apache-dev apr-dev apr-util-dev curl-dev libxml2-dev \
Hans-G?nter@21465 17 pcre-dev util-linux-uuid-dev"
pascal@15889 18
pascal@24433 19 # What is the latest version available today?
pascal@24433 20 current_version()
pascal@24433 21 {
pascal@24433 22 wget -O - https://github.com/SpiderLabs/ModSecurity/releases 2>/dev/null | \
pascal@24433 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24433 24 }
pascal@24433 25
pascal@15889 26 # Rules to configure and make the package.
pascal@15889 27 compile_rules()
pascal@15889 28 {
pascal@15889 29 ./configure --prefix=/usr $CONFIGURE_ARGS &&
Hans-G?nter@21465 30 make -j 1 &&
Hans-G?nter@21465 31 make DESTDIR=$DESTDIR install
pascal@15889 32 }
pascal@15889 33
pascal@15889 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15889 35 genpkg_rules()
pascal@15889 36 {
pascal@15889 37 cp -a $install/* $fs
pascal@15889 38 }