local ports (moved from freebsd-arch)

Michael C. Shultz ringworm01 at gmail.com
Fri Dec 2 23:28:47 GMT 2005


On Friday 02 December 2005 14:38, Bjorn Nelson wrote:
> All,
>
> I originally put this in freebsd-arch, then realized this should
> probably go here in freebsd-ports, so I am moving it here...
>
> I propose a new port category called local or site.  This would not
> get updated with the cvsup, but would allow people to have a place to
> put ports that they want to keep internal to their site.  I am
> currently exporting a ports tree to a bunch of other hosts and it
> would be handy if I could just put ports for our proprietary apps in
> there and not worry about keeping a forked bsd.port.mk.
>
> Sincerely,
> Bjorn Nelson

I've been doing this for years and the current port mechnism seems to work 
with it ok.  Excerpt from man portmanager(1)

     local ports, ie. ports not in the FreeBSD ports tree:

     Here is how to handle locally installed ports if you plan to take advan-
     tage of some of FreeBSD's port system features:

      ########################################################################
      # Makefile from /usr/ports/local/sysutils/somelocalportname/Makefile
      ########################################################################
      PORTNAME=           somelocalportname
      PORTVERSION=        0.1.0
      CATEGORIES=         local/sysutils
      VALID_CATEGORIES+=  ${CATEGORIES}       # for FreeBSD to accept our
                                              # local category

     Simply add a "local" directory to /usr/ports and install your local ports
     under that directory. Where a normal FreeBSD port may be in "sysu-
     tils/{portname} the example above would reside in "local/sysutils/{port-
     name}".

-Mike



More information about the freebsd-ports mailing list