OpenBSD Porting Checklist

2009-05-13 08:22:02来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


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
      特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

  • 上一篇:rsycn服务配置实验记录--原创

    下一篇:试析FreeBSD桌面系统中利用Fontconfig进行字体配置的运作原理