On 2021-10-15, Rubén Llorente <port...@use.startmail.com> wrote:
> Marc Espie <es...@nerim.net> wrote:
>> On Fri, Oct 15, 2021 at 10:25:17AM -0000, Rubén Llorente wrote:
>>> Hi there!
>>> 
>>> I am wondering how does people around here keep local branches of the ports
>>> tree for personal use.
>>> 
>> 
>> Put your own ports into mystuff...
>> 
>> if you think they might interest other people, see whether the WIP git repo
>> would be suitable for them, until they're mature enough.
>> 
>> 
>
> A bunch of this stuff is really of no interest to anybody. Or does not fit a
> port system for general use.
>
> Having a "mystuff" folder sounds fine but if I want to put it under version
> control it is going to need some engineering :-) It sounds like a workable
> solution so I will study it.
>

Just use a different VCS, for example svn or git. /usr/ports/mystuff
is listed in .cvsignore in the repository so they don't conflict, and
there is special handling in ports infrastructure. The directory
layout underneath it should be as with the main ports tree i.e.
/usr/ports/mystuff/category/portname.

See PORTSDIR_PATH in bsd.port.mk(5). By default /usr/ports takes
priority over /usr/ports/mystuff, but if you want to override things
in the main tree you can swap that around with an entry in /etc/mk.conf
like PORTSDIR_PATH=${PORTSDIR}/mystuff:${PORTSDIR}


-- 
Please keep replies on the mailing list.

Reply via email to