Re: New ZoneMinder Port

Morgan Aldridge <[email protected]>
Newsgroups gmane.os.openbsd.ports
Message-ID <CABg33QPhLpA7sy4dwMO04EMsb4HC7B6KO63-JCuWEjtxf=+BMw@mail.gmail.com>
On Sun, Aug 9, 2026 at 15:38 vansid <[email protected]> wrote:

> On Sun, Aug 9, 2026 at 6:28 PM Stuart Henderson <[email protected]>
> wrote:
>
> > I recommend setting 'SUDO=sudo -E' and "PORTS_PRIVSEP=Yes" in
> /etc/mk.conf
> > and configuring so that your user account can run things as _pbuild and
> > _pfetch without prompting, and as root with a password, e.g. like this
> in sudoers
> >
> > your_user ALL=(_pbuild) NOPASSWD: ALL, (_pfetch) NOPASSWD: ALL
> > your_user ALL=(ALL) SETENV: ALL
> >
> > then go to the dir for an individual port (e.g. cd /usr/ports/math/moo)
> > and as an exception to the normal rule, run "make fix-permissions" as
> > root.
>
> Thanks, I will definitely do that.  Sorry, just one more question...
>
> ZoneMinder has *a lot* of dependencies, all of which seem to resolve
> and work but only after a very long time of downloading and compiling
> all the related software.  When I was doing my initial testing (before
> I starting working on the actual OpenBSD ports tree process), I was
> able to install many of the dependencies with pre-compiled binaries
> from pkg_add which saved considerable time.  Is it possible to install
> dependent packages in this manner as part of the ports tree process,
> or must everything be installed from source according to each port's
> Makefile?


Yup, per bsd.port.mk(5), you can set `FETCH_PACKAGES=-Dsnap` in your
`/etc/mk.conf`, as well:

<https://man.openbsd.org/man5/bsd.port.mk.5#FETCH_PACKAGES>

That's assuming you're building on -current, which is suggested. If you
have another machine or VM you're testing for -stable on, you can set
`FETCH_PACKAGES=` (the default is 'No', hence setting it to an empty value,
in this case.)

Hope that helps,

Morgan

>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.