Packaging basics
What's fpm?
Installing on centos6
building an RPM
Adding a post-config script to your RPM