wok annotate libdaq/receipt @ rev 25041

Up fatattr (1.0.1), puzzles (20220128)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 27 17:15:46 2022 +0000 (2022-05-27)
parents a4f828dcc860
children 08392a9d42ea
rev   line source
slaxemulator@7077 1 # SliTaz package receipt.
slaxemulator@7077 2
slaxemulator@7077 3 PACKAGE="libdaq"
Hans-G?nter@23020 4 VERSION="2.0.6"
slaxemulator@7077 5 CATEGORY="network"
slaxemulator@7077 6 SHORT_DESC="Data Acquisition library for packet I/O."
slaxemulator@7077 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15472 8 LICENSE="GPL2"
pascal@24937 9 WEB_SITE="https://github.com/snort3/libdaq"
Hans-G?nter@23020 10
Hans-G?nter@23020 11 SOURCE="daq"
Hans-G?nter@23020 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@25028 13 WGET_URL="https://www.snort.org/downloads/archive/snort/$TARBALL"
slaxemulator@7077 14
pascal@15472 15 DEPENDS="libpcap"
Hans-G?nter@23020 16 BUILD_DEPENDS="automake bison flex libpcap-dev"
pascal@15472 17
pascal@24427 18 # What is the latest version available today?
pascal@24427 19 current_version()
pascal@24427 20 {
pascal@24937 21 wget -O - https://github.com/snort3/libdaq/releases 2>/dev/null | \
pascal@24937 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24427 23 }
pascal@24427 24
slaxemulator@7077 25 # Rules to configure and make the package.
slaxemulator@7077 26 compile_rules()
slaxemulator@7077 27 {
Hans-G?nter@23020 28 autoconf &&
Hans-G?nter@23020 29 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@23020 30 make -j1 &&
Hans-G?nter@23020 31 make -j1 DESTDIR=$DESTDIR install
slaxemulator@7077 32 }
slaxemulator@7077 33
slaxemulator@7077 34 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7077 35 genpkg_rules()
slaxemulator@7077 36 {
gokhlayeh@8586 37 mkdir -p $fs/usr/lib/daq
Hans-G?nter@23020 38
Hans-G?nter@23020 39 cp -a $install/usr/lib/daq/*.so* $fs/usr/lib/daq
Hans-G?nter@23020 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@7077 41 }