Re: Centralized ports collection server

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: misc <misc@...>
Date: Tuesday, September 4, 2007 - 6:02 am

On Tue, Sep 04, 2007 at 04:15:23AM +0200, Adriaan wrote:

Depends if all your boxes are the same architecture.
In any case, this is more or less sketched out in ports(7) (BULK PACKAGE
BUILDING, in particular).

Roughly sketched:
- there are distinct areas in /usr/ports. There's the main stuff, there are
the distfiles, there are the packages, there are the cookies, and there are
the working directories. You will want to use separate rules for each.
- You probably want to fetch the distfiles on the NFS server itself
(using the mechanism described in mirroring-ports(7)
- keep the work directory local. That's what WRKOBJDIR is for.
- the ports tree has some mechanism to ensure that two thingies do not build
the same package at the same time. With separate workdirs, this is less of
an issue, as the chances of collision are less... but be careful. it's
probably a good idea to lock stuff on machines that share some not read-only
stuff (e.g., packages for the same architecture).
- you might want to put the built packages on a separate partition with
distinct rules: they're all that's needed if you just want to install stuff
on a machine.
- think about what you do with the various update and bulk cookies.

There. The only thing we do not handle at all is shared installation through
NFS. pkg_add really does not cope with machines which share only /usr/local
and not /etc, for instance...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Centralized ports collection server, John Nietzsche, (Mon Sep 3, 7:04 pm)
Re: Centralized ports collection server, Adriaan, (Mon Sep 3, 10:15 pm)
Re: Centralized ports collection server, Marc Espie, (Tue Sep 4, 6:02 am)