wok annotate libnids/receipt @ rev 24990

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