summaryrefslogtreecommitdiff
path: root/core/iproute2
diff options
context:
space:
mode:
Diffstat (limited to 'core/iproute2')
-rw-r--r--core/iproute2/.footprint12
-rw-r--r--core/iproute2/.signature7
-rw-r--r--core/iproute2/0001-fix-musl-missing-types.patch21
-rw-r--r--core/iproute2/MAKEPKG44
4 files changed, 84 insertions, 0 deletions
diff --git a/core/iproute2/.footprint b/core/iproute2/.footprint
new file mode 100644
index 0000000..950ef4a
--- /dev/null
+++ b/core/iproute2/.footprint
@@ -0,0 +1,12 @@
+drwxr-xr-x root/root bin/
+-rwxr-xr-x root/root bin/bridge
+-rwxr-xr-x root/root bin/dpll
+-rwxr-xr-x root/root bin/ip
+-rwxr-xr-x root/root bin/ss
+-rwxr-xr-x root/root bin/tc
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/tc/
+-rw-r--r-- root/root lib/tc/experimental.dist
+-rw-r--r-- root/root lib/tc/normal.dist
+-rw-r--r-- root/root lib/tc/pareto.dist
+-rw-r--r-- root/root lib/tc/paretonormal.dist
diff --git a/core/iproute2/.signature b/core/iproute2/.signature
new file mode 100644
index 0000000..0f4a5cf
--- /dev/null
+++ b/core/iproute2/.signature
@@ -0,0 +1,7 @@
+RWTZ9IduCSQ/mPmkTft1giEHP44PBqKu2SDlHPI2kph9RhST60MhXBYO81kwkW6BDX15yLNXosU37asdhCwDEHbE//cjSoSN/AM=
+
+SHA256 (MAKEPKG) = b9654ec637150e33b3c8f48cfb22dfc4a6df4756dbf2aecaf10549bc28fbfc0c
+SHA256 (.footprint) = b274432e6de7d23a38ffbd8599e3f45b31e3c7eab6cfdd583026334c09cdc7f3
+SHA256 (iproute2-7.2.0.tar.xz) = 4c2fa124c2cf0afd7ca34d1eeacba6ba048a56f6374e2aab93dafbdbd4eea9c0
+SHA256 (0001-fix-musl-missing-types.patch) = 1b8b38a59c5b49eb5319939135c2ddf1dee36a15aca71d5f9a0634429714727a
+SHA256 (iproute2#7.2.0-1.pkg.tar.gz) = 4fe0b2c880bc08c42d4034aa0fc4f93e0c5c0b69532ebc36df5abd2c1c67dba1
diff --git a/core/iproute2/0001-fix-musl-missing-types.patch b/core/iproute2/0001-fix-musl-missing-types.patch
new file mode 100644
index 0000000..a1a8d2e
--- /dev/null
+++ b/core/iproute2/0001-fix-musl-missing-types.patch
@@ -0,0 +1,21 @@
+--- a/include/color.h
++++ b/include/color.h
+@@ -2,6 +2,7 @@
+ #ifndef __COLOR_H__
+ #define __COLOR_H__ 1
+
++#include <linux/types.h>
+ #include <stdbool.h>
+
+ enum color_attr {
+--- a/include/json_print.h
++++ b/include/json_print.h
+@@ -8,6 +8,8 @@
+ #ifndef _JSON_PRINT_H_
+ #define _JSON_PRINT_H_
+
++#include <sys/time.h>
++
+ #include "json_writer.h"
+ #include "color.h"
+
diff --git a/core/iproute2/MAKEPKG b/core/iproute2/MAKEPKG
new file mode 100644
index 0000000..9b8dac2
--- /dev/null
+++ b/core/iproute2/MAKEPKG
@@ -0,0 +1,44 @@
+#!/bin/mkpkg
+# description: IP routing utilities
+# url: https://wiki.linuxfoundation.org/networking/iproute2
+
+name=iproute2
+version=7.2.0
+release=1
+depends=(libcap2 libmnl libelf)
+makedeps=(bison pkgconf)
+source=(https://www.kernel.org/pub/linux/utils/net/$name/$name-$version.tar.xz
+ 0001-fix-musl-missing-types.patch)
+sha256sums=(
+ "4c2fa124c2cf0afd7ca34d1eeacba6ba048a56f6374e2aab93dafbdbd4eea9c0"
+ "1b8b38a59c5b49eb5319939135c2ddf1dee36a15aca71d5f9a0634429714727a"
+)
+
+patch() {
+ cd $name-$version
+ patch -p1 -i $SRC/0001-fix-musl-missing-types.patch
+}
+
+build() {
+ cd $name-$version
+ CC=clang ./configure \
+ --color never \
+ --libbpf_force off \
+ --prefix=/
+ make CC=clang HOSTCC=clang HAVE_TIRPC=n V=1
+ make CC=clang HOSTCC=clang HAVE_TIRPC=n DESTDIR=$PKG SBINDIR=/bin install
+ rm -f $PKG/bin/arpd $PKG/bin/dcb $PKG/bin/devlink $PKG/bin/genl
+ rm -f $PKG/bin/ifstat $PKG/bin/lnstat $PKG/bin/ctstat $PKG/bin/rtstat
+ rm -f $PKG/bin/netshaper $PKG/bin/nstat $PKG/bin/rdma $PKG/bin/routel
+ rm -f $PKG/bin/rtacct $PKG/bin/rtmon $PKG/bin/tipc $PKG/bin/vdpa
+ rm -rf $PKG/usr
+ rm -rf $PKG/share
+ rm -rf $PKG/lib/bash-completion
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh