wok view ndpi/receipt @ rev 25769

libmaxminddb, ndpi: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 09:45:40 2024 +0000 (2 months ago)
parents ffbe519b44df
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ndpi"
4 VERSION="4.10"
5 CATEGORY="network"
6 TAGS="network"
7 SHORT_DESC="Open Source Deep Packet Inspection Software Toolkit."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL-3.0-only"
10 WEB_SITE="https://github.com/ntop/nDPI"
12 SOURCE="nDPI"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/ntop/$SOURCE/archive/$VERSION.tar.gz"
16 DEPENDS="libjson-c libpcap"
17 BUILD_DEPENDS="autoconf automake libjson-c-dev libpcap-dev libtool"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./autogen.sh \
30 --prefix=/usr \
31 --sysconfdir=/etc &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders bin
40 cook_copy_files *.so*
41 cook_copy_files *.txt
42 }