wok view iproute2/receipt @ rev 23926
Add minesweeper & pacman
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 23 15:10:17 2020 +0000 (2020-08-23) |
parents | e2f9f0d42d1a |
children | 71360a13cd94 |
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/<net\/if.h>/<net\/if.h>\n#include <linux\/ip.h>/' \
22 ip/link_gre.c
24 ./configure \
25 --prefix=/usr \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/bin
36 cp -a $install/usr $fs
37 cp -a $install/etc $fs
38 cp -a $install/var $fs
39 cp -a $install/sbin $fs
40 ln $fs/sbin/ip $fs/sbin/ss /$fs/bin/
41 }