summaryrefslogtreecommitdiff
path: root/packages/keepalived/build.sh
diff options
context:
space:
mode:
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