Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building Zoneminder on Gentoo
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Btoo
n00b
n00b


Joined: 24 Sep 2008
Posts: 42
Location: An isolated island

PostPosted: Sat May 21, 2011 3:40 pm    Post subject: Reply with quote

Using the overlay "zugaina" I was able to install ZoneMinder 1.24.3. After doing so I deleted the overlay as Zoneminder was the only package needed. I have not configured it yet. Version 1.24.2 was a bit of a pain in terms of correcting php deprecated functions. Hopefully this version is updated.
Back to top
View user's profile Send private message
dblaci
n00b
n00b


Joined: 05 Oct 2004
Posts: 30

PostPosted: Thu May 26, 2011 1:35 pm    Post subject: Reply with quote

+1 it installed fine. It should be great to have this in the official portage tree.
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Wed Sep 07, 2011 8:07 pm    Post subject: zoneminder-1.25.0 Reply with quote

Here is the patch for 1.25.0
Code:

--- a/ZoneMinder-1.25.0/Makefile.am   2011-05-20 05:39:37.000000000 -0400
+++ b/ZoneMinder-1.25.0/Makefile.am   2011-09-07 15:11:09.000000000 -0400
@@ -21,7 +21,7 @@
 # Yes, you are correct. This is a HACK!
 install-data-hook:
    ( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
-   ( if ! test -e $(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR); fi )
+   ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi )
    ( if ! test -e $(ZM_TMPDIR); then mkdir -m 700 -p $(ZM_TMPDIR); fi; if test "$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(ZM_TMPDIR); chmod u+w $(ZM_TMPDIR); fi )
    ( if ! test -e $(ZM_LOGDIR); then mkdir -p $(ZM_LOGDIR); fi; if test "$(ZM_LOGDIR)" != "/var/log"; then chown $(webuser):$(webgroup) $(ZM_LOGDIR); chmod u+w $(ZM_LOGDIR); fi )
 
@@ -29,4 +29,4 @@
    @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
    @-( if test "$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(ZM_RUNDIR); fi )
    @-( if test "$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(ZM_TMPDIR); fi )
-   @-( if test "$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(ZM_LOGDIR); fi )
+   @-( if test "$(DESTDIR)$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi )

here is the ebuild
Code:

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit eutils autotools depend.php depend.apache multilib flag-o-matic

MY_PN="ZoneMinder"

DESCRIPTION="ZoneMinder allows you to capture, analyse, record and monitor any cameras attached to your system."
HOMEPAGE="http://www.zoneminder.com/"
SRC_URI="http://www.zoneminder.com/downloads/${MY_PN}-${PV}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="x86"
IUSE="debug ffmpeg"
#IUSE="debug ffmpeg mmap"
SLOT="0"

DEPEND="app-admin/sudo
    dev-libs/libpcre
    net-libs/gnutls
    dev-lang/perl
   dev-lang/php[mysql,sockets,apache2]
    dev-perl/Archive-Zip
    dev-perl/DateManip
    dev-perl/DBD-mysql
    dev-perl/DBI
    dev-perl/Device-SerialPort
    dev-perl/libwww-perl
    dev-perl/MIME-Lite
    dev-perl/MIME-tools
    dev-perl/PHP-Serialization
    virtual/jpeg
    virtual/perl-Archive-Tar
    virtual/perl-Getopt-Long
    virtual/perl-libnet
    virtual/perl-Module-Load
    virtual/perl-Sys-Syslog
    virtual/perl-Time-HiRes"

RDEPEND="
    dev-perl/DBD-mysql
    ffmpeg? ( >=media-video/ffmpeg-0.5-r1 )
    media-libs/netpbm"

# we cannot use need_httpd_cgi here, since we need to setup permissions for the
# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
need_apache
need_php_httpd

S=${WORKDIR}/${MY_PN}-${PV}

src_prepare() {
   epatch "${FILESDIR}"/${P}-ZM_RUNDIR.patch
   einfo "Regenerating autotools files..."
   eautoreconf
}

src_configure() {
   local myconf

# To enable mmap support we need a dependancy of Sys::Mmap
# It installs fine via g-cpan, but there's no ebuild currently in portage.
#       if use mmap; then
#          myconf="${myconf} --enable-mmap=yes"
#       else
#          myconf="${myconf} --enable-mmap=no"
#       fi
   append-flags "-D__STDC_CONSTANT_MACROS"
   if use debug; then
   myconf="${myconf} --enable-debug=yes --enable-crashtrace=yes"
   else
   myconf="${myconf} --enable-debug=no --enable-crashtrace=no"
   fi

   econf   --with-libarch=$(get_libdir) \
      --with-mysql=/usr \
      $(use_with ffmpeg) \
      --with-webdir="${ROOT}var/www/zoneminder/htdocs" \
      --with-cgidir="${ROOT}var/www/zoneminder/cgi-bin" \
      --with-webuser=apache \
      --with-webgroup=apache \
      --disable-mmap \
      --with-webhost=zm.localdomain \
      ${myconf}

   einfo "${PN} does not parallel build... using forcing make -j1..."
   emake -j1 || die "emake failed"
}

src_install() {
   dodir /var/run/zm
   keepdir /var/run/zm
   fowners apache:apache /var/run/zm
   fperms 0755 /var/run/zm

   emake -j1 DESTDIR="${D}" install || die "emake install failed"

   fperms 0640 /etc/zm.conf

   keepdir /var/log/${PN}
   fowners apache:apache /var/log/${PN}
   fperms 0770 /var/log/${PN}

   newinitd "${FILESDIR}"/init.d zoneminder
   newconfd "${FILESDIR}"/conf.d zoneminder

   dodoc AUTHORS ChangeLog INSTALL NEWS README TODO

   insinto /usr/share/${PN}/db
   doins db/zm_u* db/zm_create.sql
   insinto /etc/apache2/vhosts.d
   doins "${FILESDIR}"/10_zoneminder.conf

   for DIR in events images sound; do
      dodir "${ROOT}"/var/www/zoneminder/htdocs/${DIR}
   done
}

pkg_postinst() {
   elog ""
   elog "0. If this is a new installation, you will need to create a MySQL database"
   elog "   for ${PN} to use. (see http://www.gentoo.org/doc/en/mysql-howto.xml)."
   elog "   Once you completed that you should execute the following:"
   elog ""
   elog " cd /usr/share/${PN}"
   elog " mysql -u <my_database_user> -p<my_database_pass> <my_zoneminder_db> < db/zm_create.sql"
   elog ""
   elog "1.  Set your database settings in /etc/zm.conf"
   elog ""
   elog "2.  Start the ${PN} daemon:"
   elog ""
   elog "  /etc/init.d/${PN} start"
   elog ""
   elog "3. Finally point your browser to http://localhost/${PN}"
   elog ""
   elog ""
   elog "If you are upgrading, you will need to run the zmupdate.pl script:"
   elog ""
   elog " /usr/bin/zmupdate.pl version=<from version> [--user=<my_database_user> --pass=<my_database_pass>]"
   elog ""
}

You can download everything here;
http://linuxcrazy.com/downloads/zoneminder-1.25.0.tar.bz2

It installed fine here on x86, I have not had time to do anymore testing. I wanted to get a camera and try it out when I have some free time.
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Thu Sep 08, 2011 7:30 am    Post subject: Reply with quote

@comprookie2000

Just a heads up in case you were not aware, dilfridge has started work on a version bump in his overlay

http://gpo.zugaina.org/www-misc/zoneminder

Quote:
ChangeLog
# ChangeLog for www-misc/zoneminder
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/Attic/ChangeLog,v 1.41 2011/04/04 12:11:35 scarabeus Exp $

*zoneminder-1.25.0 (01 Sep 2011)

01 Sep 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+files/1.25.0/Makefile.am.patch, -zoneminder-1.24.2.ebuild,
+zoneminder-1.25.0.ebuild:
Started working on version bump

---------------------------------------------------------------------------
Copied from CVS attic to dilfridge overlay
---------------------------------------------------------------------------


Maybe worth combining resources if you are not already?
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Tue Mar 20, 2012 2:45 pm    Post subject: Reply with quote

I was having trouble emerging from the overlay so I'm trying the ebuild posted above instead. One thing I already noticed is the ebuild above requires php to have sockets while the one by dilfridge does not. I'll report back once I re-emerge php to see if this one works, since the one by dilfridge was making errors about a missing epatch source or something similar.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Tue Mar 20, 2012 6:58 pm    Post subject: Reply with quote

I'm getting the same error again. I'm sure this is something very simple so I'm sorry for posting it but if someone could help me make this ebuild work I would appreciate it.

Code:
 * Messages for package www-misc/zoneminder-1.25.0:

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch
 *   ( zoneminder-1.25.0-ZM_RUNDIR.patch )
 * ERROR: www-misc/zoneminder-1.25.0 failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_prepare
 *   environment, line 3498:  Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
 *   environment, line 1524:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 *
 * If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
 * the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
 * S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Tue Mar 20, 2012 7:28 pm    Post subject: Reply with quote

Did you add the patch?
environment, line 3498: Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
ls /usr/local/portage/www-misc/zoneminder/files/
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Tue Mar 20, 2012 7:39 pm    Post subject: Reply with quote

I just noticed I missed that part. I downloaded and copied the text from your post into that file.

Code:
# ls -lah /usr/local/portage/www-misc/zoneminder/files/
total 12K
drwxr-xr-x 2 root root 4.0K Mar 20 15:26 .
drwxr-xr-x 3 root root 4.0K Mar 20 15:28 ..
-rw-r--r-- 1 root root 1.5K Mar 20 15:26 zoneminder-1.25.0-ZM_RUNDIR.patch

# cat /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch
--- a/ZoneMinder-1.25.0/Makefile.am   2011-05-20 05:39:37.000000000 -0400
+++ b/ZoneMinder-1.25.0/Makefile.am   2011-09-07 15:11:09.000000000 -0400
@@ -21,7 +21,7 @@
 # Yes, you are correct. This is a HACK!
 install-data-hook:
    ( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
-   ( if ! test -e $(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR); fi )
+   ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(ZM_RUNDIR); fi; if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi )
    ( if ! test -e $(ZM_TMPDIR); then mkdir -m 700 -p $(ZM_TMPDIR); fi; if test "$(ZM_TMPDIR)" != "/tmp"; then chown $(webuser):$(webgroup) $(ZM_TMPDIR); chmod u+w $(ZM_TMPDIR); fi )
    ( if ! test -e $(ZM_LOGDIR); then mkdir -p $(ZM_LOGDIR); fi; if test "$(ZM_LOGDIR)" != "/var/log"; then chown $(webuser):$(webgroup) $(ZM_LOGDIR); chmod u+w $(ZM_LOGDIR); fi )

@@ -29,4 +29,4 @@
    @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
    @-( if test "$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(ZM_RUNDIR); fi )
    @-( if test "$(ZM_TMPDIR)" != "/tmp"; then rm -rf $(ZM_TMPDIR); fi )
-   @-( if test "$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(ZM_LOGDIR); fi )
+   @-( if test "$(DESTDIR)$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi )


But when I try to emerge it again I get a different error now:

Code:
# emerge zoneminder
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-misc/zoneminder-1.25.0 from x-portage
 * ZoneMinder-1.25.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking ZoneMinder-1.25.0.tar.gz to /var/tmp/portage/www-misc/zoneminder-1.25.0/work
>>> Source unpacked in /var/tmp/portage/www-misc/zoneminder-1.25.0/work
>>> Preparing source in /var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0 ...
 * Applying zoneminder-1.25.0-ZM_RUNDIR.patch ...

 * Failed Patch: zoneminder-1.25.0-ZM_RUNDIR.patch !
 *  ( /usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/www-misc/zoneminder-1.25.0/temp/zoneminder-1.25.0-ZM_RUNDIR.patch.out

 * ERROR: www-misc/zoneminder-1.25.0 failed (prepare phase):
 *   Failed Patch: zoneminder-1.25.0-ZM_RUNDIR.patch!
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_prepare
 *   environment, line 3498:  Called epatch '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'
 *   environment, line 1657:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
 * the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
 * S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'


Code:
 cat /var/tmp/portage/www-misc/zoneminder-1.25.0/temp/zoneminder-1.25.0-ZM_RUNDIR.patch.out
***** zoneminder-1.25.0-ZM_RUNDIR.patch *****
PWD: /var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0

=============================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'

=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am   2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am   2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
=============================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'

=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am   2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am   2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
=============================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'

=============================================
patching file Makefile.am
Hunk #1 FAILED at 21.
Hunk #2 FAILED at 29.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.am.rej

patch program exited with status 1
=============================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'

=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am   2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am   2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
=============================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < '/usr/local/portage/www-misc/zoneminder/files/zoneminder-1.25.0-ZM_RUNDIR.patch'

=============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/ZoneMinder-1.25.0/Makefile.am   2011-05-20 05:39:37.000000000 -0400
|+++ b/ZoneMinder-1.25.0/Makefile.am   2011-09-07 15:11:09.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

patch program exited with status 1
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Tue Mar 20, 2012 8:07 pm    Post subject: Reply with quote

Actually I take that back, I downloaded your entire archive instead and that seems to have worked. I don't think I had any typos or code missing from copying and pasting it, but I guess something I did was incorrect. Thank you for uploading it.
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Tue Mar 20, 2012 8:54 pm    Post subject: Reply with quote

Maybe the tarball changed. You can try to get it installed without the patch or download the tarball and make your own patch. I tried the ones from the overlay "zugaina" both the 1.25 and the live 9999 ebuild and they both failed here so I gave up.
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Tue Mar 20, 2012 8:59 pm    Post subject: Reply with quote

Actually I got another weird error while trying to emerge it, this time sandbox access violations?

Code:
make  install-data-hook
make[3]: Entering directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
( cd /var/tmp/portage/www-misc/zoneminder-1.25.0/image//etc; chown apache:apache zm.conf; chmod 600 zm.conf )
( if ! test -e /var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm; then mkdir -p /var/run/zm; fi; if test "/var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm" != "/var/run"; then chown apache:apache /var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm; chmod u+w /var/tmp/portage/www-misc/zoneminder-1.25.0/image//var/run/zm; fi )
( if ! test -e /tmp/zm; then mkdir -m 700 -p /tmp/zm; fi; if test "/tmp/zm" != "/tmp"; then chown apache:apache /tmp/zm; chmod u+w /tmp/zm; fi )
( if ! test -e /var/log/zm; then mkdir -p /var/log/zm; fi; if test "/var/log/zm" != "/var/log"; then chown apache:apache /var/log/zm; chmod u+w /var/log/zm; fi )
ACCESS DENIED  fchownat:     /var/log/zm
chown: changing ownership of `/var/log/zm': Permission denied
ACCESS DENIED  fchmodat:     /var/log/zm
chmod: changing permissions of `/var/log/zm': Permission denied
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make: *** [install-recursive] Error 1
emake failed
 * ERROR: www-misc/zoneminder-1.25.0 failed (install phase):
 *   emake install failed
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_install
 *   environment, line 3485:  Called die
 * The specific snippet of code:
 *       emake -j1 DESTDIR="${D}" install || die "emake install failed";
 *
 * If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
 * the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
 * This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
 * S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-24541.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fchownat
S: deny
P: /var/log/zm
A: /var/log/zm
R: /var/log/zm
C: chown apache:apache /var/log/zm

F: fchmodat
S: deny
P: /var/log/zm
A: /var/log/zm
R: /var/log/zm
C: chmod u+w /var/log/zm
--------------------------------------------------------------------------------


I tried making sure the permissions were correct for the zm folder, just like they're listed above. But it would keep returning that same error, so I emerged it with FEATURES="-sandbox" and it worked.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 241

PostPosted: Wed Mar 21, 2012 5:50 am    Post subject: Reply with quote

I understand completely why nobody wants to maintain this ebuild. This has been the worst package I've ever had to install in Gentoo. I think even compiling ooffice, chrome, and firefox all together is still more pain free than troubleshooting zoneminder nonstop. Now I'm stuck with an awesome warning about "mootools" not being installed? I can't even find out any info about this and whether it's even available on gentoo.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1555
Location: Adelaide/Australia

PostPosted: Thu Mar 22, 2012 9:50 am    Post subject: Reply with quote

I don't know what you are talking about.

The Ebuild in zugaina overlay works fine :)

(check layman -L)
_________________
...Lyall
Back to top
View user's profile Send private message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Sun Apr 15, 2012 11:12 am    Post subject: Reply with quote

lyallp wrote:
The Ebuild in zugaina overlay works fine :)

Hmmm... it doesn't seem to work for me.
Code:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -Ino/include -Wall -Wno-sign-compare -fno-inline -Ino/include   -march=athlon64 -O2 -pipe -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In static member function ‘static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)’:
zm_local_camera.cpp:774:22: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:779:21: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:781:22: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:782:29: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:799:67: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:801:54: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:811:92: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:936:91: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:961:82: error: ‘queryDevice’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'
make: *** [all] Error 2
emake failed
 * ERROR: www-misc/zoneminder-1.25.0 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3603:  Called die
 * The specific snippet of code:
 *       MAKEOPTS="-j1" emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =www-misc/zoneminder-1.25.0',
 * the complete build log and the output of 'emerge -pqv =www-misc/zoneminder-1.25.0'.
 * This ebuild is from an overlay named 'gkmac': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-misc/zoneminder-1.25.0/temp/environment'.
 * S: '/var/tmp/portage/www-misc/zoneminder-1.25.0/work/ZoneMinder-1.25.0'

Between this forum thread and zugaina's overlay browser there appear to be four different ebuilds to choose from...
  1. zugaina overlay (which fails as above)
  2. dilfridge's overlay
  3. sabayon overlay
  4. comprookie2000's tarball (posted above)
Any success stories from any of those ebuilds above? If so, which one?
_________________
If ~amd64 ebuilds are cutting edge, then git-9999 ebuilds are chainsaws.
"Not everyone can ride a unicycle, does that mean we should put another wheel on it?" - Lokheed
Back to top
View user's profile Send private message
braindead0
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 146
Location: Ohio

PostPosted: Fri May 11, 2012 8:28 pm    Post subject: Reply with quote

I didn't have any trouble building ZM from the zugaina overlay...

What I did notice is that you need to manually run zmupdate.pl to update your database. Once that's done, /etc/init.d/zoneminder start and I was off an running. My existing config from 1.24.3 was converted fine it seems.
_________________
Poxart
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1555
Location: Adelaide/Australia

PostPosted: Sat May 12, 2012 4:27 am    Post subject: Reply with quote

Have you looked at http://www.zoneminder.com/wiki/index.php/Gentoo_Install?

Also, the error looks vaguely reminiscent of the compilation problem addressed here -> https://forums.gentoo.org/viewtopic-p-6517903.html whereby you set
Code:
CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder

_________________
...Lyall
Back to top
View user's profile Send private message
gkmac
Guru
Guru


Joined: 19 Jan 2003
Posts: 333
Location: West Sussex, UK

PostPosted: Tue May 15, 2012 9:46 am    Post subject: Reply with quote

lyallp wrote:
Have you looked at http://www.zoneminder.com/wiki/index.php/Gentoo_Install?

Last updated 14 May 2007, still mentions that ebuilds are available in the portage tree...
lyallp wrote:
Also, the error looks vaguely reminiscent of the compilation problem addressed here -> https://forums.gentoo.org/viewtopic-p-6517903.html whereby you set
Code:
CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder

I thought it was CXXFLAGS not CPPFLAGS. Anyway, let me remind you of the first line of my log...
Code:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -Ino/include -Wall -Wno-sign-compare -fno-inline -Ino/include   -march=athlon64 -O2 -pipe -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF
...you'll see that -D__STDC_CONSTANT_MACROS is already in there since the zugaina ebuild fixes this bug.

I tried manually putting both CXXFLAGS and CPPFLAGS before the emerge command anyway, but it's still failing with "‘PATH_MAX’ was not declared in this scope".

EDIT: Don't know if emerge --info will help here...
Code:
Portage 2.2.0_alpha100 (default/linux/amd64/10.0/server, gcc-4.5.3, glibc-2.14.1-r3, 2.6.32-openvz-feoktistov.1 x86_64)
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.3
Timestamp of tree: Tue, 15 May 2012 08:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo gkmac
Installed sets:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://www.mirror.ac.uk/mirror/www.ibiblio.org/ http://gentoo.oregonstate.edu/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.uk.gentoo.org/gentoo-portage"
USE="amd64 apache2 caps cli crypt cxx dri gdbm iconv jpeg maildir mmx modules mudflap multilib ncurses nls nptl openmp pcre png pppd readline session snmp spf sse sse2 ssl tcpd threads truetype unicode urandom xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
If ~amd64 ebuilds are cutting edge, then git-9999 ebuilds are chainsaws.
"Not everyone can ride a unicycle, does that mean we should put another wheel on it?" - Lokheed
Back to top
View user's profile Send private message
reisio
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2004
Posts: 121

PostPosted: Tue May 22, 2012 6:03 am    Post subject: Reply with quote

gkmac wrote:
Hmmm... it doesn't seem to work for me.
Code:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -Ino/include -Wall -Wno-sign-compare -fno-inline -Ino/include   -march=athlon64 -O2 -pipe -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In static member function ‘static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)’:
zm_local_camera.cpp:774:22: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:779:21: error: ‘queryDevice’ was not declared in this scope

I've been told enabling the ffmpeg USE flag resolves this.
Back to top
View user's profile Send private message
cynapse
n00b
n00b


Joined: 05 Jan 2022
Posts: 4

PostPosted: Thu Jan 06, 2022 4:32 pm    Post subject: Reply with quote

Here is an ebuild for the latest version 1.36.12 as of Jan 06 2022 that works for me.

Code:

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit perl-functions readme.gentoo-r1 cmake depend.apache flag-o-matic systemd

MY_CRUD_VERSION="3.1.0-zm"

MY_PN="ZoneMinder"
MY_CRUD_V="14292374ccf1328f2d5db20897bd06f99ba4d938"
MY_CAKEPHP_V="ea90c0cd7f6e24333a90885e563b5d30b793db29"
MY_RTSP_V="cd7fd49becad6010a1b8466bfebbd93999a39878"

DESCRIPTION="full-featured, open source, state-of-the-art video surveillance software system"
HOMEPAGE="http://www.zoneminder.com/"
SRC_URI="
   https://github.com/${MY_PN}/${PN}/archive/refs/${PV}.tar.gz -> ${P}.tar.gz
   https://api.github.com/repos/FriendsOfCake/crud/tarball/${MY_CRUD_V} -> Crud-${MY_CRUD_V}.tar.gz
   https://api.github.com/repos/${PN}/RtspServer/tarball/${MY_RTSP_V} -> RtspServer-${MY_RTSP_V}.tar.gz
   https://api.github.com/repos/${PN}/CakePHP-Enum-Behavior/tarball/${MY_CAKEPHP_V} -> CakePHP-Enum-Behavior-${MY_CAKEPHP_V}.tar.gz
"

LICENSE="GPL-2"
KEYWORDS="~amd64"
IUSE="curl encode ffmpeg gcrypt gnutls +mmap +ssl libressl vlc"
SLOT="0"

REQUIRED_USE="
   || ( ssl gnutls )
"

DEPEND="
   app-eselect/eselect-php[apache2]
   dev-lang/perl:=
   dev-lang/php:7.4[apache2,cgi,curl,gd,inifile,pdo,mysql,mysqli,sockets]
   dev-libs/libpcre
   dev-perl/Archive-Zip
   dev-perl/Class-Std-Fast
   dev-perl/Data-Dump
   dev-perl/Date-Manip
   dev-perl/Data-UUID
   dev-perl/DBD-mysql
   dev-perl/DBI
   dev-perl/IO-Socket-Multicast
   dev-perl/SOAP-WSDL
   dev-perl/Sys-CPU
   dev-perl/Sys-MemInfo
   dev-perl/URI-Encode
   dev-perl/libwww-perl
   dev-perl/Number-Bytes-Human
   dev-perl/JSON-MaybeXS
   dev-php/pecl-apcu:*
   dev-perl/Crypt-Eksblowfish
   dev-perl/Data-Entropy
   dev-perl/HTTP-Lite
   dev-perl/MIME-Lite
   dev-perl/DateTime
   sys-auth/polkit
   sys-libs/zlib
   dev-python/mysqlclient
   ffmpeg? ( virtual/ffmpeg )
   encode? ( media-libs/libmp4v2 )
   virtual/httpd-php:*
   virtual/jpeg:0
   virtual/mysql
   virtual/perl-ExtUtils-MakeMaker
   virtual/perl-Getopt-Long
   virtual/perl-Sys-Syslog
   virtual/perl-Time-HiRes
   www-servers/apache
   curl? ( net-misc/curl )
   gcrypt? ( dev-libs/libgcrypt:0= )
   gnutls? ( net-libs/gnutls )
   mmap? ( dev-perl/Sys-Mmap )
   ssl? ( dev-libs/openssl:0= )
   vlc? ( media-video/vlc[live] )
"
RDEPEND="${DEPEND}"

# we cannot use need_httpd_cgi here, since we need to setup permissions for the
# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here.
need_apache

PATCHES=(
)

MY_ZM_WEBDIR=/usr/share/zoneminder/www

src_prepare() {
   cmake_src_prepare

   rm "${WORKDIR}/${P}/conf.d/README" || die

   rmdir "${S}/web/api/app/Plugin/Crud" || die
   mv "${WORKDIR}/FriendsOfCake-crud-${MY_CRUD_V:0:7}" "${S}/web/api/app/Plugin/Crud" || die

   rmdir "${S}/web/api/app/Plugin/CakePHP-Enum-Behavior" || die
   mv "${WORKDIR}/${MY_PN}-CakePHP-Enum-Behavior-${MY_CAKEPHP_V:0:7}" "${S}/web/api/app/Plugin/CakePHP-Enum-Behavior" || die

   rmdir "${S}/dep/RtspServer" || die
   mv "${WORKDIR}/${MY_PN}-RtspServer-${MY_RTSP_V:0:7}" "${S}/dep/RtspServer" || die
}

src_configure() {
   append-cxxflags -D__STDC_CONSTANT_MACROS
   perl_set_version
   export TZ=UTC # bug 630470
   mycmakeargs=(
      -DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr}
      -DZM_TMPDIR=/var/tmp/zm
      -DZM_SOCKDIR=/var/run/zm
      -DZM_CACHEDIR=/var/cache/zoneminder
      -DZM_WEB_USER=apache
      -DZM_WEB_GROUP=apache
      -DZM_WEBDIR=${MY_ZM_WEBDIR}
      -DZM_NO_MMAP="$(usex mmap OFF ON)"
      -DZM_NO_X10=OFF
      -DZM_NO_FFMPEG="$(usex ffmpeg OFF ON)"
      -DZM_NO_CURL="$(usex curl OFF ON)"
      -DZM_NO_LIBVLC="$(usex vlc OFF ON)"
      -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL="$(usex ssl OFF ON)"
      -DHAVE_LIBGNUTLS="$(usex gnutls ON OFF)"
      -DHAVE_LIBGCRYPT="$(usex gcrypt ON OFF)"
   )

   cmake_src_configure

}

src_install() {
   cmake_src_install

   # the log directory
   keepdir /var/log/zm
   fowners apache:apache /var/log/zm

   # the logrotate script
   insinto /etc/logrotate.d
   newins distros/ubuntu2004/zoneminder.logrotate zoneminder

   # now we duplicate the work of zmlinkcontent.sh
   keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp
   fperms -R 0775 /var/lib/zoneminder
   fowners -R apache:apache /var/lib/zoneminder
   dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images
   dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events
   dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp

   # the cache directory
   keepdir /var/cache/zoneminder
   fowners apache:apache /var/cache/zoneminder

   # bug 523058
   keepdir ${MY_ZM_WEBDIR}/temp
   fowners -R apache:apache ${MY_ZM_WEBDIR}/temp

   # the configuration file
   fperms 0640 /etc/zm.conf
   fowners root:apache /etc/zm.conf

   # init scripts etc
   newinitd "${FILESDIR}"/init.d zoneminder
   newconfd "${FILESDIR}"/conf.d zoneminder

   # systemd unit file
   systemd_dounit "${FILESDIR}"/zoneminder.service

   cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf || die
   sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g" || die

   if [[ ${PV} == 9999 ]]; then
      dodoc README.md "${T}"/10_zoneminder.conf
   else
      dodoc CHANGELOG.md CONTRIBUTING.md README.md "${T}"/10_zoneminder.conf
   fi

   perl_delete_packlist

   readme.gentoo_create_doc
}

pkg_postinst() {
   readme.gentoo_print_elog

   if [[ -z "${REPLACING_VERSIONS}" ]]; then
      elog "Fresh installs of zoneminder require a few additional steps. Please read the README.gentoo"
   else
      local v
      for v in ${REPLACING_VERSIONS}; do
         if ! version_is_at_least ${PV} ${v}; then
            elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
         fi
      done
   fi
}


If anyone needs help getting this to work let me know.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1555
Location: Adelaide/Australia

PostPosted: Fri Jan 07, 2022 3:54 am    Post subject: Reply with quote

I found www-misc/zoneminder::oubliette (obuilette overlay).

The owner of the overlay appears to be responsive as I sent a comment about the ebuild and they addressed it pretty quickly.

Personally, I use 9999 version.

Application smart-live-rebuild takes care of the git updates for 9999 versions. (app-portage/smart-live-rebuild).

I simply execute /usr/bin/zmupdate.pl as a part of my daily system update, just in case zoneminder has any database schema updates apply. It doesn't hurt to run it.
_________________
...Lyall
Back to top
View user's profile Send private message
nabbi
n00b
n00b


Joined: 04 Jun 2022
Posts: 2

PostPosted: Sat Jun 04, 2022 6:02 am    Post subject: Reply with quote

Hi-
I updated our ZoneMinder wiki page earlier this year to reflect the current "unsupported" 1.36.x ebuilds.

A few peers reached out direct over the last year and we've been able to incorporate a number of improvements and fixes. Some of those may have been a bumpy migration to flush out major changes since 1.34 and hidden easter eggs in the legacy ebuild. Thanks for your patience during those phases, as I really do appreciate the detailed feedbacks.

I have not been able to test a new ZM install on a fresh Gentoo deployment, confirmation if that works would be nice to know :)

Take care.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1555
Location: Adelaide/Australia

PostPosted: Sun Jun 05, 2022 3:19 am    Post subject: Reply with quote

Not sure if this is applicable to your updates but I am running 1.37.16
Something which as turned up in the last 3 days is the events having 'zoomies'.
Events showing at normal speed, then speeding up for a few frames then returning to normal speed, and depending upon the length of the event, rinse and repeat.
I will post on the zoneminder boards.
_________________
...Lyall
Back to top
View user's profile Send private message
nabbi
n00b
n00b


Joined: 04 Jun 2022
Posts: 2

PostPosted: Mon Jun 06, 2022 5:18 pm    Post subject: Reply with quote

lyallp wrote:
Not sure if this is applicable to your updates ...


No, I believe it's unrelated as the dev 1.37 ebuild hasn't been touched recently. Minor tweak 20 days ago.
I'm going to look into a process to bump the 1.36 ebuilds more regularly as I know that was a factor for you jumping into that dev build. I see another release published over the weekend while I was OOO.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum