Index: head/de_DE.ISO8859-1/htdocs/ports/Makefile =================================================================== --- head/de_DE.ISO8859-1/htdocs/ports/Makefile (revision 47264) +++ head/de_DE.ISO8859-1/htdocs/ports/Makefile (revision 47265) @@ -1,104 +1,90 @@ # $FreeBSD$ # $FreeBSDde: de-www/ports/Makefile,v 1.3 2007/10/28 13:00:38 jkois Exp $ # basiert auf: 1.49 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .if exists(Makefile.inc) .include "Makefile.inc" .endif FETCH_OPT?= -am .if defined(PINDEX_OVERRIDE) ${INDEX}: ${PINDEX_OVERRIDE} ${CP} ${PINDEX_OVERRIDE} ${INDEX} .elif defined(NOPORTSNET) ${INDEX}: $${PORTSBASE}/${PINDEX} ${CP} ${PORTSBASE}/${PINDEX} ${INDEX} .else ${INDEX}: ${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2 ${BUNZIP2} ${INDEX}.bz2 .endif HOSTNAME!= hostname -.if ${HOSTNAME} == "hub.freebsd.org" || ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "www.freebsd.org" || ${HOSTNAME} == "build-web.stream.FreeBSD.org" +.if ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "build-web.ysv.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 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; .else ${TOUCH} ${.TARGET} .endif 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 " statistics.ent";\ ) > Makefile.gen for categoryfile in ${CATEGORYLIST}; do \ ${ECHO_CMD} -n " $$categoryfile.xml" >> Makefile.gen; \ done ${ECHO_CMD} >> Makefile.gen -.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, .xml CATEGORYLIST=`grep "^[a-z]" categories | sed -e s"/,.*//"` categories-alpha.xml: ${INDEX} categories categories.descriptions \ - packages.exists ports.ent ports.size .NOTMAIN + packages.exists ports.ent .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 beforeinstall: ${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" Index: head/de_DE.ISO8859-1/htdocs/ports/Makefile.inc =================================================================== --- head/de_DE.ISO8859-1/htdocs/ports/Makefile.inc (revision 47264) +++ head/de_DE.ISO8859-1/htdocs/ports/Makefile.inc (revision 47265) @@ -1,18 +1,18 @@ # $FreeBSD$ # $FreeBSDde: de-www/ports/Makefile.inc,v 1.1 2007/03/31 14:27:06 jkois Exp $ # basiert auf: 1.10 PORTINDEX= ${PERL} ${.CURDIR}/../../../en_US.ISO8859-1/htdocs/ports/portindex INDEX= INDEX PINDEX= ports/${INDEX} COOKIE= ${INDEX} Makefile.gen CLEANFILES+= ${INDEX} ${INDEX}.bz2 CLEANFILES+= packages.exists.temp packages.exists CLEANFILES+= ${DYNAMIC_DOCS} CLEANFILES+= Makefile.gen -CLEANFILES+= ports.count ports.size +CLEANFILES+= ports.count _ALLINSTALL= packages.exists categories Index: head/en_US.ISO8859-1/htdocs/ports/Makefile =================================================================== --- head/en_US.ISO8859-1/htdocs/ports/Makefile (revision 47264) +++ head/en_US.ISO8859-1/htdocs/ports/Makefile (revision 47265) @@ -1,102 +1,88 @@ # $FreeBSD$ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .if exists(Makefile.inc) .include "Makefile.inc" .endif FETCH_OPT?= -am .if defined(PINDEX_OVERRIDE) ${INDEX}: ${PINDEX_OVERRIDE} ${CP} ${PINDEX_OVERRIDE} ${INDEX} .elif defined(NOPORTSNET) ${INDEX}: $${PORTSBASE}/${PINDEX} ${CP} ${PORTSBASE}/${PINDEX} ${INDEX} .else ${INDEX}: ${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2 ${BUNZIP2} ${INDEX}.bz2 .endif HOSTNAME!= hostname .if ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "build-web.ysv.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 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; .else ${TOUCH} ${.TARGET} .endif 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 " statistics.ent";\ ) > Makefile.gen for categoryfile in ${CATEGORYLIST}; do \ ${ECHO_CMD} -n " $$categoryfile.xml" >> Makefile.gen; \ done ${ECHO_CMD} >> Makefile.gen -.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, .xml CATEGORYLIST=`grep "^[a-z]" categories | sed -e s"/,.*//"` categories-alpha.xml: ${INDEX} categories categories.descriptions \ - packages.exists portindex ports.ent ports.size .NOTMAIN + packages.exists portindex ports.ent .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 beforeinstall: ${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" Index: head/en_US.ISO8859-1/htdocs/ports/Makefile.inc =================================================================== --- head/en_US.ISO8859-1/htdocs/ports/Makefile.inc (revision 47264) +++ head/en_US.ISO8859-1/htdocs/ports/Makefile.inc (revision 47265) @@ -1,16 +1,16 @@ # $FreeBSD$ PORTINDEX= ${PERL} ${.CURDIR}/portindex INDEX= INDEX PINDEX= ports/${INDEX} COOKIE= ${INDEX} Makefile.gen CLEANFILES+= ${INDEX} ${INDEX}.bz2 CLEANFILES+= packages.exists.temp packages.exists CLEANFILES+= ${DYNAMIC_DOCS} CLEANFILES+= Makefile.gen -CLEANFILES+= ports.count ports.size +CLEANFILES+= ports.count _ALLINSTALL= packages.exists categories Index: head/en_US.ISO8859-1/htdocs/ports/installing.xml =================================================================== --- head/en_US.ISO8859-1/htdocs/ports/installing.xml (revision 47264) +++ head/en_US.ISO8859-1/htdocs/ports/installing.xml (revision 47265) @@ -1,42 +1,36 @@ %ports.ent; %statistics.ent; ]> &title; $FreeBSD$ &searchform;

The &os; installer programs allow the Ports Collection to be installed at the same time as the operating system. See bsdinstall for &os; 9.X and later versions, or sysinstall for &os; 8.X and earlier versions.

If the Ports Collection is not initially installed, it can be added with portsnap or Subversion.

- -

A gzipped - tarball of the Ports Collection can also be downloaded. The - current size of the file is &ports.size;.

- Index: head/en_US.ISO8859-1/htdocs/ports/portindex =================================================================== --- head/en_US.ISO8859-1/htdocs/ports/portindex (revision 47264) +++ head/en_US.ISO8859-1/htdocs/ports/portindex (revision 47265) @@ -1,380 +1,370 @@ #!/usr/bin/perl -w # convert a ports INDEX file to XML files # # by John Fieber # Mon May 13 10:31:58 EST 1996 # $FreeBSD$ # basiert auf: 1.57 ############################################################ use strict; use POSIX; use IO::File; my $base = ""; my $baseHTTP = ""; my $urlcgi = ""; my $packagesURL = ""; my $today = getdate(); my %p = (); # Load local config file. You can override in portindex.conf # the variables for the default web and the ftp server. This # make it easy to maintain a local web mirror and let the # URL point to yourself and not to the standard FreeBSD FTP server. my $config = $0 . '.' . 'conf'; do $config if -f $config; # This is the base of where we ftp stuff from my $ftpserver; if ($ENV{'MASTER_FTP_SERVER'}) { $ftpserver = $ENV{'MASTER_FTP_SERVER'}; } else { $ftpserver = 'ftp://ftp.FreeBSD.org' if !$ftpserver; } my $baseFTP = "$ftpserver/pub/FreeBSD/ports/ports"; my $baseSVNWEB = 'https://svnweb.FreeBSD.org/ports/head/'; $packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly my $ftparchive = ''; $ftparchive = 'tar' if !defined $ftparchive; my %packages = (); my %category_description = (); my @category_groups = (); my %category_groups = (); packages_exist('packages.exists'); category_description(($ARGV[1] || '.') . '/categories' ); category_groups(($ARGV[1] || '.') . '/categories.descriptions' ); main(); sub getdate { return POSIX::strftime("%d-%B-%Y", localtime); } sub header { my $fh = shift; my $htext = shift; #local($fh, $htext) = @_; print $fh < %ports.ent; %statistics.ent; ]> $htext x x x $today x x x &searchform;
EOF } sub footer { my $fh = shift; my $ftext = shift; #local ($fh, $ftext) = @_; print $fh < EOF } sub packages_exist { my $file=shift; my %p; #local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot create packages links\n"; return 1; }; while(

) { chop; $packages{$_} = 1; } close P; } sub category_description { my $file = shift; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category description\n"; return 1; }; while(

) { # ignore comments next if /^\s*#/; if (/^\s*([^,]+),\s*"([^"]+)",\s*([A-Z]+)/) { $category_description{$1}{desc}=$2; $category_description{$1}{group}=$3; } } close P; } sub category_groups { my $file = shift; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category groups\n"; return 1; }; while(

) { # ignore comments next if /^\s*#/; if (/^\s*([^,]+),\s*(.+)/) { $category_groups{$1}=$2; push(@category_groups,$1); } } close P; } sub main { my @master=(); my %stats; my %catkey; my %data; my $portnumber = 0; my $sep = ":"; my $moutf = new IO::File; my $outf = new IO::File; my $mindex = new IO::File; my $statistics = new IO::File; open(INDEX, $ARGV[0]); $portnumber = "0"; while () { chop; s/&/&/g; s//>/g; # Read a record my ($name, $loc, $prefix, $desc, $ldesc, $owner, $cats, $bdep, $rdep, $www) = split('\|'); # Check for double hyphens in the name (--). $name =~ s/--/-/g; # Split the categories into an array my @cat = split("[ \t]+", $cats); $catkey{$name} = $cat[0]; foreach my $i (sort(@cat)) { $stats{$i}++; # figure out the FTP url $loc =~ s%/usr/ports/%$baseSVNWEB%; $ldesc =~ s%/usr/ports/%$baseSVNWEB%; $ldesc .= '?revision=HEAD'; # The name description and maintainer $name =~ s/,.*//g; $name =~ s/\++//g; $data{$i} .= "

$name
"; $data{$i} .= "
$desc
Long description"; if ($packages{"$name.tbz"}) { $data{$i} .= qq{ | Package}; } elsif ($packages{"$name.tgz"}) { $data{$i} .= qq{ | Package}; } $data{$i} .= qq{ | Changes}; if ($www ne "") { $data{$i} .= qq{ | Main Web Site}; } my $ownerurl = $owner; $ownerurl =~ s/<//g; $data{$i} .= "
Maintained by: $owner"; # If there are any dependencies, list them if ($bdep ne "" || $rdep ne "") { $data{$i} .= "
Requires: "; my @dep = split(/ /, "$bdep $rdep"); my $last = ''; foreach my $j (sort @dep) { next if $j eq $last; $last = $j; $data{$i} .= " $j,"; } # remove the trailing comma chop $data{$i}; } # If the port is listed in more than one category, throw # in some cross references if ($#cat > 0) { $data{$i} .= "
Also listed in: "; foreach my $j (@cat) { if ($j ne $i) { if ($j eq $cat[0]) { $data{$i} .= " \u$j,"; } else { $data{$i} .= " \u$j,"; } } } # remove the trailing comma chop($data{$i}); } $data{$i} .= "

\n" } # Add an entry to the master index # workaround XML syntax, `--' is not allowed in comments my $sname = $name; $sname =~ s/--/-=/g; $master[$portnumber] = "$name " . " -- $desc
\n"; $portnumber++; } # create categories-grouped.xml and .xml $moutf->open(">categories-grouped.xml"); header($moutf, "FreeBSD Ports Categories Listed By Groups"); print $moutf < EOF if ($portnumber eq '0') { print $moutf "

none found

\n"; } else { foreach my $cg (@category_groups) { print $moutf "

",$category_groups{$cg},"

\n"; print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { next if ($category_description{$key}{group} ne $cg); # For the master file... print $moutf "
  • \u$key ($stats{$key})"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } # Someone forgot to add a category to the description file # or there is a typo in the category field. else { warn "No description found for category: ``$key''!\n"; warn "Please fix me or send an E-Mail to doc\@FreeBSD.org\a\n"; sleep(3); } print $moutf "
  • \n"; # Create the category file $outf->open(">$key.xml"); header($outf, "FreeBSD Ports: \u$key"); if ($category_description{$key}{desc}) { print $outf "

    ", $category_description{$key}{desc}, "

    \n"; } print $outf "
    \n"; my $d = join("\n", sort(split(/\n/, $data{$key}))); $d =~ s/##([^#]*)##/$catkey{$1}/g; print $outf $d; print $outf "
    \n"; footer($outf, "

    top" . " -- Index"); $outf->close; } print $moutf "
\n"; } } footer($moutf, ""); $moutf->close; # create categories-alpha.xml $moutf->open(">categories-alpha.xml"); header($moutf, "FreeBSD Ports Categories Listed Alphabetically"); print $moutf < EOF if ($portnumber eq '0') { print $moutf "

none found

\n"; } else { print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { print $moutf "
  • \u$key ($stats{$key})"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } print $moutf "
  • \n"; } print $moutf "
\n"; } footer($moutf, ""); $moutf->close; # Create master-index.xml $mindex->open(">master-index.xml"); header($mindex, "FreeBSD Ports Collection Index"); print $mindex "

\n"; print $mindex sort @master; print $mindex "

"; footer($mindex, "top"); $mindex->close; # Create statistics.ent - $statistics->open(">statistics.ent"); - - my $ptgzsize = `cat ports.size 2>/dev/null` || ""; - if ($ptgzsize =~ /^\d+$/) { - $ptgzsize = sprintf("%.0f", $ptgzsize/(1024*1024)); - print $statistics "\n"; - } else { - warn "Unknown size for ports.tar.gz\n"; - print $statistics "\n"; - } print $statistics "\n"; - $statistics->close; + close(INDEX); } Index: head/ja_JP.eucJP/htdocs/ports/Makefile =================================================================== --- head/ja_JP.eucJP/htdocs/ports/Makefile (revision 47264) +++ head/ja_JP.eucJP/htdocs/ports/Makefile (revision 47265) @@ -1,110 +1,96 @@ # $FreeBSD$ # The FreeBSD Japanese Documentation Project # Original revision: r39545 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .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" .endif FETCH_OPT?= -am .if defined(PINDEX_OVERRIDE) ${INDEX}: ${PINDEX_OVERRIDE} ${CP} ${PINDEX_OVERRIDE} ${INDEX} .elif defined(NOPORTSNET) ${INDEX}: $${PORTSBASE}/${PINDEX} ${CP} ${PORTSBASE}/${PINDEX} ${INDEX} .else ${INDEX}: ${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2 ${BUNZIP2} ${INDEX}.bz2 .endif HOSTNAME!= hostname -.if ${HOSTNAME} == "hub.freebsd.org" || ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "www.freebsd.org" || ${HOSTNAME} == "build-web.stream.FreeBSD.org" +.if ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "build-web.ysv.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 defined(CLUSTER_MACHINE) && (!defined(NO_PACKAGES_LINK) || empty(NO_PACKAGES_LINK)) .if exists(${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/packages.exists) cp ${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/${.TARGET} . .else @if ${SH} ${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/packages > ${.TARGET}.temp; then \ ${MV} ${.TARGET}.temp ${.TARGET}; \ else \ ${RM} ${.TARGET}.temp; ${TOUCH} ${.TARGET}; \ fi; .endif .else ${TOUCH} ${.TARGET} .endif 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 " statistics.ent";\ ) > Makefile.gen for categoryfile in ${CATEGORYLIST}; do \ ${ECHO_CMD} -n " $$categoryfile.xml" >> Makefile.gen; \ done ${ECHO_CMD} >> Makefile.gen -.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, .xml CATEGORYLIST=`grep "^[a-z]" ${DOC_PREFIX}/en_US.ISO8859-1/htdocs/ports/categories | sed -e s"/,.*//"` categories-alpha.xml: ${INDEX} categories categories.descriptions \ - packages.exists portindex ports.ent ports.size .NOTMAIN + packages.exists portindex ports.ent .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) # Because We refer www/ports/growth/status.png on web site from ports.inc, # don't need to have local version of the image file. # cd growth; \ # ${MAKE} ${MAKEFLAGS} ${.TARGET} beforeinstall: .else beforeinstall: ${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" Index: head/ja_JP.eucJP/htdocs/ports/installing.xml =================================================================== --- head/ja_JP.eucJP/htdocs/ports/installing.xml (revision 47264) +++ head/ja_JP.eucJP/htdocs/ports/installing.xml (revision 47265) @@ -1,42 +1,42 @@ %ports.ent; %statistics.ent; ]> &title; $FreeBSD$ &searchform;

&os; ¤Î¥¤¥ó¥¹¥È¡¼¥é¤Ï¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¥¤¥ó¥¹¥È¡¼¥ë¤È¤È¤â¤Ë¡¢ Ports Collection ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤â»È¤¨¤Þ¤¹¡£ &os; 9.X °Ê¹ß¤Ç¤Ï bsdinstall¡¢ &os; 8.X ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢ sysinstall ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë Ports Colllection ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤«¤Ã¤¿¤Î¤Ç¤¢¤ì¤Ð¡¢ portsnap ¤Þ¤¿¤Ï Subversion ¤ò»È¤Ã¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£ - ¸½ºß¤Î¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤Ï &ports.size; ¤Ç¤¹¡£

+ ¸½ºß¤Î¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤Ï ¤Ç¤¹¡£

Index: head/ja_JP.eucJP/htdocs/ports/portindex =================================================================== --- head/ja_JP.eucJP/htdocs/ports/portindex (revision 47264) +++ head/ja_JP.eucJP/htdocs/ports/portindex (revision 47265) @@ -1,415 +1,406 @@ #!/usr/bin/perl # convert a ports INDEX file to XML files # # by John Fieber # Mon May 13 10:31:58 EST 1996 # $FreeBSD$ # The FreeBSD Japanese Documentation Project # Original revision: 1.57 ############################################################ use strict; use POSIX; use IO::File; my $base = ""; my $baseHTTP = ""; my $urlcgi = ""; my $packagesURL = ""; my $today = getdate(); my %p = (); # Load local config file. You can override in portindex.conf # the variables for the default web and the ftp server. This # make it easy to maintain a local web mirror and let the # URL point to yourself and not to the standard FreeBSD FTP server. my $config = $0 . '.' . 'conf'; do $config if -f $config; # This is the base of where we ftp stuff from my $ftpserver; if ($ENV{'MASTER_FTP_SERVER'}) { $ftpserver = $ENV{'MASTER_FTP_SERVER'}; } else { $ftpserver = 'ftp://ftp.FreeBSD.org' if !$ftpserver; } $baseHTTP = $base if !$baseHTTP; my $baseFTP = "$ftpserver/pub/FreeBSD/ports/ports"; my $baseCVSWEB = 'http://www.FreeBSD.org/cgi/cvsweb.cgi/'; $urlcgi = 'http://www.FreeBSD.org/cgi/url.cgi' if !$urlcgi; $packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly my $ftparchive = ''; $ftparchive = '.tar' if !defined $ftparchive; # ports download sources script my $pds = 'http://www.FreeBSD.org/cgi/pds.cgi'; # better layout and link to the sources if ($urlcgi) { $baseHTTP = $urlcgi . '?' . $baseHTTP; } my %packages = (); my %category_description = (); my @category_groups = (); my %category_groups = (); packages_exist('packages.exists'); category_description(($ARGV[1] || '.') . '/categories' ); category_groups(($ARGV[1] || '.') . '/categories.descriptions' ); main(); sub getdate { # return ": $year ǯ $mon ·î $mday Æü"; return POSIX::strftime("%d-%B-%Y", localtime); } sub header { my $fh = shift; my $htext = shift; #local($fh, $htext) = @_; print $fh < %ports.ent; %statistics.ent; ]> $htext x x x $today x x x &searchform;
EOF } sub footer { my $fh = shift; my $ftext = shift; #local ($fh, $ftext) = @_; print $fh < EOF } sub packages_exist { my $file=shift; my %p; #local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot create packages links\n"; return 1; }; while(

) { chop; $packages{$_} = 1; } close P; } sub category_description { my $file = shift; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category description\n"; return 1; }; while(

) { # ignore comments next if /^\s*#/; if (/^\s*([^,]+),\s*"([^"]+)",\s*([A-Z]+)/) { $category_description{$1}{desc}=$2; $category_description{$1}{group}=$3; } } close P; } sub category_groups { my $file = shift; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category groups\n"; return 1; }; while(

) { # ignore comments next if /^\s*#/; if (/^\s*([^,]+),\s*(.+)/) { $category_groups{$1}=$2; push(@category_groups,$1); } } close P; } sub main { my @master=(); my %stats; my %catkey; my %data; my %descLANG; my $portnumber = 0; my $sep = ":"; my $moutf = new IO::File; my $outf = new IO::File; my $mindex = new IO::File; my $statistics = new IO::File; my $lloc; # 'COMMENT' translation database if (open(COMF, "comments.ja")) { while () { ($a, $b) = split('\|'); next if !defined($b); chop($b); $b =~ s/&/&/g; $b =~ s//>/g; $descLANG{$a} = $b; } } open(INDEX, $ARGV[0]); $portnumber = "0"; while () { chop; s/&/&/g; s//>/g; # Read a record my ($name, $loc, $prefix, $desc, $ldesc, $owner, $cats, $bdep, $rdep, $www) = split('\|'); # Check for double hyphens in the name (--). $name =~ s/--/-/g; # Split the categories into an array my @cat = split("[ \t]+", $cats); $catkey{$name} = $cat[0]; my $sourcepath = $loc; $sourcepath =~ s%/usr/%%; # desc translation ($lloc = $loc) =~ s@^/usr/ports/@@; $desc = $descLANG{$lloc} if ($descLANG{$lloc} ne ''); foreach my $i (sort(@cat)) { $stats{$i}++; # figure out the FTP url $loc =~ s/\/usr\//$baseCVSWEB/; $ldesc =~ s/\/usr\//$baseHTTP/; # The name description and maintainer $name =~ s/,.*//g; $name =~ s/\++//g; $data{$i} .= "

$name
"; $data{$i} .= "
$desc
¾Ü¤·¤¤ÀâÌÀ"; if ($packages{"$name.tbz"}) { $data{$i} .= qq{ | ¥Ñ¥Ã¥±¡¼¥¸}; } elsif ($packages{"$name.tgz"}) { $data{$i} .= qq{ | ¥Ñ¥Ã¥±¡¼¥¸}; } $data{$i} .= qq{ | ¥½¡¼¥¹}; if ($www ne "") { $data{$i} .= qq{ | Main Web Site}; } my $ownerurl = $owner; $ownerurl =~ s/<//g; $data{$i} .= "
ÊݼéôÅö¼Ô: $owner"; # If there are any dependencies, list them if ($bdep ne "" || $rdep ne "") { $data{$i} .= "
ɬÍפʤâ¤Î: "; my @dep = split(/ /, "$bdep $rdep"); my $last = ''; foreach my $j (sort @dep) { next if $j eq $last; $last = $j; $data{$i} .= " $j,"; } # remove the trailing comma chop $data{$i}; } # If the port is listed in more than one category, throw # in some cross references if ($#cat > 0) { $data{$i} .= "
¤³¤³¤Ë¤â´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹: "; foreach my $j (@cat) { if ($j ne $i) { if ($j eq $cat[0]) { $data{$i} .= " \u$j,"; } else { $data{$i} .= " \u$j,"; } } } # remove the trailing comma chop($data{$i}); } $data{$i} .= "

\n" } # Add an entry to the master index # workaround for XML syntax, `--' is not allowed in comments my $sname = $name; $sname =~ s/--/-=/g; $master[$portnumber] = "$name " . " -- $desc
\n"; $portnumber++; } # create categories-grouped.xml and .xml $moutf->open(">categories-grouped.xml"); header($moutf, "FreeBSD Ports -- ¥°¥ë¡¼¥×¤Ë¤è¤ëʬÎà"); print $moutf < EOF if ($portnumber eq '0') { print $moutf "

none found

\n"; } else { foreach my $cg (@category_groups) { print $moutf "

",$category_groups{$cg},"

\n"; print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { next if ($category_description{$key}{group} ne $cg); # For the master file... print $moutf "
  • \u$key ($stats{$key})"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } # Someone forgot to add a category to the description file # or there is a typo in the category field. else { warn "No description found for category: ``$key''!\n"; warn "Please fix me or send an E-Mail to doc\@FreeBSD.org\a\n"; sleep(3); } print $moutf "
  • \n"; # Create the category file $outf->open(">$key.xml"); header($outf, "FreeBSD Ports: \u$key"); if ($category_description{$key}{desc}) { print $outf "

    ", $category_description{$key}{desc}, "

    \n"; } print $outf "
    \n"; my $d = join("\n", sort(split(/\n/, $data{$key}))); $d =~ s/##([^#]*)##/$catkey{$1}/g; print $outf $d; print $outf "
    \n"; footer($outf, "

    top" . " -- Index"); $outf->close; } print $moutf "
\n"; } } footer($moutf, ""); $moutf->close; # create categories-alpha.xml $moutf->open(">categories-alpha.xml"); header($moutf, "FreeBSD Ports -- ¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç"); print $moutf < EOF if ($portnumber eq '0') { print $moutf "

none found

\n"; } else { print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { print $moutf "
  • \u$key ($stats{$key})\n"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } print $moutf "
  • \n"; } print $moutf "
\n"; } footer($moutf, ""); $moutf->close; # Create master-index.xml $mindex->open(">master-index.xml"); header($mindex, "FreeBSD Ports Collection °ìÍ÷"); print $mindex "

\n"; print $mindex sort @master; print $mindex "

"; footer($mindex, "top"); $mindex->close; # Create statistics.ent $statistics->open(">statistics.ent"); - my $ptgzsize = `cat ports.size 2>/dev/null` || ""; - if ($ptgzsize =~ /^\d+$/) { - $ptgzsize = sprintf("%.0f", $ptgzsize/(1024*1024)); - print $statistics "\n"; - print $statistics "\n"; - } else { - warn "Unknown size for ports.tar.gz\n"; - print $statistics "\n"; - } print $statistics "\n"; $statistics->close; close(INDEX); } Index: head/ru_RU.KOI8-R/htdocs/ports/Makefile =================================================================== --- head/ru_RU.KOI8-R/htdocs/ports/Makefile (revision 47264) +++ head/ru_RU.KOI8-R/htdocs/ports/Makefile (revision 47265) @@ -1,109 +1,95 @@ # # The FreeBSD Russian Documentation Project # # $FreeBSD$ # $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.9 2004/03/23 21:09:19 phantom Exp $ # # Original revision: r39632 # .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .if exists(Makefile.inc) .include "Makefile.inc" .endif FETCH_OPT?= -am .if defined(PINDEX_OVERRIDE) ${INDEX}: ${PINDEX_OVERRIDE} ${CP} ${PINDEX_OVERRIDE} ${INDEX} .elif defined(NOPORTSNET) ${INDEX}: $${PORTSBASE}/${PINDEX} ${CP} ${PORTSBASE}/${PINDEX} ${INDEX} .else ${INDEX}: ${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2 ${BUNZIP2} ${INDEX}.bz2 .endif HOSTNAME!= hostname -.if ${HOSTNAME} == "hub.freebsd.org" || ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "www.freebsd.org" || ${HOSTNAME} == "build-web.stream.FreeBSD.org" +.if ${HOSTNAME} == "freefall.freebsd.org" || ${HOSTNAME} == "build-web.ysv.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 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; .else ${TOUCH} ${.TARGET} .endif 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 " statistics.ent";\ ) > Makefile.gen for categoryfile in ${CATEGORYLIST}; do \ ${ECHO_CMD} -n " $$categoryfile.xml" >> Makefile.gen; \ done ${ECHO_CMD} >> Makefile.gen -.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, .xml CATEGORYLIST=`grep "^[a-z]" categories | awk -F, '{print $$1}'` categories-alpha.xml: ${INDEX} categories categories.descriptions \ - packages.exists portindex ports.ent ports.size .NOTMAIN + packages.exists portindex ports.ent .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 beforeinstall: ${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" Index: head/ru_RU.KOI8-R/htdocs/ports/Makefile.inc =================================================================== --- head/ru_RU.KOI8-R/htdocs/ports/Makefile.inc (revision 47264) +++ head/ru_RU.KOI8-R/htdocs/ports/Makefile.inc (revision 47265) @@ -1,23 +1,23 @@ # # The FreeBSD Russian Documentation Project # # $FreeBSD$ # $FreeBSDru: frdp/www/ru/ports/Makefile.inc,v 1.3 2004/01/06 17:28:41 andy Exp $ # # Original revision: r39534 # PORTINDEX= ${PERL} ${.CURDIR}/portindex INDEX= INDEX PINDEX= ports/${INDEX} COOKIE= ${INDEX} Makefile.gen CLEANFILES+= ${INDEX} ${INDEX}.bz2 CLEANFILES+= packages.exists.temp packages.exists CLEANFILES+= ${DYNAMIC_DOCS} CLEANFILES+= Makefile.gen -CLEANFILES+= ports.count ports.size +CLEANFILES+= ports.count _ALLINSTALL= packages.exists categories Index: head/ru_RU.KOI8-R/htdocs/ports/installing.xml =================================================================== --- head/ru_RU.KOI8-R/htdocs/ports/installing.xml (revision 47264) +++ head/ru_RU.KOI8-R/htdocs/ports/installing.xml (revision 47265) @@ -1,39 +1,39 @@ %ports.ent; %statistics.ent; ]> &title; $FreeBSD$ &searchform;

åÓÌÉ ×Ù ÕÓÔÁÎÁ×ÌÉ×ÁÅÔÅ FreeBSD Ó CD-ROM ÉÌÉ ÐÏ ftp, ÐÒÉÌÏÖÅÎÉÅ sysinstall ÐÏÚ×ÏÌÉÔ ×ÁÍ ÚÁÏÄÎÏ ÕÓÔÁÎÏ×ÉÔØ ëÏÌÌÅËÃÉÀ ðÏÒÔÏ×.

åÓÌÉ ÖÅ ×Ù ÎÅ ÉÓÐÏÌØÚÕÅÔÅ ÜÔÏÔ ÍÅÔÏÄ ÕÓÔÁÎÏ×ËÉ, ×Ù ÍÏÖÅÔÅ ÚÁÇÒÕÚÉÔØ ÓÖÁÔÙÊ ÁÒÈÉ× Ó ÐÏÌÎÙÍ ÄÅÒÅ×ÏÍ ÐÏÒÔÏ×. òÁÚÍÅÒ ÆÁÊÌÁ - ÓÏÓÔÁ×ÌÑÅÔ &ports.size;.

+ ÓÏÓÔÁ×ÌÑÅÔ .

Index: head/ru_RU.KOI8-R/htdocs/ports/portindex =================================================================== --- head/ru_RU.KOI8-R/htdocs/ports/portindex (revision 47264) +++ head/ru_RU.KOI8-R/htdocs/ports/portindex (revision 47265) @@ -1,401 +1,393 @@ #!/usr/bin/perl -w # convert a ports INDEX file to XML files # # by John Fieber # Mon May 13 10:31:58 EST 1996 # # The FreeBSD Russian Documentation Project # # $FreeBSD$ # $FreeBSDru: frdp/www/ru/ports/portindex,v 1.14 2004/03/23 21:10:07 phantom Exp $ # # Original revision: r45243 # ############################################################ use strict; use POSIX; use IO::File; my $base = ""; my $baseHTTP = ""; my $urlcgi = ""; my $packagesURL = ""; my $today = getdate(); my %p = (); # Load local config file. You can override in portindex.conf # the variables for the default web and the ftp server. This # make it easy to maintain a local web mirror and let the # URL point to yourself and not to the standard FreeBSD FTP server. my $config = $0 . '.' . 'conf'; do $config if -f $config; # This is the base of where we ftp stuff from my $ftpserver; if ($ENV{'MASTER_FTP_SERVER'}) { $ftpserver = $ENV{'MASTER_FTP_SERVER'}; } else { $ftpserver = 'ftp://ftp.FreeBSD.org' if !$ftpserver; } $baseHTTP = $base if !$baseHTTP; my $baseFTP = "$ftpserver/pub/FreeBSD/ports/ports"; my $baseCVSWEB = 'http://www.FreeBSD.org/cgi/cvsweb.cgi/'; $urlcgi = 'http://www.FreeBSD.org/cgi/url.cgi' if !$urlcgi; $packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly my $ftparchive = ''; $ftparchive = 'tar' if !defined $ftparchive; # ports download sources script my $pds = 'http://www.FreeBSD.org/cgi/pds.cgi'; # better layout and link to the sources if ($urlcgi) { $baseHTTP = $urlcgi . '?' . $baseHTTP; } my %packages = (); my %category_description = (); my @category_groups = (); my %category_groups = (); packages_exist('packages.exists'); category_description(($ARGV[1] || '.') . '/categories' ); category_groups(($ARGV[1] || '.') . '/categories.descriptions' ); main(); sub getdate { return POSIX::strftime("%d-%B-%Y", localtime); } sub header { my $fh = shift; my $htext = shift; #local($fh, $htext) = @_; print $fh < %ports.ent; %statistics.ent; ]> $htext x x x $today x x x &searchform;
EOF } sub footer { my $fh = shift; my $ftext = shift; #local ($fh, $ftext) = @_; print $fh < EOF } sub packages_exist { my $file=shift; my %p; #local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot create packages links\n"; return 1; }; while(

) { chop; $packages{$_} = 1; } close P; } sub category_description { my $file = shift; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category description\n"; return 1; }; while(

) { # ignore comments next if /^\s*#/; if (/^\s*([^,]+),\s*"([^"]+)",\s*([A-Z]+)/) { $category_description{$1}{desc}=$2; $category_description{$1}{group}=$3; } } close P; } sub category_groups { my $file = shift; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category groups\n"; return 1; }; while(

) { # ignore comments next if /^\s*#/; if (/^\s*([^,]+),\s*(.+)/) { $category_groups{$1}=$2; push(@category_groups,$1); } } close P; } sub main { my @master=(); my %stats; my %catkey; my %data; my $portnumber = 0; my $sep = ":"; my $moutf = new IO::File; my $outf = new IO::File; my $mindex = new IO::File; my $statistics = new IO::File; open(INDEX, $ARGV[0]); $portnumber = "0"; while () { chop; s/&/&/g; s//>/g; # Read a record my ($name, $loc, $prefix, $desc, $ldesc, $owner, $cats, $bdep, $rdep, $www) = split('\|'); # Check for double hyphens in the name (--). $name =~ s/--/-/g; # Split the categories into an array my @cat = split("[ \t]+", $cats); $catkey{$name} = $cat[0]; my $sourcepath = $loc; $sourcepath =~ s%/usr/%%; foreach my $i (sort(@cat)) { $stats{$i}++; # figure out the FTP url $loc =~ s/\/usr\//$baseCVSWEB/; $ldesc =~ s/\/usr\//$baseHTTP/; # The name description and maintainer $name =~ s/,.*//g; $name =~ s/\++//g; $data{$i} .= "

$name
"; $data{$i} .= "
$desc
ðÏÌÎÏÅ ÏÐÉÓÁÎÉÅ"; if ($packages{"$name.tbz"}) { $data{$i} .= qq{ | ðÁËÅÔ}; } elsif ($packages{"$name.tgz"}) { $data{$i} .= qq{ | ðÁËÅÔ}; } $data{$i} .= qq{ | éÓÈÏÄÎÙÅ ÔÅËÓÔÙ}; if ($www ne "") { $data{$i} .= qq{ | ïÓÎÏ×ÎÏÊ Web ÓÁÊÔ}; } my $ownerurl = $owner; $ownerurl =~ s/<//g; $data{$i} .= "
ðÏÄÄÅÒÖËÏÊ ÚÁÎÉÍÁÅÔÓÑ: $owner"; # If there are any dependencies, list them if ($bdep ne "" || $rdep ne "") { $data{$i} .= "
ôÒÅÂÕÅÔ: "; my @dep = split(/ /, "$bdep $rdep"); my $last = ''; foreach my $j (sort @dep) { next if $j eq $last; $last = $j; $data{$i} .= " $j,"; } # remove the trailing comma chop $data{$i}; } # If the port is listed in more than one category, throw # in some cross references if ($#cat > 0) { $data{$i} .= "
ôÁËÖÅ ÐÒÉÓÕÔÓÔ×ÕÅÔ ×: "; foreach my $j (@cat) { if ($j ne $i) { if ($j eq $cat[0]) { $data{$i} .= " \u$j,"; } else { $data{$i} .= " \u$j,"; } } } # remove the trailing comma chop($data{$i}); } $data{$i} .= "

\n" } # Add an entry to the master index # workaround XML syntax, `--' is not allowed in comments my $sname = $name; $sname =~ s/--/-=/g; $master[$portnumber] = "$name " . " -- $desc
\n"; $portnumber++; } # create categories-grouped.xml and .xml $moutf->open(">categories-grouped.xml"); header($moutf, "ëÁÔÅÇÏÒÉÉ ðÏÒÔÏ× FreeBSD ÐÏ ÇÒÕÐÐÁÍ"); print $moutf < EOF if ($portnumber eq '0') { print $moutf "

ÎÉÞÅÇÏ ÎÅ ÎÁÊÄÅÎÏ

\n"; } else { foreach my $cg (@category_groups) { print $moutf "

",$category_groups{$cg},"

\n"; print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { next if ($category_description{$key}{group} ne $cg); # For the master file... print $moutf "
  • \u$key ($stats{$key})"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } # Someone forgot to add a category to the description file # or there is a typo in the category field. else { warn "No description found for category: ``$key''!\n"; warn "Please fix me or send an E-Mail to doc\@FreeBSD.org\a\n"; sleep(3); } print $moutf "
  • \n"; # Create the category file $outf->open(">$key.xml"); header($outf, "ðÏÒÔÙ FreeBSD: \u$key"); if ($category_description{$key}{desc}) { print $outf "

    ", $category_description{$key}{desc}, "

    \n"; } print $outf "
    \n"; my $d = join("\n", sort(split(/\n/, $data{$key}))); $d =~ s/##([^#]*)##/$catkey{$1}/g; print $outf $d; print $outf "
    \n"; footer($outf, "

    top" . " -- Index"); $outf->close; } print $moutf "
\n"; } } footer($moutf, ""); $moutf->close; # create categories-alpha.xml $moutf->open(">categories-alpha.xml"); header($moutf, "ëÁÔÅÇÏÒÉÉ ðÏÒÔÏ× FreeBSD × ÁÌÆÁ×ÉÔÎÏÍ ÐÏÒÑÄËÅ"); print $moutf < EOF if ($portnumber eq '0') { print $moutf "

ÎÉÞÅÇÏ ÎÅ ÎÁÊÄÅÎÏ

\n"; } else { print $moutf "
    \n"; foreach my $key (sort(keys(%stats))) { print $moutf "
  • \u$key ($stats{$key})"; if ($category_description{$key}{desc}) { print $moutf " -- " . $category_description{$key}{desc}; } print $moutf "
  • \n"; } print $moutf "
\n"; } footer($moutf, ""); $moutf->close; # Create master-index.xml $mindex->open(">master-index.xml"); header($mindex, "éÎÄÅËÓ ëÏÌÌÅËÃÉÉ ðÏÒÔÏ× FreeBSD"); print $mindex "

\n"; print $mindex sort @master; print $mindex "

"; footer($mindex, "top"); $mindex->close; # Create statistics.ent $statistics->open(">statistics.ent"); print $statistics "\n"; - my $ptgzsize = `cat ports.size 2>/dev/null` || ""; - if ($ptgzsize =~ /^\d+$/) { - $ptgzsize = sprintf("%.0f", $ptgzsize/(1024*1024)); - print $statistics "\n"; - } else { - warn "Unknown size for ports.tar.gz\n"; - print $statistics "\n"; - } print $statistics "\n"; $statistics->close; close(INDEX); }