/[pdpsoft]/nl.nikhef.pdp.fetchcrl/trunk/Makefile
ViewVC logotype

Diff of /nl.nikhef.pdp.fetchcrl/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/fetchcrl/Makefile revision 1878 by davidg, Tue Aug 10 07:03:43 2010 UTC nl.nikhef.pdp.fetchcrl/trunk/Makefile revision 2648 by davidg, Tue Jul 2 18:52:29 2013 UTC
# Line 25  tar:    clean configure fetch-crl Line 25  tar:    clean configure fetch-crl
25          -chmod -R u+rw /var/tmp/${RELEASE}          -chmod -R u+rw /var/tmp/${RELEASE}
26          cd /var/tmp/ ; tar  cvfz ${RELEASE}.tar.gz --exclude=CVS \          cd /var/tmp/ ; tar  cvfz ${RELEASE}.tar.gz --exclude=CVS \
27                      --exclude='*~' --exclude='#*#' --exclude='20*' ${RELEASE}                      --exclude='*~' --exclude='#*#' --exclude='20*' ${RELEASE}
28            cd /var/tmp/ ; perl -pe '/^Req/ and s/chkconfig/aaa_base/g' < ${RELEASE}/fetch-crl.spec > ${RELEASE}/fetch-crl.spec.suse ; mv ${RELEASE}/fetch-crl.spec.suse ${RELEASE}/fetch-crl.spec ; tar  cvfz ${RELEASE}.suse.tar.gz --exclude=CVS \
29                        --exclude='*~' --exclude='#*#' --exclude='20*' ${RELEASE}
30          cp /var/tmp/${RELEASE}.tar.gz .          cp /var/tmp/${RELEASE}.tar.gz .
31            cp /var/tmp/${RELEASE}.suse.tar.gz .
32    
33  #####################################################################  #####################################################################
34  # Create substitution script  # Create substitution script
# Line 67  fetch-crl: $(SOURCEFILES) Line 70  fetch-crl: $(SOURCEFILES)
70  configure: $(shell find . -name \*\.cin 2>/dev/null | sed -e 's/.cin//' || echo)  configure: $(shell find . -name \*\.cin 2>/dev/null | sed -e 's/.cin//' || echo)
71    
72  install: configure  install: configure
73          install -m755 -D fetch-crl           $(PREFIX)/sbin/fetch-crl          mkdir -p $(ETC)
74          install -m644 -D fetch-crl-cron.cron $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-cron.cron          mkdir -p $(PREFIX)
75          install -m644 -D fetch-crl-cron.init $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-cron.init          mkdir -p $(PREFIX)/sbin
76          install -m644 -D fetch-crl-boot.init $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-boot.init          mkdir -p $(PREFIX)/share
77          install -m644 -D fetch-crl.8         $(PREFIX)/share/man/man8/fetch-crl.8          mkdir -p $(PREFIX)/share/doc
78          install -m644 -D fetch-crl.cnf       $(ETC)/fetch-crl.conf          mkdir -p $(PREFIX)/share/doc/$(RELEASE)
79            mkdir -p $(PREFIX)/share/man
80            mkdir -p $(PREFIX)/share/man/man8
81            install -m755 fetch-crl              $(PREFIX)/sbin/fetch-crl
82            install -m755 clean-crl              $(PREFIX)/sbin/clean-crl
83            install -m644 fetch-crl-cron.cron    $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-cron.cron
84            install -m644 fetch-crl-cron.init    $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-cron.init
85            install -m644 fetch-crl-boot.init    $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-boot.init
86            install -m644 fetch-crl.8            $(PREFIX)/share/man/man8/fetch-crl.8
87            install -m644 fetch-crl.cnf          $(ETC)/fetch-crl.conf
88          install -m644 fetch-crl.cnf.example  $(PREFIX)/share/doc/$(RELEASE)/fetch-crl.conf.example          install -m644 fetch-crl.cnf.example  $(PREFIX)/share/doc/$(RELEASE)/fetch-crl.conf.example
89          install -m644 README                 $(PREFIX)/share/doc/$(RELEASE)/README          install -m644 README                 $(PREFIX)/share/doc/$(RELEASE)/README
90          install -m644 NOTICE                 $(PREFIX)/share/doc/$(RELEASE)/NOTICE          install -m644 NOTICE                 $(PREFIX)/share/doc/$(RELEASE)/NOTICE
# Line 82  install: configure Line 94  install: configure
94    
95  rpm: tar  rpm: tar
96          rpmbuild -ta ${RELEASE}.tar.gz          rpmbuild -ta ${RELEASE}.tar.gz
97            rpmbuild -ta -D "dist .suse" ${RELEASE}.suse.tar.gz
98          @if [ -f ${RPMTOPDIR}/SRPMS/${NAME}-${VERSION}-${PATCHLEVEL}.src.rpm ] ; then \          @if [ -f ${RPMTOPDIR}/SRPMS/${NAME}-${VERSION}-${PATCHLEVEL}.src.rpm ] ; then \
99            mv ${RPMTOPDIR}/SRPMS/${NAME}*-${VERSION}-${PATCHLEVEL}.src.rpm . ;  \            mv ${RPMTOPDIR}/SRPMS/${NAME}*-${VERSION}-${PATCHLEVEL}.src.rpm . ;  \
100          fi          fi
# Line 93  rpm: tar Line 106  rpm: tar
106          fi          fi
107          @if [ -f ${RPMTOPDIR}/RPMS/noarch/${NAME}-${VERSION}-${PATCHLEVEL}.noarch.rpm ] ; then \          @if [ -f ${RPMTOPDIR}/RPMS/noarch/${NAME}-${VERSION}-${PATCHLEVEL}.noarch.rpm ] ; then \
108            mv ${RPMTOPDIR}/RPMS/noarch/${NAME}*-${VERSION}-${PATCHLEVEL}.noarch.rpm . ;  \            mv ${RPMTOPDIR}/RPMS/noarch/${NAME}*-${VERSION}-${PATCHLEVEL}.noarch.rpm . ;  \
109              mv ${RPMTOPDIR}/RPMS/noarch/${NAME}*-${VERSION}-${PATCHLEVEL}.suse.noarch.rpm . ;  \
110          fi          fi
111          @echo DO NOT FORGET TO SIGN THE RPM WITH rpm --resign ${NAME}*-${VERSION}-${PATCHLEVEL}.noarch.rpm          @echo DO NOT FORGET TO SIGN THE RPM WITH rpm --resign ${NAME}*-${VERSION}-${PATCHLEVEL}.noarch.rpm
112    
113  clean:  clean:
114          -rm -rf *.tar.gz *.rpm fetch-crl config.sh fetch-crl.spec          -rm -rf *.tar.gz *.rpm fetch-crl clean-crl config.sh fetch-crl.spec

Legend:
Removed from v.1878  
changed lines
  Added in v.2648

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28