summaryrefslogtreecommitdiff
path: root/repo/bridge-utils
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/bridge-utils
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/bridge-utils')
-rw-r--r--repo/bridge-utils/bridge-utils.xibuild32
-rw-r--r--repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch26
2 files changed, 58 insertions, 0 deletions
diff --git a/repo/bridge-utils/bridge-utils.xibuild b/repo/bridge-utils/bridge-utils.xibuild
new file mode 100644
index 0000000..cc94b7b
--- /dev/null
+++ b/repo/bridge-utils/bridge-utils.xibuild
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NAME="bridge-utils"
+DESC="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
+
+MAKEDEPS="autoconf linux-headers"
+
+PKG_VER=1.7.1
+SOURCE="https://git.kernel.org/pub/scm/network/bridge/bridge-utils.git/snapshot/bridge-utils-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+fix-PATH_MAX-on-ppc64le.patch
+"
+
+prepare() {
+ apply_patches
+ autoconf
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --libdir=/usr/lib \
+ --includedir=/usr/include
+ make
+}
+
+package() {
+ make install DESTDIR="$PKG_DEST"
+}
+
diff --git a/repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch b/repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch
new file mode 100644
index 0000000..3fa75b9
--- /dev/null
+++ b/repo/bridge-utils/fix-PATH_MAX-on-ppc64le.patch
@@ -0,0 +1,26 @@
+Author: Milan P. Stanić <mps@arvanta.net>
+Date: Sun May 30 07:40:11 2021 +0000
+
+Fix missing PATH_MAX on ppc64le
+
+--- a/libbridge/libbridge_devif.c 2021-05-30 07:59:46.533574878 +0000
++++ b/libbridge/libbridge_devif.c 2021-05-30 08:01:09.964036452 +0000
+@@ -24,6 +24,7 @@
+ #include <string.h>
+ #include <dirent.h>
+ #include <fcntl.h>
++#include <limits.h>
+
+ #include "libbridge.h"
+ #include "libbridge_private.h"
+
+--- a/libbridge/libbridge_init.c 2021-05-30 08:00:15.983737797 +0000
++++ b/libbridge/libbridge_init.c 2021-05-30 08:00:49.573923635 +0000
+@@ -24,6 +24,7 @@
+ #include <dirent.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <limits.h>
+
+ #include "libbridge.h"
+ #include "libbridge_private.h"