wok view bridge-utils/receipt @ rev 25476

Up foomatic-db-nonfree (20221012)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 13 16:28:13 2022 +0000 (18 months ago)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="bridge-utils"
4 VERSION="1.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="IEEE 802.1d ethernet bridging"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wiki.linuxfoundation.org/networking/bridge"
11 WGET_URL="https://mirrors.edge.kernel.org/pub/linux/utils/net/bridge-utils/$TARBALL"
12 TAGS="ethernet bridge"
14 BUILD_DEPENDS="automake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoconf
27 ./configure --prefix=/usr &&
28 make && make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/sbin $fs/usr
36 }
38 post_remove()
39 {
40 ln -s /bin/busybox "$1/usr/sbin/brctl"
41 }