Changeset 389


Ignore:
Timestamp:
06/30/07 17:25:50 (14 years ago)
Author:
bastiaans
Message:

pkg/rpm/jobmonarch-jobmond.spec:

  • install in usr/bin like deb pkg

Makefile:

  • added rpm-jobmond
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r387 r389  
    1111debian: deb-jobmond deb-jobarchived deb-webfrontend
    1212
    13 #rpm-binary:
     13rpm: rpm-jobmond
    1414
    15 #all:   tarball debian-binary rpm-binary
     15all:    tarball debian rpm
    1616
    1717tarball:        tarball-gzip tarball-bzip
     
    6565        cp ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond_${VERSION}-${RELEASE}.deb .
    6666
     67rpm-jobmond:    ${REQUIRED}
     68        mkdir -p ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}>/dev/null >/dev/null
     69        mkdir -p ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/etc/init.d >/dev/null
     70        mkdir -p ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/usr/bin >/dev/null
     71        install -m 755 jobmond/jobmond.py ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/usr/bin
     72        ( cd ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/usr/bin; ln -s jobmond.py jobmond || true)
     73        install jobmond/jobmond.conf ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/etc
     74        install pkg/init.d/jobmond ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/etc/init.d
     75        cp pkg/rpm/jobmonarch-jobmond.spec \
     76        ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}/jobmonarch-jobmond-${VERSION}-${RELEASE}.spec
     77        ( cd ${TMPDIR}/.monarch_buildroot/; \
     78        cat jobmonarch-jobmond-${VERSION}-${RELEASE}/jobmonarch-jobmond-${VERSION}-${RELEASE}.spec \
     79        | sed "s/^Buildroot:.*$//Buildroot: \${TMPDIR}\/\.monarch_buildroot\/jobmonarch-jobmond-${VERSION}-${RELEASE}/g" \
     80        | sed "s/^Version:.*$//Version: ${VERSION}/g" \
     81        | sed "s/^Release:.*$//Release: ${RELEASE}/g" \
     82        >jobmonarch-jobmond-${VERSION}-${RELEASE}/jobmonarch-jobmond-${VERSION}-${RELEASE}.spec.new; \
     83        mv jobmonarch-jobmond-${VERSION}-${RELEASE}/jobmonarch-jobmond-${VERSION}-${RELEASE}.spec.new \
     84        jobmonarch-jobmond-${VERSION}-${RELEASE}/jobmonarch-jobmond-${VERSION}-${RELEASE}.spec )
     85        ( cd ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}; \
     86        fakeroot rpmbuild -bb jobmonarch-jobmond-${VERSION}-${RELEASE}.spec )
     87        cp ${TMPDIR}/.monarch_buildroot/jobmonarch-jobmond-${VERSION}-${RELEASE}.*.rpm .
     88
    6789clean:  ${TMPDIR}/.monarch_buildroot
    6890        rm -rf ${TMPDIR}/.monarch_buildroot
  • trunk/pkg/rpm/jobmonarch-jobmond.spec

    r378 r389  
    4848%files
    4949"/etc/init.d/jobmond"
    50 "/usr/sbin/jobmond.py"
    51 "/usr/sbin/jobmond"
     50"/usr/bin/jobmond.py"
     51"/usr/bin/jobmond"
    5252%config "/etc/jobmond.conf"
Note: See TracChangeset for help on using the changeset viewer.