summaryrefslogtreecommitdiff
path: root/packages/keepalived/build.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-03 18:32:07 +0100
committerChristian Poessinger <christian@poessinger.com>2022-01-03 18:32:07 +0100
commite890cbd5099e296bc2a614d3b7871e1d577aa5f3 (patch)
tree4d8221203e9d7ce37a936602c343b0bd213d5f2a /packages/keepalived/build.sh
parentd137540caa0c5c0405238d77d6e04cd42f2c7685 (diff)
downloadvyos-build-e890cbd5099e296bc2a614d3b7871e1d577aa5f3.tar.gz
vyos-build-e890cbd5099e296bc2a614d3b7871e1d577aa5f3.zip
keepalived: T4128: build package from upstream source
Diffstat (limited to 'packages/keepalived/build.sh')
-rwxr-xr-xpackages/keepalived/build.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/keepalived/build.sh b/packages/keepalived/build.sh
new file mode 100755
index 00000000..84d22ef5
--- /dev/null
+++ b/packages/keepalived/build.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -x
+CWD=$(pwd)
+set -e
+
+SRC=keepalived
+
+if [ ! -d ${SRC} ]; then
+ echo "source directory does not exists, please 'git clone'"
+ exit 1
+fi
+
+echo "I: Copy Debian build system"
+cp -a debian ${SRC}
+
+cd ${SRC}
+echo "I: Retrieve version information from Git"
+dch -v "1:$(git describe --tags | cut -c2-)" "VyOS build"
+
+# Build Debian FRR package
+echo "I: Build VyOS keepalived Package"
+dpkg-buildpackage -us -uc -tc -b