summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {} \;