diff --git a/ja/ports/Makefile b/ja/ports/Makefile index a83ea75c27..ccee0b26db 100644 --- a/ja/ports/Makefile +++ b/ja/ports/Makefile @@ -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} diff --git a/ja/ports/portindex b/ja/ports/portindex index 56fbaa09bf..e0b14481f9 100755 --- a/ja/ports/portindex +++ b/ja/ports/portindex @@ -4,9 +4,9 @@ # # by John Fieber # 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(

) { # 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 {


現在の状況

FreeBSD Ports Collection には、現時点で $portnumber 個の ports が提供されています。
-$portnumber 個すべての ports を tar でまとめて gzip したもの (およそ 30 メガバイト) をダウンロードするか、 +$portnumber 個すべての ports を tar でまとめて gzip したもの +EOF + print $moutf "(およそ $ptgzsize メガバイト)" if ($ptgzsize =~ /^\d+$/); + print $moutf <すべての ports をアルファベット順に並べた一覧 を見るか、 以下の分類からたどってください。