Fixes from testing by Jitz including missing dependencies and database
creation
This commit is contained in:
parent
64fa14f390
commit
bbb76f46b5
3 changed files with 76 additions and 12 deletions
|
|
@ -1,8 +1,31 @@
|
|||
The Zoneminder web interface is disabled by default, you will need to edit
|
||||
this file to enable it:
|
||||
New installs
|
||||
============
|
||||
|
||||
/etc/httpd/conf.d/zoneminder.conf
|
||||
1. Unless you are already using the MySQL server or you are running it
|
||||
remotely you will need to ensure that the server is installed:
|
||||
|
||||
This package probably does not work with SELinux enabled at the moment. It may
|
||||
be necessary to disable SELinux for httpd, or even completely for Zoneminder
|
||||
to function. This will be addressed in a later release.
|
||||
yum install mysql-server
|
||||
|
||||
2. You will need to create the ZoneMinder database. These commands should do
|
||||
the trick:
|
||||
|
||||
mysql mysql < /usr/share/zoneminder/db/zm_create.sql
|
||||
mysqladmin reload
|
||||
|
||||
3. The ZoneMinder web interface is disabled by default, you will need to edit
|
||||
this file to enable it:
|
||||
|
||||
/etc/httpd/conf.d/zoneminder.conf
|
||||
|
||||
4. This package probably does not work with SELinux enabled at the moment. It
|
||||
may be necessary to disable SELinux for httpd, or even completely for
|
||||
ZoneMinder to function. This will be addressed in a later release.
|
||||
|
||||
|
||||
Upgrades
|
||||
========
|
||||
|
||||
1. You will need to upgrade the ZoneMinder database as described in the
|
||||
manual. This command should be sufficient:
|
||||
|
||||
zmupdate.pl --version=<from version>
|
||||
|
|
|
|||
|
|
@ -82,17 +82,30 @@
|
|||
|
||||
loadconf()
|
||||
{
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -27,9 +27,8 @@
|
||||
start()
|
||||
{
|
||||
zmupdate || return $?
|
||||
loadconf || return $?
|
||||
- loadconf || return $?
|
||||
#Make sure the directory for our PID folder exists or create one.
|
||||
- [ ! -d /var/run/zm ] \
|
||||
+ [ ! -d $pidfile ] \
|
||||
&& mkdir -m 774 $pidfile \
|
||||
&& chown $ZM_WEB_USER:$ZM_WEB_GROUP $pidfile
|
||||
#Make sure the folder for the socks file exists or create one
|
||||
@@ -63,11 +63,11 @@
|
||||
loadconf
|
||||
@@ -49,7 +48,6 @@
|
||||
|
||||
stop()
|
||||
{
|
||||
- loadconf
|
||||
echo -n $"Stopping $prog: "
|
||||
$command stop
|
||||
RETVAL=$?
|
||||
@@ -60,22 +58,21 @@
|
||||
|
||||
zmstatus()
|
||||
{
|
||||
- loadconf
|
||||
result=`$command status`
|
||||
if [ "$result" = "running" ]; then
|
||||
- echo "ZoneMinder is running"
|
||||
|
|
@ -105,3 +118,21 @@
|
|||
RETVAL=1
|
||||
fi
|
||||
}
|
||||
|
||||
zmupdate()
|
||||
{
|
||||
- if [ -x $ZM_PATH_BIN/zm_update ]; then
|
||||
- $ZM_PATH_BIN/zm_update noi
|
||||
+ if [ -x $ZM_PATH_BIN/zmupdate.pl ]; then
|
||||
+ $ZM_PATH_BIN/zmupdate.pl --freshen >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -92,7 +89,6 @@
|
||||
start
|
||||
;;
|
||||
'condrestart')
|
||||
- loadconf
|
||||
result=`$ZM_PATH_BIN/zmdc.pl check`
|
||||
if [ "$result" = "running" ]; then
|
||||
$ZM_PATH_BIN/zmdc.pl shutdown > /dev/null
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
Name: zoneminder
|
||||
Version: 1.22.3
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: A camera monitoring and analysis tool
|
||||
Group: System Environment/Daemons
|
||||
License: GPL
|
||||
|
|
@ -28,7 +28,8 @@ BuildRequires: perl(Archive::Tar) perl(Archive::Zip)
|
|||
BuildRequires: perl(Date::Manip) perl(DBD::mysql)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) perl(LWP::UserAgent)
|
||||
BuildRequires: perl(MIME::Entity) perl(MIME::Lite)
|
||||
Requires: httpd perl(DBD::mysql)
|
||||
Requires: httpd php php-mysql
|
||||
Requires: perl(DBD::mysql)
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires(preun): /sbin/chkconfig
|
||||
Requires(preun): /sbin/service
|
||||
|
|
@ -52,6 +53,12 @@ too much degradation of performance. This package includes cambozola.jar.
|
|||
gunzip -c %{SOURCE1} | tar xf - cambozola-*/dist/cambozola.jar
|
||||
cp %{SOURCE4} README.Fedora
|
||||
|
||||
cat <<EOF >> db/zm_create.sql.in
|
||||
update Config set Value = '/cgi-bin/zm/nph-zms' where Name = 'ZM_PATH_ZMS';
|
||||
use mysql;
|
||||
grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
autoreconf
|
||||
|
|
@ -158,6 +165,9 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 12 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-7
|
||||
- Fixes from testing by Jitz including missing dependencies and database creation
|
||||
|
||||
* Sat Jun 30 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-6
|
||||
- Disable crashtrace on ppc
|
||||
|
||||
|
|
|
|||
Reference in a new issue