Page 6 of 8
Re: FreeBSD port for 1.23.3
Posted: Tue Jun 14, 2011 1:03 pm
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.
Re: FreeBSD port for 1.23.3
Posted: Tue Jun 14, 2011 1:37 pm
by bsam
achix wrote:You may write whatever seems suitable for the occasion.
OK, done.
Re: FreeBSD port for 1.23.3
Posted: Tue Jun 14, 2011 1:50 pm
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

Re: FreeBSD port for 1.23.3
Posted: Tue Jun 14, 2011 1:57 pm
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 ?
Re: FreeBSD port for 1.23.3
Posted: Tue Jun 14, 2011 2:37 pm
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.
Re: FreeBSD port for 1.23.3
Posted: Tue Jun 14, 2011 2:43 pm
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
Re: FreeBSD port for 1.23.3
Posted: Wed Jun 22, 2011 1:48 am
by dub
any alternate mirror for this port?
Re: FreeBSD port for 1.23.3
Posted: Wed Jun 22, 2011 5:13 am
by achix
dub wrote:any alternate mirror for this port?
What mirror? The port is in the ports tree.
Re: FreeBSD port for 1.23.3
Posted: Tue Jul 05, 2011 11:48 am
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?
Re: FreeBSD port for 1.23.3
Posted: Tue Jul 05, 2011 12:47 pm
by bsam
Hi,
Seems that you need the command "% make -C /usr/ports/multimedia/zoneminder WWWDIR=/usr/local/www/apache22".
--
WBR, bsam
Re: FreeBSD port for 1.23.3
Posted: Tue Jul 05, 2011 12:57 pm
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:
Re: FreeBSD port for 1.23.3
Posted: Tue Jul 05, 2011 1:18 pm
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
Re: FreeBSD port for 1.23.3
Posted: Tue Jul 05, 2011 10:01 pm
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
Re: FreeBSD port for 1.23.3
Posted: Tue Jul 05, 2011 10:03 pm
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
Re: FreeBSD port for 1.23.3
Posted: Wed Jul 06, 2011 4:39 am
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 );
}