-
-
Save wadey/e02d4b19f7819f839deb0b106f219be1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION="2.3.0" | |
SHA="5e2d679" | |
BUILD="$SHA-slack2" | |
set -e -x | |
DIRNAME="$(cd "$(dirname "$0")" && pwd)" | |
OLDESTPWD="$PWD" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -LO "https://github.com/duosecurity/duo_openvpn/tarball/$SHA" | |
/bin/tar -xvf "$SHA" | |
cd "duosecurity-duo_openvpn-$SHA" | |
patch -p1 <<EOF | |
--- a/duo_openvpn.py 2019-12-18 18:19:21.000000000 +0000 | |
+++ b/duo_openvpn.py 2020-01-07 17:25:27.037800041 +0000 | |
@@ -1,4 +1,4 @@ | |
-#!/usr/bin/env python | |
+#!/usr/bin/env python3 | |
# | |
# duo_openvpn.py | |
# Duo OpenVPN | |
EOF | |
make | |
make install DESTDIR="$PWD/rootfs" | |
fakeroot fpm -C "$PWD/rootfs" \ | |
-m "Wade Simmons <[email protected]>" \ | |
-n "duo-vpn" -v "$VERSION-$BUILD" \ | |
-p "$OLDESTPWD/duo-vpn_${VERSION}-${BUILD}_amd64.deb" \ | |
-s "dir" -t "deb" \ | |
"opt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment