Last active
August 31, 2015 00:41
-
-
Save rcrowley/414e3a1c2279a8b63195 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
VERSION="1.9.14" | |
BUILD="slack2" | |
set -e -x | |
OLDESTPWD="$PWD" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -LO "https://dl.duosecurity.com/duo_unix-$VERSION.tar.gz" | |
tar xf "duo_unix-$VERSION.tar.gz" | |
cd "duo_unix-$VERSION" | |
./configure --enable-lib64="no" --prefix="/usr" --sysconfdir="/etc" --with-pam="/lib/security" | |
make | |
mkdir "rootfs" | |
make install DESTDIR="$PWD/rootfs" | |
fakeroot fpm -C "rootfs" \ | |
-a "amd64" \ | |
-m "Richard Crowley <[email protected]>" \ | |
-n "duo-unix" -v "$VERSION-$BUILD" \ | |
-p "$OLDESTPWD/duo-unix_${VERSION}-${BUILD}_amd64.deb" \ | |
-s "dir" -t "deb" "lib" "usr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment