wok-6.x annotate libnids/receipt @ rev 24727
cookutils: add repo-cooking (used by tank)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 15 10:59:31 2022 +0000 (2022-03-15) |
parents | 59fad0483733 |
children | 67993c9076ed |
rev | line source |
---|---|
pascal@16989 | 1 # SliTaz package receipt. |
pascal@16989 | 2 |
pascal@16989 | 3 PACKAGE="libnids" |
pascal@16989 | 4 VERSION="1.24" |
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" |
pascal@16989 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@16989 | 10 WEB_SITE="http://libnids.sourceforge.net/" |
pascal@16989 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" |
pascal@16989 | 12 #https://sourceforge.net/projects/libnids/files/libnids/1.24/libnids-1.24.tar.gz |
pascal@16989 | 13 |
pascal@16989 | 14 DEPENDS="" |
pascal@16989 | 15 BUILD_DEPENDS="pkg-config libpcap-dev glib-dev libnet-dev" |
pascal@16989 | 16 |
pascal@24411 | 17 # What is the latest version available today? |
pascal@24411 | 18 current_version() |
pascal@24411 | 19 { |
pascal@24411 | 20 wget -O - https://sourceforge.net/projects/libnids/files/libnids/ 2>/dev/null | \ |
pascal@24411 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24411 | 22 sed '/scope="row/!d;s|.*/libnids/||;s|/.*||;q' |
pascal@24411 | 23 } |
pascal@24411 | 24 |
pascal@16989 | 25 # Rules to configure and make the package. |
pascal@16989 | 26 compile_rules() |
pascal@16989 | 27 { |
pascal@16989 | 28 sed -i "s|^install_prefix.*|install_prefix = $DESTDIR|" src/Makefile* |
pascal@16989 | 29 ./configure --prefix=/usr $CONFIGURE_ARGS && |
pascal@16989 | 30 make && |
pascal@16989 | 31 make DESTDIR=$DESTDIR install |
pascal@16989 | 32 } |
pascal@16989 | 33 |
pascal@16989 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16989 | 35 genpkg_rules() |
pascal@16989 | 36 { |
pascal@16989 | 37 cp -a $install/* $fs/ |
pascal@16989 | 38 } |