summaryrefslogtreecommitdiff
path: root/packages/keepalived/build.sh
blob: 84d22ef55a89ae5c77acc44321f34462f98ab2de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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