version 1.19, 1999/02/27 16:37:29 |
version 1.20, 1999/02/27 16:49:44 |
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
<html> |
<html> |
<head> |
<head> |
<meta http-equiv="Content-Type" |
<meta http-equiv="Content-Type" |
|
|
<meta name="distribution" |
<meta name="distribution" |
content="global"> |
content="global"> |
<meta name="copyright" |
<meta name="copyright" |
content="This document copyright 1997 by the OpenBSD project"> |
content="This document copyright 1997-1999 by the OpenBSD project"> |
<title>Building an OpenBSD port</title> |
<title>Building an OpenBSD port</title> |
<link rev="made" HREF="mailto:www@openbsd.org"> |
<link rev="made" HREF="mailto:www@openbsd.org"> |
</head> |
</head> |
<body text="#000000" bgcolor="#FFFFFF" link="#23238E"> |
<body text="#000000" bgcolor="#FFFFFF" link="#23238E"> |
<img height=30 width=141 src=images/smalltitle.gif alt="[OpenBSD]" > |
<img height=30 width=141 src=images/smalltitle.gif alt="[OpenBSD]" > |
|
|
<h2><font color=#e00000>Building an OpenBSD port</font></h2> |
<h2><font color="#e00000">Building an OpenBSD port</font></h2> |
|
|
So you've just compiled your favorite software package on your |
So you've just compiled your favorite software package on your |
OpenBSD machine and you want to share your effort by turning |
OpenBSD machine and you want to share your effort by turning |
|
|
<p> |
<p> |
Submit the port. Create a gzipped tarball of the port directory. |
Submit the port. Create a gzipped tarball of the port directory. |
You can then either place it on a public FTP or HTTP server, sending |
You can then either place it on a public FTP or HTTP server, sending |
its address to <a href=mailto:ports@openbsd.org>ports@openbsd.org</a> |
its address to <a href="mailto:ports@openbsd.org">ports@openbsd.org</a> |
or send the port mime encoded to the same address. Pick whichever |
or send the port mime encoded to the same address. Pick whichever |
method works best for you. |
method works best for you. |
<p> |
<p> |
<h3><font color=#0000e0>Available Porting Information</font></h3> |
<h3><font color="#0000e0">Available Porting Information</font></h3> |
<ul> |
<ul> |
<li>The file <code>/usr/share/mk/bsd.port.mk</code>. This is the |
<li>The file <code>/usr/share/mk/bsd.port.mk</code>. This is the |
system ports makefile included at the end of each individual |
system ports makefile included at the end of each individual |
|
|
<li>The OpenBSD ports mailing list, |
<li>The OpenBSD ports mailing list, |
<a href="mailto:ports@openbsd.org">ports@OpenBSD.ORG</a>. |
<a href="mailto:ports@openbsd.org">ports@OpenBSD.ORG</a>. |
</ul> |
</ul> |
<h3><font color=#0000e0>OpenBSD Porting Policy</font></h3> |
<h3><font color="#0000e0">OpenBSD Porting Policy</font></h3> |
<ul> |
<ul> |
<li>OpenBSD does NOT use /usr/local/etc/rc.d.<br> |
<li>OpenBSD does NOT use /usr/local/etc/rc.d.<br> |
<code>/usr/local</code> is often shared between several machines |
<code>/usr/local</code> is often shared between several machines |
|
|
achieve this goal you <strong>must</strong> feed any OpenBSD patches |
achieve this goal you <strong>must</strong> feed any OpenBSD patches |
back to the application maintainer. |
back to the application maintainer. |
</ul> |
</ul> |
<a name=security> |
<a name=security></a> |
<h3><font color=#0000e0>Security recommendations</font></h3> |
<h3><font color="#0000e0">Security recommendations</font></h3> |
There are many security problems to worry about. If |
There are many security problems to worry about. If |
you are not absolutely sure of what you are doing please request |
you are not absolutely sure of what you are doing please request |
help from the <a href="mailto:ports@openbsd.org">ports</a> mailing |
help from the <a href="mailto:ports@openbsd.org">ports</a> mailing |
list. |
list. |
|
|
<ul> |
<ul> |
<li>Do <emph>not</emph> use alpha or beta code when preparing a port. Use the |
<li>Do <em>not</em> use alpha or beta code when preparing a port. Use the |
latest regular or patch release. |
latest regular or patch release. |
|
|
<li>Any software to be installed as a server should be scanned |
<li>Any software to be installed as a server should be scanned |
|
|
library writer point of view. Don't try to port libraries unless you |
library writer point of view. Don't try to port libraries unless you |
understand this issue thoroughly. |
understand this issue thoroughly. |
</ul> |
</ul> |
<h3><font color=#0000e0>Generic porting hints</font></h3> |
<h3><font color="#0000e0">Generic porting hints</font></h3> |
<ul> |
<ul> |
<li><code>__OpenBSD__</code> should be used sparingly, if at all. |
<li><code>__OpenBSD__</code> should be used sparingly, if at all. |
Constructs that look like |
Constructs that look like |
|
|
s = foo_gcvt(n, 15, b); |
s = foo_gcvt(n, 15, b); |
</pre> |
</pre> |
</ul> |
</ul> |
<h3><font color=#0000e0>Other Helpful Hints</font></h3> |
<h3><font color="#0000e0">Other Helpful Hints</font></h3> |
<ul> |
<ul> |
<li>Recent versions of <code>bsd.port.mk</code> set the installers |
<li>Recent versions of <code>bsd.port.mk</code> set the installers |
path. Specifically, they set <code>/usr/bin</code> and |
path. Specifically, they set <code>/usr/bin</code> and |
|
|
</ul> |
</ul> |
<hr> |
<hr> |
<a href="index.html"><img height=24 width=24 src=back.gif border=0 alt=OpenBSD></a> |
<a href="index.html"><img height=24 width=24 src=back.gif border=0 alt=OpenBSD></a> |
<a href=mailto:www@openbsd.org>www@openbsd.org</a> |
<a href="mailto:www@openbsd.org">www@openbsd.org</a> |
<br><small>$OpenBSD$</small> |
<br><small>$OpenBSD$</small> |
</body> |
</body> |
</html> |
</html> |