[nycbug-talk] local ports

Bjorn Nelson o_sleep
Thu Dec 8 11:26:17 EST 2005


NYCBuggers,

I just wanted to follow up on this post.
On Fri 2005.12.02 at 17:14 -0500, Bjorn Nelson wrote:

> NYCBuggers,
>
> I just posted this to the freebsd-arch mailing list.  What is
> everyone's thought on this?
>
> "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."

Got some good information on freebsd-ports at freebsd.org from Michael  
C. Shultz who said:

=====

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

====

Okan Demirmen on this (nycbug) list suggested to:
echo mystuff >> ${PORTSDIR}/.cvsignore

So I don't lose my port when I do a cvsup.  The setup is working  
great now.  Installing our clumsy proprietary apps are much easier now.

Thanks all.

-Bjorn Nelson





More information about the talk mailing list