<?php /* -*- HTML -*- */
/*

$Id: packages.php,v 1.31 2002/08/09 01:42:59 cph Exp $

Copyright (c) 2001, 2002 Massachusetts Institute of Technology

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.

*/

include ("support.php");
$SCRIPT_TITLE = "Debian packages for the HP OmniBook";
standard_header ("\$Id: packages.php,v 1.31 2002/08/09 01:42:59 cph Exp $");

function write_apt_lines ($dir, $dist, $sect)
{
  global $HTTP_SERVER_VARS;
  $root
    = ("http://www.swiss.ai.mit.edu"
       . (dirname ($HTTP_SERVER_VARS['REQUEST_URI'])));
  $x1 = "${dir}/dists/${dist}/${sect}";
  $x2 = "${root}/${dir}";
  $xs = "${x1}/source";
  print ("<pre>\n");
  print ("deb <a href=\"${x1}/binary-i386/\">${x2}</a> ${dist} ${sect}\n");
  if ((file_exists ($xs)) && (is_dir ($xs)))
    print ("deb-src <a href=\"${xs}/\">${x2}</a> ${dist} ${sect}\n");
  print ("</pre>\n");
}

?>

<p>
<strong>Debian GNU/Linux 3.0 is released as of this writing.  For new
installations on OmniBook computers, I recommend using Debian 3.0.
The packages here, except for the kernel packages, are needed only for
the older Debian 2.2.</strong> To use the kernel packages in a Debian
3.0 system, add the following line to your
<samp>/etc/apt/sources.list</samp> file:
</p>

<?php write_apt_lines ("debian", "woody", "main") ?>

<hr />

<p>
In order to simplify the installation of Debian on this machine,
I've built an assortment of pre-configured packages that fix some of
the problems I've encountered getting Debian working on this machine.
These packages are all built for a Debian 2.2 system.
</p>

<p>
The primary thing provided here is a custom-configured Linux 2.4
kernel package.  Please note that <strong>Debian 2.2 requires several
package upgrades to use Linux 2.4</strong>.  To that end, I have
back-ported the necessary packages from the Debian "woody"
distribution, and those back-ported packages constitute the bulk of
what is here.  In addition to the kernel and its supporting packages,
there are two new packages, <code>laptop-net</code> and
<code>oss-preserve</code>, that provide features new to Debian.
</p>

<p>
(Another source for kernel 2.4 support packages is
<a href="http://www.fs.tum.de/~bunk/kernel-24.html">here</a>.  Adrian
Bunk is doing a more professional job of keeping the packages updated
and patched.  But his packages aren't specifically for the OmniBook.)
</p>

<p>
If you'd like to have these packages automatically updated, add the
following line to your <samp>/etc/apt/sources.list</samp> file:
</p>

<?php write_apt_lines ("debian", "potato", "main") ?>

<p>
Note that this archive keeps only the most recent versions of each
package; older packages are <a href="OLD/">here</a>.
</p>

<p>
As an added bonus, add the following lines to your
<samp>/etc/apt/sources.list</samp> file to get XFree86 4.0 packages
for Debian 2.2.  The packages solve the problem of video corruption
after resuming from hibernation.  <strong>Note well: these are not
general-purpose XFree86 packages, but have been trimmed and adjusted
for the OmniBook 500 and 6000 computers.  The packages include an
XF86Config file specifically for these machines.</strong>
</p>

<?php write_apt_lines ("x-packages", "potato", "main") ?>

<?php
function package_row ($title, $name, $notes)
{
  print ("  <tr align=\"left\">\n");
  print ("    <th>${title}</th>\n");
  print ("    <td>");
  debref ($name);
  print ("</td>\n");
  print ("    <td>${notes}</td>\n");
  print ("  </tr>\n");
}
?>

<table border="border">
<?php
{
  package_row ("OmniBook 6000",
	       "task-omnibook-6000",
	       "new package loads other packages for 6000");
  package_row ("OmniBook 500",
	       "task-omnibook-500",
	       "new package loads other packages for 500");
  package_row
    ("Linux 2.4.19",
     "kernel-image-2.4.19",
     ("patched for "
      . (ssrcref ("psaux-2.4.15-combined.diff", "touchpad access"))
      . ", "
      . (ssrcref ("usb-root-floppy-2.4.18.diff", "booting from USB floppy"))
      . ", and "
      . (ssrcref ("preempt-kernel-rml-2.4.19-rc5-3.patch", "preemption"))
      . "; "
      . (scfgref ((kernel_config_ref ("2.4.19")), ".config"))));
  package_row ("PCMCIA utilities",
	       "pcmcia-cs",
	       "backport from unstable");
  package_row ("Wireless tools",
	       "wireless-tools",
	       "backport from unstable");
  package_row ("APM daemon",
	       "apmd",
	       "patched for <a href=\"apm.php\">various features</a>");
  package_row ("Ethernet",
	       "laptop-net",
	       "new package");
  package_row ("Touchpad",
	       "tpconfig",
	       "backport from unstable");
  package_row ("Preserve mixer settings",
	       "oss-preserve",
	       "new package");
  package_row ("Mount w/NFSv3 support",
	       "mount",
	       "backport from unstable");
  package_row ("NFS utilities",
	       "nfs-common",
	       "backport from unstable");
  package_row ("NFS server",
	       "nfs-kernel-server",
	       "backport from unstable");
}
?>
</table>

<?php standard_footer () ?>
