Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

83 commits

Author SHA1 Message Date
Charles R. Anderson
8f7f5a9a6d Moving to rpmfusion repo 2017-01-06 11:38:11 -05:00
Petr Písař
9465aeb66b Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 09:53:36 +02:00
Jitka Plesnikova
fcc625e70b Perl 5.24 rebuild 2016-05-16 17:03:45 +02:00
Fedora Release Engineering
91475aef51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 04:08:34 +00:00
Dennis Gilmore
5ca5e1a30d - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 04:50:03 +00:00
Charles R. Anderson
82ba890782 Fix build 2015-06-12 13:44:44 -04:00
Jitka Plesnikova
8400183b38 Perl 5.22 rebuild 2015-06-06 18:03:48 +02:00
Jason Tibbitts
45a36809a0 Begin working on 1.28.1. 2015-03-10 11:55:51 -05:00
Jason Tibbitts
f4d83265de Merge branch 'master' of ssh://pkgs.fedoraproject.org/zoneminder 2015-03-10 11:52:31 -05:00
Jason Tibbitts
6539dcfdeb Commit some old uncommitted changes. 2015-03-10 11:52:12 -05:00
Jitka Plesnikova
52c37beda3 Perl 5.20 rebuild 2014-09-01 08:28:40 +02:00
Kevin Fenzi
7b2e61cb64 Rebuild for rpm bug 1131960 2014-08-21 11:55:58 -06:00
Peter Robinson
59ff8671b4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 11:47:29 +00:00
Petr Písař
e5eb56a503 Fix a format-security warning 2014-06-12 15:25:00 +02:00
Petr Písař
ec5a5a8200 Allow autotools to install missing files 2014-06-12 15:06:04 +02:00
Dennis Gilmore
293328f0c8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 13:17:15 -05:00
Dennis Gilmore
e007226424 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 04:59:18 -05:00
Petr Písař
f21f07da5e zoneminder 2013-07-29 11:08:05 +02:00
Petr Písař
6fc9c4e10d Perl 5.18 rebuild 2013-07-29 07:40:56 +02:00
Dennis Gilmore
8c2fe58019 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 22:24:18 -06:00
Adam Tkac
44ae8e1fac Rebuild due to "jpeg8-ABI" feature drop
Signed-off-by: Adam Tkac <atkac@redhat.com>
2013-01-21 18:10:55 +01:00
Remi Collet
ae3d33f9c6 fix configuration file for httpd 2.4, #871502 2013-01-07 14:56:59 +01:00
Adam Tkac
e5baff393d rebuild against new libjpeg
Signed-off-by: Adam Tkac <atkac@redhat.com>
2012-12-21 20:45:01 +01:00
Jason Tibbitts
b4e5abd740 Work around v4l2 api breakage in 3.5 kernel. 2012-08-09 20:34:21 -05:00
Dennis Gilmore
f89d2a7bf1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-22 03:32:26 -05:00
Petr Písař
895553fb0a Perl 5.16 rebuild 2012-06-23 06:01:56 +02:00
Jason Tibbitts
21efc1a028 Fix stupid thinko in sql modifications. 2012-03-21 18:59:56 -05:00
Jason Tibbitts
06e52f2a78 Clean up macro usage. 2012-02-25 18:52:03 -06:00
Jason Tibbitts
348b958726 Properly install /run/zoneminder with the package. 2012-02-25 18:35:20 -06:00
Jason Tibbitts
c6cc53b71b Fix name of tmpfiles.d conffile. 2012-02-25 17:49:01 -06:00
Jason Tibbitts
708033ca21 More systemd fixes.
Add ExecReload to the service file.
BR: systemd-units for _unitdir.
2012-02-25 17:40:38 -06:00
Jason Tibbitts
205e494489 Add logrotate file. 2012-02-25 15:19:53 -06:00
Jason Tibbitts
32f0cfc99e Doh, fix version in systemd conversion trigger. 2012-02-25 12:18:14 -06:00
Jason Tibbitts
c3e85c3516 Remove spurious executable perms. 2012-02-25 00:23:49 -06:00
Jason Tibbitts
3334d2a550 Add tmpfiles.d config. 2012-02-25 00:19:38 -06:00
Jason Tibbitts
fb5277dfec COnvert to systemd. 2012-02-24 23:43:18 -06:00
Jason Tibbitts
34995c5295 Minor updates
- Update README.Fedora to reference systemctl and mention timezone info in
  php.ini.
- Add proper default for EYEZM_LOG_TO_FILE.
2012-02-22 19:20:46 -06:00
Jason Tibbitts
a943b9333a Rebuild for new pcre. 2012-02-09 14:23:38 -06:00
Jason Tibbitts
a6f1399eae Forgot to add the new patches; doh. 2012-01-19 14:19:27 -06:00
Jason Tibbitts
587c797f64 Update to 1.25.0 and fix gcc 4.7 build issues. 2012-01-19 14:15:12 -06:00
Dennis Gilmore
cea30f4102 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 03:39:29 -06:00
Jason Tibbitts
c0b340de9e Re-add the dist tag. 2011-09-15 18:17:01 -05:00
Jason Tibbitts
131373ec63 Updated sources. 2011-09-15 17:47:26 -05:00
Jason Tibbitts
898c96a052 Get things back in order
- Add patch for bug 711780 - fix syntax issue in Mapped.pm.
- Undo that patch, and undo another which was the cause of the whole
  mess.
- Fix up other patches so ZM_PATH_BUILD is both defined and useful.
- Make sure database creation mods actually take.
- Update Fedora-specific docs with some additional info.
- Use bundled mootools (javascript, so no guideline violation).
- Update download location.
- Update the gcrypt patch to actually work.
- Upstream changed the tarball without changing the version to patch a
  vulnerability, so redownload.
2011-09-15 17:00:10 -05:00
Jason Tibbitts
a869364df4 And the .gitignore file. Ugh. 2011-08-14 12:10:53 -05:00
Jason Tibbitts
29ddbffb10 Forgot to update sources. Ugh. 2011-08-14 11:58:04 -05:00
Jason Tibbitts
0ebeb3586c Update to 1.24.4.
Initial attempt to upgrade to 1.24.4.
Add patch from BZ 460310 to build against libgcrypt instead of requiring the
gnutls openssl libs.
2011-08-14 09:18:45 -05:00
Petr Sabata
c3fbfeb2f2 Perl mass rebuild 2011-07-21 15:20:09 +02:00
Petr Sabata
558b70197b Perl mass rebuild 2011-07-20 01:55:59 +02:00
Jason Tibbitts
9e3e74d248 Bump for gnutls update. 2011-05-09 12:38:14 -05:00
Jason Tibbitts
8185da4041 Update to 1.24.3 snapshot. 2011-03-25 00:19:27 -05:00
Dan Horák
3b324907c2 rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) 2011-03-23 19:59:42 +01:00
Jason Tibbitts
6b446b40a5 Update sources. 2011-02-10 12:17:03 -06:00
Dennis Gilmore
547511fbee - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 03:13:55 -06:00
Jason Tibbitts
cba1166e6b Update to 1.24.3 and try to build without v4l1
Note that this won't build, but it's no worse than before this work.
2011-01-25 16:55:13 -06:00
Jason Tibbitts
5ba46bbd45 No need for cambozola in sources. 2011-01-22 18:00:20 -06:00
Jason Tibbitts
0778c78812 Fix errors in README.Fedora. 2011-01-22 16:21:53 -06:00
Jason Tibbitts
b8ca1475c7 Relocate some directories to please selinux. 2011-01-22 16:07:30 -06:00
Jason Tibbitts
f391cc5575 Attempt to force short_open_tag on. 2011-01-22 10:31:58 -06:00
Jason Tibbitts
3d9ed97c5b Fix thinko in changelog. 2011-01-22 10:26:15 -06:00
Jason Tibbitts
85647fc486 Remove unnecessary Conflicts: 2011-01-22 00:26:06 -06:00
Jason Tibbitts
d7d790c83c Fix mixed space/tab usage. 2011-01-22 00:25:27 -06:00
Jason Tibbitts
0e7fe5a768 Remove some things unnecessary on modern Fedora. 2011-01-22 00:09:54 -06:00
Jason Tibbitts
d637c48ed5 Use separately-packaged cambozola jar. 2011-01-22 00:08:03 -06:00
Fedora Release Engineering
757adca12c dist-git conversion 2010-07-29 16:32:38 +00:00
Marcela Mašláňová
d5903e7b46 - Mass rebuild with perl-5.12.0 2010-06-02 10:18:39 +00:00
Štěpán Kasal
4b630c3bcd - use Perl vendorarch and archlib variables correctly 2009-12-06 23:54:45 +00:00
Štěpán Kasal
1743cb51c3 - rebuild against perl 5.10.1 2009-12-06 23:36:44 +00:00
Bill Nottingham
b1c707c88b Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:39:21 +00:00
Jesse Keating
3412f5eb2c - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 09:04:40 +00:00
Jason ティビツ
0e2845b2ac - Bump release since 1.24.2-1 was mistakenly tagged a few months ago. 2009-07-22 20:18:50 +00:00
Jason ティビツ
2180d71d50 - Initial update to 1.24.2.
- Rebase patches.
- Update mootools download location.
- Update to mootools 1.2.3.
- Add additional dependencies for some optional features.
2009-07-22 20:01:54 +00:00
mebourne
8c19563c5c - Remove unused Sys::Mmap perl dependency RPM is finding 2009-04-11 18:03:48 +00:00
mebourne
75f093b5f8 Fix version/release typo. 2009-04-11 01:24:27 +00:00
mebourne
314f419e69 - Update gcc44 patch to disable -frepo, seems to be broken with gcc44
- Added noffmpeg patch to make building outside mock easier
2009-04-11 01:19:34 +00:00
mebourne
3e6d69bf7d Fix typo in patch 2009-04-07 20:51:58 +00:00
mebourne
361ab5c246 Apply the patch 2009-03-21 21:57:57 +00:00
mebourne
cfd761b6a7 - Patch for gcc 4.4 compilation errors
- Upgrade to 1.24.1
2009-03-21 21:50:04 +00:00
mebourne
b1334c0427 - Upgrade to 1.24.1 2009-03-15 00:37:00 +00:00
mebourne
b075e8172b Added ZoneMinder-1.24.1.tar.gz archive 2009-03-14 23:59:49 +00:00
Jesse Keating
9ac63fc1b5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-25 18:44:44 +00:00
Caolan McNamara
a19727e8ec rebuild for dependencies 2009-01-24 15:34:26 +00:00
mebourne
49b0714c0c - Fix permissions on zm.conf 2008-12-15 21:22:20 +00:00
11 changed files with 1 additions and 491 deletions

View file

@ -1,4 +0,0 @@
mootools-1.2-core-yc.js
jscalendar-1.0.zip
ZoneMinder-1.23.3.tar.gz
cambozola-0.68.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: zoneminder
# $Id$
NAME := zoneminder
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,31 +0,0 @@
New installs
============
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:
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>

1
dead.package Normal file
View file

@ -0,0 +1 @@
Moving to rpmfusion repo

Binary file not shown.

View file

@ -1,4 +0,0 @@
741c1ef4d6602c12a54d8a1b629988c8 mootools-1.2-core-yc.js
10f2160fe68294013efcd1473cd36f72 jscalendar-1.0.zip
ee803f0f71d6e67adf602c3557fb6bc9 ZoneMinder-1.23.3.tar.gz
e4fac8b6ee94c9075b14bb95be4f860b cambozola-0.68.tar.gz

View file

@ -1,15 +0,0 @@
--- Makefile.am.orig 2006-12-25 01:21:07.000000000 +0000
+++ Makefile.am 2006-12-25 01:22:04.000000000 +0000
@@ -23,9 +23,9 @@
# Yes, you are correct. This is a HACK!
install-data-hook:
( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
- -( if ! test -e $(RUNDIR); then mkdir $(RUNDIR); fi )
- ( if ! test -e $(ZM_RUNDIR); then mkdir $(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR) )
+ -( if ! test -e $(DESTDIR)$(RUNDIR); then mkdir $(DESTDIR)$(RUNDIR); fi )
+ ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir $(DESTDIR)$(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR) )
uninstall-hook:
@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
- @-( rm -rf $(ZM_RUNDIR) )
+ @-( rm -rf $(DESTDIR)$(ZM_RUNDIR) )

View file

@ -1,10 +0,0 @@
--- scripts/zm.in.runlevel 2008-05-06 22:54:36.000000000 +0100
+++ scripts/zm.in 2008-05-06 23:01:35.000000000 +0100
@@ -1,6 +1,6 @@
#!/bin/sh
# description: ZoneMinder is the top Linux video camera security and surveillance solution. ZoneMinder is intended for use in single or multi-camera video security applications.Copyright: Philip Coombes, Corey DeLasaux 2003-2006
-# chkconfig: 2345 99 00
+# chkconfig: - 99 00
# processname: zmpkg.pl
# Source function library.

View file

@ -1,138 +0,0 @@
--- db/Makefile.am.orig 2006-12-27 23:50:07.000000000 +0000
+++ db/Makefile.am 2006-12-27 23:50:21.000000000 +0000
@@ -1,7 +1,16 @@
AUTOMAKE_OPTIONS = gnu
+zmdbdatadir = $(pkgdatadir)/db
+
EXTRA_DIST = \
zm_create.sql.in \
+ $(dbupgrade_scripts)
+
+dist_zmdbdata_DATA = \
+ zm_create.sql \
+ $(dbupgrade_scripts)
+
+dbupgrade_scripts = \
zm_update-0.0.1.sql \
zm_update-0.9.7.sql \
zm_update-0.9.8.sql \
--- scripts/zmupdate.pl.orig 2006-12-27 23:59:20.000000000 +0000
+++ scripts/zmupdate.pl 2006-12-27 23:59:35.000000000 +0000
@@ -320,7 +320,7 @@
$command .= " -p".$db_pass;
}
}
- $command .= " ".ZM_DB_NAME." < ".ZM_PATH_BUILD."/db/zm_update-".$version.".sql";
+ $command .= " ".ZM_DB_NAME." < ".ZM_PATH_DATA."/db/zm_update-".$version.".sql";
print( "Executing '$command'\n" ) if ( DBG_LEVEL > 0 );
my $output = qx($command);
--- configure.in.orig 2006-12-27 23:55:41.000000000 +0000
+++ configure.in 2006-12-27 23:59:07.000000000 +0000
@@ -1,10 +1,8 @@
-AC_INIT(zm,1.23.3,support@zoneminder.com,ZoneMinder)
+AC_INIT(zm,1.23.3,support@zoneminder.com,zoneminder)
AC_CONFIG_SRCDIR(src/zm.h)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
-PATH_BUILD=`pwd`
-AC_SUBST(PATH_BUILD)
TIME_BUILD=`date +'%s'`
AC_SUBST(TIME_BUILD)
@@ -216,8 +214,10 @@
AC_DEFINE_DIR([BINDIR],[bindir],[Expanded binary directory])
AC_DEFINE_DIR([LIBDIR],[libdir],[Expanded library directory])
+AC_DEFINE_DIR([DATADIR],[datadir],[Expanded data directory])
+AC_SUBST(PKGDATADIR,"$DATADIR/$PACKAGE")
AC_SUBST(RUNDIR,"/var/run")
-AC_SUBST(ZM_RUNDIR,"$RUNDIR/zm")
+AC_SUBST(ZM_RUNDIR,"$RUNDIR/$PACKAGE")
AC_SUBST(ZM_PID,"$ZM_RUNDIR/zm.pid")
AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Expanded configuration directory])
AC_SUBST(ZM_CONFIG,"$SYSCONFDIR/zm.conf")
--- zm.conf.in.orig 2006-12-27 23:53:38.000000000 +0000
+++ zm.conf.in 2006-12-27 23:59:11.000000000 +0000
@@ -12,8 +12,8 @@
# Current version of ZoneMinder
ZM_VERSION=@VERSION@
-# Path to build directory, used mostly for finding DB upgrade scripts
-ZM_PATH_BUILD=@PATH_BUILD@
+# Path to installed data directory, used mostly for finding DB upgrade scripts
+ZM_PATH_DATA=@PKGDATADIR@
# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=@TIME_BUILD@
--- scripts/zm.in.dbinstall 2007-04-03 00:41:48.000000000 +0100
+++ scripts/zm.in 2007-04-03 00:42:46.000000000 +0100
@@ -6,10 +6,10 @@
# Source function library.
. /etc/rc.d/init.d/functions
-prog=ZoneMinder
+prog="@PACKAGE@"
ZM_CONFIG="@ZM_CONFIG@"
pidfile="@ZM_RUNDIR@"
-LOCKFILE=/var/lock/subsys/zm
+LOCKFILE=/var/lock/subsys/$prog
loadconf()
{
@@ -27,9 +27,8 @@
start()
{
zmupdate || 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
@@ -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"
+ echo "$prog is running"
$ZM_PATH_BIN/zmu -l
RETVAL=0
else
- echo "ZoneMinder is stopped"
+ echo "$prog is stopped"
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

View file

@ -1,30 +0,0 @@
# The Zoneminder web interface has been disabled by default due to a small
# security issue in the default install.
#
# When using Zoneminder's own authentication, recorded CCTV images are
# accessible from the web directly without passing the authentication. This
# means any attacker could see your CCTV images without a password. In order
# to avoid this you can disable Zoneminder's authentication and configure
# standard Apache authentication (see the Apache documentation for details on
# this).
#
# If you still wish to use Zoneminder's own authentication, or have an
# internal site which needs no authentication, you need to delete the line
# marked below and restart Apache.
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
Options -Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Deny from all # DELETE THIS LINE
</Directory>
ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"
<Directory "/usr/libexec/zoneminder/cgi-bin">
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

View file

@ -1,238 +0,0 @@
%define zmuid $(id -un)
%define zmgid $(id -gn)
%define zmuid_final apache
%define zmgid_final apache
Name: zoneminder
Version: 1.23.3
Release: 1%{?dist}
Summary: A camera monitoring and analysis tool
Group: System Environment/Daemons
# jscalendar is LGPL (any version): http://www.dynarch.com/projects/calendar/
# Mootools is inder the MIT license: http://mootools.net/
License: GPLv2+ and LGPLv2+ and MIT
URL: http://www.zoneminder.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source: http://www.zoneminder.com/fileadmin/downloads/ZoneMinder-%{version}.tar.gz
Source1: http://www.charliemouse.com/code/cambozola/cambozola-0.68.tar.gz
Source2: zoneminder.conf
Source3: redalert.wav
Source4: README.Fedora
Source5: http://downloads.sourceforge.net/jscalendar/jscalendar-1.0.zip
Source6: http://mootools.net/downloads/mootools-1.2-core-yc.js
Patch1: zoneminder-1.23.3-dbinstall.patch
Patch2: zoneminder-1.22.3-runlevel.patch
Patch10: zoneminder-1.22.3-installfix.patch
Conflicts: zm <= 1.22.3
BuildRequires: automake gnutls-devel
BuildRequires: mysql-devel pcre-devel libjpeg-devel
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)
BuildRequires: perl(PHP::Serialization)
Requires: httpd php php-mysql
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(DBD::mysql)
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%description
ZoneMinder is a set of applications which is intended to provide a complete
solution allowing you to capture, analyse, record and monitor any cameras you
have attached to a Linux based machine. It is designed to run on kernels which
support the Video For Linux (V4L) interface and has been tested with cameras
attached to BTTV cards, various USB cameras and IP network cameras. It is
designed to support as many cameras as you can attach to your computer without
too much degradation of performance. This package includes cambozola.jar.
%prep
%setup -q -n ZoneMinder-%{version}
# Unpack jscalendar and move some files around
%setup -q -D -T -a 5 -n ZoneMinder-%{version}
mkdir jscalendar-doc
pushd jscalendar-1.0
mv *html *php doc/* README ../jscalendar-doc
rmdir doc
popd
%patch1 -p0 -b .dbinstall
%patch2 -p0 -b .runlevel
%patch10 -p0 -b .installfix
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
OPTS=""
%ifnarch %{ix86} x86_64
OPTS="$OPTS --disable-crashtrace"
%endif
%configure \
--with-libarch=%{_lib} \
--with-mysql=%{_prefix} \
--with-webdir=%{_datadir}/%{name}/www \
--with-cgidir=%{_libexecdir}/%{name}/cgi-bin \
--with-webuser=%{zmuid} \
--with-webgroup=%{zmgid} \
--disable-debug \
$OPTS
make %{?_smp_mflags}
%{__perl} -pi -e 's/(ZM_WEB_USER=).*$/${1}%{zmuid_final}/;' \
-e 's/(ZM_WEB_GROUP=).*$/${1}%{zmgid_final}/;' zm.conf
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_localstatedir}/run
make install DESTDIR=$RPM_BUILD_ROOT \
INSTALLDIRS=vendor
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{_lib}/perl5/vendor_perl/*.*/*-*
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{_lib}/perl5/*.*/*-*
rm -f $RPM_BUILD_ROOT%{_bindir}/zmx10.pl
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/log/zoneminder
for dir in events images temp
do
install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/zoneminder/$dir
rmdir $RPM_BUILD_ROOT%{_datadir}/%{name}/www/$dir
ln -sf ../../../..%{_localstatedir}/lib/zoneminder/$dir $RPM_BUILD_ROOT%{_datadir}/%{name}/www/$dir
done
install -D -m 755 scripts/zm $RPM_BUILD_ROOT%{_initrddir}/zoneminder
install -D -m 644 cambozola-*/dist/cambozola.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/www/cambozola.jar
install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zoneminder.conf
install -D -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/%{name}/www/sounds/redalert.wav
# Install jscalendar - this really should be in its own package
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/www/jscalendar
cp -rp jscalendar-1.0/* $RPM_BUILD_ROOT%{_datadir}/%{name}/www/jscalendar
# Install mootools
pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/www
install -m 644 %{SOURCE6} mootools-1.2-core-yc.js
ln -s mootools-1.2-core-yc.js mootools.js
popd
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add zoneminder
%preun
if [ $1 -eq 0 ]; then
/sbin/service zoneminder stop > /dev/null 2>&1 || :
/sbin/chkconfig --del zoneminder
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service zoneminder condrestart > /dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README README.Fedora jscalendar-doc
%config(noreplace) %attr(600,%{zmuid_final},%{zmgid_final}) %{_sysconfdir}/zm.conf
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/httpd/conf.d/zoneminder.conf
%attr(755,root,root) %{_initrddir}/zoneminder
%{_bindir}/zma
%{_bindir}/zmaudit.pl
%{_bindir}/zmc
%{_bindir}/zmcontrol.pl
%{_bindir}/zmdc.pl
%{_bindir}/zmf
%{_bindir}/zmfilter.pl
%attr(4755,root,root) %{_bindir}/zmfix
%{_bindir}/zmpkg.pl
%{_bindir}/zmtrack.pl
%{_bindir}/zmtrigger.pl
%{_bindir}/zmu
%{_bindir}/zmupdate.pl
%{_bindir}/zmvideo.pl
%{_bindir}/zmwatch.pl
%{perl_vendorlib}/ZoneMinder*
%{_mandir}/man*/*
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/cgi-bin
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/db
%{_datadir}/%{name}/www
%dir %attr(755,%{zmuid_final},%{zmgid_final}) %{_localstatedir}/lib/zoneminder
%dir %attr(755,%{zmuid_final},%{zmgid_final}) %{_localstatedir}/lib/zoneminder/events
%dir %attr(755,%{zmuid_final},%{zmgid_final}) %{_localstatedir}/lib/zoneminder/images
%dir %attr(755,%{zmuid_final},%{zmgid_final}) %{_localstatedir}/lib/zoneminder/temp
%dir %attr(755,%{zmuid_final},%{zmgid_final}) %{_localstatedir}/log/zoneminder
%changelog
* Fri Jul 11 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.23.3-1
- Initial attempt at packaging 1.23.
* Tue Jul 1 2008 Martin Ebourne <martin@zepler.org> - 1.22.3-15
- Add perl module compat dependency, bz #453590
* Tue May 6 2008 Martin Ebourne <martin@zepler.org> - 1.22.3-14
- Remove default runlevel, bz #441315
* Mon Apr 28 2008 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.22.3-13
- Backport patch for CVE-2008-1381 from 1.23.3 to 1.22.3.
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.22.3-12
- Autorebuild for GCC 4.3
* Thu Jan 3 2008 Martin Ebourne <martin@zepler.org> - 1.22.3-11
- Fix compilation on gcc 4.3
* Thu Dec 6 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-10
- Rebuild for new openssl
* Thu Aug 2 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-8
- Fix licence tag
* 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
* Sat Jun 30 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-5
- Fix uid for directories in /var/lib/zoneminder
* Tue Jun 26 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-4
- Added perl Archive::Tar dependency
- Disabled web interface due to lack of access control on the event images
* Sun Jun 10 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-3
- Changes recommended in review by Jason Tibbitts
* Mon Apr 2 2007 Martin Ebourne <martin@zepler.org> - 1.22.3-2
- Standardised on package name of zoneminder
* Thu Dec 28 2006 Martin Ebourne <martin@zepler.org> - 1.22.3-1
- First version. Uses some parts from zm-1.20.1 by Corey DeLasaux and Serg Oskin