From owner-freebsd-ports Wed Nov 22 4:57:25 2000 Delivered-To: freebsd-ports@freebsd.org Received: from tepid.osl.fast.no (tepid.osl.fast.no [213.188.9.130]) by hub.freebsd.org (Postfix) with ESMTP id A31B237B4C5 for ; Wed, 22 Nov 2000 04:57:21 -0800 (PST) Received: from raw.grenland.fast.no (fw-oslo.fast.no [213.188.9.129]) by tepid.osl.fast.no (8.9.3/8.9.1) with ESMTP id MAA99799; Wed, 22 Nov 2000 12:57:25 GMT (envelope-from raw@fast.no) Received: (from raw@localhost) by raw.grenland.fast.no (8.11.0/8.11.0) id eAMCw0h22661; Wed, 22 Nov 2000 13:58:00 +0100 (CET) (envelope-from raw) From: Raymond Wiker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14875.49876.733685.319512@raw.grenland.fast.no> Date: Wed, 22 Nov 2000 13:57:56 +0100 (CET) To: freebsd-ports@freebsd.org Subject: Ports & CVS? X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi. I've been trying to use the FreeBSD ports framework as a basis for building and installing interdependent software modules at work. The source code is fetched from a CVS repository, and I would like to avoid having to manually fetch the source files and create a distribution file. I have been looking at bsd.port.mk, and it seems that I could modify the do-extract target to fetch the required module(s) from CVS: (Note: the code below uses the target post-extract instead, but it should be possible to place it in bsd.port.mk instead.) Is this something that would make sense to add to the ports system? Alternatively, can anybody see a way of achieving this without modifying bsd.port.mk or "stealing" the post-extract target? (Actually, I see a way: I could override the do-extract target in a separate include file.) # In the port Makefile: PORTNAME=mystuff PORTVERSION=1.0.2 # Need to explicitly clear DISTFILES, as the source files will be # fetched from CVS DISTFILES= CVSMODULE=mystuff CVSTAG=REL_1_0_2 # In a system make include file: # Note: no default for CVS_RSH CVSROOT?=myserver.my.domain:/cvs CVSTAG?=HEAD CVSCMD?=cvs CVSDIR?=${PORTNAME}-${PORTVERSION} post-extract: @for mod in ${CVSMODULES}; do \ if ! (cd ${WRKDIR} && \ CVSROOT=${CVSROOT} ${CVSCMD} co -r ${CVSTAG} \ -d ${CVSDIR} $${mod}) \ then \ exit 1; \ fi \ done To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message