Package Details: zoneminder 1.36.35-2

Git Clone URL: https://aur.archlinux.org/zoneminder.git (read-only, click to copy)
Package Base: zoneminder
Description: A full-featured, open source, state-of-the-art video surveillance software system
Upstream URL: https://zoneminder.com/
Keywords: camera cctv monitor record security surveillance video zoneminder
Licenses: GPL-2.0-only
Submitter: None
Maintainer: Nocifer
Last Packager: Nocifer
Votes: 73
Popularity: 0.62
First Submitted: 2008-03-21 00:09 (UTC)
Last Updated: 2025-06-05 21:26 (UTC)

Dependencies (45)

Sources (8)

Latest Comments

« First ‹ Previous 1 .. 16 17 18 19 20 21 22 23 24 25 26 .. 63 Next › Last »

ultimategrandson commented on 2019-08-25 22:57 (UTC)

@Nocifer My intention is to put the DB on a different server. So I'll experiment with modifying the makepkg script and see how it goes. Happy to try out the build if you enable ARM on the package. Thanks.

Nocifer commented on 2019-08-25 20:04 (UTC)

@ultimategrandson A MySQL-compatible database is needed for ZoneMinder to work properly (PostgreSQL for example is not compatible if memory serves) but it's not a hard requirement to install it on the same machine as ZoneMinder (it could be installed on another server and accessed remotely) nor is it necessary to specifically use MariaDB (MySQL itself for example is perfectly compatible).

If for whatever reason you need to remove MariaDB as a dependency, then you'll need to edit the PKGBUILD and delete or comment out line 63. The same goes for Nginx by the way: if you don't need it you can delete or comment out line 60. The install script is supposed to understand when MariaDB and/or Nginx are missing and act accordingly, but of course your mileage may vary, so keep in mind that things may indeed break at some point or another. It goes without saying of course that if they do break, your feedback about what happened would be most welcome :)

Regarding ARM compatibility: last year it was reported by some other user that one of the required Perl packages could not be built on ARM, but I don't have an ARM system myself so I just took them on their word. But if you say you built it successfully, then that probably means we can now safely include ARM as compatible, so I'll do so on the next update. And if there are any bumps along the road (e.g. ZoneMinder building on ARM but then not working properly during runtime) I guess this will be a good way to encounter them and maybe even fix them.

ultimategrandson commented on 2019-08-25 02:03 (UTC)

Using Yay (and ignoring the arch warnings), I actually installed this package on Archlinux ARM (Raspberry Pi 2) and it works perfectly, this actually worked better than the Rapbian package, at least in my experience, as the zmNinja app worked out of the box.

I'm a bit of a noob but; the dependencies that are installed; are they all really required to run Zoneminder or are they just required to build it? I understand ffmpeg, etc are necessary but could MariaDB be made optional? Or is there a way to exclude certain packages when I install?

ImNtReal commented on 2019-08-07 17:19 (UTC)

Ok. I can handle it that way. It's a bit confusing to me why they didn't just include all defaults in /etc/zoneminder/zm.conf, and only use the conf.d directory for user overrides.

Nocifer commented on 2019-08-06 05:51 (UTC)

@ImNtReal well, I could, but perhaps it would be simpler if you just made a new conf file inside /etc/zoneminder/conf.d and named it e.g. 03-custom.conf and used that one to override the stuff in 01-system-paths.conf? The reason for that is that 01-system-paths.conf is not supposed to contain any user adjustments, it even says so on the tin:

# *** DO NOT EDIT THIS FILE ***
#
# To make custom changes to the variables below, create a new configuration
# file, with an extention of .conf, containing your desired modifications.

Not that it matters much, if you ask me, but perhaps there is some valid reason for this warning, related to how ZM works internally. Anyway, if you really find it that much of a bother, I guess it won't hurt to add 01-system-paths.conf to the backup array when I next update the package and leave it up to the user. But I must warn you, judging by the ZM upstream's very slow progress as of late, this next update could be tomorrow or it could be next year :)

ImNtReal commented on 2019-08-05 18:14 (UTC)

Could you add etc/zoneminder/conf.d/01-system-paths.conf to the backup array, so my changes don't get wiped when I update?

zombielinux commented on 2019-06-13 11:49 (UTC)

That's what did it. Seems to be online now.

Nocifer commented on 2019-06-13 10:53 (UTC)

@zombielinux Well the issue is clear then: for some reason, 8 out of the 12 AUR modules in your build script's array are still installed against perl 5.28 instead of 5.30, and this can also be attested by 'pacman -Qqo /usr/lib/perl5/5.28' displaying them in its output (there shouldn't even be a 5.28 folder in there anymore). If I were you I'd try to install the already compiled packages one by one by hand, i.e. 'pacman -U /var/cache/pacman/pkg/AUR/packages/package_name.pkg.tar.xz'. That's more or less what I did (in my case I used an AUR helper to reinstall them in one go but it's the same thing) and everything went smoothly.

zombielinux commented on 2019-06-13 10:15 (UTC)

No worries.

Here is my zoneminder build script.

#!/bin/bash
PREFIX=/var/cache/pacman/pkg/AUR/packages
AurArray=("perl-sys-meminfo" "perl-sys-mmap" "perl-io-socket-multicast" "perl-class-std" "perl-class-std-fast" "perl-soap-wsdl" "perl-cpanel-json-xs" "perl-json-maybexs" "perl-net-sftp-foreign" "perl-php-serialization" "perl-sys-cpu" "perl-uri-encode" "zoneminder")
sudo pacman -Syu perl-inc-latest perl-module-build perl-types-serialiser perl-common-sense perl-json perl-json-xs libglvnd

for i in "${AurArray[@]}";
    do
#   echo $i
    rm -rf $PREFIX/$i
    git clone http://aur.archlinux.org/$i.git $PREFIX/$i
    cd $PREFIX/$i
    makepkg -si
    done

journalctl errors

Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: Can't locate Sys/Mmap.pm in @INC (you may need to install the Sys::Mmap module) (@INC contains: /usr/lib/perl5/5.30/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.30/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.30/core_perl /usr/share/perl5/core_perl) at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 69.
Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder/Memory/Mapped.pm line 69.
Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder/Memory.pm line 121.
Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: Compilation failed in require at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/ZoneMinder.pm line 37.
Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Jun 13 06:13:23 zoneminder zmpkg.pl[46821]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.

pacman -Qqo '/usr/lib/perl5/5.28' output

[root@zoneminder ~]# pacman -Qqo '/usr/lib/perl5/5.28'
perl-cpanel-json-xs
perl-io-socket-multicast
perl-json-maybexs
perl-php-serialization
perl-sys-cpu
perl-sys-meminfo
perl-sys-mmap
perl-uri-encode

Nocifer commented on 2019-06-13 08:46 (UTC)

@zombielinux Alright, I may have misjudged then. Myself I didn't get any errors when I tried running ZoneMinder with 5.30, so could you elaborate on what kind of errors you're getting and how to reproduce them? If there are indeed errors with 5.30 they should be reported to upstream.