wok-6.x annotate ebtables/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (2022-02-07)
parents d741df010f45
children ead40cecdb52
rev   line source
pascal@4530 1 # SliTaz package receipt.
pascal@4530 2
pascal@4530 3 PACKAGE="ebtables"
pascal@15156 4 VERSION="v2.0.10-4"
pascal@4530 5 CATEGORY="network"
pascal@4530 6 SHORT_DESC="Filtering tool for a Linux-based bridging firewall."
pascal@4530 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15156 8 LICENSE="GPL2"
pascal@4530 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21985 10 WEB_SITE="https://netfilter.org/"
pascal@4530 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4935 12 TAGS="firewall"
pascal@4530 13
pascal@24385 14 # What is the latest version available today?
pascal@24385 15 current_version()
pascal@24385 16 {
pascal@24385 17 wget -O - https://sourceforge.net/projects/ebtables/files/ebtables/ 2>/dev/null | \
pascal@24385 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24385 19 sed '/scope="row/!d;/tar/!d;s|.*-v|v|;s|.tar.*||'
pascal@24385 20 }
pascal@24385 21
pascal@4530 22 # Rules to configure and make the package.
pascal@4530 23 compile_rules()
pascal@4530 24 {
pascal@20212 25 sed -i 's|uname -m|echo i486|' Makefile
pascal@15156 26 sed -i 's/), ret = 0/), ret = ret - ret/' communication.c
gokhlayeh@8813 27 mkdir -p $DESTDIR/etc/rc.d/init.d/ $DESTDIR/etc/sysconfig/
gokhlayeh@8813 28 make && make DESTDIR=$DESTDIR -j1 install
pascal@4530 29 }
pascal@4530 30
pascal@4530 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4530 32 genpkg_rules()
pascal@4530 33 {
pascal@4530 34 mkdir -p $fs/usr $fs/etc
pascal@15156 35 cp -a $install/etc/ethertypes $fs/etc
pascal@15156 36 cp -a $install/etc/sysconfig $fs/etc
pascal@15156 37 cp -a $install/usr/local/sbin $fs/usr
pascal@15156 38 cp -a $install/usr/lib $fs/usr
pascal@4530 39 }
pascal@4530 40