diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-03 18:32:07 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-01-03 18:32:07 +0100 |
commit | e890cbd5099e296bc2a614d3b7871e1d577aa5f3 (patch) | |
tree | 4d8221203e9d7ce37a936602c343b0bd213d5f2a /packages/keepalived/build.sh | |
parent | d137540caa0c5c0405238d77d6e04cd42f2c7685 (diff) | |
download | vyos-build-e890cbd5099e296bc2a614d3b7871e1d577aa5f3.tar.gz vyos-build-e890cbd5099e296bc2a614d3b7871e1d577aa5f3.zip |
keepalived: T4128: build package from upstream source
Diffstat (limited to 'packages/keepalived/build.sh')
-rwxr-xr-x | packages/keepalived/build.sh | 21 |
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 |