wok-6.x annotate iproute2/receipt @ rev 24977

created recipe for fslint-lang
author Hans-G?nter Theisgen
date Fri May 06 16:54:42 2022 +0100 (2022-05-06)
parents 71360a13cd94
children 73f36875e5a7
rev   line source
allan316@4528 1 # SliTaz package receipt.
allan316@4528 2
allan316@4528 3 PACKAGE="iproute2"
Hans-G?nter@24671 4 VERSION="5.16.0"
pankso@4804 5 CATEGORY="network"
Hans-G?nter@22955 6 TAGS="network route"
Hans-G?nter@22955 7 SHORT_DESC="Utilites for networking and traffic control."
allan316@4528 8 MAINTAINER="allan316@gmail.com"
pascal@15000 9 LICENSE="GPL2"
Hans-G?nter@22955 10 WEB_SITE="https://wiki.linuxfoundation.org/networking/iproute2"
Hans-G?nter@22955 11
pascal@13007 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@13010 13 WGET_URL="http://kernel.org/pub/linux/utils/net/$PACKAGE/$TARBALL"
allan316@4528 14
Hans-G?nter@24671 15 DEPENDS="db iptables libmnl libnl"
Hans-G?nter@22955 16 BUILD_DEPENDS="bison db-dev flex iptables-dev libmnl-dev libnl-dev"
erjo@9934 17
pascal@24336 18 # What is the latest version available today?
pascal@24336 19 current_version()
pascal@24336 20 {
pascal@24336 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 23 }
pascal@24336 24
allan316@4528 25 # Rules to configure and make the package.
allan316@4528 26 compile_rules()
allan316@4528 27 {
Hans-G?nter@24671 28 export LDFLAGS="$LDFLAGS -lrt"
Hans-G?nter@24671 29
Hans-G?nter@24671 30 sed -i 's|<net/if.h>|<net/if.h>\n#include <linux/ip.h>|' \
Hans-G?nter@22955 31 ip/link_gre.c
Hans-G?nter@22955 32
Hans-G?nter@22955 33 ./configure \
Hans-G?nter@22955 34 --prefix=/usr \
Hans-G?nter@22955 35 $CONFIGURE_ARGS &&
Hans-G?nter@22955 36 make &&
Hans-G?nter@24671 37 make install DESTDIR=$DESTDIR
allan316@4528 38 }
allan316@4528 39
allan316@4528 40 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@4528 41 genpkg_rules()
allan316@4528 42 {
pascal@18181 43 mkdir -p $fs/bin
Hans-G?nter@22955 44
Hans-G?nter@24671 45 cook_copy_folders etc
Hans-G?nter@24671 46 cook_copy_folders include
Hans-G?nter@24671 47 cook_copy_folders lib
Hans-G?nter@24671 48 cook_copy_folders sbin
Hans-G?nter@24671 49 cook_copy_folders var
Hans-G?nter@24671 50
pascal@18181 51 ln $fs/sbin/ip $fs/sbin/ss /$fs/bin/
allan316@4528 52 }