wok-6.x view ebtables/receipt @ rev 25492
Up foomatic-db (4.0-20221117)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 18 09:54:27 2022 +0000 (21 months ago) |
parents | ead40cecdb52 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ebtables"
4 VERSION="2.0.11"
5 CATEGORY="network"
6 TAGS="firewall"
7 SHORT_DESC="Filtering tool for a Linux-based bridging firewall."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://netfilter.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.netfilter.org/pub/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="autoconf automake libtool"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/ebtables/files/ebtables/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;s|.*-v|v|;s|.tar.*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $DESTDIR/etc/rc.d/init.d
29 mkdir -p $DESTDIR/etc/sysconfig
31 ./autogen.sh &&
32 ./configure \
33 --prefix=/usr \
34 --sysconfdir=/etc \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 mkdir -p $fs/etc
46 cp -a $install/etc/ethertypes $fs/etc
47 cp -a $install/etc/sysconfig $fs/etc
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/usr/lib $fs/usr
50 }