New FreeBSD port for 1.22.3.
Posted: Sun Jan 14, 2007 11:25 pm
Primary: http://catsspat.dyndns.org:2080/zoneminder/
Secondary: http://csua.berkeley.edu/~ricky/zoneminder/
Tertiary (direct links to tgz files):
http://www.o6.lv/files/zoneminder-freeb ... 22.3p3.tgz
http://www.o6.lv/files/zoneminder-freeb ... 22.3p4.tgz
http://www.o6.lv/files/zoneminder-freeb ... 22.3p5.tgz
# version 3 is almost identical to version 2 except it uses PHP5 instead of PHP4.
# version 4 contains patch for zm_html_view_monitor.php and has a newly written README.
# version 5 contains patch for zm_mpeg.h to fix compile issues with more recent ffmpeg source.
# version 6 contains updates to Makefile (ffmpeg-devel->ffmpeg, mod_perl->mod_perl2) as suggested by "Jimmy" and also updates for bktr support by "achix."
It was pretty hairy but I got it to work.
I'm running it on FreeBSD 5.5 with network cameras only
(Axis 206). Just about everything works, including liveview
on linux-firefox.
I plan on upgrading to FreeBSD 6.1 at some point, so if it
doesn't work there, I'll come up with a different port, but
no promises.
Also, I've never made a FreeBSD port before, so I'm sure
I'm not doing it the best way. I'm more than happy enough
to have gotten it to work.
Straight from files/README.FreeBSD in the port:
* A version of mysql MUST be installed and running for
zoneminder to operate. Port-dependency is set up to
install mysql50 (5.0.x) automatically. If you want
to use a different version, feel free to change the
port's Makefile.
* I chose to use php4 and php4-extension, which also
installs apache 1.x.x. If you're using other
versions, good luck to you.
* If you're building on 64-bit machine, get rid of
files/patch-SharedMem.pm
It as a hack for the sizes as I'm using it under
32-bit version of FreeBSD. Of course, if you built
already, it's too late to remove the patch. Just look
at it. I'm sure you can figure out how to undo.
* If this is your first installation, you need to seed
the mysql database with basic information. You
probably want to do this after seeing it successfully
build. On mysql5, follow these steps:
shell> mysql -h localhost -u root -p
mysql> source work/ZoneMinder-1.22.3/db/zm_create.sql
mysql> grant select,insert,update,delete on zm.* to 'zm'@localhost identified by 'zm'; flush privileges;
mysql> quit
* Documents are installed in
/usr/local/share/doc/zoneminder
* If you want ZoneMinder to start automatically, you can
either come up with a real zm.sh and put it in
/usr/local/etc/rc.d/ (and tell me so I know how to do
it right), or just put '/usr/local/bin/zmpkg.pl start'
in /etc/rc.local. Actually, I've not tested that yet.
Update: ver 0.2 of the port has rudimentary zm.sh
It is supposed to take care of ZoneMinder's dependency
on mysql.
* Obviously, there is no support for Linux video input
drivers. In fact, I don't even know if the bktr input
works on this. I'm only using network cameras. At
the moment, they're Axis 206.
* Dependencies are a bit hairy and there are so many
files that go everywhere, so package list is probably
incomplete. That means, even after you remove the
port, there may be some left over files.
* You may need to increase kernel shared memory pages.
This is what I'm using and it seems to work. Put these
in your kernel build file and recompile the kernel.
options SHMMAXPGS=65536
options SHMMNI=384
options SHMSEG=256
* Oh and you'll want to update /usr/local/etc/zm.conf
before trying to start ZoneMinder the first time.
ZM_DB_HOST is most likely "localhost" For the rest,
they depend on how you set up mysql. I think
database name set up by zm_create.sql is "zm."
* Good luck! You're going to need it!
Secondary: http://csua.berkeley.edu/~ricky/zoneminder/
Tertiary (direct links to tgz files):
http://www.o6.lv/files/zoneminder-freeb ... 22.3p3.tgz
http://www.o6.lv/files/zoneminder-freeb ... 22.3p4.tgz
http://www.o6.lv/files/zoneminder-freeb ... 22.3p5.tgz
# version 3 is almost identical to version 2 except it uses PHP5 instead of PHP4.
# version 4 contains patch for zm_html_view_monitor.php and has a newly written README.
# version 5 contains patch for zm_mpeg.h to fix compile issues with more recent ffmpeg source.
# version 6 contains updates to Makefile (ffmpeg-devel->ffmpeg, mod_perl->mod_perl2) as suggested by "Jimmy" and also updates for bktr support by "achix."
It was pretty hairy but I got it to work.
I'm running it on FreeBSD 5.5 with network cameras only
(Axis 206). Just about everything works, including liveview
on linux-firefox.
I plan on upgrading to FreeBSD 6.1 at some point, so if it
doesn't work there, I'll come up with a different port, but
no promises.
Also, I've never made a FreeBSD port before, so I'm sure
I'm not doing it the best way. I'm more than happy enough
to have gotten it to work.
Straight from files/README.FreeBSD in the port:
* A version of mysql MUST be installed and running for
zoneminder to operate. Port-dependency is set up to
install mysql50 (5.0.x) automatically. If you want
to use a different version, feel free to change the
port's Makefile.
* I chose to use php4 and php4-extension, which also
installs apache 1.x.x. If you're using other
versions, good luck to you.
* If you're building on 64-bit machine, get rid of
files/patch-SharedMem.pm
It as a hack for the sizes as I'm using it under
32-bit version of FreeBSD. Of course, if you built
already, it's too late to remove the patch. Just look
at it. I'm sure you can figure out how to undo.
* If this is your first installation, you need to seed
the mysql database with basic information. You
probably want to do this after seeing it successfully
build. On mysql5, follow these steps:
shell> mysql -h localhost -u root -p
mysql> source work/ZoneMinder-1.22.3/db/zm_create.sql
mysql> grant select,insert,update,delete on zm.* to 'zm'@localhost identified by 'zm'; flush privileges;
mysql> quit
* Documents are installed in
/usr/local/share/doc/zoneminder
* If you want ZoneMinder to start automatically, you can
either come up with a real zm.sh and put it in
/usr/local/etc/rc.d/ (and tell me so I know how to do
it right), or just put '/usr/local/bin/zmpkg.pl start'
in /etc/rc.local. Actually, I've not tested that yet.
Update: ver 0.2 of the port has rudimentary zm.sh
It is supposed to take care of ZoneMinder's dependency
on mysql.
* Obviously, there is no support for Linux video input
drivers. In fact, I don't even know if the bktr input
works on this. I'm only using network cameras. At
the moment, they're Axis 206.
* Dependencies are a bit hairy and there are so many
files that go everywhere, so package list is probably
incomplete. That means, even after you remove the
port, there may be some left over files.
* You may need to increase kernel shared memory pages.
This is what I'm using and it seems to work. Put these
in your kernel build file and recompile the kernel.
options SHMMAXPGS=65536
options SHMMNI=384
options SHMSEG=256
* Oh and you'll want to update /usr/local/etc/zm.conf
before trying to start ZoneMinder the first time.
ZM_DB_HOST is most likely "localhost" For the rest,
they depend on how you set up mysql. I think
database name set up by zm_create.sql is "zm."
* Good luck! You're going to need it!