summaryrefslogtreecommitdiff
path: root/packages/hsflowd/build.sh
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-16 07:49:38 +0100
committerChristian Breunig <christian@breunig.cc>2023-03-16 06:58:36 +0000
commite887f582cfd7de39dd2ac6d6ced1c121b2e1c37e (patch)
tree2208aa7cc92acb55304643320595b3b0999cdb8a /packages/hsflowd/build.sh
parent9f542e620429305f7ed47924121f6bcd1d7823db (diff)
downloadvyos-build-e887f582cfd7de39dd2ac6d6ced1c121b2e1c37e.tar.gz
vyos-build-e887f582cfd7de39dd2ac6d6ced1c121b2e1c37e.zip
hsflowd: T5086: ARM package has aarch64 extension, rename to arm64
Diffstat (limited to 'packages/hsflowd/build.sh')
-rwxr-xr-xpackages/hsflowd/build.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/hsflowd/build.sh b/packages/hsflowd/build.sh
index 75af892d..0693b2fe 100755
--- a/packages/hsflowd/build.sh
+++ b/packages/hsflowd/build.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/bash
CWD=$(pwd)
set -e
@@ -18,3 +18,10 @@ sudo apt-get install -y libpcap0.8-dev
# make deb FEATURES="NFLOG PCAP TCP DOCKER KVM OVS DBUS SYSTEMD DROPMON PSAMPLE DENT CONTAINERD"
echo "I: Build VyOS hsflowd Package"
make deb FEATURES="PCAP"
+
+# hsflowd builds ARM package as aarch64 extension, rename to arm64
+for file in *.deb ; do mv $file ${file//aarch64/arm64} || true ; done
+
+# Do not confuse *.deb upload logic by removing build in debian packages ...
+# ugly but works
+find src -name "*.deb" -type f -exec rm {} \;