quantcast/qfs — pull request #22 by ssalevan (2013-02-23 02:59:52+00:00)
Title: RPM build overhaul, init scripts, and logrotate scripts

As promised, this is the second of my QFS-related pull requests, though this one's a fair bit larger than the last. ;)

This pull request significantly improves the RPM build workflow alongside supplying LSB-compliant init scripts and logrotate files (in case you're not running a RHEL derivative). I've added in a Makefile which can produce both RPMs and SRPMs directly from git HEAD, and instructions on how to build against multiple platforms via mock. In my testing, I have successfully built QFS against CentOS 6, Scientific Linux 6, and Fedora 17 with these scripts, and with this change I believe that you will soon be able to submit QFS to Fedora for wider adoption.

Several changes were necessary to ensure successful cross-platform builds and operation in a production environment:

- an RPM patch has been added to supply standardized locations for logfiles and webui assets
- on newer glibc versions, stdio.h no longer supplies fork(); thus, stdlib.h and unistd.h have been included, which enables successful builds against Fedora

I've also made efforts to accomodate the previous RPM names; the QFS client is now contained within an RPM called qfs which obsoletes qfs-client.

This is a rather big change, so let me know if you'd like me to make any changes to better suit your workflow; I'm quite happy to do so. Thanks very much for the consideration!