diff options
author | Kim <kim.sidney@gmail.com> | 2021-09-27 13:19:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 13:19:13 +0200 |
commit | 78aa04e8a2cbfe770ce19d26d00deee8235495b5 (patch) | |
tree | 61afcad0e6995cb5b98d38904721cac0c4947088 /packages/openvpn-otp | |
parent | a3841acd8b627172214ce641c803edaaed628172 (diff) | |
download | vyos-build-78aa04e8a2cbfe770ce19d26d00deee8235495b5.tar.gz vyos-build-78aa04e8a2cbfe770ce19d26d00deee8235495b5.zip |
packages: update openvpn-otp
Diffstat (limited to 'packages/openvpn-otp')
-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} |