Created
July 10, 2015 02:00
-
-
Save dopey/448f26891d6450f22ec7 to your computer and use it in GitHub Desktop.
grafana deb packager
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
# Run this in a path you don't care about, things may get deleted! | |
VERSION="1.9.1" | |
BUILD="betable3" | |
set -e -x | |
ORIGPWD="$(pwd)" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -LO "http://grafanarel.s3.amazonaws.com/grafana-$VERSION.tar.gz" | |
tar xf "grafana-$VERSION.tar.gz" | |
mv "grafana-$VERSION" grafana | |
rm -f "$ORIGPWD/grafana_${VERSION}-${BUILD}_amd64.deb" | |
fakeroot fpm -m "Nate Brown <[email protected]>" \ | |
-n "grafana" -v "$VERSION-$BUILD" \ | |
-p "$ORIGPWD/grafana_${VERSION}-${BUILD}_amd64.deb" \ | |
--prefix "/usr/local/share" \ | |
-s "dir" -t "deb" "grafana" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment