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