Package Details: zoneminder 1.36.35-1

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: 72
Popularity: 0.045512
First Submitted: 2008-03-21 00:09 (UTC)
Last Updated: 2024-10-22 17:14 (UTC)

Dependencies (45)

Sources (8)

Latest Comments

« First ‹ Previous 1 .. 11 12 13 14 15 16 17 18 19 20 21 .. 63 Next › Last »

jamincollins commented on 2021-01-09 23:44 (UTC) (edited on 2021-01-09 23:56 (UTC) by jamincollins)

For this to continue building I believe a patch will be needed that updates the .gitmodules reference for Crud. The existing source has this:

[submodule "web/api/app/Plugin/Crud"]
    path = web/api/app/Plugin/Crud
    url = https://github.com/ZoneMinder/crud.git
    branch = 3.0

However, the above url now 404's and upstream has changed to this:

[submodule "web/api/app/Plugin/Crud"]
    path = web/api/app/Plugin/Crud
    url = https://github.com/FriendsOfCake/crud.git
    branch = 3.0

This should do the trick:

$ diff -u PKGBUILD.orig PKGBUILD
--- PKGBUILD.orig       2021-01-09 23:55:44.979999976 +0000
+++ PKGBUILD    2021-01-09 23:51:26.126666645 +0000
@@ -98,6 +98,8 @@
 prepare () {
     cd $pkgname

+    # fix the submodule reference
+    sed -i 's,https://github.com/ZoneMinder/crud.git,https://github.com/FriendsOfCake/crud.git,' .gitmodules
     # Download and move extra PHP plugins into place
     git submodule update --init --recursive

Nocifer commented on 2020-12-16 12:54 (UTC)

@nenes71 I just tried to build the package myself and it fails to find that Crud submodule even with the latest git master, regardless of commit, so this seems to yet again be an upstream issue. Unfortunately I don't have the time to debug it or file a bug report, so let's hope they notice soon and fix it themselves.

nenes71 commented on 2020-12-15 11:00 (UTC) (edited on 2020-12-15 11:11 (UTC) by nenes71)

It fails with: fatal: repository 'https://github.com/ZoneMinder/crud.git/' not found

after editing PKGBUILD and replace : source=("${pkgname}-git::git+https://github.com/ZoneMinder/zoneminder.git#tag=${pkgver}" by : source=("${pkgname}-git::git+https://github.com/ZoneMinder/zoneminder.git#commit=bbc2c2a607c49f70847b5d1611d297013d5f8e30"

and makepkg -si

fatal: dépôt 'https://github.com/ZoneMinder/crud.git/' not found

Nocifer commented on 2020-11-12 14:53 (UTC) (edited on 2020-11-12 23:15 (UTC) by Nocifer)

(EDIT: Updated to a newer commit that fixes the submodule repo address.)

Yeah, upstream literally just switched that git submodule to a new repo but they haven't yet released a new ZoneMinder version, so building is currently broken for anyone trying to build from source.

I would like to keep this PKGBUILD clean and not change the way it works just for a temporary fix (I'd need to convert it to a zoneminder-git type of package), so for the time being and until a new upstream version is released, please replace

source=("${pkgname}-git::git+https://github.com/ZoneMinder/zoneminder.git#tag=${pkgver}"
        ...

with

source=("${pkgname}-git::git+https://github.com/ZoneMinder/zoneminder.git#commit=bbc2c2a607c49f70847b5d1611d297013d5f8e30"
        ...

which will allow you to build ZoneMinder with the new submodule repo included.

ohoevde commented on 2020-11-12 12:26 (UTC)

It fails with:

fatal: repository 'https://github.com/ZoneMinder/crud.git/' not found

ZAKhan commented on 2020-10-26 04:45 (UTC) (edited on 2020-10-26 04:48 (UTC) by ZAKhan)

/home/xyz/.cache/yay/zoneminder/src/zoneminder/src/jwt-cpp/include/jwt-cpp/picojson.h:372:12: note: in definition of macro ‘GET’
  372 |     return var;                                                                                                                    \
      |            ^~~
[ 57%] Linking CXX static library libzm.a
[ 57%] Built target zm
make: *** [Makefile:171: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: zoneminder

Nocifer commented on 2020-10-04 15:00 (UTC)

@rageltman perl-sys-mmap is already a dependency, so it's probably something else on your end that breaks the build (e.g a misconfigured PATH).

rageltman commented on 2020-10-04 06:34 (UTC)

This needs the perl-sys-mmap aur package added to its dependency list, otherwise builds break with:

[2020-10-04T06:31:42.105Z] -- Checking for perl module Sys::Mmap
[2020-10-04T06:31:42.108Z] -- Checking for perl module Sys::Mmap - failed
[2020-10-04T06:31:42.110Z] -- Could NOT find PerlModules (missing: PERLMODULES_SYS_MMAP_MODULE) 
[2020-10-04T06:31:42.112Z] CMake Error at CMakeLists.txt:785 (message):
[2020-10-04T06:31:42.114Z]   Not all required perl modules were found on your system
[2020-10-04T06:31:42.117Z] 
[2020-10-04T06:31:42.117Z] 
[2020-10-04T06:31:42.117Z] -- Configuring incomplete, errors occurred!
[2020-10-04T06:31:42.119Z] See also "/build/zoneminder/src/zoneminder/CMakeFiles/CMakeOutput.log".
[2020-10-04T06:31:42.122Z] See also "/build/zoneminder/src/zoneminder/CMakeFiles/CMakeError.log".
[2020-10-04T06:31:42.124Z] ==> ERROR: A failure occurred in build().
[2020-10-04T06:31:42.127Z]     Aborting...

Nocifer commented on 2020-10-03 08:13 (UTC)

@zlqrn, php-fpm is a dependency of this package because the web interface runs on PHP, so yeah, it makes sense that it wouldn't work for you if you somehow managed to install it without php-fpm, or more probably failed to start php-fpm's service before running ZoneMinder. Now that I think about it, it'd be a good idea to modify the note printed after install and list the services that should be run before ZoneMinder for it to work properly.

Regarding the personalized username & password, ZoneMinder's upstream code unfortunately contains (or used to contain) some hardcoded stuff that really shouldn't be hardcoded (e.g. paths), so it wouldn't surprise me if the username/password for the database were hardcoded as well. But as far as I know, those can be configured by creating a conf file in /etc/zoneminder/conf.d/ (or by editing /etc/zoneminder/zm.conf directly, but it's discouraged) and assigning the variables ZM_DB_USER and ZM_DB_PASS. Unless you mean that you've already tried that and ZoneMinder failed to pick up the changes?

zlqrn commented on 2020-10-02 23:43 (UTC)

web interface just code? for those bigger noobs than me on a clean install web interface didnt work until i installed php-fpm some reason personalized username and passwd for zm and mariadb didnt work had to revert to defaults zmuser etc. also refer to mariadb guide for update folder structure for conf files. perhaps for mysql the official arch zonminder guide works, but not for mariadb (my.conf and my.conf.d) so far install seems great. web interface is working