Created
May 24, 2016 20:54
-
-
Save nbrownus/b8da3cb8405ea34ed4ca8a28ce34cc25 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.31" | |
BUILD="slack1" | |
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/grondo/pdsh/archive/pdsh-${VERSION}.tar.gz" | |
tar -xvf "pdsh-${VERSION}.tar.gz" | |
cd "pdsh-pdsh-${VERSION}" | |
./configure --with-ssh --with-dshgroups --without-rsh --with-rcmd-rank-list="ssh" | |
make | |
mkdir -p "$PWD/rootfs/usr/bin" | |
mv "$PWD/src/pdsh/pdsh" "$PWD/rootfs/usr/bin" | |
fakeroot fpm -C "$PWD/rootfs" \ | |
-m "Nate Brown <[email protected]>" \ | |
-n "pdsh" -v "$VERSION-$BUILD" \ | |
-p "$OLDESTPWD/pdsh_${VERSION}-${BUILD}_amd64.deb" \ | |
-s "dir" -t "deb" \ | |
"usr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment