ganglia/ganglia-web — pull request #92 by imeyer (2012-05-21 02:07:53+00:00)
Title: Add definable web prefixdir in rpm spec

I often want to install my ganglia-web to a directory such as ```/var/www/ganglia``` but there's no easy way to do it without hand editing the spec. The changes I made allow you to do ```rpmbuild -bb ganglia-web.spec --define "custom_web_prefixdir /var/www/ganglia"``` and it will do the right thing. If you don't define it, the default will be ```/var/www/html/ganglia```.

I also changed the Makefile and made a variable ```$(DIST_NAME)``` and set it to ```ganglia-web```. It's not used except in ```DIST_DIR = $(DIST_NAME)-$(GWEB_VERSION)``` but it looks cleaner to me.

Was there a reason to include the ```debian/*``` contents? Cause I just excluded it since it didn't seem to need to be there when building an RPM from the tar.gz. If it is needed, I can make a new target to build a tar.gz for RPMs only.