Skip to content

Instantly share code, notes, and snippets.

@Darkflib
Last active December 11, 2015 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Darkflib/4650944 to your computer and use it in GitHub Desktop.
Save Darkflib/4650944 to your computer and use it in GitHub Desktop.
requires fpm (with rubygems installed: gem install fpm) Example packaging with fpm (https://github.com/jordansissel/fpm)
NAME=kibana
VERSION=0.1.5
MAINTAINER="Mike Preston <mike@sysdom.com>"
URL="https://domain.com/mikepreston/kibana-packaging"
DOWNLOADURL="https://github.com/rashidkpc/Kibana/tarball/v0.1.5"
.PHONY: package
package:
#rm -f $(NAME)-*.tgz
wget -O $(NAME)-$(VERSION).tgz -N https://github.com/rashidkpc/Kibana/tarball/v0.1.5
tar xzf $(NAME)-$(VERSION).tgz
mv rashidkpc-Kibana-* $(NAME)
fpm -s dir -t deb -n $(NAME) -v $(VERSION) -m $(MAINTAINER) --url $(URL) --prefix /var/www/ -d php5-curl -d apache2 -d apache2-mpm-prefork -d apache2.2-common -d libapache2-mod-php5 $(NAME)/
clean:
rm -fr kibana*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment