Changeset 387


Ignore:
Timestamp:
06/30/07 16:43:26 (14 years ago)
Author:
bastiaans
Message:

Makefile:

  • added deb-webfrontend
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r384 r387  
    11TMPDIR = /tmp
    2 WEBDIR = /var/www/ganglia
     2WEBDIR = var/www/ganglia
    33
    44VERSION = 0.2.1
     
    99REQUIRED = ./jobarchived ./jobmond ./web
    1010
    11 debian: deb-jobmond deb-jobarchived
     11debian: deb-jobmond deb-jobarchived deb-webfrontend
    1212
    1313#rpm-binary:
     
    2828        ( cd ${TMPDIR}/.monarch_buildroot; tar jcvf ganglia_jobmonarch-${VERSION}.tar.bz2 ./ganglia_jobmonarch-${VERSION} )
    2929        cp ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.bz2 .
     30
     31deb-webfrontend:        ${REQUIRED}
     32        mkdir -p ${TMPDIR}/.monarch_buildroot/jobmonarch-webfrontend_${VERSION}-${RELEASE}/${WEBDIR}>/dev/null >/dev/null
     33        ( cd web; rsync -a --exclude=.svn . ${TMPDIR}/.monarch_buildroot/jobmonarch-webfrontend_${VERSION}-${RELEASE}/${WEBDIR} )
     34        ( cp -a pkg/deb/web/DEBIAN ${TMPDIR}/.monarch_buildroot/jobmonarch-webfrontend_${VERSION}-${RELEASE}/ )
     35        ( cd ${TMPDIR}/.monarch_buildroot/; cat jobmonarch-webfrontend_${VERSION}-${RELEASE}/DEBIAN/control | sed "s/^Version:.*$//Version: 0.2.1-1/g" >jobmonarch-webfrontend_${VERSION}-${RELEASE}/DEBIAN/control.new; mv jobmonarch-webfrontend_${VERSION}-${RELEASE}/DEBIAN/control.new jobmonarch-webfrontend_${VERSION}-${RELEASE}/DEBIAN/control )
     36        ( cd ${TMPDIR}/.monarch_buildroot/; fakeroot dpkg -b jobmonarch-webfrontend_${VERSION}-${RELEASE} )
     37        cp ${TMPDIR}/.monarch_buildroot/jobmonarch-webfrontend_${VERSION}-${RELEASE}.deb .
    3038
    3139deb-jobarchived:        ${REQUIRED}
Note: See TracChangeset for help on using the changeset viewer.