SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libdaq"

# SliTaz package receipt.

PACKAGE="libdaq"
VERSION="2.0.6"
CATEGORY="network"
SHORT_DESC="Data Acquisition library for packet I/O."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/snort3/libdaq"

SOURCE="daq"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://distfiles.macports.org/daq/$TARBALL"

DEPENDS="libpcap"
BUILD_DEPENDS="automake bison flex libpcap-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/snort3/libdaq/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    autoconf &&
    ./configure $CONFIGURE_ARGS &&
    make -j1 &&
    make -j1 DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/daq

    cp -a $install/usr/lib/daq/*.so*    $fs/usr/lib/daq
    cp -a $install/usr/lib/*.so*        $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)