aboutsummaryrefslogtreecommitdiff
path: root/ru_RU.KOI8-R/htdocs/ports/Makefile
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@FreeBSD.org>2012-10-07 19:34:45 +0000
committerSergey Kandaurov <pluknet@FreeBSD.org>2012-10-07 19:34:45 +0000
commitae9fb4393963955fda4dbf835aba22aa5adbdfbb (patch)
tree983de266e0dc6a2f3953cf547825d54ff2feac0d /ru_RU.KOI8-R/htdocs/ports/Makefile
parent8208d1854efef02053898bbbb803136399f0dbd6 (diff)
downloaddoc-ae9fb4393963955fda4dbf835aba22aa5adbdfbb.tar.gz
doc-ae9fb4393963955fda4dbf835aba22aa5adbdfbb.zip
MFen: Resync with the latest English version of ports pages.
Notes
Notes: svn path=/head/; revision=39681
Diffstat (limited to 'ru_RU.KOI8-R/htdocs/ports/Makefile')
-rw-r--r--ru_RU.KOI8-R/htdocs/ports/Makefile83
1 files changed, 48 insertions, 35 deletions
diff --git a/ru_RU.KOI8-R/htdocs/ports/Makefile b/ru_RU.KOI8-R/htdocs/ports/Makefile
index d5bb91bd9b..83fb3ff16c 100644
--- a/ru_RU.KOI8-R/htdocs/ports/Makefile
+++ b/ru_RU.KOI8-R/htdocs/ports/Makefile
@@ -4,7 +4,7 @@
# $FreeBSD$
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.9 2004/03/23 21:09:19 phantom Exp $
#
-# Original revision: 1.38
+# Original revision: r39632
#
.if exists(../Makefile.conf)
@@ -13,8 +13,8 @@
.if exists(../Makefile.inc)
.include "../Makefile.inc"
.endif
-.if exists(${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/Makefile.inc)
-.include "${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/Makefile.inc"
+.if exists(Makefile.inc)
+.include "Makefile.inc"
.endif
FETCH_OPT?= -am
@@ -31,66 +31,79 @@ ${INDEX}:
${BUNZIP2} ${INDEX}.bz2
.endif
-# build the list of available packages only on the
-# main FreeBSD machines
-hostname!= hostname
-
-#
-# don't build the packages links if NO_PACKAGES_LINK
-# is set and not empty.
-#
-# XXX: you can set NO_PACKAGES_LINK to your hostname to
-# test the packages link generation
-#
-.if defined(NO_PACKAGES_LINK) && !empty(NO_PACKAGES_LINK)
-hostname= ${NO_PACKAGES_LINK}
+HOSTNAME!= hostname
+.if ${HOSTNAME} == "hub.freebsd.org" || ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "www.freebsd.org"
+CLUSTER_MACHINE= YES
.endif
+# Build the list of available packages, but only on the main FreeBSD machines.
+# Don't build the list if NO_PACKAGES_LINK is set and not empty.
+#
packages.exists:
-.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" || ${hostname} == "www.freebsd.org"
-.if exists(${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/packages.exists)
- ${CP} ${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/${.TARGET} ${.CURDIR}
-.else
- @if ${SH} ${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/packages > ${.TARGET}.temp; then \
+.if defined(CLUSTER_MACHINE) && (!defined(NO_PACKAGES_LINK) || empty(NO_PACKAGES_LINK))
+ @if ${SH} ${.CURDIR}/packages > ${.TARGET}.temp; then \
${MV} ${.TARGET}.temp ${.TARGET}; \
else \
${RM} ${.TARGET}.temp; ${TOUCH} ${.TARGET}; \
fi;
-.endif
.else
${TOUCH} ${.TARGET}
.endif
-Makefile.gen: index.xml .NOTMAIN
+Makefile.gen: categories-alpha.xml categories-grouped.xml index.xml \
+ installing.xml master-index.xml references.xml searching.xml \
+ statistics.ent updating.xml .NOTMAIN
( ${ECHO_CMD} DOCS= *.xml | ${SED} 's|catalog-cwd\.xml||g';\
${ECHO_CMD} -n "DYNAMIC_DOCS= ";\
+ ${ECHO_CMD} -n " categories-alpha.xml";\
+ ${ECHO_CMD} -n " categories-grouped.xml";\
${ECHO_CMD} -n " master-index.xml";\
- ${ECHO_CMD} -n " index.xml";\
+ ${ECHO_CMD} -n " statistics.ent";\
) > Makefile.gen
for categoryfile in ${CATEGORYLIST}; do \
${ECHO_CMD} -n " $$categoryfile.xml" >> Makefile.gen; \
done
+ ${ECHO_CMD} >> Makefile.gen
-index.xml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN
- ${RM} -f *.xml
- ${PORTINDEX} ${INDEX} ${.CURDIR}
+.if defined(CLUSTER_MACHINE)
+PORTS_TARGZ_URL?= ftp://ftp-master.FreeBSD.org/pub/FreeBSD/ports/ports/ports.tar.gz
+.else
+PORTS_TARGZ_URL?= ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/ports/ports.tar.gz
+.endif
+
+ports.size:
+.if defined (NOPORTSNET)
+ touch ${.TARGET}
+.else
+ ${RM} -f ${.TARGET}
+ ${FETCH} -s ${PORTS_TARGZ_URL} > ${.TARGET}
+.endif
# this builds: categories-alpha.xml, categories-grouped.xml,
# master-index.xml, statistics.ent, <category>.xml
-CATEGORYLIST=`grep "^[a-z]" ${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/categories | sed -e s"/,.*//"`
+CATEGORYLIST=`grep "^[a-z]" categories | sed -e s"/,.*//"`
+categories-alpha.xml: ${INDEX} categories categories.descriptions \
+ packages.exists portindex ports.ent ports.size .NOTMAIN
+ ${RM} -f categories-alpha.xml categories-grouped.xml \
+ master-index.xml statistics.ent
+ for categoryfile in ${CATEGORYLIST}; do \
+ rm -f "$$categoryfile.xml"; \
+ done
+ ${PORTINDEX} ${INDEX} ${.CURDIR}
install: all beforeinstall
all install clean:
cd ${.CURDIR}; \
${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET}
-#.if defined(WITH_PORTS_GROWTH)
-# cd growth; \
-# ${MAKE} ${MAKEFLAGS} ${.TARGET}
-#beforeinstall:
-#.else
+.if defined(WITH_PORTS_GROWTH)
+ cd growth; \
+ ${MAKE} ${MAKEFLAGS} ${.TARGET}
+beforeinstall:
+.else
beforeinstall:
- ${PERL} -pi -e 's/href=\"growth/href=\"http:\/\/www.FreeBSD.org\/ports\/growth/' index.html
-#.endif
+ ${SED} -i "" -e 's,href="growth,href="http://www.FreeBSD.org/ports/growth,' index.html
+ ${SED} -i "" -e 's,href="growth,href="http://www.FreeBSD.org/ports/growth,' references.html
+.endif
.include "${DOC_PREFIX}/share/mk/web.site.mk"