summaryrefslogtreecommitdiff
path: root/packages/iproute2/build.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-09 13:10:00 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-09 13:10:00 +0200
commitb3ba57ac9423a9285ace015882f2783d8fddc7b8 (patch)
tree3d90480a4d9392d29071a8012fa25699630ea9f2 /packages/iproute2/build.sh
parent747c86ad8cd2ba761612f89f395bb2454ed6975f (diff)
downloadvyos-build-b3ba57ac9423a9285ace015882f2783d8fddc7b8.tar.gz
vyos-build-b3ba57ac9423a9285ace015882f2783d8fddc7b8.zip
iproute2: patches: add fix for erspan JSON output
See thread [1] for more infomration. [1] https://lore.kernel.org/netdev/3ac544c09842410fb863b332917a03ad@poessinger.com/
Diffstat (limited to 'packages/iproute2/build.sh')
-rwxr-xr-xpackages/iproute2/build.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/iproute2/build.sh b/packages/iproute2/build.sh
new file mode 100755
index 00000000..09babb95
--- /dev/null
+++ b/packages/iproute2/build.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+CWD=$(pwd)
+set -e
+
+SRC=iproute2
+if [ ! -d ${SRC} ]; then
+ echo "Source directory does not exists, please 'git clone'"
+ exit 1
+fi
+
+cd ${SRC}
+PATCH_DIR=${CWD}/patches
+for patch in $(ls ${PATCH_DIR})
+do
+ echo "I: Apply patch: ${PATCH_DIR}/${patch}"
+ patch -p1 < ${PATCH_DIR}/${patch}
+done
+
+echo "I: Build Debian Package"
+dpkg-buildpackage -uc -us -tc -b -d