diff options
Diffstat (limited to 'packages/openvpn-otp/build-openvpn-otp.sh')
-rwxr-xr-x | packages/openvpn-otp/build-openvpn-otp.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/openvpn-otp/build-openvpn-otp.sh b/packages/openvpn-otp/build-openvpn-otp.sh index 76bc3a7f..6cd8ca97 100755 --- a/packages/openvpn-otp/build-openvpn-otp.sh +++ b/packages/openvpn-otp/build-openvpn-otp.sh @@ -9,9 +9,17 @@ if [ ! -d ${SRC} ]; then exit 1 fi +for pkt in debhelper libssl-dev openvpn +do + dpkg -s $pkt 2>&1 >/dev/null + if [ $? -ne 0 ]; then + echo "Package $pkt not installed - required" + exit 1 + fi +done + # Build instructions as per https://github.com/evgeny-gridasov/openvpn-otp/blob/master/README.md cd ${SRC} -apt-get -y install debhelper libssl-dev openvpn ./autogen.sh ./configure --prefix=/usr make @@ -24,7 +32,7 @@ fpm --input-type dir --output-type deb --name openvpn-otp \ --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \ --description "OpenVPN OTP Authentication support." \ --depends openvpn --architecture $(dpkg --print-architecture) \ - --version $(git describe --always) --deb-compression gz usr + --version $(git describe --tags --always) --deb-compression gz usr cp *.deb ${CWD} |