wok view conntrack-tools/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents 3f7f1ad4e622
children 5e0b3308e1ad
line source
1 # SliTaz package receipt.
3 PACKAGE="conntrack-tools"
4 VERSION="1.4.5"
5 CATEGORY="security"
6 SHORT_DESC="Userspace tools to interact with the Connection Tracking System."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.netfilter.org/projects/conntrack-tools/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}files/$TARBALL"
14 DEPENDS="libmnl libnetfilter_conntrack libnetfilter_cthelper
15 libnetfilter_queue libnfnetlink"
16 BUILD_DEPENDS="bison flex glib-dev libmnl-dev libnetfilter_conntrack-dev
17 libnetfilter_cthelper-dev libnetfilter_cttimeout-dev
18 libnetfilter_queue-dev libnfnetlink-dev pkg-config"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i '/enum ip_conntrack_info {/,/};/d' \
31 include/helper.h
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
46 cp -a $install/usr/sbin $fs/sbin
47 cp -a $install/usr/lib $fs/usr
48 }