Happy new year, all! I've made some good progress getting ZoneMinder to run on OpenBSD 7.8, but I've run into a couple of issues and I'm not sure where to turn for help before I can start a proper port for submission.
There are two PHP dependencies that seem to be missing from OpenBSD's current list of packages, the PHP extensions 'mysqlnd' and 'apcu'. I was able to compile and install these myself, but how do I request that these are added to the official OpenBSD package and/or port library? I assume that external dependencies like this need to be satisfied before a port can be submitted. Second, ZoneMinder makes use of a construct called '/dev/shm' in the Linux world, but this doesn't seem to exist in OpenBSD (note: I am neither a Linux expert, nor an OpenBSD expert...or ZoneMinder for that matter). I was able to "solve" this probably by making a symlink from '/dev/shm' to '/tmp', but I assume that is frowned upon. If anyone has advice, I can submit an issue with the ZoneMinder team. -vansid On Wed, Oct 29, 2025 at 4:22 AM Stuart Henderson <[email protected]> wrote: > > On 2025/10/28 22:00, vansid wrote: > > Hi all, > > > > I'd like to start a new port of ZoneMinder for OpenBSD. I'm coming > > from the Linux world, so OpenBSD is a bit new to me. I've read the > > basic port guide and some of the initial info, but if anyone has extra > > tips or tricks, I'm happy to learn. > > > > The lead for the ZoneMinder project is fairly confident that it > > compiles cleanly on OpenBSD, so I think the bulk of my efforts will be > > to simply maintain the port and make it available to others, hopefully > > as part of the ports tree. > > > > I assume it would belong under ports/security/zoneminder, but open to > > suggestions or guidance. Also, if there is any guidance for formatting > > subject lines in this mailing list, (such as use of square brackets, > > name/version combs, etc.) please let me know > > > > Finally, I fully admit that I'm not a programmer/developer, and I'm > > not an official part of the ZoneMinder team. My goal is to help this > > software reach users who are interested in deploying it on a highly > > secure platform like OpenBSD. > > > > Thanks > > > > It won't be an easy ride getting this into good shape for ports. > Some hints, for what they're worth: > > There's a start at a port in > https://github.com/jasperla/openbsd-wip/tree/master/multimedia/zoneminder/ > but it hasn't been touched in 10 years and will need some adapting to > more recent changes in OpenBSD and in ZoneMinder. > > First off, upstream stopped providing the full tar.gz after 1.30.0, > and they use git submodules which aren't included in the autogenerated > git-archive tars, so to fetch a usable set of source files for the > current version you'll need to replace DISTNAME/MASTER_SITES lines with > > DIST_TUPLE= github ZoneMinder ZoneMinder 1.36.36 . \ > github chmike CxxUrl eaf46c0207df24853a238d4499e7f4426d9d234c > dep/CxxUrl \ > github ZoneMinder RtspServer > eab32851421ffe54fec0229c3efc44c642bc8d46 dep/RtspServer > > Many of the patch files will no longer apply to current zm source. Some > won't be needed at all, others (like the changes around vidioctl) > definitely still are. > > afaik most people who looked at running this on OpenBSD ended up running > the much simpler "motion" instead. >
