diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-02-20 23:13:39 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-02-20 23:13:39 +0000 |
commit | 2e878658a02ca4651673cad2f41a57f27557d6dc (patch) | |
tree | fd1c10f972e4e7f79775a2b3c52fe907869e6032 /rules/cvs.make | |
parent | be1d99320d214120a306d659e3eacac4411b5ad3 (diff) | |
download | ptxdist-2e878658a02ca4651673cad2f41a57f27557d6dc.tar.gz ptxdist-2e878658a02ca4651673cad2f41a57f27557d6dc.tar.xz |
* init: introduce infrastructure for multiple init methods
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9802 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/cvs.make')
-rw-r--r-- | rules/cvs.make | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/rules/cvs.make b/rules/cvs.make index c017518a2..945bbd6f2 100644 --- a/rules/cvs.make +++ b/rules/cvs.make @@ -180,12 +180,24 @@ $(STATEDIR)/cvs.targetinstall: $(cvs_targetinstall_deps_default) @$(call install_fixup,cvs,DESCRIPTION,missing) ifdef PTXCONF_CVS_INETD_SERVER + @$(call install_alternative, cvs, 0, 0, 0755, /etc/inetd.conf.d/cvs, n) +ifneq ($(PTXCONF_CVS_SERVER_REPOSITORY),"") + # add info about repository's root + @$(call install_replace, cvs, /etc/inetd.conf.d/cvs, \ + @ROOT@, \ + "--allow-root=$(PTXCONF_CVS_SERVER_REPOSITORY)" ) +else + # use cvs' default if not otherwise specified + @$(call install_replace, cvs, /etc/inetd.conf.d/cvs, \ + @ROOT@, ) +endif + ifneq ($(call remove_quotes,$(PTXCONF_CVS_SERVER_REPOSITORY)),) @$(call install_copy, cvs, 0, 0, 0755, $(PTXCONF_CVS_SERVER_REPOSITORY)) -# -# install only existing files -# + # + # install only existing files + # ifdef PTXCONF_CVS_SERVER_POPULATE_CVSROOT @$(call install_copy, cvs, 0, 0, 0750, \ $(PTXCONF_CVS_SERVER_REPOSITORY)/CVSROOT) @@ -207,31 +219,6 @@ ifdef PTXCONF_CVS_SERVER_POPULATE_CVSROOT endif endif endif -# -# Install the startup script on request only -# -ifdef PTXCONF_CVS_STARTUP_TYPE_STANDALONE -ifdef PTXCONF_ROOTFS_ETC_INITD_CVS_DEFAULT -# install the generic one - @$(call install_copy, cvs, 0, 0, 0755, \ - $(PTXDIST_TOPDIR)/generic/etc/init.d/cvs, \ - /etc/init.d/cvs, n) -endif -ifdef PTXCONF_ROOTFS_ETC_INITD_CVS_USER -# install users one - @$(call install_copy, cvs, 0, 0, 0755, \ - ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/cvs, \ - /etc/init.d/cvs, n) -endif -# -# FIXME: Is this packet the right location for the link? -# -ifneq ($(PTXCONF_ROOTFS_ETC_INITD_CVS_LINK),"") - @$(call install_copy, cvs, 0, 0, 0755, /etc/rc.d) - @$(call install_link, cvs, ../init.d/cvs, \ - /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_CVS_LINK)) -endif -endif @$(call install_copy, cvs, 0, 0, 0755, $(CVS_DIR)/src/cvs, /usr/bin/cvs) |