Changeset 844


Ignore:
Timestamp:
04/28/13 08:56:48 (8 years ago)
Author:
olahaye
Message:

[Makefile] Added srpm: rule and fixed web interface ownership

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/Makefile

    r841 r844  
    1313#
    1414GANGLIA_ROOT = $(PREFIX)/ganglia
     15GANGLIA_USER = ganglia.ganglia
     16HTTPD_USER   = apache.apache
    1517
    1618# Where jobarchived RRDS are stored
     
    5860rpm: tarball-bzip
    5961        rpmbuild -tb ../ganglia_jobmonarch-${VERSION}.tar.bz2
     62
     63srpm: tarball-bzip
     64        rpmbuild -ts --define '%dist %{nil}' ../ganglia_jobmonarch-${VERSION}.tar.bz2
    6065
    6166deb: debian
     
    120125        @install -m 0755 -d $(DESTDIR)$(JOBARCHIVE_RRDS)
    121126        @#
    122         @# Files for ganglia (adapt to rpm or deb or unknown ganglia packaging)
     127        @# Files for ganglia
    123128        @#
    124129        @echo "\nInstalling Ganglia web interface to $(GANGLIA_ROOT) ."
    125130        @install -m 0755 -d $(DESTDIR)$(GANGLIA_ROOT)
     131        @chown -R $(GANGLIA_USER) ./web
     132        @chown $(HTTPD_USER) ./web/addons/job_monarch/dwoo/compiled
    126133        @(cd web; rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php . $(DESTDIR)$(GANGLIA_ROOT)/)
    127134        @#
Note: See TracChangeset for help on using the changeset viewer.