FreeBSD port for 1.23.3

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

Alright, sorry for my style (we the people of eastern europe have the tendency to over react at times), anyways, my nick is achix, and the proof of my work is in this very thread which i started
beginning from here : http://www.zoneminder.com/forums/viewto ... =9&t=11965 ,

You may write whatever seems suitable for the occasion.
bsam
Posts: 22
Joined: Tue Oct 07, 2008 10:25 am

Re: FreeBSD port for 1.23.3

Post by bsam »

achix wrote:You may write whatever seems suitable for the occasion.
OK, done.
Last edited by bsam on Wed Jul 06, 2011 4:02 pm, edited 1 time in total.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

bsam wrote:
achix wrote:You may write whatever seems suitable for the occasion.
OK, done.

pls i saw your change in Makefile and it definitely is a joke.

Please , just put something like
based on ports by achix (1.23 & local camera stuff), Richard Lee and Electric Messiah
My 99.99% number was arbitrary, only you know how much lines you changed in zm_fbsd_camera.cpp :)
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

Or if you were to go on with this peculiar style you should write

(since you changed about 39 lines in zm_fbsd_camera.cpp which used to have 816 lines,
hence the end file has (816 - 39)/816 = .95220588235294117647 = 95.220588235294117647% of the original )

Anyways, all these are meaningless till the time i see the first frames from my local camera.

PS
Question : has anyone used this port with local camera support ?
bsam
Posts: 22
Joined: Tue Oct 07, 2008 10:25 am

Re: FreeBSD port for 1.23.3

Post by bsam »

achix wrote:pls i saw your change in Makefile and it definitely is a joke.
Hm, for me it was not a joke. Anyway, I committed your variant.
Last edited by bsam on Wed Jul 06, 2011 4:02 pm, edited 1 time in total.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

bsam wrote:
achix wrote:pls i saw your change in Makefile and it definitely is a joke.
Hm, for me it was not a joke. Anyway, I committed your variant.

Thanx
dub
Posts: 1
Joined: Wed Jun 22, 2011 12:25 am

Re: FreeBSD port for 1.23.3

Post by dub »

any alternate mirror for this port?
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

dub wrote:any alternate mirror for this port?
What mirror? The port is in the ports tree.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

Hello,

just started testing the new zoneminder port.
I see it created a dir /usr/local/www/zoneminder

i am not an apache22 guru, how could zoneminder related stuff be included in the apache22 configuration
without manually copying directories?
bsam
Posts: 22
Joined: Tue Oct 07, 2008 10:25 am

Re: FreeBSD port for 1.23.3

Post by bsam »

Hi,
Seems that you need the command "% make -C /usr/ports/multimedia/zoneminder WWWDIR=/usr/local/www/apache22".

--
WBR, bsam
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

Thanx, its ok i copied the files by hand. Now another quick one:
/usr/local/etc/rc.d/zm status does not seem to pickup /var/run/zm/zm.pid which in turns contains smth like:
head -10 /var/run/zm/zm.pid
48199killall: unknown signal -quiet; valid signals:
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP
TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2
killall: unknown signal -quiet; valid signals:
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP
TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2
killall: unknown signal -quiet; valid signals:
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP
TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2
killall: unknown signal -quiet; valid signals:
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

in any case even if the above situation is rectified
my $cmd = "killall --quiet --signal TERM $daemon";
becomes
my $cmd = "killall -TERM $daemon 2>/dev/null";

status still does not work,

any clues???

also, your patches (of src/makefile) does not instruct the makefile to include zm_local_camera.cpp
bsam
Posts: 22
Joined: Tue Oct 07, 2008 10:25 am

Re: FreeBSD port for 1.23.3

Post by bsam »

achix wrote:Thanx, its ok i copied the files by hand.
I wouldn't recomment doing this since pkg-plist would be incorrect and one can't delete a package/port cleanly.
achix wrote:Now another quick one:
/usr/local/etc/rc.d/zm status does not seem to pickup /var/run/zm/zm.pid which in turns contains smth like:
The fix should be at the portstree (PORTREVISION=10). Thanks for pointing this out.
--
WBR, bsam
Last edited by bsam on Wed Jul 06, 2011 4:03 pm, edited 1 time in total.
bsam
Posts: 22
Joined: Tue Oct 07, 2008 10:25 am

Re: FreeBSD port for 1.23.3

Post by bsam »

[quote="achix"]also, your patches (of src/makefile) does not instruct the makefile to include zm_local_camera.cpp[/quote]
Can you provide a patch or at least a proof of concept? Thanks!
--
WBR, bsam
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Re: FreeBSD port for 1.23.3

Post by achix »

Hello bsam,
up to now i made these changes to deal with pid, status :

1) i changed files/zm.in to look like :

files/zm.in

Code: Select all

#!/bin/sh

# $FreeBSD: ports/multimedia/zoneminder/files/zm.in,v 1.1 2011/04/29 14:22:37 bsam Exp $

# PROVIDE: zoneminder
# REQUIRE: mysql apache
# KEYWORD: shutdown

# Add the following line to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# zm_enable (bool):   Set to NO by default.
#                     Set it to YES to enable zoneminder.
#

. /etc/rc.subr

name="zm"
rcvar=${name}_enable

command=/usr/local/bin/${name}pkg.pl
command_args="$1"
pidfile=/var/run/${name}/${name}.pid
#pidfile=/var/run/${name}.pid

load_rc_config "$name"
: ${zm_enable="NO"}

stop_cmd="zm_stop"
status_cmd="zm_status"

load_rc_config "$name"
: ${zm_enable="NO"}

zm_stop() {
  ${command} ${command_args}
}

zm_status() {
  ${command} ${command_args}
}

#sleep 3

run_rc_command "$1"
2) and i added files/patch-scripts_zmdc.pl.in

Code: Select all

--- scripts/zmdc.pl.in.orig	2011-07-06 07:26:46.000000000 +0300
+++ scripts/zmdc.pl.in	2011-07-06 07:27:35.000000000 +0300
@@ -780,14 +780,14 @@
 	sleep( $delay );
 	foreach my $daemon ( @daemons )
 	{
-		my $cmd = "killall --quiet --signal TERM $daemon";
+		my $cmd = "killall -KILL $daemon 2>/dev/null";
 		Debug( $cmd );
 		qx( $cmd );
 	}
 	sleep( $delay );
 	foreach my $daemon ( @daemons )
 	{
-		my $cmd = "killall --quiet --signal KILL $daemon";
+		my $cmd = "killall -KILL $daemon 2>/dev/null";
 		Debug( $cmd );
 		qx( $cmd );
 	}
Post Reply