Add devuan beowulf support
This commit is contained in:
parent
81b55589db
commit
12dbd267bf
|
@ -0,0 +1,10 @@
|
||||||
|
zoneminder (1.28.1-1) unstable; urgency=low
|
||||||
|
|
||||||
|
This version is no longer automatically initialize or upgrade database.
|
||||||
|
See README.Debian for details.
|
||||||
|
|
||||||
|
Changed installation paths (please correct your web server configuration):
|
||||||
|
/usr/share/zoneminder --> /usr/share/zoneminder/www
|
||||||
|
/usr/lib/cgi-bin --> /usr/lib/zoneminder/cgi-bin
|
||||||
|
|
||||||
|
-- Dmitry Smirnov <onlyjob@debian.org> Tue, 31 Mar 2015 15:12:17 +1100
|
|
@ -0,0 +1,130 @@
|
||||||
|
Zoneminder for Debian
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Initializing database
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
pv /usr/share/zoneminder/db/zm_create.sql | sudo mysql --defaults-file=/etc/mysql/debian.cnf
|
||||||
|
OR
|
||||||
|
cat /usr/share/zoneminder/db/zm_create.sql | sudo mysql --defaults-file=/etc/mysql/debian.cnf
|
||||||
|
|
||||||
|
echo 'grant lock tables,alter,create,index,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";'\
|
||||||
|
| sudo mysql --defaults-file=/etc/mysql/debian.cnf mysql
|
||||||
|
|
||||||
|
Hint: generate secure password with `pwgen` and update "/etc/zm/zm.conf"
|
||||||
|
accordingly.
|
||||||
|
|
||||||
|
The following command can help to ensure that zoneminder can read its
|
||||||
|
configuration file:
|
||||||
|
|
||||||
|
chgrp -c www-data /etc/zm/zm.conf
|
||||||
|
|
||||||
|
|
||||||
|
Upgrading database
|
||||||
|
------------------
|
||||||
|
|
||||||
|
The database is updated automatically on installation. You should not need to take this step.
|
||||||
|
|
||||||
|
Assuming that database is on "localhost" then the following command can be
|
||||||
|
used to upgrade "zm" database:
|
||||||
|
|
||||||
|
zmupdate.pl
|
||||||
|
|
||||||
|
Additional permissions may be required to perform upgrade:
|
||||||
|
|
||||||
|
echo 'grant lock tables, create, alter on zm.* to 'zmuser'@localhost identified by "zmpass";'\
|
||||||
|
| sudo mysql --defaults-file=/etc/mysql/debian.cnf mysql
|
||||||
|
|
||||||
|
The following command prints the current version of zoneminder database:
|
||||||
|
|
||||||
|
echo 'select Value from Config where Name = "ZM_DYN_CURR_VERSION";' \
|
||||||
|
| sudo mysql --defaults-file=/etc/mysql/debian.cnf --skip-column-names zm
|
||||||
|
|
||||||
|
|
||||||
|
Enabling service
|
||||||
|
----------------
|
||||||
|
|
||||||
|
By default Zoneminder service is not automatically started and needs to be
|
||||||
|
manually enabled once database is configured:
|
||||||
|
|
||||||
|
sudo systemctl enable zoneminder.service
|
||||||
|
|
||||||
|
|
||||||
|
Web server set-up
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
There are few manual steps to get the web interface working:
|
||||||
|
|
||||||
|
## Apache2
|
||||||
|
|
||||||
|
Apache can be configured as folder "/zm" using sample .conf:
|
||||||
|
|
||||||
|
sudo a2enconf zoneminder
|
||||||
|
|
||||||
|
Alternatively Apache web site configuration template can be used to setup
|
||||||
|
zoneminder as "http://zoneminder":
|
||||||
|
|
||||||
|
sudo cp -v /usr/share/doc/zoneminder/examples/apache.conf /etc/apache2/sites-available/
|
||||||
|
sudo a2ensite zoneminder.conf
|
||||||
|
|
||||||
|
Common configuration steps for Apache2:
|
||||||
|
|
||||||
|
sudo a2enmod cgi
|
||||||
|
sudo service apache2 reload
|
||||||
|
|
||||||
|
|
||||||
|
## nginx / fcgiwrap
|
||||||
|
|
||||||
|
Nginx needs "php-fpm" package to support PHP and "fcgiwrap" package
|
||||||
|
for binary "cgi-bin" applications:
|
||||||
|
|
||||||
|
sudo apt-get install php-fpm fcgiwrap
|
||||||
|
|
||||||
|
To enable a URL alias that makes Zoneminder available from
|
||||||
|
|
||||||
|
http://yourserver/zm
|
||||||
|
|
||||||
|
the following line is to be added to "server" section of a web site
|
||||||
|
configuration:
|
||||||
|
|
||||||
|
include /usr/share/doc/zoneminder/examples/nginx.conf;
|
||||||
|
|
||||||
|
For "default" web site it would be sufficient to include the above
|
||||||
|
statement to the file
|
||||||
|
|
||||||
|
/etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
|
To avoid problems with feeds from multiple cameras "fcgiwrap" should be
|
||||||
|
configured to start at least as many processes as there are cameras.
|
||||||
|
It can be done by adjusting DAEMON_OPTS in "/etc/default/fcgiwrap".
|
||||||
|
Systemd users may be affected by the following bug:
|
||||||
|
|
||||||
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792705
|
||||||
|
|
||||||
|
|
||||||
|
## Note:
|
||||||
|
|
||||||
|
When Zoneminder web site is running it may be necessary to set
|
||||||
|
Options/Paths/PATH_ZMS to "/zm/cgi-bin/nph-zms" or according to chosen web
|
||||||
|
site configuration.
|
||||||
|
|
||||||
|
|
||||||
|
Changing the location for images and events
|
||||||
|
-------------------------------------------
|
||||||
|
|
||||||
|
ZoneMinder is now able to be configured to use an alternative location for storing
|
||||||
|
events and images at compile time. This package makes use of that, so symlinks in
|
||||||
|
/usr/share/zoneminder/www are no longer necessary.
|
||||||
|
|
||||||
|
Access to /dev/video*
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
For cameras which require access to /dev/video*, zoneminder may need the
|
||||||
|
www-data user added to the video group in order to see those cameras:
|
||||||
|
|
||||||
|
adduser www-data video
|
||||||
|
|
||||||
|
Note that all web applications running on the zoneminder server will then have
|
||||||
|
access to all video devices on the system.
|
||||||
|
|
||||||
|
-- Vagrant Cascadian <vagrant@debian.org> Sun, 27 Mar 2011 13:06:56 -0700
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
## Separate substantial /usr/share into its own arch-all package.
|
||||||
|
|
||||||
|
## Decide how to handle database updates.
|
||||||
|
|
||||||
|
* Consider possibility that database may be on another machine (#469239).
|
||||||
|
* Consider dbconfig-common? Probably not (what if database is not on localhost?).
|
||||||
|
|
||||||
|
### Run `zmupdate.pl` from service control scripts (init.d, service) on start?
|
||||||
|
|
||||||
|
Automatic upgrade will break "one DB, many zoneminders" setup (unimportant?).
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
zoneminder (1.31.39~20180223.27-stretch-1) unstable; urgency=low
|
||||||
|
*
|
||||||
|
-- Isaac Connor <iconnor@connortechnology.com> Fri, 23 Feb 2018 14:15:59 -0500
|
|
@ -0,0 +1,3 @@
|
||||||
|
.gitattributes
|
||||||
|
web/api/.gitattributes
|
||||||
|
web/api/.gitignore
|
|
@ -0,0 +1 @@
|
||||||
|
9
|
|
@ -0,0 +1,57 @@
|
||||||
|
# Remember to enable cgi mod (i.e. "a2enmod cgi").
|
||||||
|
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
|
||||||
|
<Directory "/usr/lib/zoneminder/cgi-bin">
|
||||||
|
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
|
# Order matters. This alias must come first.
|
||||||
|
Alias /zm/cache /var/cache/zoneminder/cache
|
||||||
|
<Directory /var/cache/zoneminder/cache>
|
||||||
|
Options -Indexes +FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
<IfModule mod_authz_core.c>
|
||||||
|
# Apache 2.4
|
||||||
|
Require all granted
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_authz_core.c>
|
||||||
|
# Apache 2.2
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</IfModule>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
Alias /zm /usr/share/zoneminder/www
|
||||||
|
<Directory /usr/share/zoneminder/www>
|
||||||
|
Options -Indexes +FollowSymLinks
|
||||||
|
<IfModule mod_dir.c>
|
||||||
|
DirectoryIndex index.php
|
||||||
|
</IfModule>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
# For better visibility, the following directives have been migrated from the
|
||||||
|
# default .htaccess files included with the CakePHP project.
|
||||||
|
# Parameters not set here are inherited from the parent directive above.
|
||||||
|
<Directory "/usr/share/zoneminder/www/api">
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteRule ^$ app/webroot/ [L]
|
||||||
|
RewriteRule (.*) app/webroot/$1 [L]
|
||||||
|
RewriteBase /zm/api
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory "/usr/share/zoneminder/www/api/app">
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteRule ^$ webroot/ [L]
|
||||||
|
RewriteRule (.*) webroot/$1 [L]
|
||||||
|
RewriteBase /zm/api
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory "/usr/share/zoneminder/www/api/app/webroot">
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteRule ^ index.php [L]
|
||||||
|
RewriteBase /zm/api
|
||||||
|
</Directory>
|
|
@ -0,0 +1,166 @@
|
||||||
|
Source: zoneminder
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Isaac Connor <isaac@zoneminder.com>
|
||||||
|
Uploaders: Isaac Connor <isaac@zoneminder.com>
|
||||||
|
Build-Depends: debhelper, sphinx-doc, dh-linktree, dh-apache2
|
||||||
|
,cmake
|
||||||
|
,libx264-dev, libmp4v2-dev
|
||||||
|
,libavdevice-dev
|
||||||
|
,libavcodec-dev
|
||||||
|
,libavformat-dev
|
||||||
|
,libavutil-dev
|
||||||
|
,libswresample-dev
|
||||||
|
,libswscale-dev
|
||||||
|
,ffmpeg
|
||||||
|
,net-tools
|
||||||
|
,libbz2-dev
|
||||||
|
,libgcrypt20-dev
|
||||||
|
,libcurl4-gnutls-dev
|
||||||
|
,libturbojpeg0-dev
|
||||||
|
,default-libmysqlclient-dev | libmysqlclient-dev | libmariadbclient-dev-compat
|
||||||
|
,libpcre3-dev
|
||||||
|
,libpolkit-gobject-1-dev
|
||||||
|
,libv4l-dev [!hurd-any]
|
||||||
|
,libvlc-dev
|
||||||
|
,libdate-manip-perl
|
||||||
|
,libdbd-mysql-perl
|
||||||
|
,libphp-serialization-perl
|
||||||
|
,libsys-mmap-perl [!hurd-any]
|
||||||
|
,libwww-perl
|
||||||
|
,libdata-uuid-perl
|
||||||
|
,libssl-dev
|
||||||
|
,libcrypt-eksblowfish-perl
|
||||||
|
,libdata-entropy-perl
|
||||||
|
# Unbundled (dh_linktree):
|
||||||
|
,libjs-jquery
|
||||||
|
,libjs-mootools
|
||||||
|
Standards-Version: 3.9.8
|
||||||
|
Homepage: http://www.zoneminder.com/
|
||||||
|
Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/zoneminder.git
|
||||||
|
Vcs-Git: git://anonscm.debian.org/collab-maint/zoneminder.git
|
||||||
|
|
||||||
|
Package: zoneminder
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
|
||||||
|
,javascript-common
|
||||||
|
,libmp4v2-2, libx264-155
|
||||||
|
,libswscale5
|
||||||
|
,libswresample3
|
||||||
|
,ffmpeg
|
||||||
|
,libdate-manip-perl, libmime-lite-perl, libmime-tools-perl
|
||||||
|
,libdbd-mysql-perl
|
||||||
|
,libphp-serialization-perl
|
||||||
|
,libmodule-load-conditional-perl
|
||||||
|
,libnet-sftp-foreign-perl
|
||||||
|
,libarchive-zip-perl
|
||||||
|
,libdbd-mysql-perl
|
||||||
|
,libdevice-serialport-perl
|
||||||
|
,libimage-info-perl
|
||||||
|
,libjson-maybexs-perl
|
||||||
|
,libsys-mmap-perl [!hurd-any]
|
||||||
|
,liburi-encode-perl
|
||||||
|
,libwww-perl, liburi-perl
|
||||||
|
,libdata-dump-perl
|
||||||
|
,libdatetime-perl
|
||||||
|
,libclass-std-fast-perl
|
||||||
|
,libsoap-wsdl-perl
|
||||||
|
,libio-socket-multicast-perl
|
||||||
|
,libdigest-sha-perl
|
||||||
|
,libsys-cpu-perl, libsys-meminfo-perl
|
||||||
|
,libdata-uuid-perl
|
||||||
|
,libnumber-bytes-human-perl
|
||||||
|
,libfile-slurp-perl
|
||||||
|
,mysql-client | mariadb-client | virtual-mysql-client
|
||||||
|
,perl-modules
|
||||||
|
,php-mysql, php-gd, php-apcu, php-apc | php-apcu-bc, php-json
|
||||||
|
,policykit-1
|
||||||
|
,rsyslog | system-log-daemon
|
||||||
|
,zip
|
||||||
|
,libpcre3
|
||||||
|
,libcrypt-eksblowfish-perl
|
||||||
|
,libdata-entropy-perl
|
||||||
|
Recommends: ${misc:Recommends}
|
||||||
|
,libapache2-mod-php | php-fpm
|
||||||
|
,mysql-server | mariadb-server | virtual-mysql-server
|
||||||
|
,zoneminder-doc (>= ${source:Version})
|
||||||
|
,ffmpeg
|
||||||
|
Suggests: fcgiwrap, logrotate
|
||||||
|
Description: video camera security and surveillance solution
|
||||||
|
ZoneMinder is intended for use in single or multi-camera video security
|
||||||
|
applications, including commercial or home CCTV, theft prevention and child
|
||||||
|
or family member or home monitoring and other care scenarios. It
|
||||||
|
supports capture, analysis, recording, and monitoring of video data coming
|
||||||
|
from one or more video or network cameras attached to a Linux system.
|
||||||
|
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
|
||||||
|
cameras using a variety of protocols. It is suitable for use as a home
|
||||||
|
video security system and for commercial or professional video security
|
||||||
|
and surveillance. It can also be integrated into a home automation system
|
||||||
|
via X.10 or other protocols.
|
||||||
|
|
||||||
|
#Package: libzoneminder-perl
|
||||||
|
#Section: perl
|
||||||
|
#Architecture: all
|
||||||
|
#Multi-Arch: foreign
|
||||||
|
#Depends: ${misc:Depends}, ${perl:Depends}
|
||||||
|
# ,libarchive-zip-perl
|
||||||
|
# ,libdbd-mysql-perl
|
||||||
|
# ,libdevice-serialport-perl
|
||||||
|
# ,libimage-info-perl
|
||||||
|
# ,libjson-maybexs-perl
|
||||||
|
# ,libsys-mmap-perl [!hurd-any]
|
||||||
|
# ,liburi-encode-perl
|
||||||
|
# ,libwww-perl
|
||||||
|
#Description: ZoneMinder Perl libraries
|
||||||
|
# ZoneMinder is intended for use in single or multi-camera video security
|
||||||
|
# applications, including commercial or home CCTV, theft prevention and child
|
||||||
|
# or family member or home monitoring and other care scenarios. It
|
||||||
|
# supports capture, analysis, recording, and monitoring of video data coming
|
||||||
|
# from one or more video or network cameras attached to a Linux system.
|
||||||
|
# ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
|
||||||
|
# cameras using a variety of protocols. It is suitable for use as a home
|
||||||
|
# video security system and for commercial or professional video security
|
||||||
|
# and surveillance. It can also be integrated into a home automation system
|
||||||
|
# via X.10 or other protocols.
|
||||||
|
# .
|
||||||
|
# This package provides ZoneMinder Perl libraries; it can be used to
|
||||||
|
# write custom interfaces as well.
|
||||||
|
|
||||||
|
Package: zoneminder-doc
|
||||||
|
Section: doc
|
||||||
|
Architecture: all
|
||||||
|
Multi-Arch: foreign
|
||||||
|
Depends: ${misc:Depends}, ${sphinxdoc:Depends}, python-sphinx-rtd-theme | python3-sphinx-rtd-theme
|
||||||
|
Suggests: www-browser
|
||||||
|
Description: ZoneMinder documentation
|
||||||
|
ZoneMinder is intended for use in single or multi-camera video security
|
||||||
|
applications, including commercial or home CCTV, theft prevention and child
|
||||||
|
or family member or home monitoring and other care scenarios. It
|
||||||
|
supports capture, analysis, recording, and monitoring of video data coming
|
||||||
|
from one or more video or network cameras attached to a Linux system.
|
||||||
|
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
|
||||||
|
cameras using a variety of protocols. It is suitable for use as a home
|
||||||
|
video security system and for commercial or professional video security
|
||||||
|
and surveillance. It can also be integrated into a home automation system
|
||||||
|
via X.10 or other protocols.
|
||||||
|
.
|
||||||
|
This package provides ZoneMinder documentation in HTML format.
|
||||||
|
|
||||||
|
Package: zoneminder-dbg
|
||||||
|
Section: debug
|
||||||
|
Priority: extra
|
||||||
|
Architecture: any
|
||||||
|
Depends: zoneminder (= ${binary:Version}), ${misc:Depends}
|
||||||
|
Description: Zoneminder -- debugging symbols
|
||||||
|
ZoneMinder is intended for use in single or multi-camera video security
|
||||||
|
applications, including commercial or home CCTV, theft prevention and child
|
||||||
|
or family member or home monitoring and other care scenarios. It
|
||||||
|
supports capture, analysis, recording, and monitoring of video data coming
|
||||||
|
from one or more video or network cameras attached to a Linux system.
|
||||||
|
ZoneMinder also support web and semi-automatic control of Pan/Tilt/Zoom
|
||||||
|
cameras using a variety of protocols. It is suitable for use as a home
|
||||||
|
video security system and for commercial or professional video security
|
||||||
|
and surveillance. It can also be integrated into a home automation system
|
||||||
|
via X.10 or other protocols.
|
||||||
|
.
|
||||||
|
This package provides debugging symbols
|
|
@ -0,0 +1,174 @@
|
||||||
|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: ZoneMinder
|
||||||
|
Upstream-Contact: Philip Coombes <philip.coombes@zoneminder.com>
|
||||||
|
Source: https://github.com/ZoneMinder/ZoneMinder
|
||||||
|
Comment:
|
||||||
|
This package was originally debianized by matrix <matrix@cecilia>
|
||||||
|
on Mon, 7 Mar 2005 02:07:57 -0500.
|
||||||
|
It was re-done for submission to the Debian project by Peter Howard
|
||||||
|
<pjh@northern-ridge.com.au> on Fri, 8 Dec 2006 10:19:43 +1100
|
||||||
|
Files-Excluded:
|
||||||
|
web/skins/*/js/jquery-*
|
||||||
|
web/tools/mootools/*-yc.js
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2001-2014 Philip Coombes <philip.coombes@zoneminder.com>
|
||||||
|
2008 Brian Rudy <brudyNO@SPAMpraecogito.com>
|
||||||
|
2014 Vincent Giovannone
|
||||||
|
2013 Tim Craig <timcraigNO@SPAMsonic.net>
|
||||||
|
2003-2008 Corey DeLasaux
|
||||||
|
2001-2010 Chris Kistner
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: distros/*
|
||||||
|
Copyright: 2001-2008 Philip Coombes <philip.coombes@zoneminder.com>
|
||||||
|
2014 Isaac Connor <iconnor@connortechnology.com>
|
||||||
|
2005 Serg Oskin
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: web/skins/*/js/jquery-*
|
||||||
|
Copyright: 2010 John Resig
|
||||||
|
2010 The Dojo Foundation
|
||||||
|
License: GPL-2 or Expat
|
||||||
|
Comment:
|
||||||
|
Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
http://jquery.org/license
|
||||||
|
.
|
||||||
|
Includes Sizzle.js http://sizzlejs.com/
|
||||||
|
Released under the MIT, BSD, and GPL Licenses.
|
||||||
|
|
||||||
|
Files: web/tools/mootools/*.js
|
||||||
|
Copyright: 2009 Marcelo Jorge Vieira (metal) <metal@alucinados.com>
|
||||||
|
2006-2010 Valerio Proietti (http://mad4milk.net/)
|
||||||
|
License: Expat
|
||||||
|
|
||||||
|
Files: web/api/*
|
||||||
|
Copyright: 2005-2013 Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||||
|
License: Expat
|
||||||
|
|
||||||
|
Files:
|
||||||
|
cmake/Modules/CheckPrototypeDefinition*.cmake
|
||||||
|
cmake/Modules/FindGLIB2.cmake
|
||||||
|
cmake/Modules/FindPolkit.cmake
|
||||||
|
cmake/Modules/GNUInstallDirs.cmake
|
||||||
|
Copyright:
|
||||||
|
2005-2011 Kitware, Inc.
|
||||||
|
2010-2011 Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
2009 Dario Freddi <drf@kde.org>
|
||||||
|
2008 Laurent Montel, <montel@kde.org>
|
||||||
|
2011 Nikita Krupen'ko <krnekit@gmail.com>
|
||||||
|
License: BSD-3-clause
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
.
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
.
|
||||||
|
* The names of Kitware, Inc., the Insight Consortium, or the names of
|
||||||
|
any consortium members, or of any contributors, may not be used to
|
||||||
|
endorse or promote products derived from this software without
|
||||||
|
specific prior written permission.
|
||||||
|
.
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
Files: cmake/Modules/FindPerlModules.cmake
|
||||||
|
Copyright: 2012 Iowa State University
|
||||||
|
License: Boost-1.0
|
||||||
|
Boost Software License - Version 1.0 - August 17th, 2003
|
||||||
|
.
|
||||||
|
Permission is hereby granted, free of charge, to any person or organization
|
||||||
|
obtaining a copy of the software and accompanying documentation covered by
|
||||||
|
this license (the "Software") to use, reproduce, display, distribute,
|
||||||
|
execute, and transmit the Software, and to prepare derivative works of the
|
||||||
|
Software, and to permit third-parties to whom the Software is furnished to
|
||||||
|
do so, all subject to the following:
|
||||||
|
.
|
||||||
|
The copyright notices in the Software and this entire statement, including
|
||||||
|
the above license grant, this restriction and the following disclaimer,
|
||||||
|
must be included in all copies of the Software, in whole or in part, and
|
||||||
|
all derivative works of the Software, unless such copies or derivative
|
||||||
|
works are solely in the form of machine-executable object code generated by
|
||||||
|
a source language processor.
|
||||||
|
.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||||
|
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
||||||
|
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
||||||
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2015 Dmitry Smirnov <onlyjob@debian.org>
|
||||||
|
2007-2014 Peter Howard <pjh@northern-ridge.com.au>
|
||||||
|
2010-2012 Vagrant Cascadian <vagrant@debian.org>
|
||||||
|
2001-2008 Philip Coombes <philip.coombes@zoneminder.com>
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
License: Expat
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
.
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
License: GPL-2+
|
||||||
|
This package is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by the
|
||||||
|
Free Software Foundation; either version 2 of the License, or (at your
|
||||||
|
option) any later version.
|
||||||
|
.
|
||||||
|
This package is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU General Public
|
||||||
|
License along with this package; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
.
|
||||||
|
The complete text of the GNU General Public License version 2
|
||||||
|
can be found in "/usr/share/common-licenses/GPL-2".
|
||||||
|
|
||||||
|
License: GPL-2
|
||||||
|
This package is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by the
|
||||||
|
Free Software Foundation; version 2 of the License.
|
||||||
|
.
|
||||||
|
This package is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU General Public
|
||||||
|
License along with this package; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
.
|
||||||
|
The complete text of the GNU General Public License version 2
|
||||||
|
can be found in "/usr/share/common-licenses/GPL-2".
|
|
@ -0,0 +1,32 @@
|
||||||
|
location /zm/cgi-bin {
|
||||||
|
gzip off;
|
||||||
|
alias /usr/lib/zoneminder/cgi-bin;
|
||||||
|
|
||||||
|
include /etc/nginx/fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /zm {
|
||||||
|
# if ($scheme ~ ^http:){
|
||||||
|
# rewrite ^(.*)$ https://$host$1 permanent;
|
||||||
|
# }
|
||||||
|
|
||||||
|
gzip off;
|
||||||
|
alias /usr/share/zoneminder/www;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
if (!-f $request_filename) { return 404; }
|
||||||
|
expires epoch;
|
||||||
|
include /etc/nginx/fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.(jpg|jpeg|gif|png|ico)$ {
|
||||||
|
access_log off;
|
||||||
|
expires 33d;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
[dch]
|
||||||
|
id-length = 0
|
||||||
|
|
||||||
|
[import-orig]
|
||||||
|
pristine-tar = False
|
||||||
|
merge = False
|
|
@ -0,0 +1,2 @@
|
||||||
|
usr/share/man/man3
|
||||||
|
usr/share/perl5
|
|
@ -0,0 +1,87 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed
|
||||||
|
|
||||||
|
ifeq ($(DEB_BUILD_ARCH_OS),hurd)
|
||||||
|
ARGS:= -DZM_NO_MMAP=ON
|
||||||
|
endif
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --parallel --buildsystem=cmake --builddirectory=dbuild \
|
||||||
|
--with sphinxdoc,apache2,linktree
|
||||||
|
|
||||||
|
override_dh_auto_configure:
|
||||||
|
dh_auto_configure -- $(ARGS) \
|
||||||
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DZM_CONFIG_DIR="/etc/zm" \
|
||||||
|
-DZM_CONFIG_SUBDIR="/etc/zm/conf.d" \
|
||||||
|
-DZM_RUNDIR="/run/zm" \
|
||||||
|
-DZM_SOCKDIR="/run/zm" \
|
||||||
|
-DZM_TMPDIR="/tmp/zm" \
|
||||||
|
-DZM_CGIDIR="/usr/lib/zoneminder/cgi-bin" \
|
||||||
|
-DZM_CACHEDIR="/var/cache/zoneminder/cache" \
|
||||||
|
-DZM_DIR_EVENTS="/var/cache/zoneminder/events" \
|
||||||
|
-DZM_PATH_SHUTDOWN="/sbin/shutdown" \
|
||||||
|
-DZM_PATH_ZMS="/zm/cgi-bin/nph-zms"
|
||||||
|
|
||||||
|
override_dh_clean:
|
||||||
|
dh_clean $(MANPAGES1)
|
||||||
|
$(RM) -r docs/_build
|
||||||
|
|
||||||
|
build-indep:
|
||||||
|
#$(MAKE) -C docs text
|
||||||
|
$(MAKE) -C docs html
|
||||||
|
|
||||||
|
MANPAGES1 = dbuild/scripts/zmupdate.pl.1
|
||||||
|
$(MANPAGES1):
|
||||||
|
# generate man page(s):
|
||||||
|
pod2man -s1 --stderr --utf8 $(patsubst %.1, %, $@) $@
|
||||||
|
|
||||||
|
## reproducible build:
|
||||||
|
LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
|
||||||
|
BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
|
||||||
|
override_dh_installman: $(MANPAGES1)
|
||||||
|
$(MAKE) -C docs man SPHINXOPTS="-D today=\"$(BUILD_DATE)\""
|
||||||
|
dh_installman --language=C $(MANPAGES1)
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install --destdir=$(CURDIR)/debian/tmp
|
||||||
|
# remove worthless files:
|
||||||
|
$(RM) -v $(CURDIR)/debian/tmp/usr/share/perl5/*/*/*/.packlist
|
||||||
|
$(RM) -v $(CURDIR)/debian/tmp/usr/share/perl5/*/*.in
|
||||||
|
# remove empty directories:
|
||||||
|
find $(CURDIR)/debian/tmp/usr -type d -empty -delete -printf 'removed %p\n'
|
||||||
|
# remove extra-license-file:
|
||||||
|
$(RM) -v $(CURDIR)/debian/tmp/usr/share/zoneminder/www/api/lib/Cake/LICENSE.txt
|
||||||
|
|
||||||
|
override_dh_fixperms:
|
||||||
|
dh_fixperms
|
||||||
|
#
|
||||||
|
# As requested by the Debian Webapps Policy Manual §3.2.1
|
||||||
|
chown root:www-data $(CURDIR)/debian/zoneminder/etc/zm/zm.conf
|
||||||
|
chmod 640 $(CURDIR)/debian/zoneminder/etc/zm/zm.conf
|
||||||
|
|
||||||
|
override_dh_strip:
|
||||||
|
[ -d "$(CURDIR)/debian/zoneminder-dbg" ] \
|
||||||
|
&& dh_strip --dbg-package=zoneminder-dbg \
|
||||||
|
|| dh_strip
|
||||||
|
|
||||||
|
#%:
|
||||||
|
# dh $@ --parallel --buildsystem=autoconf --with autoreconf
|
||||||
|
#
|
||||||
|
#override_dh_auto_configure:
|
||||||
|
# dh_auto_configure -- \
|
||||||
|
# --sysconfdir=/etc/zm \
|
||||||
|
# --with-mysql=/usr \
|
||||||
|
# --with-webdir=/usr/share/zoneminder \
|
||||||
|
# --with-ffmpeg=/usr \
|
||||||
|
# --with-cgidir=/usr/lib/cgi-bin \
|
||||||
|
# --with-webuser=www-data \
|
||||||
|
# --with-webgroup=www-data \
|
||||||
|
# --enable-mmap=yes
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
|
@ -0,0 +1,9 @@
|
||||||
|
## Actually sources are there: "*-nc.js".
|
||||||
|
source-is-missing web/tools/mootools/mootools-*-yc.js
|
||||||
|
|
||||||
|
## We're using "libjs-jquery" instead.
|
||||||
|
source-is-missing web/skins/*/js/jquery-1.4.2.min.js
|
||||||
|
|
||||||
|
## Acknowledged, will repack eventually.
|
||||||
|
source-contains-prebuilt-javascript-object web/tools/mootools/mootools-*-yc.js
|
||||||
|
source-contains-prebuilt-javascript-object web/skins/*/js/jquery-1.4.2.min.js
|
|
@ -0,0 +1,8 @@
|
||||||
|
Document: zoneminder-doc
|
||||||
|
Title: Zoneminder documentation
|
||||||
|
Abstract: This document describes how to use Zoneminder.
|
||||||
|
Section: System/Administration
|
||||||
|
|
||||||
|
Format: HTML
|
||||||
|
Index: /usr/share/doc/zoneminder-doc/html/index.html
|
||||||
|
Files: /usr/share/doc/zoneminder-doc/html/*
|
|
@ -0,0 +1 @@
|
||||||
|
docs/_build/html usr/share/doc/zoneminder-doc/
|
|
@ -0,0 +1,2 @@
|
||||||
|
## Convenience symlink:
|
||||||
|
/usr/share/doc/zoneminder-doc/html /usr/share/doc/zoneminder/html
|
|
@ -0,0 +1 @@
|
||||||
|
conf debian/conf/apache2/zoneminder.conf nginx
|
|
@ -0,0 +1,5 @@
|
||||||
|
Unless bug is specific to Debian please consider reporting it directly to
|
||||||
|
upstream developer(s):
|
||||||
|
|
||||||
|
https://github.com/ZoneMinder/ZoneMinder/issues
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
var/log/zm
|
||||||
|
var/lib/zm
|
||||||
|
var/cache/zoneminder/events
|
||||||
|
var/cache/zoneminder/images
|
||||||
|
var/cache/zoneminder/temp
|
||||||
|
var/cache/zoneminder/cache
|
||||||
|
usr/share/zoneminder/db
|
||||||
|
etc/zm/
|
||||||
|
etc/zm/conf.d
|
|
@ -0,0 +1 @@
|
||||||
|
README.md
|
|
@ -0,0 +1,2 @@
|
||||||
|
debian/examples/*
|
||||||
|
dbuild/misc/apache.conf
|
|
@ -0,0 +1,91 @@
|
||||||
|
#!/bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: zoneminder
|
||||||
|
# Required-Start: $network $remote_fs $syslog
|
||||||
|
# Required-Stop: $network $remote_fs $syslog
|
||||||
|
# Should-Start: mysql
|
||||||
|
# Should-Stop: mysql
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 0 1 6
|
||||||
|
# Short-Description: Control ZoneMinder as a Service
|
||||||
|
# Description: ZoneMinder CCTV recording and surveillance system
|
||||||
|
### END INIT INFO
|
||||||
|
# chkconfig: 2345 20 20
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
prog=ZoneMinder
|
||||||
|
ZM_PATH_BIN="/usr/bin"
|
||||||
|
RUNDIR="/run/zm"
|
||||||
|
TMPDIR="/tmp/zm"
|
||||||
|
command="$ZM_PATH_BIN/zmpkg.pl"
|
||||||
|
|
||||||
|
start() {
|
||||||
|
echo -n "Starting $prog: "
|
||||||
|
export TZ=:/etc/localtime
|
||||||
|
mkdir -p "$RUNDIR" && chown www-data:www-data "$RUNDIR"
|
||||||
|
mkdir -p "$TMPDIR" && chown www-data:www-data "$TMPDIR"
|
||||||
|
$command start
|
||||||
|
RETVAL=$?
|
||||||
|
[ $RETVAL = 0 ] && echo success
|
||||||
|
[ $RETVAL != 0 ] && echo failure
|
||||||
|
echo
|
||||||
|
[ $RETVAL = 0 ] && touch /var/lock/zm
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
stop() {
|
||||||
|
echo -n "Stopping $prog: "
|
||||||
|
#
|
||||||
|
# Why is this status check being done?
|
||||||
|
# as $command stop returns 1 if zoneminder
|
||||||
|
# is stopped, which will result in
|
||||||
|
# this returning 1, which will stuff
|
||||||
|
# dpkg when it tries to stop zoneminder before
|
||||||
|
# uninstalling . . .
|
||||||
|
#
|
||||||
|
result=`$command status`
|
||||||
|
if [ ! "$result" = "running" ]; then
|
||||||
|
echo "Zoneminder already stopped"
|
||||||
|
echo
|
||||||
|
RETVAL=0
|
||||||
|
else
|
||||||
|
$command stop
|
||||||
|
RETVAL=$?
|
||||||
|
[ $RETVAL = 0 ] && echo success
|
||||||
|
[ $RETVAL != 0 ] && echo failure
|
||||||
|
echo
|
||||||
|
[ $RETVAL = 0 ] && rm -f /var/lock/zm
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
status() {
|
||||||
|
result=`$command status`
|
||||||
|
if [ "$result" = "running" ]; then
|
||||||
|
echo "ZoneMinder is running"
|
||||||
|
RETVAL=0
|
||||||
|
else
|
||||||
|
echo "ZoneMinder is stopped"
|
||||||
|
RETVAL=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
'start')
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
'stop')
|
||||||
|
stop
|
||||||
|
;;
|
||||||
|
'restart' | 'force-reload')
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
'status')
|
||||||
|
status
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 { start | stop | restart | status }"
|
||||||
|
RETVAL=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit $RETVAL
|
|
@ -0,0 +1,11 @@
|
||||||
|
etc/zm/zm.conf
|
||||||
|
etc/zm/conf.d/*
|
||||||
|
usr/bin
|
||||||
|
usr/lib/zoneminder
|
||||||
|
usr/share/polkit-1
|
||||||
|
usr/share/zoneminder/db
|
||||||
|
usr/share/zoneminder/www
|
||||||
|
|
||||||
|
# libzoneminder-perl files:
|
||||||
|
usr/share/man/man3
|
||||||
|
usr/share/perl5
|
|
@ -0,0 +1 @@
|
||||||
|
/var/tmp /usr/share/zoneminder/www/api/app/tmp
|
|
@ -0,0 +1,14 @@
|
||||||
|
## cakephp
|
||||||
|
#replace /usr/share/php/Cake /usr/share/zoneminder/www/api/lib/Cake
|
||||||
|
|
||||||
|
## libjs-mootools
|
||||||
|
replace /usr/share/javascript/mootools/mootools.js /usr/share/zoneminder/www/tools/mootools/mootools-core.js
|
||||||
|
replace /usr/share/javascript/mootools/mootools.js /usr/share/zoneminder/www/tools/mootools/mootools-core-1.3.2-nc.js
|
||||||
|
replace /usr/share/javascript/mootools/mootools.js /usr/share/zoneminder/www/tools/mootools/mootools-core-1.3.2-yc.js
|
||||||
|
replace /usr/share/javascript/mootools/mootools-more.js /usr/share/zoneminder/www/tools/mootools/mootools-more.js
|
||||||
|
replace /usr/share/javascript/mootools/mootools-more.js /usr/share/zoneminder/www/tools/mootools/mootools-more-1.3.2.1-nc.js
|
||||||
|
replace /usr/share/javascript/mootools/mootools-more.js /usr/share/zoneminder/www/tools/mootools/mootools-more-1.3.2.1-yc.js
|
||||||
|
|
||||||
|
## libjs-jquery
|
||||||
|
replace /usr/share/javascript/jquery/jquery.min.js /usr/share/zoneminder/www/skins/classic/js/jquery-1.4.2.min.js
|
||||||
|
replace /usr/share/javascript/jquery/jquery.min.js /usr/share/zoneminder/www/skins/flat/js/jquery-1.4.2.min.js
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Depends: policykit-1
|
||||||
|
unusual-interpreter usr/bin/zmsystemctl.pl #!/usr/bin/pkexec
|
||||||
|
|
||||||
|
# Intentionally not others-readable, #637685.
|
||||||
|
non-standard-file-perm etc/zm/zm.conf 0640 != 0644
|
||||||
|
|
||||||
|
# Bundled Cake PHP framework, not intended for direct execution:
|
||||||
|
script-not-executable usr/share/zoneminder/www/api/*
|
||||||
|
|
||||||
|
# Annoying but seems to be too much troubles to fix; should be fixed upstream:
|
||||||
|
script-with-language-extension usr/bin/*.pl
|
||||||
|
|
||||||
|
# dh-linktree:
|
||||||
|
package-contains-broken-symlink usr/share/zoneminder/www/api/lib/Cake/*
|
|
@ -0,0 +1,13 @@
|
||||||
|
/var/log/zm/*.log {
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
sharedscripts
|
||||||
|
delaycompress
|
||||||
|
compress
|
||||||
|
postrotate
|
||||||
|
/usr/bin/zmpkg.pl logrot >>/dev/null 2>&1 || :
|
||||||
|
endscript
|
||||||
|
daily
|
||||||
|
rotate 7
|
||||||
|
maxage 7
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
rm_conffile /etc/zm/apache.conf 1.28.1-5~
|
|
@ -0,0 +1 @@
|
||||||
|
docs/_build/man/*.1
|
|
@ -0,0 +1,66 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "configure" ]; then
|
||||||
|
|
||||||
|
. /etc/zm/zm.conf
|
||||||
|
for i in /etc/zm/conf.d/*.conf; do
|
||||||
|
. $i
|
||||||
|
done;
|
||||||
|
|
||||||
|
|
||||||
|
# The logs can contain passwords, etc... so by setting group root, only www-data can read them, not people in the www-data group
|
||||||
|
chown www-data:root /var/log/zm
|
||||||
|
chown www-data:www-data /var/lib/zm
|
||||||
|
if [ -z "$2" ]; then
|
||||||
|
chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Do this every time the package is installed or upgraded
|
||||||
|
# Ensure zoneminder is stopped
|
||||||
|
invoke-rc.d zoneminder stop || true
|
||||||
|
|
||||||
|
if [ "$ZM_DB_HOST" = "localhost" ]; then
|
||||||
|
if [ -e "/etc/init.d/mysql" ]; then
|
||||||
|
#
|
||||||
|
# Get mysql started if it isn't
|
||||||
|
#
|
||||||
|
if ! $(/etc/init.d/mysql status >/dev/null 2>&1); then
|
||||||
|
invoke-rc.d mysql start
|
||||||
|
fi
|
||||||
|
if $(/etc/init.d/mysql status >/dev/null 2>&1); then
|
||||||
|
mysqladmin --defaults-file=/etc/mysql/debian.cnf -f reload
|
||||||
|
# test if database if already present...
|
||||||
|
if ! $(echo quit | mysql --defaults-file=/etc/mysql/debian.cnf zm > /dev/null 2> /dev/null) ; then
|
||||||
|
cat /usr/share/zoneminder/db/zm_create.sql | mysql --defaults-file=/etc/mysql/debian.cnf
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error creating db."
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
# This creates the user.
|
||||||
|
echo "grant lock tables, alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on ${ZM_DB_NAME}.* to '${ZM_DB_USER}'@localhost identified by \"${ZM_DB_PASS}\";" | mysql --defaults-file=/etc/mysql/debian.cnf mysql
|
||||||
|
else
|
||||||
|
echo "grant lock tables, alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on ${ZM_DB_NAME}.* to '${ZM_DB_USER}'@localhost;" | mysql --defaults-file=/etc/mysql/debian.cnf mysql
|
||||||
|
fi
|
||||||
|
|
||||||
|
zmupdate.pl --nointeractive
|
||||||
|
zmupdate.pl --nointeractive -f
|
||||||
|
|
||||||
|
# Add any new PTZ control configurations to the database (will not overwrite)
|
||||||
|
zmcamtool.pl --import >/dev/null 2>&1
|
||||||
|
|
||||||
|
else
|
||||||
|
echo 'NOTE: mysql not running, please start mysql and run dpkg-reconfigure zoneminder when it is running.'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo 'mysql not found, assuming remote server.'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Not doing database upgrade due to remote db server ($ZM_DB_HOST)"
|
||||||
|
fi
|
||||||
|
echo "Done Updating, starting ZoneMinder"
|
||||||
|
invoke-rc.d zoneminder start || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
|
@ -0,0 +1,14 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "purge" ]; then
|
||||||
|
echo "
|
||||||
|
Reminder: to completely remove \"zoneminder\" it may be necessary
|
||||||
|
* to delete database using the following sample command:
|
||||||
|
sudo mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm
|
||||||
|
* to delete remaining data files in "/var/cache/zoneminder".
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
## Remove obsolete symlink which is in the way of dh_apache2:
|
||||||
|
ol="/etc/apache2/conf-available/zoneminder.conf"
|
||||||
|
if [ -h "${ol}" ]; then
|
||||||
|
[ "$(readlink ${ol})" = "/etc/zm/apache.conf" ] && rm -f "${ol}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
|
@ -0,0 +1,4 @@
|
||||||
|
d /run/zm 0755 www-data www-data
|
||||||
|
d /tmp/zm 0755 www-data www-data
|
||||||
|
d /var/tmp/zm 0755 www-data www-data
|
||||||
|
d /var/cache/zoneminder/cache 0755 www-data www-data
|
|
@ -220,14 +220,19 @@ IFS=',' ;for DISTRO in `echo "$DISTROS"`; do
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Generate Changlog
|
# Generate Changlog
|
||||||
if [ "$DISTRO" == "trusty" ] || [ "$DISTRO" == "precise" ]; then
|
if [ "$DISTRO" == "trusty" ] || [ "$DISTRO" == "precise" ]
|
||||||
|
then
|
||||||
cp -Rpd distros/ubuntu1204 debian
|
cp -Rpd distros/ubuntu1204 debian
|
||||||
else
|
|
||||||
if [ "$DISTRO" == "wheezy" ]; then
|
elif [ "$DISTRO" == "wheezy" ]
|
||||||
cp -Rpd distros/debian debian
|
then
|
||||||
else
|
cp -Rpd distros/debian debian
|
||||||
cp -Rpd distros/ubuntu1604 debian
|
|
||||||
fi;
|
elif [ "$DISTRO" == "beowulf" ]
|
||||||
|
then
|
||||||
|
cp -Rpd distros/beowulf debian
|
||||||
|
else
|
||||||
|
cp -Rpd distros/ubuntu1604 debian
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
if [ "$DEBEMAIL" != "" ] && [ "$DEBFULLNAME" != "" ]; then
|
if [ "$DEBEMAIL" != "" ] && [ "$DEBFULLNAME" != "" ]; then
|
||||||
|
|
Loading…
Reference in New Issue