wok view iproute2/receipt @ rev 25403
updated vzctl (3.0.25.1 -> 4.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Aug 02 16:35:24 2022 +0100 (2022-08-02) |
parents | 71360a13cd94 |
children | 73f36875e5a7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="iproute2"
4 VERSION="5.16.0"
5 CATEGORY="network"
6 TAGS="network route"
7 SHORT_DESC="Utilites for networking and traffic control."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://wiki.linuxfoundation.org/networking/iproute2"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://kernel.org/pub/linux/utils/net/$PACKAGE/$TARBALL"
15 DEPENDS="db iptables libmnl libnl"
16 BUILD_DEPENDS="bison db-dev flex iptables-dev libmnl-dev libnl-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -lrt"
30 sed -i 's|<net/if.h>|<net/if.h>\n#include <linux/ip.h>|' \
31 ip/link_gre.c
33 ./configure \
34 --prefix=/usr \
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/bin
45 cook_copy_folders etc
46 cook_copy_folders include
47 cook_copy_folders lib
48 cook_copy_folders sbin
49 cook_copy_folders var
51 ln $fs/sbin/ip $fs/sbin/ss /$fs/bin/
52 }