Skip to content

Instantly share code, notes, and snippets.

@rasputnik
Created November 20, 2013 10:43
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 rasputnik/7561122 to your computer and use it in GitHub Desktop.
Save rasputnik/7561122 to your computer and use it in GitHub Desktop.
how to build a statsd RPM using FPM.
# get required build bits
yum install -y jdk jruby nodejs rpm-build
# setup jruby (add /opt/jruby/bin to your path)
jgem install fpm
# checkout statsd
unset https_proxy
git clone https://github.com/etsy/statsd.git
cd statsd
# here's the command, comments refer to each line:
# turn a directory into an rpm called statsd
# it's noarch and the rpm should extract to /opt/statsd
# include the files and folders listed
fpm -s dir -t rpm -n statsd \
-a noarch --prefix /opt/statsd \
lib bin backends utils docs *.md *.js
# this will plop out an RPM into the directory you're on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment