Skip to content

Commit

Permalink
Add custom var to define the web_prefixdir.
Browse files Browse the repository at this point in the history
* I like to put my ganglia-web install in a non-standard location so I added
  custom_web_prefixdir to the spec so all you need to do is pass a define to
  rpmbuild such as:
  rpmbuild -bb --define 'custom_web_prefixdir /var/www/ganglia' ganglia-web.spec
  • Loading branch information
imeyer committed May 21, 2012
1 parent 9f32c43 commit c35ddf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ganglia-web.spec.in
Expand Up @@ -12,6 +12,8 @@ Obsoletes: ganglia-webfrontend
Requires: php >= 5, php-gd
%if 0%{?suse_version}
%define web_prefixdir /srv/www/htdocs/ganglia
%elseif %{?custom_web_prefixdir}
%define web_prefixdir %{custom_web_prefixdir}
%else
%define web_prefixdir /var/www/html/ganglia
%endif
Expand Down

0 comments on commit c35ddf6

Please sign in to comment.