o Merge the following from the English version:
1.53 -> 1.55 www/ja/ports/portindex o Related change (determine the size of ports.tar.gz automagically): www/ja/ports/Makefile
This commit is contained in:
parent
25b9989de4
commit
09d4323c5a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37090
2 changed files with 32 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/ja/ports/Makefile,v 1.29 2006/07/16 11:22:04 simon Exp $
|
||||
# $FreeBSD: www/ja/ports/Makefile,v 1.30 2006/08/19 21:24:43 hrs Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.37
|
||||
|
||||
|
|
@ -72,7 +72,21 @@ Makefile.gen: index.sgml .NOTMAIN
|
|||
${ECHO_CMD} NO_TIDY=${NO_TIDY} >> Makefile.gen
|
||||
.endif
|
||||
|
||||
index.sgml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN
|
||||
.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
|
||||
|
||||
index.sgml: ${INDEX} categories categories.descriptions packages.exists portindex ports.inc ports.size .NOTMAIN
|
||||
${RM} -f *.sgml
|
||||
${PORTINDEX} ${INDEX} ${.CURDIR}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
#
|
||||
# by John Fieber <jfieber@FreeBSD.org>
|
||||
# Mon May 13 10:31:58 EST 1996
|
||||
# $FreeBSD: www/ja/ports/portindex,v 1.33 2008/08/25 12:39:17 jkois Exp $
|
||||
# $FreeBSD: www/ja/ports/portindex,v 1.34 2010/12/23 12:01:39 ryusuke Exp $
|
||||
# The FreeBSD Japanese Documentation Project
|
||||
# Original revision: 1.53
|
||||
# Original revision: 1.55
|
||||
|
||||
############################################################
|
||||
|
||||
|
|
@ -128,7 +128,7 @@ sub category_description {
|
|||
while(<P>) {
|
||||
# ignore comments
|
||||
next if /^\s*#/;
|
||||
if (/^\s*([^,]+),\s*"([^"]+)",([A-Z]+)/) {
|
||||
if (/^\s*([^,]+),\s*"([^"]+)",\s*([A-Z]+)/) {
|
||||
$category_description{$1}{desc}=$2;
|
||||
$category_description{$1}{group}=$3;
|
||||
}
|
||||
|
|
@ -149,7 +149,7 @@ sub category_groups {
|
|||
# ignore comments
|
||||
next if /^\s*#/;
|
||||
if (/^\s*([^,]+),\s*(.+)/) {
|
||||
$category_groups{$1}=$2 if (/^\s*([^,]+),\s*(.+)/);
|
||||
$category_groups{$1}=$2;
|
||||
push(@category_groups,$1);
|
||||
}
|
||||
}
|
||||
|
|
@ -286,6 +286,13 @@ sub main {
|
|||
$portnumber++;
|
||||
}
|
||||
|
||||
my $ptgzsize = `cat ports.size 2>/dev/null` || "";
|
||||
if ($ptgzsize =~ /^\d+$/) {
|
||||
$ptgzsize = sprintf("%.0f", $ptgzsize/(1024*1024));
|
||||
} else {
|
||||
warn "Unknown size for ports.tar.gz\n";
|
||||
}
|
||||
|
||||
$moutf->open(">index.sgml");
|
||||
|
||||
header($moutf, "FreeBSD Ports");
|
||||
|
|
@ -295,7 +302,11 @@ sub main {
|
|||
<HR>
|
||||
<H3>現在の状況</H3>
|
||||
<P>FreeBSD Ports Collection には、現時点で $portnumber 個の ports が提供されています。<BR>
|
||||
<A HREF=\"$baseFTP/ports.tar.gz\">$portnumber 個すべての ports を tar でまとめて gzip したもの</A> (およそ 30 メガバイト) をダウンロードするか、
|
||||
<A HREF=\"$baseFTP/ports.tar.gz\">$portnumber 個すべての ports を tar でまとめて gzip したもの</A>
|
||||
EOF
|
||||
print $moutf "(およそ $ptgzsize メガバイト)" if ($ptgzsize =~ /^\d+$/);
|
||||
print $moutf <<EOF;
|
||||
をダウンロードするか、
|
||||
<A HREF=\"master-index.html\">すべての ports をアルファベット順に並べた一覧</A> を見るか、
|
||||
以下の分類からたどってください。
|
||||
<A NAME=\"categories\"></A>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue