diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2006-10-22 20:35:42 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2006-10-22 20:35:42 +0000 |
commit | 44e9bfd63ecab4f06be56cc17b369ab8d2c1e6de (patch) | |
tree | d0588e68d1f0aed8165aec4172d5eb58546a5681 /rules/cvs.make | |
parent | 00973e37efd0e606eac0f900f496a33221dd966d (diff) | |
download | ptxdist-44e9bfd63ecab4f06be56cc17b369ab8d2c1e6de.tar.gz ptxdist-44e9bfd63ecab4f06be56cc17b369ab8d2c1e6de.tar.xz |
adding cvs
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6212 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/cvs.make')
-rw-r--r-- | rules/cvs.make | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/rules/cvs.make b/rules/cvs.make new file mode 100644 index 000000000..60555f803 --- /dev/null +++ b/rules/cvs.make @@ -0,0 +1,185 @@ +# -*-makefile-*- +# $Id: template 6001 2006-08-12 10:15:00Z mkl $ +# +# Copyright (C) 2006 by Juergen Beisert +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_CVS) += cvs + +# +# Paths and names +# +CVS_VERSION := 1.11.22 +CVS := cvs-$(CVS_VERSION) +CVS_SUFFIX := tar.bz2 +CVS_URL := ftp://ftp.gnu.org/non-gnu/cvs/source/stable/$(VS_VERSION)/$(CVS).$(CVS_SUFFIX) +CVS_SOURCE := $(SRCDIR)/$(CVS).$(CVS_SUFFIX) +CVS_DIR := $(BUILDDIR)/$(CVS) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +cvs_get: $(STATEDIR)/cvs.get + +$(STATEDIR)/cvs.get: $(cvs_get_deps_default) + @$(call targetinfo, $@) + @$(call touch, $@) + +$(CVS_SOURCE): + @$(call targetinfo, $@) + @$(call get, CVS) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +cvs_extract: $(STATEDIR)/cvs.extract + +$(STATEDIR)/cvs.extract: $(cvs_extract_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(CVS_DIR)) + @$(call extract, CVS) + @$(call patchin, CVS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +cvs_prepare: $(STATEDIR)/cvs.prepare + +CVS_PATH := PATH=$(CROSS_PATH) +CVS_ENV := $(CROSS_ENV) + +# +# autoconf +# +CVS_AUTOCONF := $(CROSS_AUTOCONF_USR) \ + --prefix=/usr \ + --disable-dependency-tracking \ + --enable-case-sensitivity + +ifdef PTXCONF_CVS_NDBM + CVS_AUTOCONF += --enable-cvs-ndbm +else + CVS_AUTOCONF += --disable-cvs-ndbm +endif + +ifdef PTXCONF_CVS_CLIENT + CVS_AUTOCONF += --enable-client +else + CVS_AUTOCONF += --disable-client +endif + +ifdef PTXCONF_CVS_PSSWRD_CLIENT + CVS_AUTOCONF += --enable-password-authenticated-client +else + CVS_AUTOCONF += --disable-password-authenticated-client +endif + +ifdef PTXCONF_CVS_SERVER + CVS_AUTOCONF += --enable-server +else + CVS_AUTOCONF += --disable-server +endif + +ifdef PTXCONF_CVS_FLOW_CONTROL + CVS_AUTOCONF += --enable-server-flow-control=1M,2M +else + CVS_AUTOCONF += --disable-server-flow-control +endif + +ifdef PTXCONF_CVS_ENCRYPTION + CVS_AUTOCONF += --enable-encryption +else + CVS_AUTOCONF += --disable-encryption +endif + +ifdef PTXCONF_CVS_ROOTCOMMIT + CVS_AUTOCONF += --enable-rootcommit +else + CVS_AUTOCONF += --disable-rootcommit +endif + +# missing switches yet +# --with-tmpdir +# --with-rsh +# --with-umask +# --with-cvs-admin-group=GROUP +# +$(STATEDIR)/cvs.prepare: $(cvs_prepare_deps_default) + @$(call targetinfo, $@) + @$(call clean, $(CVS_DIR)/config.cache) + cd $(CVS_DIR) && \ + $(CVS_PATH) $(CVS_ENV) \ + ./configure $(CVS_AUTOCONF) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +cvs_compile: $(STATEDIR)/cvs.compile + +$(STATEDIR)/cvs.compile: $(cvs_compile_deps_default) + @$(call targetinfo, $@) + cd $(CVS_DIR) && $(CVS_PATH) $(MAKE) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +cvs_install: $(STATEDIR)/cvs.install + +$(STATEDIR)/cvs.install: $(cvs_install_deps_default) + @$(call targetinfo, $@) + @$(call install, CVS) + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +cvs_targetinstall: $(STATEDIR)/cvs.targetinstall + +$(STATEDIR)/cvs.targetinstall: $(cvs_targetinstall_deps_default) + @$(call targetinfo, $@) + + @$(call install_init, cvs) + @$(call install_fixup,cvs,PACKAGE,cvs) + @$(call install_fixup,cvs,PRIORITY,optional) + @$(call install_fixup,cvs,VERSION,$(CVS_VERSION)) + @$(call install_fixup,cvs,SECTION,base) + @$(call install_fixup,cvs,AUTHOR,"Juergen Beisert <j.beisert\@pengutronix.de>") + @$(call install_fixup,cvs,DEPENDS,) + @$(call install_fixup,cvs,DESCRIPTION,missing) + +ifdef PTXCONF_CVS_INETD_SERVER + @$(call install_copy, cvs, 0, 0, 0755, /srv/cvsroot) +endif + @$(call install_copy, cvs, 0, 0, 0755, $(CVS_DIR)/src/cvs, /usr/bin/cvs) + + @$(call install_finish,cvs) + + @$(call touch, $@) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +cvs_clean: + rm -rf $(STATEDIR)/cvs.* + rm -rf $(IMAGEDIR)/cvs_* + rm -rf $(CVS_DIR) + +# vim: syntax=make |