diff --git a/en/ports/packages b/en/ports/packages index 6d4ec0abe3..f8e90deb46 100755 --- a/en/ports/packages +++ b/en/ports/packages @@ -1,18 +1,18 @@ #!/bin/sh # Copyright (c) June 1998 Wolfram Schneider , Berlin. # # packages - create a sorted list of precompiled packages which # are available at the FreeBSD FTP Server. # -# $Id: packages,v 1.2 1998-08-03 11:53:37 wosch Exp $ +# $Id: packages,v 1.3 1999-01-14 08:31:31 asami Exp $ PATH=/bin:/usr/bin:/usr/local/bin; export PATH release='packages-stable'; -url="ftp://ftp.freebsd.org/pub/FreeBSD/$release/All/" +url="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/$release/All/" lynx -source "$url" | perl -ne 'print $1, "\n" if m%href="([^"]+)"%oi' | perl -npe 's%.*/%%' | sort | grep -v '^\.\.$' diff --git a/en/ports/portindex b/en/ports/portindex index ec42cf3b2f..b542c28b0f 100755 --- a/en/ports/portindex +++ b/en/ports/portindex @@ -1,262 +1,262 @@ #!/usr/bin/perl # convert a ports INDEX file to HTML # # by John Fieber # Mon May 13 10:31:58 EST 1996 ############################################################ # 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. $config = $0 . '.' . 'conf'; do $config if -f $config; # This is the base of where we ftp stuff from if ($ENV{'MASTER_FTP_SERVER'}) { $ftpserver = $ENV{'MASTER_FTP_SERVER'}; } else { $ftpserver = 'ftp://ftp.freebsd.org' if !$ftpserver; } $base = "$ftpserver/pub/FreeBSD/FreeBSD-current" if !$base; $baseHTTP = $base if !$baseHTTP; $urlcgi = 'http://www.freebsd.org/cgi/url.cgi' if !$urlcgi; -$packagesURL = "$ftpserver/pub/FreeBSD/packages-stable/All/" +$packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly $ftparchive = 'tar' if !$ftparchive; # ports download sources script $pds = 'http://www.freebsd.org/cgi/pds.cgi'; # better layout and link to the sources if ($urlcgi) { $baseHTTP = $urlcgi . '?' . $baseHTTP; } $today = &getdate; &packages_exist('packages.exists', *packages); &category_description('categories', *category_description); &main; sub getdate { @months = ("January", "February", "March", "April", "May","June", "July", "August", "September", "October", "November", "December"); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year += 1900; return "Updated $months[$mon] $mday, $year"; } sub header { local ($fh, $htext) = @_; print $fh ""; print $fh "$today\">\n"; print $fh ""; print $fh "\n"; print $fh "\n"; print $fh ""; print $fh "%includes;\n"; print $fh "]>\n"; print $fh "&header;\n"; } sub footer { local ($fh, $ftext) = @_; print $fh "\n$ftext\n"; print $fh "&footer;\n"; print $fh "\n\n"; } sub packages_exist { local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot create packages links\n"; return 1; }; while(

) { chop; $p{$_} = 1; } close P; return 0; } sub category_description { local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category description\n"; return 1; }; local($category, $description); while(

) { # ignore comments next if /^\s*#/; ($category, $description) = /^\s*"([^"]+)",\s*"([^"]+)/; $p{$category} = $description; } close P; return 0; } sub main { $sep = ":"; while (<>) { chop; s/&/&/g; s//>/g; # Read a record ($name, $loc, $prefix, $desc, $ldesc, $owner, $cats, $bdep, $rdep) = split('\|'); # Check for double hyphens in the name (--). $name =~ s/--/-/g; # Split the categories into an array @cat = split("[ \t]+", $cats); $catkey{$name} = $cat[0]; local($sourcepath) = $loc; $sourcepath =~ s%/usr/%%; foreach $i (@cat) { $stats{$i}++; # figure out the FTP url $loc =~ s/\/usr/$base/; $ldesc =~ s/\/usr/$baseHTTP/; # The name description and maintainer $data{$i} .= "

$name "; $data{$i} .= "
$desc
Long description"; if ($packages{"$name.tgz"}) { $data{$i} .= qq{ | Package}; } $data{$i} .= qq{ | Sources}; $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: "; @dep = split(/ /, "$bdep $rdep"); local($last) = ''; foreach $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 $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 SGML bug, `--' is not allowed in comments local ($sname) = $name; $sname =~ s/--/-=/g; $master[$portnumber] = "$name " . " -- $desc
\n"; $portnumber++; } open(MOUTF, ">index.sgml"); &header(MOUTF, "FreeBSD Ports"); # print MOUTF "\n"; print MOUTF "&blurb;"; print MOUTF "

There are currently $portnumber ports in the FreeBSD Ports Collection.
Download a gzip'd tar file of all $portnumber ports (about 5 megabytes) or browse the following categories:\n"; print MOUTF "

\n"; print MOUTF "\n"; &footer(MOUTF, ""); close(MOUTF); # Create the master index file open(MINDEX, ">master-index.sgml"); &header(MINDEX, "FreeBSD Ports Collection Index"); print MINDEX "

\n"; print MINDEX sort @master; print MINDEX "

"; &footer(MINDEX, "
Port Categories
"); close(MINDEX); } diff --git a/en/ports/ports.inc b/en/ports/ports.inc index 1a66d62e99..b190ac42f9 100644 --- a/en/ports/ports.inc +++ b/en/ports/ports.inc @@ -1,93 +1,93 @@ - +

The FreeBSD Ports and Packages Collection offers a simple way for users and administrators to install applications. Each ``port'' listed here contains any patches necessary to make the original application source code compile and run on FreeBSD. Installing an application is as simple as downloading the port, unpacking it and typing make in the port directory. The Makefile automatically fetches the application source code, either from a local disk, CDROM or via ftp, unpacks it on your system, applies the patches, and compiles. If all went well, a simple make install will install the application and register it with the package system.

For most ports, a precompiled package also exists, saving the user the work of having to compile anything at all. Each port contains a link to its corresponding package and you may either simply download that file and then run the pkg_add command on it or you can simply grab the link location and hand it straight to pkg_add since it's capable of accepting FTP URLs as well as filenames.

For more information about using ports, see The ports collection. For information about creating new ports, see Porting applications. Both are part of the FreeBSD Handbook.

The ports listed on these web pages are continually being updated. Consequently, you may need to update a few files on your FreeBSD system to make use of ports developed after your version of FreeBSD was released. Please install one of the following depending on the release you are running. Also, if you are running FreeBSD-stable or FreeBSD-current that is more than a few days old, you are recommended to install an appropriate upgrade kit as well; the ports system is changing very fast at times.

2.2.1 +href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-2.2-stable/Latest/221upgrade.tgz">2.2.1 to 2.2-stable upgrade kit
For users of 2.2.1-release or 2.2-stable between 2.2.1-release and 2.2.2-release
2.2.2 +href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-2.2-stable/Latest/222upgrade.tgz">2.2.2 to 2.2-stable upgrade kit
For users of 2.2.2-release or 2.2-stable between 2.2.2-release and 2.2.5-release
2.2.5 +href="ftp://ftp.freebsd.org/pub/ports/i386/FreeBSD/packages-2.2-stable/Latest/225upgrade.tgz">2.2.5 to 2.2-stable upgrade kit
For users of 2.2.5-release or 2.2-stable between 2.2.5-release and 2.2.6-release
2.2.7 +href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-2.2-stable/Latest/227upgrade.tgz">2.2.7 to 2.2-stable upgrade kit
For users of 2.2.6-release, 2.2.7-release, 2.2.8-release or 2.2-stable after 2.2.6-release
3.0 +href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/30upgrade.tgz">3.0 to 3.0-current upgrade kit
For users of 3.0-release or 3.0-current after 3.0-release

These are FreeBSD packages; please use pkg_add to install them. That should enable you to use all the ports listed here. Note that it will only change just enough files to enable ports/packages to be used; for a full upgrade to 2.2-stable or 3.0-current, please refer to the synchronizing your source tree section of the handbook. A full upgrade is recommended, especially if you are still using anything earlier than 2.2.7-release.

Many of the ports require the X Window System to compile and run. We compile and test our ports on XFree86. Their current release is 3.3.3. Some ports may not work with older releases.

For more information about new, changed or removed ports/packages, or if you wish to search for a specific application to see if it's available as a port/package, please see the FreeBSD Ports Changes page.

Search for: