wok-6.x view libnids/receipt @ rev 25563

New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37
author Stanislas Leduc <shann@slitaz.org>
date Fri May 05 18:12:18 2023 +0200 (18 months ago)
parents 65d7d867e0c1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libnids"
4 VERSION="1.26"
5 CATEGORY="development"
6 SHORT_DESC="An E-component of Network Intrusion Detection System."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/MITRECND/libnids/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/MITRECND/$PACKAGE/archive/refs/tags/$VERSION.tar.gz"
13 DEPENDS=""
14 BUILD_DEPENDS="glib-dev libpcap-dev libnet-dev pkg-config"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/libnids/files/libnids/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/libnids/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i "s|^install_prefix.*|install_prefix = $DESTDIR|" \
28 src/Makefile*
30 ./configure \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders include
41 cook_copy_folders lib
42 }