OpenBSD Porting Checklist
2009-05-13 08:22:02来源:未知 阅读 ()
This document describes how to make or upgrade a port. It is a useful
reminder of things to do. This is neither totally accurate nor perfect.
Direct comments and questions to
ports@openbsd.org.
If you want to be a maintainer, subscribe to
ports@openbsd.org.
-
This is where all ports discussions take place.
Reading this list is important since many announcements go over this list.
You will find a lot of porting-savvy people there. They can often give you
good advice or test ports for you.
Being a maintainer means more than just submitting ports.
It also means trying to keep them up-to-date, and to answer questions about
them.
Check out a copy of the ports tree from cvs.
You can find instructions on how to do this at the
anonymous cvs page
.
Pick a place to put your port and create the basic
infrastructure there. Use the template Makefile at
/usr/ports/infrastructure/templates/Makefile.template.
NEED_VERSION is obsolete and should not be used in new ports.
As you are a port developer, you are supposed to update
your ports tree, including bsd.port.mk.
Create the directory pkg.
Create the empty files pkg/DESCR, pkg/PLIST.
Add the fetch portions of the Makefile.
Fill in EXTRACT_SUFX if it's anything besides .tar.gz. Other examples are
.tar.Z, or .tgz.
Fill in DISTNAME which is the name of the file minus the extract suffix.
E.g., if you have foo-1.0.tar.gz, DISTNAME is foo-1.0.
Fill in MASTER_SITES which is a URL to the directory where the distfile
is kept. E.g., ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/.
Don't forget the trailing slash.
Try to have at least three distinct sites as well.
Place the most easily accessible first as they are traversed in order.
Keep in mind that fetch references the file as
${MASTER_SITES}${DISTNAME}${EXTRACT_SUFX}. All three are used. Don't
set DISTNAME to point to the file directly.
You can check to see if you have filled these values in correctly by typing
make fetch-all.
For more complex ports, you have more options and tools available to you:
You also have the variable PATCHFILES available. This is a list of vendor
(not OpenBSD) patches to the port. Common uses are things like security
or reliability fixes.
If your ports are available over large public mirrors such as GNU, SunSite, or
CPAN, we have already provided a list of sites for your use in
/usr/ports/infrastructure/templates/network.conf.template.标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- 提示:bad kernel: arp : 内网IP地址 is on em0 but got rep 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash