diff --git a/INSTALL b/INSTALL index e8e9569d1..f334cd30e 100644 --- a/INSTALL +++ b/INSTALL @@ -49,7 +49,7 @@ Advanced: ZM_NO_MMAP Set to ON to not use mmap shared memory. Shouldn't be enabled unless you experience problems with the shared memory. default: OFF ZM_NO_FFMPEG Set to ON to skip ffmpeg checks and force building ZM without ffmpeg. default: OFF ZM_NO_X10 Set to ON to build ZoneMinder without X10 support. default: OFF - ZM_PERL_SUBPREFIX Use a different directory for the zm perl modules. NOTE: This is a subprefix, e.g. lib will be turned into /lib, default: /perl5 + ZM_PERL_SUBPREFIX Use a different directory for the zm perl modules. NOTE: This is a subprefix, e.g. /lib will be turned into /lib, default: /perl5 ZM_PERL_USE_PATH Override the include path for zm perl modules. Useful if you are moving the perl modules without using the ZM_PERL_SUBPREFIX option. default: / @@ -89,7 +89,8 @@ NOTE: The database server, database name, user and password can be different and 8) Create an apache virtual host for ZoneMinder. Make sure to use the same paths as ZM_WEBDIR and ZM_CGIDIR in /etc/zm.conf 9) Create other config if desired (e.g. rsyslog, logrotate and such). Some of this can be found in /share/zoneminder/misc or project/misc directory -10) Setup an init script for your system. Its also possible to use "zmpkg.pl start" and "zmpkg.pl stop" if you can't find a one. +10) Setup an appropriate startup script for your system. A generic sys v init script is here: /scripts/zm while a generic systemd service file is here: /misc/zoneminder.service +You must determine which file to use, verify it is correct, and then copy it to the correct location. Consult your distro's documentation. Basic steps for upgrading ZoneMinder ------------------------------------ diff --git a/distros/debian8/README.source b/distros/debian8/README.source deleted file mode 100644 index b546508b2..000000000 --- a/distros/debian8/README.source +++ /dev/null @@ -1,12 +0,0 @@ -This package uses quilt to manage all modifications to the upstream source. -Changes are stored in the source package as diffs in debian/patches and applied -during the build. - -See /usr/share/doc/quilt/README.source for a detailed explanation. - - -This package uses the version 3.0 of the debian source package; An upstream -tarball is required to build it. This tarball can be generated automagically by -downloading the sources from the github repository with the following command: - -fakeroot debian/rules get-orig-source diff --git a/distros/debian8/changelog b/distros/debian8/changelog index 9831b352d..0035f1e36 100644 --- a/distros/debian8/changelog +++ b/distros/debian8/changelog @@ -1,9 +1,10 @@ -zoneminder (1.28.1-0.1) testing; urgency=medium +zoneminder (1.28.0+nmu1) testing; urgency=medium - * Non-maintainer upload. - * Add plugin support + * Non-maintainer upload + * Split the debian package into several packages + * Switch to native source format - -- Emmanuel Papin Sat, 13 Dec 2014 21:43:14 +0100 + -- Emmanuel Papin Thu, 15 Jan 2015 20:00:08 +0100 zoneminder (1.28.0-0.2) testing; urgency=medium diff --git a/distros/debian8/control b/distros/debian8/control index 06b71862f..c10d7070b 100644 --- a/distros/debian8/control +++ b/distros/debian8/control @@ -2,7 +2,7 @@ Source: zoneminder Section: net Priority: optional Maintainer: Isaac Connor -Build-Depends: debhelper (>= 9), po-debconf (>= 1.0), dh-systemd (>= 1.5), autoconf, automake, quilt, libphp-serialization-perl, libgnutls28-dev, libmysqlclient-dev | libmariadbclient-dev, libdbd-mysql-perl, libdate-manip-perl, libwww-perl, libjpeg8-dev | libjpeg9-dev | libjpeg62-turbo-dev, libpcre3-dev, libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev, libv4l-dev (>= 0.8.3), libbz2-dev, libtool, libsys-mmap-perl, libnetpbm10-dev, libavdevice-dev, libdevice-serialport-perl, libarchive-zip-perl, libmime-lite-perl, dh-autoreconf, libvlccore-dev, libvlc-dev, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libgcrypt11-dev | libgcrypt20-dev, libpolkit-gobject-1-dev, libdbi-perl, libnet-sftp-foreign-perl, libexpect-perl, libmime-tools-perl +Build-Depends: debhelper (>= 9), po-debconf (>= 1.0), dh-systemd (>= 1.5), autoconf, automake, libphp-serialization-perl, libgnutls28-dev, libmysqlclient-dev | libmariadbclient-dev, libdbd-mysql-perl, libdate-manip-perl, libwww-perl, libjpeg8-dev | libjpeg9-dev | libjpeg62-turbo-dev, libpcre3-dev, libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev, libv4l-dev (>= 0.8.3), libbz2-dev, libtool, libsys-mmap-perl, libnetpbm10-dev, libavdevice-dev, libdevice-serialport-perl, libarchive-zip-perl, libmime-lite-perl, dh-autoreconf, libvlccore-dev, libvlc-dev, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libgcrypt11-dev | libgcrypt20-dev, libpolkit-gobject-1-dev, libdbi-perl, libnet-sftp-foreign-perl, libexpect-perl, libmime-tools-perl Standards-Version: 3.9.6 Package: zoneminder diff --git a/distros/debian8/patches/01_service-file-name.diff b/distros/debian8/patches/01_service-file-name.diff deleted file mode 100644 index 6473af782..000000000 --- a/distros/debian8/patches/01_service-file-name.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- a/scripts/zmsystemctl.pl.in -+++ b/scripts/zmsystemctl.pl.in -@@ -50,5 +50,5 @@ - } - - Info( "Redirecting command through systemctl\n" ); --exec("$path $command zoneminder"); -+exec("$path $command zoneminder-core"); - diff --git a/distros/debian8/patches/series b/distros/debian8/patches/series deleted file mode 100644 index 2e4111e41..000000000 --- a/distros/debian8/patches/series +++ /dev/null @@ -1 +0,0 @@ -01_service-file-name.diff diff --git a/distros/debian8/rules b/distros/debian8/rules index b085ff232..2ffa6118e 100755 --- a/distros/debian8/rules +++ b/distros/debian8/rules @@ -38,12 +38,12 @@ BRANCH = $(shell git rev-parse --abbrev-ref HEAD) HEAD = $(shell git rev-parse HEAD) PKD = $(abspath $(dir $(MAKEFILE_LIST))) PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)) -VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') +VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-|\+nmu\d+.*)};') DTYPE = TARBALL = ../$(PKG)_$(VER)$(DTYPE).orig.tar.xz %: - dh $@ --with quilt,autoreconf,systemd + dh $@ --with autoreconf,systemd override_dh_auto_configure: CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" dh_auto_configure -- \ @@ -94,6 +94,16 @@ override_dh_install: # The link stuff for /usr/share/zoneminder/cgi-bin has been moved to # zoneminder-ui-base.links file +override_dh_installinit: + dh_installinit --package=zoneminder-core --name=zoneminder + +override_dh_systemd_start: + dh_systemd_start --package=zoneminder-core --name=zoneminder \ + --restart-after-upgrade + +override_dh_systemd_enable: + dh_systemd_enable --package=zoneminder-core --name=zoneminder + override_dh_fixperms: dh_fixperms # @@ -104,9 +114,6 @@ override_dh_fixperms: override_dh_auto_test: # do not run tests... -override_dh_systemd_start: - dh_systemd_start --restart-after-upgrade - .PHONY: override_dh_strip override_dh_strip: dh_strip --dbg-package=zoneminder-core-dbg diff --git a/distros/debian8/source/format b/distros/debian8/source/format index 163aaf8d8..89ae9db8f 100644 --- a/distros/debian8/source/format +++ b/distros/debian8/source/format @@ -1 +1 @@ -3.0 (quilt) +3.0 (native) diff --git a/distros/debian8/source/local-options b/distros/debian8/source/local-options index 9cdfca9f9..e69de29bb 100644 --- a/distros/debian8/source/local-options +++ b/distros/debian8/source/local-options @@ -1,2 +0,0 @@ -unapply-patches -abort-on-upstream-changes diff --git a/distros/debian8/watch b/distros/debian8/watch deleted file mode 100644 index 5a8a9c4d7..000000000 --- a/distros/debian8/watch +++ /dev/null @@ -1,3 +0,0 @@ -version=3 -http://www.zoneminder.com/downloads.html \ - .*/ZoneMinder-(.*).tar.gz diff --git a/distros/debian8/zoneminder-core.postinst b/distros/debian8/zoneminder-core.postinst index 56645db5c..b1552e73b 100644 --- a/distros/debian8/zoneminder-core.postinst +++ b/distros/debian8/zoneminder-core.postinst @@ -68,7 +68,7 @@ fi if [ "$dbc_install" = "true" ] && [ "$1" = "configure" ]; then # Ensure zoneminder is stopped - deb-systemd-invoke stop zoneminder-core.service || exit $? + deb-systemd-invoke stop zoneminder.service || exit $? # Run the ZoneMinder update tool zmupdate.pl --nointeractive diff --git a/distros/debian8/zoneminder-core.init b/distros/debian8/zoneminder-core.zoneminder.init similarity index 100% rename from distros/debian8/zoneminder-core.init rename to distros/debian8/zoneminder-core.zoneminder.init diff --git a/distros/debian8/zoneminder-core.service b/distros/debian8/zoneminder-core.zoneminder.service similarity index 100% rename from distros/debian8/zoneminder-core.service rename to distros/debian8/zoneminder-core.zoneminder.service diff --git a/distros/debian8/zoneminder-core.tmpfile b/distros/debian8/zoneminder-core.zoneminder.tmpfile similarity index 100% rename from distros/debian8/zoneminder-core.tmpfile rename to distros/debian8/zoneminder-core.zoneminder.tmpfile diff --git a/distros/fedora/zoneminder.cmake.f20.spec b/distros/fedora/zoneminder.f20.spec similarity index 99% rename from distros/fedora/zoneminder.cmake.f20.spec rename to distros/fedora/zoneminder.f20.spec index 003371f69..29da79014 100644 --- a/distros/fedora/zoneminder.cmake.f20.spec +++ b/distros/fedora/zoneminder.f20.spec @@ -38,7 +38,7 @@ BuildRequires: gcc gcc-c++ vlc-devel libcurl-devel BuildRequires: httpd polkit-devel %{!?_without_ffmpeg:BuildRequires: ffmpeg} -Requires: httpd php php-mysql cambozola polkit +Requires: httpd php php-mysql cambozola polkit net-tools Requires: libjpeg-turbo vlc-core libcurl Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(DBD::mysql) perl(Archive::Tar) perl(Archive::Zip) diff --git a/distros/redhat/zoneminder.cmake.el6.spec b/distros/redhat/zoneminder.el6.spec similarity index 99% rename from distros/redhat/zoneminder.cmake.el6.spec rename to distros/redhat/zoneminder.el6.spec index 9e0bcaee0..5cec87a80 100644 --- a/distros/redhat/zoneminder.cmake.el6.spec +++ b/distros/redhat/zoneminder.el6.spec @@ -30,7 +30,7 @@ BuildRequires: libcurl-devel vlc-devel ffmpeg-devel polkit-devel # cmake needs the following installed at build time due to the way it auto-detects certain parameters BuildRequires: httpd ffmpeg -Requires: httpd php php-mysql mysql-server libjpeg-turbo polkit +Requires: httpd php php-mysql mysql-server libjpeg-turbo polkit net-tools Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(DBD::mysql) perl(Archive::Tar) perl(Archive::Zip) Requires: perl(MIME::Entity) perl(MIME::Lite) perl(Net::SMTP) perl(Net::FTP) diff --git a/src/zm_rtp_ctrl.cpp b/src/zm_rtp_ctrl.cpp index 618d09f19..96d4fa2f5 100644 --- a/src/zm_rtp_ctrl.cpp +++ b/src/zm_rtp_ctrl.cpp @@ -150,10 +150,15 @@ int RtpCtrlThread::recvPacket( const unsigned char *packet, ssize_t packetLen ) break; } case RTCP_RR : + { + Error( "Received RTCP_RR packet." ); + return( -1 ); + } default : { - Error( "Received unexpected packet type %d, ignoring", pt ); - return( -1 ); + // Ignore unknown packet types. Some cameras do this by design. + Debug( 5, "Received unexpected packet type %d, ignoring", pt ); + break; } } consumed = sizeof(uint32_t)*(len+1);