Date: 14 Feb 1999 18:12:51 -0000 From: Tom Hukins <tom@eborcom.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/10099: Building the Web site without a local CVS repository Message-ID: <19990214181251.3014.qmail@eborcom.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990214181251.3014.qmail>