wok-6.x view libdaq/receipt @ rev 24982
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 13:06:36 2022 +0000 (2022-05-08) |
parents | 83b97236db32 |
children | 22471cbea549 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libdaq"
4 VERSION="2.0.6"
5 CATEGORY="network"
6 SHORT_DESC="Data Acquisition library for packet I/O."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/snort3/libdaq"
11 SOURCE="daq"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}downloads/snort/$TARBALL"
14 #WGET_URL="https://github.com/snort3/libdaq/archive/refs/tags/v$VERSION.tar.gz"
16 DEPENDS="libpcap"
17 BUILD_DEPENDS="automake bison flex libpcap-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/snort3/libdaq/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 autoconf &&
30 ./configure $CONFIGURE_ARGS &&
31 make -j1 &&
32 make -j1 DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/daq
40 cp -a $install/usr/lib/daq/*.so* $fs/usr/lib/daq
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }