wok view ebtables/receipt @ rev 25095

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