wok-current annotate bridge-utils/receipt @ rev 25431

qt5: update wget_url with archive.org
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 19 06:34:23 2022 +0000 (2022-08-19)
parents 14e284e071e0
children 362a5a98467f
rev   line source
erjo@4484 1 # SliTaz package receipt.
erjo@4484 2
erjo@4484 3 PACKAGE="bridge-utils"
pascal@20568 4 VERSION="1.6"
erjo@4484 5 CATEGORY="system-tools"
jozee@4932 6 SHORT_DESC="IEEE 802.1d ethernet bridging"
erjo@4484 7 MAINTAINER="erjo@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
pascal@20568 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
slaxemulator@11069 10 WEB_SITE="http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge"
pascal@20568 11 WGET_URL="https://mirrors.edge.kernel.org/pub/linux/utils/net/bridge-utils/$TARBALL"
slaxemulator@11069 12 TAGS="ethernet bridge"
erjo@4484 13
al@18673 14 BUILD_DEPENDS="automake"
erjo@4484 15
pascal@24336 16 # What is the latest version available today?
pascal@24336 17 current_version()
pascal@24336 18 {
pascal@24336 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 21 }
pascal@24336 22
erjo@4484 23 # Rules to configure and make the package.
erjo@4484 24 compile_rules()
erjo@4484 25 {
al@18673 26 autoconf
pankso@9774 27 ./configure --prefix=/usr &&
pankso@9774 28 make && make DESTDIR=$DESTDIR install
erjo@4484 29 }
erjo@4484 30
erjo@4484 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4484 32 genpkg_rules()
erjo@4484 33 {
erjo@4484 34 mkdir -p $fs/usr
pascal@15579 35 cp -a $install/usr/sbin $fs/usr
erjo@4484 36 }
erjo@4484 37
pascal@8880 38 post_remove()
pascal@8880 39 {
al@18673 40 ln -s /bin/busybox "$1/usr/sbin/brctl"
pascal@8880 41 }