/[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

revision 2648 by davidg, Tue Jul 2 18:52:29 2013 UTC revision 2818 by davidg, Wed Dec 23 15:16:21 2015 UTC
# Line 12  RPMTOPDIR=$(shell rpm --eval '%_topdir') Line 12  RPMTOPDIR=$(shell rpm --eval '%_topdir')
12  PREFIX=/usr  PREFIX=/usr
13  ETC=/etc  ETC=/etc
14  CACHE=/var/cache  CACHE=/var/cache
15  FILES=fetch-crl fetch-crl.8 fetch-crl-cron.cron fetch-crl-cron.init fetch-crl-boot.init fetch-crl.cnf fetch-crl.cnf.example NOTICE LICENSE README CHANGES fetch-crl.spec Makefile  FILES=fetch-crl fetch-crl.8 fetch-crl-cron.cron fetch-crl-cron.init fetch-crl-boot.init fetch-crl.cnf fetch-crl.cnf.example NOTICE LICENSE README CHANGES fetch-crl.spec Makefile clean-crl clean-crl.8
16  # source files that will constitute fetch-crl as a single file, with the primary perl script first  # source files that will constitute fetch-crl as a single file, with the primary perl script first
17  SOURCEFILES=fetch-crl3.pl CRL.pm CRLWriter.pm ConfigTiny.pm FCLog.pm OSSL.pm TrustAnchor.pm base64.pm  SOURCEFILES=fetch-crl3.pl CRL.pm CRLWriter.pm ConfigTiny.pm FCLog.pm OSSL.pm TrustAnchor.pm base64.pm
18    
# 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 \          cd /var/tmp/ ; perl -pe '/^Req/ and s/chkconfig/aaa_base/g; s/_defaultdocdir\}/_usr\}\/share\/doc/;' < ${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}                      --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 .          cp /var/tmp/${RELEASE}.suse.tar.gz .
# Line 84  install: configure Line 84  install: configure
84          install -m644 fetch-crl-cron.init    $(PREFIX)/share/doc/$(RELEASE)/fetch-crl-cron.init          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          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          install -m644 fetch-crl.8            $(PREFIX)/share/man/man8/fetch-crl.8
87            install -m644 clean-crl.8            $(PREFIX)/share/man/man8/clean-crl.8
88          install -m644 fetch-crl.cnf          $(ETC)/fetch-crl.conf          install -m644 fetch-crl.cnf          $(ETC)/fetch-crl.conf
89          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
90          install -m644 README                 $(PREFIX)/share/doc/$(RELEASE)/README          install -m644 README                 $(PREFIX)/share/doc/$(RELEASE)/README
# Line 93  install: configure Line 94  install: configure
94          mkdir -p $(CACHE)/fetch-crl && chmod 0700 $(CACHE)/fetch-crl          mkdir -p $(CACHE)/fetch-crl && chmod 0700 $(CACHE)/fetch-crl
95    
96  rpm: tar  rpm: tar
97          rpmbuild -ta ${RELEASE}.tar.gz          rpmbuild -ta --eval "%undefine dist" ${RELEASE}.tar.gz
98          rpmbuild -ta -D "dist .suse" ${RELEASE}.suse.tar.gz          rpmbuild -ta -D "dist .suse" ${RELEASE}.suse.tar.gz
99          @if [ -f ${RPMTOPDIR}/SRPMS/${NAME}-${VERSION}-${PATCHLEVEL}.src.rpm ] ; then \          @if [ -f ${RPMTOPDIR}/SRPMS/${NAME}-${VERSION}-${PATCHLEVEL}.src.rpm ] ; then \
100            mv ${RPMTOPDIR}/SRPMS/${NAME}*-${VERSION}-${PATCHLEVEL}.src.rpm . ;  \            mv ${RPMTOPDIR}/SRPMS/${NAME}*-${VERSION}-${PATCHLEVEL}.src.rpm . ;  \
# Line 111  rpm: tar Line 112  rpm: tar
112          @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
113    
114  clean:  clean:
115          -rm -rf *.tar.gz *.rpm fetch-crl clean-crl config.sh fetch-crl.spec          -rm -rf *.tar.gz *.rpm fetch-crl fetch-crl3.pl clean-crl config.sh fetch-crl.spec

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

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