Bug 2211

Summary: Package request: zoneminder
Product: Mageia Reporter: thierry rouillon <thierry.rouillon>
Component: New RPM package requestAssignee: Barry Jackson <zen25000>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal CC: alejandrocobo, eeeemail, mageia, marja11, zen25000
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
URL: http://www.zoneminder.com/
Whiteboard:
Source RPM: zoneminder CVE:
Status comment:

Description thierry rouillon 2011-07-19 22:41:03 CEST
would it be possible to have zoneminder in RPM? 
Thank you
Manuel Hiebel 2011-07-27 21:10:52 CEST

URL: (none) => http://www.zoneminder.com/
Component: RPM Packages => New RPM package request
Source RPM: (none) => zoneminder
Severity: minor => enhancement

Comment 1 claire robinson 2011-08-13 14:03:53 CEST
+1 Please

Zoneminder can be found at zoneminder.com and has good documentation, if perhaps a little out of date.

Current version 1.24.4 with 1.25 due to land very soon.

CC: (none) => eeeemail

Comment 2 thierry rouillon 2011-08-16 19:59:35 CEST
In french on the wiki for mandriva2008.0 pour docmentation
http://www.zoneminder.com/wiki/index.php/Mandriva_2008.0_free_installation

zoneminder is in download on http://www.zoneminder.com/downloads

thanks
Comment 3 Barry Jackson 2011-08-29 00:11:02 CEST
(In reply to comment #1)
> +1 Please
> 
> Zoneminder can be found at zoneminder.com and has good documentation, if
> perhaps a little out of date.
> 
> Current version 1.24.4 with 1.25 due to land very soon.

Yes and I have it (1.24.4) working in mga1.

I am working on a package but it's a tricky one.

Is there anyone else working on this - or anyone interested - preferably with perl, mysql and apache packaging experience who could assist me - maybe as a mentor in getting this off the ground?

CC: (none) => zen25000

Comment 4 claire robinson 2011-08-30 09:53:53 CEST
I'm not a developer but I can certainly help with testing, Barry.
Comment 5 Barry Jackson 2011-09-07 01:35:17 CEST
(In reply to comment #4)
> I'm not a developer but I can certainly help with testing, Barry.
Thanks - sounds good!
Are you running i586 or x86_64 ? and does your processor have sse2?
This will tell you:-
cat /proc/cpuinfo | grep flags

The big problem is that zm is hardware dependent if you want to get the best performance, so some people build it from source on the final server hardware.

However, that said, I now finally have a package that is installing and running and automates some of the setup so that it works out of the box (almost), but it will only run on specific processors.
This is mainly because I have included a performance patch, which also allows me to test using my mjpeg webcam. The improvements added by this patch will hopefully be built into 1.25.1 but not 1.25.0, so I am concentrating on packaging a patched 1.24.4 for now. The patch info is here:-
http://www.zoneminder.com/forums/viewtopic.php?f=9&t=17652

The package also requires an as yet un-packaged perl module, but I have built a package for that which works in mga1.

Let me know about the arch and sse2 and I will try to attach an alpha test package with some notes on installation in a day or so ;)
Comment 6 claire robinson 2011-09-07 12:48:27 CEST
I have x86_64 Q6600 with a pci cctv card


4 of these:

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts tpr_shadow vnmi flexpriority


and 8 of these:

06:08.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
        Subsystem: Philips Semiconductors Device 0000
        Flags: bus master, medium devsel, latency 64, IRQ 21
        Memory at febffc00 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [40] Power Management version 1
        Kernel driver in use: saa7134
        Kernel modules: saa7134

and one camera :D possibly 2 (if it still works)
Comment 7 Barry Jackson 2011-09-08 22:58:24 CEST
OK here we go  :)
Here is a tar with a x86_64 rpm, the src.rpm, perl-Sys-Mmap and a README (which is also in the rpm). http://82.69.3.149/zm.tar.gz
md5sum is f6c8745953e0472a3af5f41128b6015e
Read the README before installing, especially the note at the end.
Any questions, you can find me (barjac) on #zoneminder or #mageia-mentoring on freenode IRC.

I think this is at a stage where it needs a review from a 'real' packager ;)
Manuel Hiebel 2011-09-08 23:09:38 CEST

Keywords: (none) => PATCH

Comment 8 claire robinson 2011-09-08 23:47:15 CEST
I'm usually in Mageia channels Barry (MrsB), I am doing QA.

I'll have a look at the rpm tomorrow, thanks. Is it worth waiting until you've spoken to a trained packager do you think?
Comment 9 Barry Jackson 2011-09-09 00:00:32 CEST
Well it installs and runs and uninstalls cleanly - lots of testing in several installations many times, but it's your call.
I have found a bug, but I don't *think* it's related to packaging, but I could be wrong ;)

Barry
Comment 10 Barry Jackson 2011-09-09 13:05:06 CEST
Following on from the above, I have found a couple of path issues which have been corrected, however the bug I am trying to track down is a bit of a show stopper for now, so maybe best to hang on and I will update the files if/when there is a fix. Everything works that I have tested except the DVR controls for playback of events, pause, play etc.- they just do nothing while the event is playing. These controls apparently rely on php sockets, but this is enabled in the php.spec. 
So, I am going to re-build in Cauldron and test it there, just to rule out any mga1 issue. Watch this space ;)
Comment 11 claire robinson 2011-09-09 13:09:09 CEST
I seem to remember that issue before when I had it installed in Ubuntu. I've got a feeling that might be due to it playing back as mjpeg and not mpg or whatever it converts to for IE users. Firefox can play back mjpeg natively.

I could be wrong but its worth checking up on before you get too far into php sockets.
Comment 12 Barry Jackson 2011-09-09 14:37:26 CEST
Thanks, but I don't think that's it.
To play in IE and Chrome it uses cambozola.jar at the server, however I originally had that in the wrong path and so effectively disabled, but it still had this issue. The buttons work (as in they change icon when clicked) so the mouse events are being caught, they just seem to do nothing. I will quiz one of the zm devs on IRC again later ;)
Barry Jackson 2011-09-09 14:41:07 CEST

CC: (none) => sander.lepik

Comment 13 Barry Jackson 2011-09-11 19:49:03 CEST
(In reply to comment #11)
> I could be wrong but its worth checking up on before you get too far into php
> sockets.

OK it's fixed - we need php-sockets as a require.
There is a new version at the url in #7 md5:-
7d652432d9aef62fdafa61ff950b3afb  zm.tar.gz
This is built for Cauldron, but the src.rpm is in there as well.

Let me know how it goes ;)
Comment 14 Barry Jackson 2011-09-23 13:43:12 CEST
Zoneminder-1.24.4 is now in Cauldron core/release and tainted/release.

Please test and report any issues here - thanks.
Comment 15 claire robinson 2011-09-23 14:05:16 CEST
I don't have a cauldron setup to test this Barry, I'll try and get an i586 and x86_64 set up over the weekend if I get a chance.
Comment 16 Barry Jackson 2011-09-27 02:07:43 CEST
(In reply to comment #15)
> I don't have a cauldron setup to test this Barry, I'll try and get an i586 and
> x86_64 set up over the weekend if I get a chance.

Please don't test an update from an earlier version until I have released a new package - I have found bugs in the database update process - some mine - one upstream which I have patched - it's testing OK now but needs a little more work.
Barry
Samuel Verschelde 2011-10-01 00:53:02 CEST

Summary: zoneminder => Package request: zoneminder

Samuel Verschelde 2011-10-01 00:53:47 CEST

Assignee: bugsquad => zen25000

Comment 17 Manuel Hiebel 2011-11-03 19:50:19 CET
*** Bug 3255 has been marked as a duplicate of this bug. ***

CC: (none) => alejandrocobo

Comment 18 Barry Jackson 2011-11-04 00:42:05 CET
Update.
zoneminder 1.25.0 will appear in Cauldron in the next day or so for testing.
It is systemd ready and should perform equally well on systems using sysvinit or systemd.

Please test preferably using urpmi, and also test the zmsetup script which is mentioned in the post install message.
(If you install with urpmi at CLI then it's easy to just type zmsetup while at the prompt)

This *should* make installation and setup very easy ;)
Comment 19 Marja Van Waes 2011-12-09 21:38:10 CET
there are two versions of zoneminder in cauldron:
1.25.0-2.mga2 // core-release 
1.25.0-2.mga2.tainted // tainted-release

so closing this request :)

Status: NEW => RESOLVED
CC: (none) => marja11
Resolution: (none) => FIXED