Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.