wok-6.x view modsecurity-apache/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | 526dda97861f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="modsecurity-apache"
4 VERSION="2.9.5"
5 CATEGORY="network"
6 SHORT_DESC="Web application firewall engine."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/SpiderLabs/ModSecurity"
10 REPOLOGY="modsecurity"
12 SOURCE="modsecurity"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/SpiderLabs/ModSecurity/archive/refs/tags/v$VERSION.tar.gz"
16 DEPENDS="apache apr apr-util curl libssl pcre util-linux-uuid zlib"
17 BUILD_DEPENDS="apache-dev apr-dev apr-util-dev automake curl-dev libtool
18 libxml2-dev pcre-dev util-linux-uuid-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/SpiderLabs/ModSecurity/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./autogen.sh &&
31 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install DESTDIR=$DESTDIR
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/* $fs
42 }