diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2007-01-02 12:22:42 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2007-01-02 12:22:42 +0000 |
commit | b5a542946ab6e63ae0c1093f1126e7dac5b14948 (patch) | |
tree | 27cf5675887d976da73bf985bb16cd09f92ed3bb /rules/cvs.make | |
parent | 6aa9f6d9043cfc8346dfe2123593a64ec5f27516 (diff) | |
download | ptxdist-b5a542946ab6e63ae0c1093f1126e7dac5b14948.tar.gz ptxdist-b5a542946ab6e63ae0c1093f1126e7dac5b14948.tar.xz |
* cvs improving some features
- remove cvs' internal zlib to speed up build
- adding support to configure cvs' runtime
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6604 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/cvs.make')
-rw-r--r-- | rules/cvs.make | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/rules/cvs.make b/rules/cvs.make index 6e6c85d7e..0f1a4d2ca 100644 --- a/rules/cvs.make +++ b/rules/cvs.make @@ -110,8 +110,16 @@ else CVS_AUTOCONF += --disable-rootcommit endif +# +# if we are sure we have a tmp/ directory we +# forward cvs to use it +# If not, cvs probes at runtime +# +ifdef PTXCONF_ROOTFS_TMP + CVS_AUTOCONF += --with-tmpdir=/tmp +endif + # missing switches yet -# --with-tmpdir # --with-rsh # --with-umask # --with-cvs-admin-group=GROUP @@ -150,6 +158,13 @@ $(STATEDIR)/cvs.install: $(cvs_install_deps_default) # Target-Install # ---------------------------------------------------------------------------- +# +# This is a list of files cvs will call +# when specific actions occure +# +CVS_CVSROOT_FILES := commitinfo cvsignore cvswrappers editinfo history loginfo \ + modules rcsinfo taginfo + cvs_targetinstall: $(STATEDIR)/cvs.targetinstall $(STATEDIR)/cvs.targetinstall: $(cvs_targetinstall_deps_default) @@ -167,6 +182,29 @@ $(STATEDIR)/cvs.targetinstall: $(cvs_targetinstall_deps_default) ifdef PTXCONF_CVS_INETD_SERVER ifneq ($(call remove_quotes,$(PTXCONF_CVS_SERVER_REPOSITORY)),) @$(call install_copy, cvs, 0, 0, 0755, $(PTXCONF_CVS_SERVER_REPOSITORY)) + +# +# install only existing files +# +ifdef PTXCONF_CVS_SERVER_POPULATE_CVSROOT + @$(call install_copy, cvs, 0, 0, 0750, \ + $(PTXCONF_CVS_SERVER_REPOSITORY)/CVSROOT) + @for i in ${CVS_CVSROOT_FILES}; do \ + if [ -f $(PTXDIST_WORKSPACE)/projectroot/cvsroot/$$i ]; then \ + $(call install_copy, cvs, 0, 0,0750, \ + ${PTXDIST_WORKSPACE}/projectroot/cvsroot/$$i, \ + $(PTXCONF_CVS_SERVER_REPOSITORY)/CVSROOT/$$i,n); \ + fi; \ + done; + + @for i in config passwd readers writers; do \ + if [ -f $(PTXDIST_WORKSPACE)/projectroot/cvsroot/$$i ]; then \ + $(call install_copy, cvs, 0, 0,0640, \ + ${PTXDIST_WORKSPACE}/projectroot/cvsroot/$$i, \ + $(PTXCONF_CVS_SERVER_REPOSITORY)/CVSROOT/$$i,n); \ + fi; \ + done; +endif endif endif # |