wok view snort/receipt @ rev 24939

f2c: add libf2c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 16:15:33 2022 +0000 (2022-04-15)
parents 83b97236db32
children 8e505f99deb3
line source
1 # SliTaz package receipt.
3 PACKAGE="snort"
4 VERSION="2.9.16"
5 CATEGORY="network"
6 SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/snort3/snort3"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.snort.org/downloads/$PACKAGE/$TARBALL"
14 DEPENDS="libdaq libdnet openssl pcre"
15 BUILD_DEPENDS="flex libdaq-dev libdnet-dev libpcap-dev luajit-dev
16 openssl-dev pcre-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
22 sed "/openappid/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib $fs/usr
42 rm -f $fs/usr/lib/*/*a
43 rm -rf $fs/usr/lib/pkgconfig
44 }