wok view iproute2/receipt @ rev 24486

updated djvulibre and djvulibre-dev (3.5.27 -> 3.5.28)
author Hans-G?nter Theisgen
date Fri Feb 18 16:54:18 2022 +0100 (2022-02-18)
parents eba8234042aa
children 518bb01fa67c
line source
1 # SliTaz package receipt.
3 PACKAGE="iproute2"
4 VERSION="5.5.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"
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 sed -i 's/<net\/if.h>/<net\/if.h>\n#include <linux\/ip.h>/' \
29 ip/link_gre.c
31 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/bin
43 cp -a $install/usr $fs
44 cp -a $install/etc $fs
45 cp -a $install/var $fs
46 cp -a $install/sbin $fs
47 ln $fs/sbin/ip $fs/sbin/ss /$fs/bin/
48 }