FreeBSD port for 1.23.3
Re: FreeBSD port for 1.23.3
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.
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
OK, done.achix wrote:You may write whatever seems suitable for the occasion.
Last edited by bsam on Wed Jul 06, 2011 4:02 pm, edited 1 time in total.
Re: FreeBSD port for 1.23.3
bsam wrote:OK, done.achix wrote:You may write whatever seems suitable for the occasion.
pls i saw your change in Makefile and it definitely is a joke.
Please , just put something like
My 99.99% number was arbitrary, only you know how much lines you changed in zm_fbsd_camera.cppbased on ports by achix (1.23 & local camera stuff), Richard Lee and Electric Messiah
Re: FreeBSD port for 1.23.3
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 ?
(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
Hm, for me it was not a joke. Anyway, I committed your variant.achix wrote:pls i saw your change in Makefile and it definitely is a joke.
Last edited by bsam on Wed Jul 06, 2011 4:02 pm, edited 1 time in total.
Re: FreeBSD port for 1.23.3
bsam wrote:Hm, for me it was not a joke. Anyway, I committed your variant.achix wrote:pls i saw your change in Makefile and it definitely is a joke.
Thanx
Re: FreeBSD port for 1.23.3
any alternate mirror for this port?
Re: FreeBSD port for 1.23.3
What mirror? The port is in the ports tree.dub wrote:any alternate mirror for this port?
Re: FreeBSD port for 1.23.3
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?
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
Hi,
Seems that you need the command "% make -C /usr/ports/multimedia/zoneminder WWWDIR=/usr/local/www/apache22".
--
WBR, bsam
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
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:
/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
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
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
I wouldn't recomment doing this since pkg-plist would be incorrect and one can't delete a package/port cleanly.achix wrote:Thanx, its ok i copied the files by hand.
The fix should be at the portstree (PORTREVISION=10). Thanks for pointing this out.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:
--
WBR, bsam
Last edited by bsam on Wed Jul 06, 2011 4:03 pm, edited 1 time in total.
Re: FreeBSD port for 1.23.3
[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
Can you provide a patch or at least a proof of concept? Thanks!
--
WBR, bsam
Re: FreeBSD port for 1.23.3
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
2) and i added files/patch-scripts_zmdc.pl.in
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"
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 );
}