wok annotate suricata/receipt @ rev 25483

created recipe for py3k-six
author Hans-G?nter Theisgen
date Mon Oct 17 07:54:33 2022 +0100 (20 months ago)
parents bb565202cbf9
children
rev   line source
erjo@11452 1 # SliTaz package receipt.
erjo@11452 2
erjo@11452 3 PACKAGE="suricata"
Hans-G?nter@25336 4 VERSION="6.0.6"
erjo@11452 5 CATEGORY="security"
erjo@11452 6 SHORT_DESC="Next Generation Intrusion Detection and Prevention Engine."
erjo@11452 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@25336 9 WEB_SITE="https://suricata.io/"
Hans-G?nter@23683 10
erjo@11452 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21236 12 WGET_URL="https://www.openinfosecfoundation.org/download/$TARBALL"
erjo@11452 13
Hans-G?nter@25336 14 DEPENDS="gcc83-lib-base jansson libatomic libcap-ng libhtp libnet
Hans-G?nter@25336 15 libnetfilter_queue libnfnetlink libpcap lz4-lib pcre yaml"
Hans-G?nter@25336 16 BUILD_DEPENDS="gcc83 jansson-dev libatomic libcap-ng-dev libhtp-dev libmnl
Hans-G?nter@25336 17 libnet-dev libnetfilter_queue libnetfilter_queue-dev
Hans-G?nter@25336 18 libnfnetlink-dev libpcap-dev lz4-dev rust-cargo yaml-dev
Hans-G?nter@25336 19 zlib-dev"
erjo@11452 20
pascal@24462 21 # What is the latest version available today?
pascal@24462 22 current_version()
pascal@24462 23 {
pascal@24462 24 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24462 26 }
pascal@24462 27
erjo@11452 28 # Rules to configure and make the package.
erjo@11452 29 compile_rules()
erjo@11452 30 {
Hans-G?nter@25337 31 export LIBS="-latomic"
Hans-G?nter@25337 32
erjo@11452 33 rm -f config.h
Hans-G?nter@25336 34 ./configure \
Hans-G?nter@25336 35 CC=gcc-83 \
Hans-G?nter@25336 36 CXX=g++-83 \
Hans-G?nter@23683 37 --enable-non-bundled-htp \
Hans-G?nter@23683 38 --enable-nfqueue \
Hans-G?nter@25336 39 --enable-af-packet \
Hans-G?nter@25336 40 $CONFIGURE_ARGS &&
Hans-G?nter@23683 41 make &&
Hans-G?nter@23683 42 make install
erjo@11452 43 }
erjo@11452 44
erjo@11452 45 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11452 46 genpkg_rules()
erjo@11452 47 {
Hans-G?nter@25336 48 cook_copy_folders bin
erjo@11452 49 }