Skip to content

Instantly share code, notes, and snippets.

@nbrownus
Last active August 29, 2015 13:56
Show Gist options
  • Save nbrownus/8816099 to your computer and use it in GitHub Desktop.
Save nbrownus/8816099 to your computer and use it in GitHub Desktop.
Make a .deb from kibana-latest.zip
# Run this in a path you don't care about, things may get deleted!
VERSION="3.0.0"
BUILD="betable2"
set -e -x
ORIGPWD="$(pwd)"
cd "$(mktemp -d)"
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM
curl -L -O "https://download.elasticsearch.org/kibana/kibana/kibana-${VERSION}.zip"
unzip "kibana-${VERSION}.zip"
mv "kibana-${VERSION}" "kibana"
rm -f "$ORIGPWD/kibana_${VERSION}-${BUILD}_amd64.deb"
fakeroot fpm -m "Nate Brown <nate@betable.com>" \
-n "kibana" -v "$VERSION-$BUILD" \
-p "$ORIGPWD/kibana_${VERSION}-${BUILD}_amd64.deb" \
--prefix "/usr/local/share" \
-s "dir" -t "deb" "kibana"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment