[BACK]Return to ports.html CVS log [TXT][DIR] Up to [local] / www

File: [local] / www / Attic / ports.html (download) (as text)

Revision 1.5, Wed Sep 17 11:14:21 1997 UTC (26 years, 8 months ago) by tacho
Branch: MAIN
Changes since 1.4: +76 -82 lines

added link to my ports tree page

<!DOCTYPE HTML PUBLIC  "-//IETF//DTD HTML Strict//EN">
<HTML>
  <HEAD>
    <TITLE>
      OpenBSD ports mechanism
    </TITLE>
    <LINK REV="made" HREF="mailto:www@openbsd.org">
    <META NAME="resource-type" CONTENT="document">
    <META NAME="description" CONTENT="How OpenBSD can make use of the FreeBSD ports">
    <META NAME="keywords" CONTENT="openbsd,ports">
    <META NAME="distribution" CONTENT="global">
    <META NAME="copyright" CONTENT="This document copyright 1997 by the OpenBSD project">
  </HEAD>
  <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#23238E">
    <IMG ALT="[OpenBSD]" SRC="bsdsoft.gif">
    <H2>OpenBSD ports mechanism</H2>
    <P>
    <H3><STRONG>History</STRONG></H3>
    <P>
      OpenBSD is a fairly complete system of its own, but still there are a lot of
      software that one might want see added.  However there is the problem on where
      to draw the line on what to include and not, as well as licensing and export
      restrictions problems.  Some things just can't be shipped with the system.
      We wanted to find a way for users to easily get software we don't provide
      and started to look around.  We didn't have to look far as a sibling project,
      <A HREF="http://www.freebsd.org/">FreeBSD</A>, had an excellent mechanism for
      exactly this purpose called
      <A HREF="http://www.freebsd.org/ports/">"The ports collection"</A>.  After
      thinking about it for a while we decided to try to use their collection as is,
      feeding back necessary patches to make the ports work on OpenBSD as well
      to the FreeBSD maintainers.
    </P>
    <H3><STRONG>Short description and setup</STRONG></H3>
    <P>
      The ports idea is to have, for each piece of software, a Makefile that
      describes where to fetch it, how to do the fetch, what it is depending upon
      (if anything), how to alter the sources (if needed) and how to configure,
      build and install it.  Furthermore some patches will have to be kept in the
      "port" as well as some administration files for the package registry utilities.
      Normally this information is kept in an hierarchy under /usr/ports (however,
      this is configurable).  I recommend reading the
      <A HREF="http://www.freebsd.org/handbook/ports.html">ports chapter</A> in the
      <A HREF="http://www.freebsd.org/handbook/">FreeBSD handbook</A> to get
      information on how to setup this hierarchy.  A current gzipped tar-archive
      of the FreeBSD ports can be found
      <A HREF="ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports.tar.gz">here
      </A>.
    </P>
    <H3><STRONG>Example</STRONG></H3>
    <P>
      Let's say you managed to get a ports tree sitting under /usr/ports, then you
      should be able to something like this:
    <PRE>
cd /usr/ports/archivers/unzip
make
su
make install
exit
    </PRE>
    Easy, huh?
  </P>
    <H3><STRONG>Problems and contacts</STRONG></H3>
    <P>
      As the ports collection really is a FreeBSD thing, there are ports that do not
      work in OpenBSD for various reasons.  But this is going to change in the near future.
      Our <A HREF="mailto:tacho@openbsd.org">ports coordinator</A> has set up a 
      <A HREF="http://deeplaid.uni-svishtov.bg/ports-status.html">page with the current status</A>
      - what is done, what is being worked on right now, on what architecture, etc. 
      If you have trouble with ports contact either 
      <A HREF="mailto:tacho@openbsd.org">Stanislav Grozev</A> (preferably), 
      <A HREF="mailto:niklas@openbsd.org">Niklas Hallqvist</A> or
      <A HREF="mailto:imp@openbsd.org">Warner Losh</A> and give us either patches
      on how to fix things or, if you cannot do this, point us at the problematic
      port and tell us what fails and we shall try to fix it.
    </P>
    <HR>
    <A HREF="index.html"><IMG SRC="back.gif" BORDER="0" ALT="OpenBSD"></A> 
    <A HREF="mailto:www@openbsd.org">www@openbsd.org</A>
    <BR>
    <SMALL>$OpenBSD: ports.html,v 1.5 1997/09/17 11:14:21 tacho Exp $</SMALL>
  </BODY>
</HTML>