# SliTaz package receipt. PACKAGE="modsecurity-apache" VERSION="2.9.5" CATEGORY="network" SHORT_DESC="Web application firewall engine." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="Apache" WEB_SITE="https://github.com/SpiderLabs/ModSecurity" REPOLOGY="modsecurity" SOURCE="modsecurity" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="https://github.com/SpiderLabs/ModSecurity/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="apache apr apr-util curl libssl pcre util-linux-uuid zlib" BUILD_DEPENDS="apache-dev apr-dev apr-util-dev automake curl-dev libtool libxml2-dev pcre-dev util-linux-uuid-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/SpiderLabs/ModSecurity/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh && ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }