From owner-freebsd-doc Mon Feb 15 00:50:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA28818 for freebsd-doc-outgoing; Mon, 15 Feb 1999 00:50:08 -0800 (PST) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA28802 for ; Mon, 15 Feb 1999 00:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id AAA45027; Mon, 15 Feb 1999 00:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mail10.svr.pol.co.uk (mail10.svr.pol.co.uk [195.92.193.214]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA27904 for ; Mon, 15 Feb 1999 00:43:46 -0800 (PST) (envelope-from tom@eborcom.com) Received: from modem-78.carafate.dialup.pol.co.uk ([62.136.56.206]) by mail10.svr.pol.co.uk with esmtp (Exim 2.10 #1) id 10CJd0-0002Ny-00 for FreeBSD-gnats-submit@freebsd.org; Mon, 15 Feb 1999 08:43:43 +0000 Received: (qmail 3015 invoked by uid 5000); 14 Feb 1999 18:12:51 -0000 Message-Id: <19990214181251.3014.qmail@eborcom.com> Date: 14 Feb 1999 18:12:51 -0000 From: Tom Hukins To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: docs/10099: Building the Web site without a local CVS repository Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 10099 >Category: docs >Synopsis: Enables building FreeBSD Web site without local CVS repository >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 15 00:50:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Tom Hukins >Release: FreeBSD 2.2.8-STABLE i386 >Organization: eBORcOM >Environment: No local CVS repository on the machine, but a recent copy of the ports tree, retrieved by CVSup. Also, the www tree used to build the FreeBSD Web site. >Description: The build process for the FreeBSD Web site relies on a copy of the CVS repository. However, the data extracted will also be present on machines which use CVSup to collect the ports tree. I have added a NOCVS variable, which tries to build the Web site from other data if the CVS tree is not present. The patch below allows the English version of the Web site to be built without a CVS repository. Similar patches could be applied to other langauges' build processes. I cannot think of any negative side-effects introduced with this change. It will allow people to build a copy of the Web site with stale information from /usr/ports, but this is already possible if a stale CVS repository is used. >How-To-Repeat: >Fix: --- en/copyright/Makefile.orig Sat Oct 17 11:18:42 1998 +++ en/copyright/Makefile Sun Feb 14 18:00:47 1999 @@ -16,7 +16,12 @@ # FreeBSD Ports redistribution restrictions LEGAL= LEGAL CLEANFILES+= ${LEGAL} +.if defined(NOCVS) +${LEGAL}: $${PORTSBASE}/ports/LEGAL + cp ${PORTSBASE}/ports/LEGAL LEGAL +.else ${LEGAL}: $${CVSROOT}/ports/LEGAL,v co -q -p ${.ALLSRC} > ${.TARGET} +.endif .include "../web.mk" --- en/ports/Makefile.orig Wed Sep 2 20:07:44 1998 +++ en/ports/Makefile Sun Feb 14 18:01:10 1999 @@ -18,14 +18,23 @@ cvsindex= $${CVSROOT}/${PINDEX},v _ALLINSTALL= packages.exists ${INDEX} +.if defined(NOCVS) +${INDEX}: $${PORTSBASE}/${PINDEX} + cp ${PORTSBASE}/${PINDEX} ${INDEX} +.else ${INDEX}: ${cvsindex} cvs -QR co -p ${PINDEX} > ${INDEX} +.endif # build the list of available packages only on the # main FreeBSD machines hostname!= hostname +.if defined(NOCVS) +packages.exists: +.else packages.exists: ${cvsindex} +.endif .if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" sh ${.CURDIR}/packages > ${.TARGET} .else --- en/web.mk.orig Sun Oct 4 14:25:30 1998 +++ en/web.mk Sun Feb 14 17:55:21 1999 @@ -43,6 +43,11 @@ COPY= -C +# +# Where the ports live, if CVS isn't used (ie. NOCVS is defined) +# +PORTSBASE?= /usr + ################################################################## # Transformation rules >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message