1999-09-06 09:03:31 +02:00
|
|
|
# $FreeBSD$
|
1999-02-08 20:26:12 +01:00
|
|
|
|
|
|
|
.if exists(../Makefile.conf)
|
|
|
|
.include "../Makefile.conf"
|
|
|
|
.endif
|
|
|
|
|
1999-03-18 14:55:09 +01:00
|
|
|
PORTINDEX= perl5 ${.CURDIR}/portindex
|
1999-02-08 20:26:12 +01:00
|
|
|
INDEX= INDEX
|
|
|
|
PINDEX= ports/${INDEX}
|
1999-03-18 14:55:09 +01:00
|
|
|
Y2K= YEAR2000
|
|
|
|
PY2K= ports/${Y2K}
|
1999-02-08 20:26:12 +01:00
|
|
|
|
|
|
|
COOKIE= ${INDEX} Makefile.gen
|
|
|
|
|
|
|
|
.if exists(Makefile.gen)
|
|
|
|
.include "Makefile.gen"
|
|
|
|
.endif
|
1999-04-21 13:44:43 +02:00
|
|
|
CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} ${Y2K} packages.exists
|
1999-02-08 20:26:12 +01:00
|
|
|
|
|
|
|
cvsindex= $${CVSROOT}/${PINDEX},v
|
1999-03-18 14:55:09 +01:00
|
|
|
cvsy2k= $${CVSROOT}/${PY2K},v
|
1999-04-21 13:44:43 +02:00
|
|
|
_ALLINSTALL= packages.exists ${INDEX} ${Y2K}
|
1999-02-08 20:26:12 +01:00
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
.if defined(NOPORTSCVS)
|
|
|
|
${INDEX}: $${PORTSBASE}/${PINDEX}
|
|
|
|
cp ${PORTSBASE}/${PINDEX} ${INDEX}
|
|
|
|
|
|
|
|
${Y2K}: $${PORTSBASE}/${PY2K}
|
|
|
|
cp ${PORTSBASE}/${PY2K} ${Y2K}
|
|
|
|
|
|
|
|
.else
|
1999-02-08 20:26:12 +01:00
|
|
|
${INDEX}: ${cvsindex}
|
|
|
|
cvs -QR co -p ${PINDEX} > ${INDEX}
|
|
|
|
|
1999-03-18 14:55:09 +01:00
|
|
|
${Y2K}: ${cvsy2k}
|
|
|
|
cvs -QR co -p ${PY2K} > ${Y2K}
|
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
.endif
|
|
|
|
|
1999-02-08 20:26:12 +01:00
|
|
|
# build the list of available packages only on the
|
|
|
|
# main FreeBSD machines
|
|
|
|
hostname!= hostname
|
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
.if defined(NOPORTSCVS)
|
|
|
|
packages.exists:
|
|
|
|
.else
|
1999-04-21 13:44:43 +02:00
|
|
|
packages.exists: ${cvsindex} ${cvsy2k}
|
1999-04-24 18:37:00 +02:00
|
|
|
.endif
|
1999-02-08 20:26:12 +01:00
|
|
|
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
|
1999-05-27 11:04:12 +02:00
|
|
|
.if exists(${.CURDIR}/../../en/ports/packages.exists)
|
|
|
|
cp ${.CURDIR}/../../en/ports/${.TARGET} .
|
|
|
|
.else
|
1999-02-08 20:26:12 +01:00
|
|
|
sh ${.CURDIR}/packages > ${.TARGET}
|
1999-05-27 11:04:12 +02:00
|
|
|
.endif
|
1999-02-08 20:26:12 +01:00
|
|
|
.else
|
|
|
|
touch ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
Makefile.gen: index.sgml .NOTMAIN
|
|
|
|
echo DOCS= *.sgml > Makefile.gen
|
|
|
|
${MAKE} ${MAKEFLAGS} ${.IMPSRC}
|
|
|
|
|
1999-04-21 13:44:43 +02:00
|
|
|
index.sgml: ${INDEX} ${Y2K} packages.exists portindex ports.inc .NOTMAIN
|
1999-02-08 20:26:12 +01:00
|
|
|
rm -f *.sgml
|
1999-04-21 13:44:43 +02:00
|
|
|
${PORTINDEX} ${INDEX} ${Y2K}
|
1999-02-08 20:26:12 +01:00
|
|
|
|
|
|
|
.include "../web.mk"
|