diff --git a/.gitignore b/.gitignore index fa066279c..bd66e684a 100644 --- a/.gitignore +++ b/.gitignore @@ -63,7 +63,6 @@ src/zma src/zmc src/zmf src/zms -src/zmstreamer src/zmu web/includes/config.php zm.conf diff --git a/.travis.yml b/.travis.yml index d44973e2e..183d22e57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: cpp +sudo: required +dist: trusty notifications: irc: "chat.freenode.net#zoneminder-dev" branches: @@ -17,14 +19,14 @@ env: - CXXFLAGS="$CFLAGS" matrix: - ZM_BUILDMETHOD=cmake - - ZM_BUILDMETHOD=autotools compiler: - gcc + - clang before_install: - sudo apt-get update -qq - - sudo apt-get install -y -qq libpolkit-gobject-1-dev zlib1g-dev apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf cmake libjpeg-turbo8-dev apache2-mpm-prefork libapache2-mod-php5 php5-cli libtheora-dev libvorbis-dev libvpx-dev libx264-dev libvlccore-dev libvlc-dev libvlccore5 libvlc5 2>&1 > /dev/null + - sudo apt-get install -y -qq libpolkit-gobject-1-dev zlib1g-dev apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf cmake libjpeg-turbo8-dev apache2-mpm-prefork libapache2-mod-php5 php5-cli libtheora-dev libvorbis-dev libvpx-dev libx264-dev libvlccore-dev libvlc-dev 2>&1 > /dev/null install: - - git clone -b n2.8.1 --depth=1 git://source.ffmpeg.org/ffmpeg.git + - git clone -b n3.0 --depth=1 git://source.ffmpeg.org/ffmpeg.git - cd ffmpeg - ./configure --enable-shared --enable-swscale --enable-gpl --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libtheora - make -j `grep processor /proc/cpuinfo|wc -l` @@ -32,16 +34,10 @@ install: - sudo make install-libs before_script: - cd $TRAVIS_BUILD_DIR - - if [ "$ZM_BUILDMETHOD" = "autotools" ]; then libtoolize -v --force; fi - - if [ "$ZM_BUILDMETHOD" = "autotools" ]; then aclocal -I m4; fi - - if [ "$ZM_BUILDMETHOD" = "autotools" ]; then autoheader; fi - - if [ "$ZM_BUILDMETHOD" = "autotools" ]; then automake --force-missing --add-missing; fi - - if [ "$ZM_BUILDMETHOD" = "autotools" ]; then autoconf; fi - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS zm" - mysql -uroot -e "GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass'"; - mysql -uroot -e "FLUSH PRIVILEGES" script: - - if [ "$ZM_BUILDMETHOD" = "autotools" ]; then ./configure --prefix=/usr --with-libarch=lib/$DEB_HOST_GNU_TYPE --host=$DEB_HOST_GNU_TYPE --build=$DEB_BUILD_GNU_TYPE --with-mysql=/usr --with-ffmpeg=/usr --with-webdir=/usr/share/zoneminder/www --with-cgidir=/usr/libexec/zoneminder/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=yes --disable-debug --enable-mmap=yes ZM_SSL_LIB=openssl; fi - if [ "$ZM_BUILDMETHOD" = "cmake" ]; then cmake -DCMAKE_INSTALL_PREFIX="/usr"; fi - make - sudo make install diff --git a/CMakeLists.txt b/CMakeLists.txt index 85bd541e4..6d0537fc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ # cmake_minimum_required (VERSION 2.6) project (zoneminder) -set(zoneminder_VERSION "1.29.0") +set(zoneminder_VERSION "1.29.2") # make API version a minor of ZM version set(zoneminder_API_VERSION "${zoneminder_VERSION}.1") @@ -182,6 +182,17 @@ elseif(ZM_TARGET_DISTRO STREQUAL "OS13") set(ZM_WEB_GROUP "www") set(ZM_WEBDIR "/srv/www/htdocs/zoneminder") set(ZM_CGIDIR "/srv/www/cgi-bin") +elseif(ZM_TARGET_DISTRO STREQUAL "FreeBSD") + set(ZM_RUNDIR "/var/run/zm") + set(ZM_SOCKDIR "/var/run/zm") + set(ZM_TMPDIR "/var/tmp/zm") + set(ZM_CONTENTDIR "/usr/local/var/lib/zoneminder") + set(ZM_WEB_USER "www") + set(ZM_WEB_GROUP "www") + set(ZM_CONFIG_DIR "/usr/local/etc/zm") + set(ZM_WEBDIR "/usr/local/share/zoneminder/www") + set(ZM_CGIDIR "/usr/local/libexec/zoneminder/cgi-bin") + set(ZM_PERL_MM_PARMS "INSTALLDIRS=site") endif((ZM_TARGET_DISTRO STREQUAL "f22") OR (ZM_TARGET_DISTRO STREQUAL "f23")) # Required for certain checks to work @@ -205,7 +216,7 @@ if (HAVE_EXECINFO_H) if (NOT HAVE_DECL_BACKTRACE) find_library (EXECINFO_LIBRARY NAMES execinfo) if (EXECINFO_LIBRARY) - list(APPEND ZM_BIN_LIBS "-l${EXECINFO_LIBRARY}") + list(APPEND ZM_BIN_LIBS "-lexecinfo") endif (EXECINFO_LIBRARY) endif (NOT HAVE_DECL_BACKTRACE) check_function_exists("backtrace_symbols" HAVE_DECL_BACKTRACE_SYMBOLS) diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 62f767e75..000000000 --- a/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -AUTOMAKE_OPTIONS = foreign -ACLOCAL_AMFLAGS = -I m4 - -# And these to the user and group of your webserver -webuser = @WEB_USER@ -webgroup = @WEB_GROUP@ -zmconfigdir = @ZM_CONFIG_DIR@ - -zmconfig_DATA = \ - zm.conf - -if COND_ONVIF - MAYBE_ONVIF = onvif -endif - -SUBDIRS = \ - src \ - web \ - scripts \ - db \ - misc \ - $(MAYBE_ONVIF) - -EXTRA_DIST = \ - zm.conf.in \ - zmconfgen.pl.in - -# Yes, you are correct. This is a HACK! -install-data-hook: - ( cd $(DESTDIR)$(zmconfigdir); chown $(webuser):$(webgroup) $(zmconfig_DATA); chmod 600 $(zmconfig_DATA) ) - ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir -p $(DESTDIR)$(ZM_RUNDIR); fi; if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR); fi ) - ( if ! test -e $(DESTDIR)$(ZM_SOCKDIR); then mkdir -p $(DESTDIR)$(ZM_SOCKDIR); fi; if test "$(DESTDIR)$(ZM_SOCKDIR)" != "/var/run"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_SOCKDIR); chmod u+w $(DESTDIR)$(ZM_SOCKDIR); fi ) - ( if ! test -e $(DESTDIR)$(ZM_TMPDIR); then mkdir -m 700 -p $(DESTDIR)$(ZM_TMPDIR); fi; if test "$(DESTDIR)$(ZM_TMPDIR)" != "/tmp" && test "$(DESTDIR)$(ZM_TMPDIR)" != "/var/tmp"; then chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_TMPDIR); chmod u+w $(DESTDIR)$(ZM_TMPDIR); fi ) - -uninstall-hook: - @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp ) - @-( if test "$(DESTDIR)$(ZM_RUNDIR)" != "/var/run"; then rm -rf $(DESTDIR)$(ZM_RUNDIR); fi ) - @-( if test "$(DESTDIR)$(ZM_SOCKDIR)" != "/var/run"; then rm -rf $(DESTDIR)$(ZM_SOCKDIR); fi ) - @-( if test "$(DESTDIR)$(ZM_TMPDIR)" != "/tmp" && test "$(DESTDIR)$(ZM_TMPDIR)" != "/var/tmp"; then rm -rf $(DESTDIR)$(ZM_TMPDIR); fi ) - @-( if test "$(DESTDIR)$(ZM_LOGDIR)" != "/var/log"; then rm -rf $(DESTDIR)$(ZM_LOGDIR); fi ) diff --git a/README.md b/README.md index 457f51844..ccaccbd06 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ZoneMinder H264 Patch [![Build Status](https://travis-ci.org/ZoneMinder/ZoneMinder.png?branch=feature-h264-videostorage)](https://travis-ci.org/ZoneMinder/ZoneMinder) [![Bountysource](https://api.bountysource.com/badge/team?team_id=204&style=bounties_received)](https://www.bountysource.com/teams/zoneminder/issues?utm_source=ZoneMinder&utm_medium=shield&utm_campaign=bounties_received) ##Feature-h264-videostorage Branch Details -This branch supports direct recording of h264 cameras into MP4 format uisng the h264 Passthrough option. As well it provides h264 encoding for local or mpeg cameras. If you encounter any issues, please open an issue on GitHub and attach it to the h264 milestone. But do remember this is bleeding edge so it will have problems. +This branch supports direct recording of h264 cameras into MP4 format uisng the h264 Passthrough option, but only with FFMPEG Monitors currently. It also provides h264 encoding for any other monitor type. If you encounter any issues, please open an issue on GitHub and attach it to the h264 milestone. But do remember this is bleeding edge so it will have problems. Thanks to @chriswiggins and @mastertheknife for their work, @SteveGilvarry is now maintaining this branch and welcomes any assistance. **The following SQL changes are required, these will be merged to zmupdate once we are ready to merge this branch to master.** @@ -15,7 +15,7 @@ ADD `EncoderParameters` TEXT NOT NULL AFTER `VideoWriter` ; ALTER TABLE `Events` ADD `DefaultVideo` VARCHAR( 64 ) NOT NULL AFTER `AlarmFrames` ; ``` -All documentation for ZoneMinder is now online at http://www.zoneminder.com/wiki/index.php/Documentation +All documentation for ZoneMinder is now online at https://zoneminder.readthedocs.org ## Overview @@ -54,7 +54,7 @@ When building a package, it is best to do this work in a separate environment, d Lastly, if you desire to build a development snapshot from the master branch, it is recommended you first build your package using an official release of ZoneMinder. This will help identify whether any problems you may encounter are caused by the build process or is a new issue in the master branch. -What follows are instructions for various distros to build ZoneMinder into a package. +Please visit our [ReadtheDocs site](https://zoneminder.readthedocs.org/en/stable/installationguide/index.html) for distro specific instructions. ### Package Maintainers Many of the ZoneMinder configration variable default values are not configurable at build time through autotools or cmake. A new tool called *zmeditconfigdata.sh* has been added to allow package maintainers to manipulate any variable stored in ConfigData.pm without patching the source. @@ -66,201 +66,6 @@ For example, let's say I have created a new ZoneMinder package that contains the Note that zmeditconfigdata.sh is intended to be called, from the root build folder, prior to running cmake or configure. -#### Ubuntu - -A fresh build based on master branch running Ubuntu 1204 LTS. Will likely work for other versions as well. - -```bash -root@host:~# aptitude install -y apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg8-dev libjpeg8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libphp-serialization-perl libgnutls-dev libjpeg8-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libv4l-dev libtool ffmpeg libnetpbm10-dev libavdevice-dev libmime-lite-perl dh-autoreconf dpatch; - -root@host:~# git clone https://github.com/ZoneMinder/ZoneMinder.git zoneminder; -root@host:~# cd zoneminder; -root@host:~# ln -s distros/ubuntu1204 debian; -root@host:~# dpkg-checkbuilddeps; -root@host:~# dpkg-buildpackage; -``` - -One level above you'll now find a deb package matching the architecture of the build host: - -```bash -root@host:~# ls -1 ~/zoneminder*; -/root/zoneminder_1.26.4-1_amd64.changes -/root/zoneminder_1.26.4-1_amd64.deb -/root/zoneminder_1.26.4-1.dsc -/root/zoneminder_1.26.4-1.tar.gz -``` - -The dpkg command itself does not resolve dependencies. That's what high-level interfaces like aptitude and apt-get are normally for. Unfortunately, unlike RPM, there's no easy way to install a separate deb package not contained with any repository. - -To overcome this "limitation" we'll use dpkg only to install the zoneminder package and apt-get to fetch all needed dependencies afterwards. Running dpkg-reconfigure in the end will ensure that the setup scripts e.g. for database provisioning were executed. - -```bash -root@host:~# dpkg -i /root/zoneminder_1.26.4-1_amd64.deb; apt-get install -f; -root@host:~# dpkg-reconfigure zoneminder; -``` -Alternatively you may also use gdebi to automatically resolve dependencies during installation: - -```bash -root@host:~# aptitude install -y gdebi; -root@host:~# gdebi /root/zoneminder_1.26.4-1_amd64.deb; -``` -```bash -sudo apt-get install apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev \ -libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 \ -libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg-turbo8-dev libjpeg-turbo8 \ -apache2-mpm-prefork libapache2-mod-php5 php5-cli -``` - -#### Debian - -A fresh build based on master branch running Debian 7 (wheezy): - -```bash -root@host:~# aptitude install -y apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg8-dev libjpeg8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libphp-serialization-perl libgnutls-dev libjpeg8-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libv4l-dev libtool ffmpeg libnetpbm10-dev libavdevice-dev libmime-lite-perl dh-autoreconf dpatch; - -root@host:~# git clone https://github.com/ZoneMinder/ZoneMinder.git zoneminder; -root@host:~# cd zoneminder; -root@host:~# ln -s distros/debian; -root@host:~# dpkg-checkbuilddeps; -root@host:~# dpkg-buildpackage; -``` - -One level above you'll now find a deb package matching the architecture of the build host: - -```bash -root@host:~# ls -1 ~/zoneminder*; -/root/zoneminder_1.26.4-1_amd64.changes -/root/zoneminder_1.26.4-1_amd64.deb -/root/zoneminder_1.26.4-1.dsc -/root/zoneminder_1.26.4-1.tar.gz -``` - -The dpkg command itself does not resolve dependencies. That's what high-level interfaces like aptitude and apt-get are normally for. Unfortunately, unlike RPM, there's no easy way to install a separate deb package not contained with any repository. - -To overcome this "limitation" we'll use dpkg only to install the zoneminder package and apt-get to fetch all needed dependencies afterwards. Running dpkg-reconfigure in the end will ensure that the setup scripts e.g. for database provisioning were executed. - -```bash -root@host:~# dpkg -i /root/zoneminder_1.26.4-1_amd64.deb; apt-get install -f; -root@host:~# dpkg-reconfigure zoneminder; -``` -Alternatively you may also use gdebi to automatically resolve dependencies during installation: - -```bash -root@host:~# aptitude install -y gdebi; -root@host:~# gdebi /root/zoneminder_1.26.4-1_amd64.deb; -``` - -#### Fedora / CentOS / RHEL - -##### Background -The following method documents how to build ZoneMinder into an RPM package, compatible with Fedora, Redhat, CentOS, and other compatible clones. This is exactly how the RPMS in zmrepo are built. - -The method documented below was chosen because: -- All of ZoneMinder's dependencies are downloaded and installed automatically -- Cross platform capable. The build host does not have to be the same distro or release version as the target. -- Once your build environment is set up, few steps are required to run the build again in the future. -- Troubleshooting becomes easier if we are all building ZoneMinder the same way. - -The build instructions below make use of a custom script called "buildzm.sh". Advanced users are encouraged to view the contents of this script. Notice that the script doesn't really do a whole lot. The goal of the script is to simply make the process a little easier for the first time user. Once you become familar with the build process, you can issue the mock commands found in the buildzm.sh script yourself if you so desire. - -***IMPORTANT*** -Certain commands in these instructions require root privileges while other commands do not. Pay close attention to this. If the instructions below state to issue a command without a “sudo” prefix, then you should *not* be root while issuing the command. Getting this incorrect will result in a failed build. - -##### Set Up Your Environment -Before you begin, set up an rpmbuild environment by following [this guide](http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment) by the CentOS developers. - -Next, navigate to [Zmrepo](http://zmrepo.zoneminder.com/), and follow the instructions to enable zmrepo on your system. - -With zmrepo enabled, issue the following command: -````bash -sudo yum install zmrepo-mock-configs mock -``` - -Add your user account to the group mock: -```bash -sudo gpasswd -a {your account name} mock -``` - -Your build environment is now set up. - -##### Build from SRPM -To continue, you need a ZoneMinder SRPM. For starters, let's use one of the SRPMS from zmrepo. Go browse the [Zmrepo](http://zmrepo.zoneminder.com/) site and choose an appropriate SRPM and place it into the ~/rpmbuild/SRPMS folder. - -For CentOS 7, I have chosen the following SRPM: -```bash -wget -P ~/rpmbuild/SRPMS http://zmrepo.zoneminder.com/el/7/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm -``` - -Now comes the fun part. To build ZoneMinder, issue the following command: -```bash -buildzm.sh zmrepo-el7-x86_64 ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm -``` - -Want to build ZoneMinder for Fedora, instead of CentOS, from the same host? Once you download the Fedora SRPM, issue the following: -```bash -buildzm.sh zmrepo-f21-x86_64 ~/rpmbuild/SRPMS/zoneminder-1.28.1-1.fc21.src.rpm -``` -Notice that the buildzm.sh tool requires the following parameters: -```bash -buildzm.sh MOCKCONFIG ZONEMINDER_SRPM -``` -The list of available Mock config files are available here: -```bash -ls /etc/mock/zmrepo*.cfg -``` - -You choose the config file based on the desired distro (e.g. el6, el7, f20, f21) and basearch (e.g. x86, x86_64, arhmhfp). Notice that, when specifying the Mock config as a commandline parameter, you should leave off the ".cfg" filename extension. - -##### Installation -Once the build completes, you will be presented with a folder containing the RPM's that were built. Copy the newly built ZoneMinder RPM to the desired system, enable zmrepo per the instruction on the [Zmrepo](http://zmrepo.zoneminder.com/) website, and then install the rpm by issuing the appropriate yum install command. Finish the installation by following the zoneminder setup instructions in the distro specific readme file, named README.{distroname}, which will be installed into the /usr/share/doc/zoneminder* folder. - -Finally, you may want to consider editing the zmrepo repo file under /etc/yum.repos.d and placing an “exclude=zoneminder*” line into the config file. This will prevent your system from overwriting your manually built RPM with the ZoneMinder RPM found in the repo. - -##### How to Modify the Source Prior to Build -** UNFINISHED ** - -Before attempting this part of the instructions, make sure and follow the previous instructions for building one of the unmodified SRPMS from zmrepo. Knowing this part works will assist in troubleshooting should something go wrong. - -These instructions may vary depending on what exactly you want to do. The following example assumes you want to build a development snapshot from the master branch. - -From the previous instructions, we downloaded a CentOS 7 ZoneMinder SRPM and placed it into ~/rpmbuild/SRPMS. For this example, install it onto your system: -```bash -rpm -Uvh ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm -``` - -IMPORTANT: This operation must be done with your normal user account. Do *not* perform this command as root. - -Make sure you have git installed: -```bash -sudo yum install git -``` - -Now clone the ZoneMinder git repository: -```bash -git clone https://github.com/ZoneMinder/ZoneMinder -``` -This will create a sub-folder called ZoneMinder, which will contain the latest development. - -We want to turn this into a tarball, but first we need to figure out what to name it. Look here: -```bash -ls ~/rpmbuild/SOURCES -``` -The tarball from the previsouly installed SRPM should be there. This is the name we will use. For this example, the name is ZoneMinder-1.28.1.tar.gz. From one folder above the local ZoneMinder git repository, execute the following: -```bash -mv ZoneMinder ZoneMinder-1.28.1 -tar -cvzf ~/rpmbuild/SOURCES/ZoneMinder-1.28.1.tar.gz ZoneMinder-1.28.1/* -``` -The trailing "/*" leaves off the hidden dot "." file and folders from the git repo, which is what we want. -Note that we are overwriting the original tarball. If you wish to keep the original tarball then create a copy prior to creating the new tarball. - -Now build a new src.rpm: -```bash -rpmbuild -bs --nodeps ~/rpmbuild/SPECS/zoneminder.el7.spec -``` -This step will overwrite the SRPM you originally downloaded, so you may want to back it up prior to completing this step. Note that the name of the specfile will vary slightly depending on what distro you are building for. - -You should now have a a new SRPM under ~/rpmbuild/SRPMS. In our example, the SRPM is called zoneminder-1.28.1-2.el7.centos.src.rpm. Now follow the previous instructions that describe how to use the buildzm script, using ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm as the path to your SRPM. - #### Docker Docker is a system to run applications inside isolated containers. ZoneMinder, and the ZM webserver, will run using the diff --git a/acinclude.m4 b/acinclude.m4 deleted file mode 100644 index 605842149..000000000 --- a/acinclude.m4 +++ /dev/null @@ -1,74 +0,0 @@ -AC_DEFUN([AC_DEFINE_DIR], [ - prefix_NONE= - exec_prefix_NONE= - test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix - test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix -dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn -dnl refers to ${prefix}. Thus we have to use `eval' twice. - eval ac_define_dir="\"[$]$2\"" - eval ac_define_dir="\"$ac_define_dir\"" - AC_SUBST($1, "$ac_define_dir") - AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) - test "$prefix_NONE" && prefix=NONE - test "$exec_prefix_NONE" && exec_prefix=NONE -]) - -AC_DEFUN([AC_PROG_PERL_VERSION],[dnl -# Make sure we have perl -if test -z "$PERL"; then -AC_CHECK_PROG(PERL,perl,perl) -fi - -# Check if version of Perl is sufficient -ac_perl_version="$1" - -if test "x$PERL" != "x"; then - AC_MSG_CHECKING(for perl version greater than or equal to $ac_perl_version) - # NB: It would be nice to log the error if there is one, but we cannot rely - # on autoconf internals - $PERL -e "use $ac_perl_version;" > /dev/null 2>&1 - if test $? -ne 0; then - AC_MSG_RESULT(no); - $3 - else - AC_MSG_RESULT(ok); - $2 - fi -else - AC_MSG_WARN(could not find perl) -fi -])dnl - -AC_DEFUN([AC_PROG_PERL_MODULES],[dnl -ac_perl_modules="$1" -# Make sure we have perl -if test -z "$PERL"; then -AC_CHECK_PROG(PERL,perl,perl) -fi - -if test "x$PERL" != x; then - ac_perl_modules_failed=0 - for ac_perl_module in $ac_perl_modules; do - AC_MSG_CHECKING(for perl module $ac_perl_module) - - # Would be nice to log result here, but can't rely on autoconf internals - $PERL "-M$ac_perl_module" -e exit > /dev/null 2>&1 - if test $? -ne 0; then - AC_MSG_RESULT(no); - ac_perl_modules_failed=1 - else - AC_MSG_RESULT(ok); - fi - done - - # Run optional shell commands - if test "$ac_perl_modules_failed" = 0; then - : - $2 - else - : - $3 - fi -else - AC_MSG_WARN(could not find perl) -fi])dnl diff --git a/bootstrap.sh b/bootstrap.sh deleted file mode 100755 index 0bc041f18..000000000 --- a/bootstrap.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -aclocal -I m4 -autoheader -automake --add-missing -autoconf diff --git a/configure.ac b/configure.ac deleted file mode 100644 index fcdacdd6c..000000000 --- a/configure.ac +++ /dev/null @@ -1,512 +0,0 @@ -# -# Building ZoneMinder via Autotools will be depreciated soon -# For instructions on building with cmake, please see INSTALL -# -AC_PREREQ(2.59) -AC_INIT(zm,1.29.0,[http://www.zoneminder.com/forums/ - Please check FAQ first],zoneminder,http://www.zoneminder.com/downloads.html) -AM_INIT_AUTOMAKE -AC_CONFIG_SRCDIR(src/zm.h) -AC_CONFIG_HEADERS(config.h) -AC_CONFIG_MACRO_DIR([m4]) - -AC_SUBST([AM_CXXFLAGS], [-D__STDC_CONSTANT_MACROS]) - -AC_SUBST(VERSION) -# -# Platform specific setup -# -############################# -AC_CANONICAL_HOST -# Check for which host we are on and setup a few things -# specifically based on the host -case $host_os in - darwin* ) - # Do something specific for mac - HOST_OS='darwin' - ;; - linux*) - # Do something specific for linux - HOST_OS='linux' - ;; - *BSD*) - # Do something specific for BSD - HOST_OS='BSD' - AC_DEFINE(BSD,1,"This is a BSD system") - ;; - *bsd*) - # Do something specific for BSD - HOST_OS='BSD' - AC_DEFINE(BSD,1,"This is a BSD system") - ;; - *solaris*) - # Do something specific for Solaris - HOST_OS='solaris' - AC_DEFINE(SOLARIS,1,"We are running a Solaroid OS [tested on OmniOS]") - ;; - *) - #Default Case - AC_MSG_ERROR([Your platform is not currently supported]) - ;; -esac - -AC_SUBST(HOST_OS) - -AC_ARG_VAR(ZM_DB_TYPE,[Type of the ZoneMinder database, default mysql]) -AC_ARG_VAR(ZM_DB_HOST,[Hostname where ZoneMinder database located, default localhost]) -AC_ARG_VAR(ZM_DB_NAME,[Name of ZoneMinder database, default zm]) -AC_ARG_VAR(ZM_DB_USER,[Name of ZoneMinder database user, default zmuser]) -AC_ARG_VAR(ZM_DB_PASS,[Password of ZoneMinder database user, default zmpass]) -AC_ARG_VAR(ZM_SSL_LIB,[Library to use for ssl functions, default gnutls]) -AC_ARG_VAR(ZM_MYSQL_ENGINE,[MySQL engine to use with database, default InnoDB]) -AC_ARG_VAR(ZM_RUNDIR,[Location of transient process files, default /var/run/zm]) -AC_ARG_VAR(ZM_SOCKDIR,[Location of Unix domain socket files, default /var/run/zm]) -AC_ARG_VAR(ZM_TMPDIR,[Location of temporary files, default /var/tmp/zm]) -AC_ARG_VAR(ZM_LOGDIR,[Location of generated log files, default /var/log/zm]) -AC_ARG_VAR(ZM_CONFIG_DIR,[Location of ZoneMinder configuration, default system config directory]) - -if test "$ZM_DB_TYPE" == ""; then - AC_SUBST(ZM_DB_TYPE,[mysql]) -fi -if test "$ZM_DB_HOST" == ""; then - AC_SUBST(ZM_DB_HOST,[localhost]) -fi -if test "$ZM_DB_NAME" == ""; then - AC_SUBST(ZM_DB_NAME,[zm]) -fi -if test "$ZM_DB_USER" == ""; then - AC_SUBST(ZM_DB_USER,[zmuser]) -fi -if test "$ZM_DB_PASS" == ""; then - AC_SUBST(ZM_DB_PASS,[zmpass]) -fi -if test "$ZM_SSL_LIB" == ""; then - AC_SUBST(ZM_SSL_LIB,gnutls) -fi -if test "$ZM_MYSQL_ENGINE" == ""; then - AC_SUBST(ZM_MYSQL_ENGINE,InnoDB) -fi -if test "$ZM_RUNDIR" == ""; then - AC_SUBST(ZM_RUNDIR,[/var/run/zm]) -fi -if test "$ZM_SOCKDIR" == ""; then - AC_SUBST(ZM_SOCKDIR,[/var/run/zm]) -fi -if test "$ZM_TMPDIR" == ""; then - AC_SUBST(ZM_TMPDIR,[/tmp/zm]) -fi -if test "$ZM_LOGDIR" == ""; then - AC_SUBST(ZM_LOGDIR,[/var/log/zm]) -fi -AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Expanded configuration directory]) -if test "$ZM_CONFIG_DIR" == ""; then - AC_SUBST(ZM_CONFIG_DIR,[$SYSCONFDIR]) -fi - -LIB_ARCH=lib -AC_ARG_WITH(libarch, - [ --with-libarch= architecture library path to use, default lib], - [LIB_ARCH=$with_libarch], - AC_MSG_WARN([You can call configure with the --with-libarch option. - This tells configure where to find architecture specific libraries. - The default of 'lib' is usually ok but 64 bit machines may require lib64. - e.g. --with-libarch=lib or --with-libarch=lib64]) -) -AC_SUBST(LIB_ARCH) - -LDFLAGS="-L/usr/lib/${build_alias} ${LDFLAGS}" - -MYSQL_PREFIX=/usr -AC_ARG_WITH(mysql, - [ --with-mysql= prefix of MySQL installation, default /usr], - [MYSQL_PREFIX=$with_mysql], - AC_MSG_WARN([You can call configure with the --with-mysql option. - This tells configure where to find the MySql C library and headers if configure cannot - locate them automatically. - e.g. --with-mysql=/usr/local or --with-mysql=/usr]) -) -AC_SUBST(MYSQL_PREFIX) -MYSQL_LIBS="-L${MYSQL_PREFIX}/${LIB_ARCH}/mysql" -MYSQL_CFLAGS="-I${MYSQL_PREFIX}/include" -AC_SUBST(MYSQL_LIBS) -AC_SUBST(MYSQL_CFLAGS) -LDFLAGS="$LDFLAGS ${MYSQL_LIBS}" - - -MARIADB_PREFIX=/usr -AC_ARG_WITH(mariadb, - [ --with-mariadb= prefix of MariaDB installation, default /usr], - [MYSQL_PREFIX=$with_mariadb], - AC_MSG_WARN([You can call configure with the --with-mariadb option. - This tells configure where to find the mariaDB C library and headers if configure cannot - locate them automatically. - e.g. --with-mariadb=/usr/local or --with-mariadb=/usr]) -) -AC_SUBST(MARIADB_PREFIX) -MARIADB_LIBS="-L${MARIADB_PREFIX}/${LIB_ARCH}/mariadb" -MARIADB_CFLAGS="-I${MARIADB_PREFIX}/include" -AC_SUBST(MARIADB_LIBS) -AC_SUBST(MARIADB_CFLAGS) -LDFLAGS="$LDFLAGS ${MARIADB_LIBS}" - -POLKIT_PREFIX=/usr -AC_ARG_WITH(polkit, -[ --with-polkit= prefix of polkit root directory, default /usr], -[POLKIT_PREFIX=$with_polkit], -AC_MSG_WARN([You can call configure with the --with-polkit option. -This tells configure where to place the polkit policy files.]) -) -AC_SUBST(POLKIT_PREFIX) -PKG_CHECK_MODULES(POLKIT, polkit-gobject-1) - -FFMPEG_PREFIX=/usr -AC_ARG_WITH(ffmpeg, - [ --with-ffmpeg= prefix of ffmpeg root directory for libavcodec etc, default /usr], - [FFMPEG_PREFIX=$with_ffmpeg], - AC_MSG_WARN([You can call configure with the --with-ffmpeg option. - This tells configure where to find the ffmpeg root directory within which are the libavcodec - and libavformat files that can be used to build true MPEG streaming into ZoneMinder. Ensure that - your copy of ffmpeg has installed libraries as well as binaries (use 'make installlib'). If you - are using a local install of ffmpeg you may have to remove or rename a previous real installation - as the headers and libraries from that will probably be picked up before your local copy. - e.g. --with-ffmpeg=/usr/local]) -) -AC_SUBST(FFMPEG_PREFIX) -FFMPEG_LIBS="-L${FFMPEG_PREFIX}/${LIB_ARCH}" -FFMPEG_CFLAGS="-I${FFMPEG_PREFIX}/include -D__STDC_CONSTANT_MACROS" -AC_SUBST(FFMPEG_LIBS) -AC_SUBST(FFMPEG_CFLAGS) - -LDFLAGS="${FFMPEG_LIBS} $LDFLAGS" -CFLAGS="${FFMPEG_CFLAGS} $CFLAGS" -CPPFLAGS="${FFMPEG_CFLAGS} $CPPFLAGS" - -EXTRA_LIBS= -AC_ARG_WITH(extralibs, - [ --with-extralibs="" string containing extra libraries to pass to link, default empty], - [EXTRA_LIBS=$with_extralibs], - AC_MSG_WARN([You can call configure with the --with-extralibs option. - Ordinarily you will need to use this option only when your copy of ffmpeg has been built - with support for additional formats and you would use this option to detail which additional - libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder. - You will need to wrap this option in quotes if it contains any spaces. - e.g. --with-extralibs="-lmp3lame"]) -) -AC_SUBST(EXTRA_LIBS) - -LDFLAGS="$LDFLAGS ${EXTRA_LIBS}" - -AC_ARG_WITH(webdir, - [ --with-webdir= prefix of web directory], - [WEB_PREFIX=$with_webdir], - AC_MSG_ERROR([You must call configure with the --with-webdir option. - This tells configure where to install PHP and web files and scripts. - e.g. --with-webdir=/var/www/html or --with-webdir=/www/vhtdocs/]) -) -AC_SUBST(WEB_PREFIX) - -AC_ARG_WITH(cgidir, - [ --with-cgidir= prefix of cgi directory], - [CGI_PREFIX=$with_cgidir], - AC_MSG_ERROR([You must call configure with the --with-cgidir option. - This tells configure where to install cgi files and scripts. - e.g. --with-cgidir=/var/www/cgi-bin or --with-webdir=/www/vhtdocs//cgi-bin]) -) -AC_SUBST(CGI_PREFIX) - -WEB_USER=apache -AC_ARG_WITH(webuser, - [ --with-webuser= name of web user, default apache], - [WEB_USER=$with_webuser], - AC_MSG_WARN([You can call configure with the --with-webuser option. - This tells configure what the user name of the web user is if it is not the default of 'apache'. - e.g. --with-webuser=apache or --with-webuser=web]) -) -AC_SUBST(WEB_USER) - -WEB_GROUP=apache -AC_ARG_WITH(webgroup, - [ --with-webgroup= name of web group, default apache], - [WEB_GROUP=$with_webgroup], - AC_MSG_WARN([You can call configure with the --with-webgroup option. - This tells configure what the group name of the web group is if it is not the default of 'apache'. - e.g. --with-webgroup=apache or --with-webgroup=web]) -) -AC_SUBST(WEB_GROUP) - -WEB_HOST=zm.local -AC_ARG_WITH(webhost, - [ --with-webhost= name of web hostname, default zm.local], - [WEB_HOST=$with_webhost], - AC_MSG_WARN([You can call configure with the --with-webhost option. - This tells configure what the host name is for name based virtual hosting. This is only used to populate the sample web/zmHttpd.conf file. - e.g. --with-webhost=zm.localdomain]) -) -AC_SUBST(WEB_HOST) - -ENABLE_DEBUG=yes -AC_ARG_ENABLE(debug, - [ --enable-debug= enable or disable debug, default enabled], - [ENABLE_DEBUG=$enable_debug], - AC_MSG_WARN([You can call configure with the --enable-debug= or --disable-debug option. - This tells configure whether to compile ZoneMinder with debug included. Although debug is included - by default it is not output unless explicitly switched on elsewhere. These checks may induce a - small penalty on performance and if you are after squeezing the maximum possible performance out - of ZoneMinder you may use this switch to prevent debug from being compiled in. - e.g. --enable-debug=yes or --disable-debug]) -) -if test "$ENABLE_DEBUG" != "yes"; then - AC_DEFINE(ZM_DBG_OFF,1,"Whether debug is switched off and compiled out") -fi - -ENABLE_MMAP=yes -AC_ARG_ENABLE(mmap, - [ --enable-mmap= enable or disabled mapped memory versus shared memory, default mapped], - [ENABLE_MMAP=$enable_mmap], - AC_MSG_WARN([You can call configure with the --enable-mmap= or --disable-mmap option. - This tells configure whether to compile ZoneMinder with mmap support rather than IPC shared - memory. This is a feature that uses memory mapped into files which all processes can share. - Memory mapping requires less configuration and is more flexible than shared memory but may - slow down your system unless the mapped files are configured to reside on a fast or RAM based - filesystem which will normally be the case by default. - e.g. --enable-mmap=yes or --disable-mmap]) -) -if test "$ENABLE_MMAP" == "yes"; then - AC_DEFINE(ZM_MEM_MAPPED,1,"Whether to use mapped rather than shared memory") -else - AC_DEFINE(ZM_MEM_MAPPED,0,"Whether to use mapped rather than shared memory") -fi -AC_SUBST(ENABLE_MMAP) - -ENABLE_ONVIF=no -AC_ARG_ENABLE(onvif, - [ --enable-onvif= enable or disable basic onvif support, default disabled], - [ENABLE_ONVIF=$enable_onvif], - AC_MSG_WARN([You can call configure with the --enable-onvif= or --enable-onvif option. - This tells configure whether to compile ZoneMinder with basic ONVIF support. This feature will - probe for ONVIF compliant cameras on your network and allow you the option to auto-configure them as - monitors in zoneminder. This option is EXPERIMENTAL and may not work with all cameras that claim to - be ONVIF compliant. - e.g. --enable-onvif=yes or --disable-onvif]) -) -AM_CONDITIONAL([COND_ONVIF], [test "$enable_onvif" = yes]) - -# Compiler -AC_LANG_CPLUSPLUS -if test "$ENABLE_ONVIF" == "yes"; then - AC_SUBST(ZM_HAS_ONVIF,1) -else - AC_SUBST(ZM_HAS_ONVIF,0) -fi - -# Checks for programs. -AC_PROG_CXX -AC_PROG_CC -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_RANLIB -AC_PROG_MAKE_SET - -# Checks for typedefs, structures, and compiler characteristics. -AC_HEADER_STDBOOL -AC_C_CONST -AC_TYPE_UID_T -AC_C_INLINE -AC_TYPE_MODE_T -AC_TYPE_SIZE_T -AC_HEADER_TIME -AC_STRUCT_TM -AC_TYPE_SIGNAL - -AC_CHECK_TYPES(siginfo_t,,,[#include ]) -AC_CHECK_TYPES(ucontext_t,,,[#include ]) - -# Checks for library functions. -AC_PROG_GCC_TRADITIONAL -AC_FUNC_MALLOC -AC_FUNC_MMAP -AC_FUNC_SELECT_ARGTYPES -AC_FUNC_STAT -AC_FUNC_STRFTIME -AC_FUNC_STRTOD -AC_FUNC_VPRINTF -AC_CHECK_FUNCS([gethostbyname gethostname gettimeofday memmove memset mkdir munmap posix_memalign putenv select sendfile socket sqrt strcasecmp strchr strcspn strerror strncasecmp strrchr strspn strstr strtol strtoull]) -AC_CHECK_FUNCS([syscall sleep usleep ioctl ioctlsocket sigaction]) -# this is required for freebsd to compile. Look for it in m4/ac_check_sendfile.m4 -AC_CHECK_SENDFILE -# Other programs -AC_CHECK_PROG(OPT_FFMPEG,ffmpeg,yes,no) -AC_PATH_PROG(PATH_FFMPEG,ffmpeg) - -# Checks for libraries. -AC_CHECK_LIB(rt,clock_gettime,,AC_MSG_ERROR(zm requires librt)) -AC_SEARCH_LIBS(mysql_init,[mysqlclient mariadbclient],,AC_MSG_ERROR(zm requires libmysqlclient.a or libmariadbclient.a)) -AC_CHECK_LIB(jpeg,jpeg_start_compress,,AC_MSG_ERROR(zm requires libjpeg.a)) -AC_CHECK_LIB(pthread,pthread_create,,AC_MSG_ERROR(zm requires libpthread.a)) -if test "$BSD" == "0"; then -AC_CHECK_LIB(dl,dlsym,,AC_MSG_ERROR(zm requires libdl.a)) -fi -if test "$ZM_SSL_LIB" == "openssl"; then -AC_CHECK_HEADERS(openssl/md5.h,,AC_MSG_WARN(zm requires openssl/md5.h header to be installed for openssl),) -AC_CHECK_LIB(crypto,MD5,,AC_MSG_WARN([libcrypto.a is required for authenticated streaming - use ZM_SSL_LIB option to select gnutls instead])) -else -AC_CHECK_HEADERS(gnutls/openssl.h,AC_SUBST(ZM_HAS_GNUTLS_OPENSSL,1),AC_SUBST(ZM_HAS_GNUTLS_OPENSSL,0),) -AC_CHECK_HEADERS(gnutls/gnutls.h,AC_SUBST(ZM_HAS_GNUTLS,1),AC_SUBST(ZM_HAS_GNUTLS,0),) -if test "$ZM_HAS_GNUTLS_OPENSSL" == "0" && test "$ZM_HAS_GNUTLS" == "0"; then -AC_MSG_WARN(gnutls is required for authenticated streaming - use ZM_SSL_LIB option to select openssl instead) -fi -AC_CHECK_HEADERS(gcrypt.h,,AC_MSG_WARN(zm requires libgcrypt headers to be installed for gnutls),) -AC_CHECK_LIB(gcrypt,gcry_check_version,,AC_MSG_WARN([libgcrypt.a is required for authenticated streaming - use ZM_SSL_LIB option to select openssl instead])) -AC_CHECK_LIB(gnutls,gnutls_fingerprint,,AC_MSG_WARN([libgnutls.a is required for authenticated streaming - use ZM_SSL_LIB option to select openssl instead])) -if test "$ZM_HAS_GNUTLS_OPENSSL" == "1"; then -AC_CHECK_LIB(gnutls-openssl,MD5,,AC_MSG_WARN([libgnutls.a is required for authenticated streaming - use ZM_SSL_LIB option to select openssl instead])) -fi -fi -AC_CHECK_LIB(pcre,pcre_compile,,AC_MSG_WARN(libpcre.a may be required for remote/network camera support)) -AC_CHECK_LIB(z,zlibVersion) -AC_CHECK_LIB(x264,x264_predict_16x16_init) -AC_CHECK_LIB(mp4v2,MP4AddH264VideoTrack) -AC_CHECK_LIB(avutil,av_malloc,,AC_MSG_WARN(libavutil.a may be required for MPEG streaming)) -# Don't bother to warn about this one -AC_CHECK_LIB(avcore,av_image_copy,,) -AC_CHECK_LIB(avcodec,avcodec_version,,AC_MSG_WARN(libavcodec.a is required for MPEG streaming)) -AC_CHECK_LIB(avformat,avformat_version,,AC_MSG_WARN(libavformat.a is required for MPEG streaming)) -#AC_CHECK_LIB(avcodec,avcodec_open,,AC_MSG_WARN(libavcodec.a is required for MPEG streaming)) -#AC_CHECK_LIB(avformat,av_new_stream,,AC_MSG_WARN(libavformat.a is required for MPEG streaming)) -AC_CHECK_LIB(avdevice,avdevice_register_all,,AC_MSG_WARN(libavdevice.a may be required for MPEG streaming)) -AC_CHECK_LIB(swscale,sws_scale,,,-lswscale) -AC_CHECK_LIB(vlc,libvlc_new,,AC_MSG_WARN(libvlc.a may be required for streaming)) -AC_CHECK_LIB(bz2,BZ2_bzCompress,,AC_MSG_WARN(zm requires libbz2.a for recent versions of ffmpeg)) -AC_CHECK_LIB(z,compress,,) -AC_CHECK_LIB(curl,curl_global_init,,) - -# Checks for header files. -AC_FUNC_ALLOCA -AC_HEADER_STDC -AC_CHECK_HEADERS([fcntl.h limits.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h syslog.h unistd.h values.h]) -AC_CHECK_HEADERS([netdb.h netinet/in.h arpa/inet.h sys/ioctl.h sys/socket.h sys/un.h glob.h sys/sendfile.h]) -AC_CHECK_HEADERS(execinfo.h,,,) -AC_CHECK_HEADERS(ucontext.h,,,) -AC_CHECK_HEADERS(sys/syscall.h,,,) -AC_CHECK_HEADERS(pthread.h,,,) - -# Check for Video for Linux 1 Header Files -ZM_HAS_V4L1=0 -AC_CHECK_HEADERS([libv4l1-videodev.h linux/videodev.h],[ZM_HAS_V4L1=1; break;],,) -AC_SUBST(ZM_HAS_V4L1) - -# Check for Video for Linux 2 Header Files -ZM_HAS_V4L2=0 -AC_CHECK_HEADERS(linux/videodev2.h,ZM_HAS_V4L2=1,,) -AC_SUBST(ZM_HAS_V4L2) - -# Set global Video for Linux flag -ZM_HAS_V4L=0 -if test "$ZM_HAS_V4L1" == "1" || test "$ZM_HAS_V4L2" == "1"; then -ZM_HAS_V4L=1 -else -AC_MSG_WARN(zm requires Video4Linux or Video4Linux2 to be installed for analog or USB camera support) -fi -AC_SUBST(ZM_HAS_V4L) - -AC_CHECK_HEADERS(jpeglib.h,,AC_MSG_ERROR(zm requires libjpeg headers to be installed),) -AC_CHECK_HEADERS(mysql/mysql.h,,AC_MSG_ERROR(zm requires MySQL headers - check that MySQL development packages are installed),) -AC_LANG_PUSH([C]) -AC_CHECK_HEADERS(libavutil/avutil.h,,,) -AC_CHECK_HEADERS(libavcodec/avcodec.h,,,) -AC_CHECK_HEADERS(libavformat/avformat.h,,,) -AC_CHECK_HEADERS(libswscale/swscale.h,,,) -AC_LANG_POP([C]) -AC_CHECK_HEADERS(pcre/pcre.h,AC_SUBST(ZM_PCRE,"1"),,) -AC_CHECK_HEADERS(pcre.h,AC_SUBST(ZM_PCRE,"1"),,) -if test "$ENABLE_MMAP" == "yes"; then -AC_CHECK_HEADERS(sys/mman.h,,,) -AC_CHECK_HEADERS(fcntl.h,,,) -else -AC_CHECK_HEADERS(sys/ipc.h,,,) -AC_CHECK_HEADERS(sys/shm.h,,,) -fi -AC_CHECK_HEADERS(zlib.h,,,) -AC_CHECK_HEADERS(x264.h,,,) -AC_CHECK_HEADERS([mp4v2/mp4v2.h mp4v2.h mp4.h],,,) -AC_CHECK_HEADERS(vlc/vlc.h,,,) -AC_CHECK_HEADERS(curl/curl.h,,,) - -if test "$ZM_SSL_LIB" == "openssl"; then -AC_CHECK_DECLS(MD5,,AC_MSG_ERROR([zm requires openssl/md5.h - use ZM_SSL_LIB option to select gnutls instead]),[#include -#include ]) -else -if test "$ZM_HAS_GNUTLS_OPENSSL" == "1"; then -AC_CHECK_DECLS(MD5,,AC_MSG_ERROR([zm requires gnutls/openssl.h - use ZM_SSL_LIB option to select openssl instead]),[#include -#include ]) -else -AC_CHECK_DECLS(gnutls_fingerprint,,AC_MSG_ERROR([zm requires gnutls/gnutls.h - use ZM_SSL_LIB option to select openssl instead]),[#include -#include ]) -fi -fi -AC_CHECK_DECLS(backtrace,,,[#include ]) -AC_CHECK_DECLS(backtrace_symbols,,,[#include ]) -AC_CHECK_LIB(execinfo,backtrace) - -AC_SUBST(LDFLAGS) - -AC_PROG_PERL_VERSION(5.6.0) - -# Compulsory perl modules -AC_PROG_PERL_MODULES(Sys::Syslog,,AC_MSG_ERROR(zm requires SYS:Syslog)) -AC_PROG_PERL_MODULES(DBI,,AC_MSG_ERROR(zm requires DBI)) -AC_PROG_PERL_MODULES(DBD::mysql,,AC_MSG_ERROR(zm requires DBD::mysql)) -AC_PROG_PERL_MODULES(Getopt::Long,,AC_MSG_ERROR(zm requires Getopt::Long)) -AC_PROG_PERL_MODULES(Time::HiRes,,AC_MSG_ERROR(zm requires Time::HiRes)) -AC_PROG_PERL_MODULES(Date::Manip,,AC_MSG_ERROR(zm requires Date::Manip)) -AC_PROG_PERL_MODULES(LWP::UserAgent,,AC_MSG_ERROR(zm requires LWP::UserAgent)) -AC_PROG_PERL_MODULES(ExtUtils::MakeMaker,,AC_MSG_ERROR(zm requires ExtUtils::MakeMaker)) -if test "$ENABLE_MMAP" == "yes"; then -AC_PROG_PERL_MODULES(Sys::Mmap,,AC_MSG_ERROR(zm requires Sys::Mmap for mapped memory - set --enable-mmap=no to use IPC shared memory instead)) -fi - -# Optional perl modules -AC_PROG_PERL_MODULES(Module::Load,,AC_MSG_WARN(Module::Load is required for PTZ camera control)) -AC_PROG_PERL_MODULES(Device::SerialPort,,AC_MSG_WARN(Device::SerialPort is required for RS232/RS485 PTZ camera control)) -AC_PROG_PERL_MODULES(Net::FTP,,AC_MSG_WARN(Net::FTP is required for automatic event uploading using ftp)) -AC_PROG_PERL_MODULES(Net::SFTP::Foreign,,AC_MSG_WARN(Net::SFTP::Foreign is required for automatic event uploading using sftp)) -AC_PROG_PERL_MODULES(Expect,,AC_MSG_WARN(Expect is required for automatic event uploading using sftp)) -AC_PROG_PERL_MODULES(Archive::Tar,,AC_MSG_WARN(Archive::Tar may be required for automatic event uploading)) -AC_PROG_PERL_MODULES(Archive::Zip,,AC_MSG_WARN(Archive::Zip may be required for automatic event uploading)) -AC_PROG_PERL_MODULES(Net::SMTP,,AC_MSG_WARN(Net::SMTP may be required for automatic event email notification)) -AC_PROG_PERL_MODULES(MIME::Lite,,AC_MSG_WARN(MIME::Lite may be required for automatic event email notification)) -AC_PROG_PERL_MODULES(MIME::Entity,,AC_MSG_WARN(MIME::Entity may be required for automatic event email notification)) -AC_PROG_PERL_MODULES(X10::ActiveHome,,AC_MSG_WARN(X10::ActiveHome is required for X.10 support)) - -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(ZM_PID,"$ZM_RUNDIR/zm.pid") -#AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Expanded configuration directory]) -#AC_SUBST(ZM_CONFIG,"$SYSCONFDIR/zm.conf") -AC_SUBST(ZM_CONFIG,"$ZM_CONFIG_DIR/zm.conf") - -# Slight hack for non-standard perl install paths -if test "$prefix" != "NONE"; then - PERL_SITE_PREFIX=`perl -V:siteprefix | sed -e "s/.*='\(.*\)';/\1/"` - PERL_SITE_LIB=`perl -V:installsitelib | sed -e "s/.*='\(.*\)';/\1/"` - PERL_LIB_PATH=`echo $PERL_SITE_LIB | sed -e "s|^$PERL_SITE_PREFIX||"` - EXTRA_PERL_LIB="use lib '$prefix$PERL_LIB_PATH'; # Include custom perl install path" - PERL_MM_PARMS="\"PREFIX=$prefix INSTALLDIRS=vendor\"" -else - EXTRA_PERL_LIB="# Include from system perl paths only" - PERL_MM_PARMS="\"INSTALLDIRS=vendor\"" -fi -AC_SUBST(PERL_MM_PARMS) -AC_SUBST(EXTRA_PERL_LIB) - -AC_CONFIG_FILES([Makefile zm.conf zmconfgen.pl db/Makefile db/zm_create.sql misc/Makefile misc/apache.conf misc/logrotate.conf misc/syslog.conf misc/com.zoneminder.systemctl.policy misc/com.zoneminder.systemctl.rules onvif/Makefile onvif/scripts/Makefile scripts/Makefile scripts/zm scripts/zmaudit.pl scripts/zmcontrol.pl scripts/zmdc.pl scripts/zmfilter.pl scripts/zmpkg.pl scripts/zmtrack.pl scripts/zmcamtool.pl scripts/zmsystemctl.pl scripts/zmtrigger.pl scripts/zmupdate.pl scripts/zmvideo.pl scripts/zmwatch.pl scripts/zmx10.pl scripts/zmdbbackup scripts/zmdbrestore scripts/zmeventdump scripts/zmlogrotate.conf scripts/ZoneMinder/lib/ZoneMinder/Base.pm scripts/ZoneMinder/lib/ZoneMinder/Config.pm scripts/ZoneMinder/lib/ZoneMinder/Memory.pm scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm src/Makefile src/zm_config.h web/Makefile web/ajax/Makefile web/css/Makefile web/graphics/Makefile web/includes/Makefile web/includes/config.php web/js/Makefile web/lang/Makefile web/skins/Makefile web/skins/classic/Makefile web/skins/classic/ajax/Makefile web/skins/classic/css/Makefile web/skins/classic/css/classic/Makefile web/skins/classic/css/classic/views/Makefile web/skins/classic/css/dark/Makefile web/skins/classic/css/dark/views/Makefile web/skins/classic/css/flat/Makefile web/skins/classic/css/flat/views/Makefile web/skins/classic/graphics/Makefile web/skins/classic/includes/Makefile web/skins/classic/js/Makefile web/skins/classic/lang/Makefile web/skins/classic/views/Makefile web/skins/classic/views/js/Makefile web/skins/mobile/Makefile web/skins/mobile/ajax/Makefile web/skins/mobile/css/Makefile web/skins/mobile/graphics/Makefile web/skins/mobile/includes/Makefile web/skins/mobile/lang/Makefile web/skins/mobile/views/Makefile web/skins/mobile/views/css/Makefile web/tools/Makefile web/tools/mootools/Makefile web/views/Makefile web/skins/xml/Makefile web/skins/xml/views/Makefile web/skins/xml/includes/Makefile]) - -# Create the definitions for compilation and defaults for the database -AC_CONFIG_COMMANDS([src/zm_config_defines.h],[perl ./zmconfgen.pl]) -# Manually generate the perl Makefile maker -AC_CONFIG_COMMANDS([scripts/ZoneMinder/Makefile],[(cd scripts/ZoneMinder; echo "perl Makefile.PL $PERL_MM_PARMS"; perl Makefile.PL $PERL_MM_PARMS)],[PERL_MM_PARMS=$PERL_MM_PARMS]) -AC_CONFIG_COMMANDS([onvif/modules/Makefile],[(cd onvif/modules; echo "perl Makefile.PL $PERL_MM_PARMS"; perl Makefile.PL $PERL_MM_PARMS)],[PERL_MM_PARMS=$PERL_MM_PARMS]) -AC_CONFIG_COMMANDS([onvif/proxy/Makefile],[(cd onvif/proxy; echo "perl Makefile.PL $PERL_MM_PARMS"; perl Makefile.PL $PERL_MM_PARMS)],[PERL_MM_PARMS=$PERL_MM_PARMS]) - -AC_OUTPUT diff --git a/db/Makefile.am b/db/Makefile.am deleted file mode 100644 index 9cb4e197c..000000000 --- a/db/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -AUTOMAKE_OPTIONS = foreign - -zmdbdatadir = $(pkgdatadir)/db - -EXTRA_DIST = \ - zm_create.sql.in \ - $(dbupgrade_scripts) - -dist_zmdbdata_DATA = \ - zm_create.sql \ - $(dbupgrade_scripts) - -dbupgrade_scripts = $(wildcard zm_update-*.sql) - diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index 3614bfedd..3a3a96691 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -193,6 +193,7 @@ CREATE TABLE `Events` ( `Length` decimal(10,2) NOT NULL default '0.00', `Frames` int(10) unsigned default NULL, `AlarmFrames` int(10) unsigned default NULL, + `DefaultVideo` VARCHAR( 64 ) NOT NULL, `TotScore` int(10) unsigned NOT NULL default '0', `AvgScore` smallint(5) unsigned default '0', `MaxScore` smallint(5) unsigned default '0', @@ -270,7 +271,7 @@ CREATE TABLE `Logs` ( `TimeKey` decimal(16,6) NOT NULL, `Component` varchar(32) NOT NULL, `ServerId` int(10) unsigned, - `Pid` smallint(6) DEFAULT NULL, + `Pid` int(10) DEFAULT NULL, `Level` tinyint(3) NOT NULL, `Code` char(3) NOT NULL, `Message` text NOT NULL, @@ -344,6 +345,10 @@ CREATE TABLE `Monitors` ( `Palette` int(10) unsigned NOT NULL default '0', `Orientation` enum('0','90','180','270','hori','vert') NOT NULL default '0', `Deinterlacing` int(10) unsigned NOT NULL default '0', + `SaveJPEGs` TINYINT NOT NULL DEFAULT '3' , + `VideoWriter` TINYINT NOT NULL DEFAULT '0', + `EncoderParameters` TEXT NOT NULL, + `RecordAudio` TINYINT NOT NULL DEFAULT '0', `RTSPDescribe` tinyint(1) unsigned NOT NULL default '0', `Brightness` mediumint(7) NOT NULL default '-1', `Contrast` mediumint(7) NOT NULL default '-1', diff --git a/db/zm_update-1.29.1.sql b/db/zm_update-1.29.1.sql new file mode 100644 index 000000000..8fd43c318 --- /dev/null +++ b/db/zm_update-1.29.1.sql @@ -0,0 +1,7 @@ +-- +-- This updates a 1.29.0 database to 1.29.1 +-- +-- + +-- Increase the size of the Pid field for FreeBSD +ALTER TABLE Logs MODIFY Pid int(10); diff --git a/db/zm_update-1.29.2.sql b/db/zm_update-1.29.2.sql new file mode 100644 index 000000000..231e2ff63 --- /dev/null +++ b/db/zm_update-1.29.2.sql @@ -0,0 +1,73 @@ +-- +-- This updates a 1.29.0 database to 1.30.0 +-- + +SET @s = (SELECT IF( + (SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE table_name = 'Monitors' + AND table_schema = DATABASE() + AND column_name = 'SaveJPEGs' + ) > 0, +"SELECT 'Column SaveJPEGs exists in Monitors'", +"ALTER TABLE `Monitors` ADD `SaveJPEGs` TINYINT NOT NULL DEFAULT '3' AFTER `Deinterlacing`" +)); + +PREPARE stmt FROM @s; +EXECUTE stmt; + +SET @s = (SELECT IF( + (SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE table_name = 'Monitors' + AND table_schema = DATABASE() + AND column_name = 'VideoWriter' + ) > 0, +"SELECT 'Column VideoWriter exists in Monitors'", +"ALTER TABLE `Monitors` ADD `VideoWriter` TINYINT NOT NULL DEFAULT '0' AFTER `SaveJPEGs`" +)); + +PREPARE stmt FROM @s; +EXECUTE stmt; + +SET @s = (SELECT IF( + (SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE table_name = 'Monitors' + AND table_schema = DATABASE() + AND column_name = 'EncoderParameters' + ) > 0, +"SELECT 'Column EncoderParameters exists in Monitors'", +"ALTER TABLE `Monitors` ADD `EncoderParameters` TEXT NOT NULL AFTER `VideoWriter`" +)); + +PREPARE stmt FROM @s; +EXECUTE stmt; + +SET @s = (SELECT IF( + (SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE table_name = 'Events' + AND table_schema = DATABASE() + AND column_name = 'DefaultVideo' + ) > 0, +"SELECT 'Column DefaultVideo exists in Events'", +"ALTER TABLE `Events` ADD `DefaultVideo` VARCHAR( 64 ) NOT NULL AFTER `AlarmFrames`" +)); + +PREPARE stmt FROM @s; +EXECUTE stmt; + +SET @s = (SELECT IF( + (SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE table_name = 'Monitors' + AND table_schema = DATABASE() + AND column_name = 'RecordAudio' + ) > 0, +"SELECT 'Column RecordAudio exists in Monitors'", +"ALTER TABLE `Monitors` ADD `RecordAudio` TINYINT NOT NULL DEFAULT '0' AFTER `EncoderParameters`" +)); + +PREPARE stmt FROM @s; +EXECUTE stmt; diff --git a/distros/debian/README.source b/distros/debian/README.source deleted file mode 100644 index 646e55d86..000000000 --- a/distros/debian/README.source +++ /dev/null @@ -1,5 +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. diff --git a/distros/debian/changelog b/distros/debian/changelog index ceebf9367..46f1e2bd9 100644 --- a/distros/debian/changelog +++ b/distros/debian/changelog @@ -1,3 +1,32 @@ +zoneminder (1.28.108-nmu2015100101) wheezy; urgency=low + + * + + -- Isaac Connor Thu, 01 Oct 2015 18:20:29 +0000 + +zoneminder (1.28.107-nmu2015092401) wheezy; urgency=low + + * + + -- Isaac Connor Thu, 24 Sep 2015 14:15:46 +0000 + +zoneminder (1.28.1+106-nmu2015091001) wheezy; urgency=low + + * + + -- Isaac Connor Thu, 10 Sep 2015 18:03:43 +0000 + +zoneminder (1.28.0-0.1) wheezy; urgency=low + + * Use CMake instead of Autotools to simplify + debian/rules and have less build-depends. + * Some lintian love in debian/{control,copyright} + and perl ZoneMinder modules. + * Don't purge database if we use a remote + MySQL server. + + -- Cosme Domínguez Díaz Sun, 09 Nov 2014 02:20:20 +0100 + zoneminder (1.28.0-wheezy) wheezy; urgency=medium * Release diff --git a/distros/debian/control b/distros/debian/control index 70d03eaa5..3b11f37b8 100644 --- a/distros/debian/control +++ b/distros/debian/control @@ -2,15 +2,46 @@ Source: zoneminder Section: net Priority: optional Maintainer: Isaac Connor -Build-Depends: debhelper (>= 9), autoconf, automake, quilt, libphp-serialization-perl, libgnutls-dev|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, ffmpeg | libav-tools, 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 +Build-Depends: debhelper (>= 9), cmake + , libphp-serialization-perl + , libgnutls28-dev | libgnutls-dev + , libmysqlclient-dev | libmariadbclient-dev + , libjpeg8-dev + , libpcre3-dev + , libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev + , libv4l-dev (>= 0.8.3) + , libbz2-dev + , libav-tools + , libnetpbm10-dev + , libavdevice-dev + , libvlccore-dev, libvlc-dev + , libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev + , libgcrypt11-dev, libpolkit-gobject-1-dev Standards-Version: 3.9.4 Package: zoneminder Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, apache2, libapache2-mod-php5 | libapache2-mod-fcgid, php5, php5-mysql|php5-mysqlnd, libphp-serialization-perl, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, mariadb-client|mysql-client, libwww-perl, libarchive-tar-perl, libarchive-zip-perl, libdevice-serialport-perl, libpcre3, ffmpeg | libav-tools, rsyslog | system-log-daemon, libmodule-load-perl, libsys-mmap-perl, libjson-any-perl, netpbm, libavdevice53 | libavdevice55, libjpeg8|libjpeg9|libjpeg62-turbo, zip, libnet-sftp-foreign-perl, libio-pty-perl, libexpect-perl, libvlccore5 | libvlccore7 | libvlccore8, libvlc5, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libpolkit-gobject-1-0, liburi-encode-perl, php5-gd -Recommends: mysql-server|mariadb-server +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} + , apache2 | httpd, libapache2-mod-php5 | libapache2-mod-fcgid | php5-fpm + , php5-mysqlnd | php5-mysql + , mariadb-client | mysql-client + , libphp-serialization-perl + , libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, libdbd-mysql-perl + , libwww-perl, libarchive-tar-perl, libarchive-zip-perl, libdevice-serialport-perl + , libmodule-load-perl, libsys-mmap-perl, libjson-any-perl + , libnet-sftp-foreign-perl, libio-pty-perl, libexpect-perl + , libdata-dump-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl + , libsys-cpu-perl, libsys-meminfo-perl + , libpcre3 + , libav-tools, libavdevice53 + , rsyslog | system-log-daemon + , netpbm , libjpeg8 + , zip + , libvlccore5 | libvlccore7, libvlc5 + , libpolkit-gobject-1-0, php5-gd +Recommends: mysql-server | mariadb-server Description: Video camera security and surveillance solution - ZoneMinder is intended for use in single or multi-camera video security + 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 @@ -22,9 +53,9 @@ Description: Video camera security and surveillance solution via X.10 or other protocols. Package: zoneminder-dbg +Architecture: any Section: debug Priority: extra -Architecture: any Depends: zoneminder (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for zoneminder. ZoneMinder is a video camera security and surveillance solution. diff --git a/distros/debian/copyright b/distros/debian/copyright index a177502a0..1c10c59db 100644 --- a/distros/debian/copyright +++ b/distros/debian/copyright @@ -20,3 +20,38 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian GNU/Linux systems, the text of the GPL can be found in /usr/share/common-licenses/GPL. + +/usr/share/zoneminder/api/lib/Cake/*: +Copyright: + +Copyright (c) 2005-2013, Cake Software Foundation, Inc. + +License: + +CakePHP(tm) : The Rapid Development PHP Framework (http://cakephp.org) + +The MIT License + +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. + +Cake Software Foundation, Inc. +1785 E. Sahara Avenue, +Suite 490-204 +Las Vegas, Nevada 89104, +United States of America. diff --git a/distros/debian/dirs b/distros/debian/dirs index 4178482c1..9e29e6113 100644 --- a/distros/debian/dirs +++ b/distros/debian/dirs @@ -3,4 +3,3 @@ var/lib/zm var/cache/zoneminder/events var/cache/zoneminder/images var/cache/zoneminder/temp -usr/share/zoneminder/db diff --git a/distros/debian/init.d b/distros/debian/init.d index f22143c38..036bb695d 100644 --- a/distros/debian/init.d +++ b/distros/debian/init.d @@ -24,12 +24,10 @@ 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 + mkdir -p $RUNDIR $TMPDIR && chown www-data:www-data $RUNDIR $TMPDIR $command start RETVAL=$? - [ $RETVAL = 0 ] && echo success - [ $RETVAL != 0 ] && echo failure + [ $RETVAL = 0 ] && echo success || echo failure echo [ $RETVAL = 0 ] && touch /var/lock/zm return $RETVAL @@ -52,8 +50,7 @@ stop() { else $command stop RETVAL=$? - [ $RETVAL = 0 ] && echo success - [ $RETVAL != 0 ] && echo failure + [ $RETVAL = 0 ] && echo success || echo failure echo [ $RETVAL = 0 ] && rm -f /var/lock/zm fi diff --git a/distros/debian/install b/distros/debian/install index 4b0009cea..97c5f7a03 100644 --- a/distros/debian/install +++ b/distros/debian/install @@ -1,12 +1,8 @@ usr/bin -usr/lib/cgi-bin +usr/lib/zoneminder/cgi-bin usr/share/man usr/share/perl5/ZoneMinder usr/share/perl5/ZoneMinder.pm -usr/share/polkit-1/actions -usr/share/polkit-1/rules.d -usr/share/zoneminder +usr/share/zoneminder/db +usr/share/zoneminder/www etc/zm -db/zm_create.sql usr/share/zoneminder/db -db/zm_update-*.sql usr/share/zoneminder/db -debian/apache.conf etc/zm diff --git a/distros/debian/links b/distros/debian/links index 9715ee428..5560a100a 100644 --- a/distros/debian/links +++ b/distros/debian/links @@ -1,4 +1,3 @@ var/cache/zoneminder/events usr/share/zoneminder/events var/cache/zoneminder/images usr/share/zoneminder/images var/cache/zoneminder/temp usr/share/zoneminder/temp -usr/lib/cgi-bin usr/share/zoneminder/cgi-bin diff --git a/distros/debian/patches/series b/distros/debian/patches/series deleted file mode 100644 index e69de29bb..000000000 diff --git a/distros/debian/postinst b/distros/debian/postinst index 42a3bb1dc..39e3dfc32 100644 --- a/distros/debian/postinst +++ b/distros/debian/postinst @@ -3,53 +3,51 @@ set -e if [ "$1" = "configure" ]; 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 - echo 'grant lock tables, alter,select,insert,update,delete,create,index on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - fi - invoke-rc.d zoneminder stop || true - zmupdate.pl --nointeractive + . /etc/zm/zm.conf - 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 - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ + # 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 -R /var/cache/zoneminder + chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/* fi -fi -# Ensure zoneminder is stopped... -if [ -x "/etc/init.d/zoneminder" ]; then - if invoke-rc.d zoneminder status ; then - invoke-rc.d zoneminder stop || exit $? + + # Do this every time the package is installed or upgraded + + 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 + # This creates the user. + echo "grant lock tables, alter,select,insert,update,delete,create,index 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,select,insert,update,delete,create,index on ${ZM_DB_NAME}.* to '${ZM_DB_USER}'@localhost;" | mysql --defaults-file=/etc/mysql/debian.cnf mysql + fi + + # Ensure zoneminder is stopped + invoke-rc.d zoneminder stop || true + zmupdate.pl --nointeractive + zmupdate.pl --nointeractive -f + invoke-rc.d zoneminder start || true + 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 -fi - -if [ "$1" = "configure" ]; then - if [ -z "$2" ]; then - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - chown www-data:www-data -R /var/cache/zoneminder else - chown www-data:www-data /var/log/zm + echo "Not doing database upgrade due to remote db server ($ZM_DB_HOST)" + fi - echo 'grant lock tables, create, index, alter on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - zmupdate.pl - fi fi #DEBHELPER# diff --git a/distros/debian/postrm b/distros/debian/postrm index 28a00a7a0..fde590981 100644 --- a/distros/debian/postrm +++ b/distros/debian/postrm @@ -1,9 +1,11 @@ #! /bin/sh -# set -e # to be reinstated later +set -e if [ "$1" = "purge" ]; then - echo 'delete from user where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - echo 'delete from db where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm + if [ -e "/etc/init.d/mysql" ]; then + echo 'delete from user where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql + echo 'delete from db where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql + mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm + fi fi #DEBHELPER# diff --git a/distros/debian/preinst b/distros/debian/preinst old mode 100755 new mode 100644 diff --git a/distros/debian/rules b/distros/debian/rules index d07d3b823..4bdc7cb0c 100755 --- a/distros/debian/rules +++ b/distros/debian/rules @@ -1,66 +1,41 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - -CFLAGS = -Wall -g -CPPFLAGS = -D__STDC_CONSTANT_MACROS -CXXFLAGS = -DHAVE_LIBCRYPTO - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -%: - dh $@ --with quilt,autoreconf +export CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe +export CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe +INSTDIR = debian/tmp override_dh_auto_configure: - CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --sysconfdir=/etc/zm --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-mysql=/usr --with-mariadb=/usr --with-webdir=/usr/share/zoneminder --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=no --enable-mmap=yes + dh_auto_configure -- \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_VERBOSE_MAKEFILE=OFF \ + -DCMAKE_COLOR_MAKEFILE=ON \ + -DZM_RUNDIR=/var/run/zm \ + -DZM_SOCKDIR=/var/run/zm \ + -DZM_TMPDIR=/var/tmp/zm \ + -DZM_LOGDIR=/var/log/zm \ + -DZM_WEBDIR=/usr/share/zoneminder/www \ + -DZM_CONTENTDIR=/var/cache/zoneminder \ + -DZM_CGIDIR=/usr/lib/zoneminder/cgi-bin \ + -DZM_WEB_USER=www-data \ + -DZM_WEB_GROUP=www-data \ + -DCMAKE_INSTALL_SYSCONFDIR=etc/zm -override_dh_clean: - # Add here commands to clean up after the build process. - [ ! -f Makefile ] || $(MAKE) distclean - dh_clean - -override_dh_install: - dh_install --fail-missing - # - # NOTE: This is a short-term kludge; hopefully changes in the next - # upstream version will render this unnecessary. - rm -rf debian/zoneminder/usr/share/zoneminder/events - rm -rf debian/zoneminder/usr/share/zoneminder/images - rm -rf debian/zoneminder/usr/share/zoneminder/temp - dh_link var/cache/zoneminder/events usr/share/zoneminder/events - dh_link var/cache/zoneminder/images usr/share/zoneminder/images - dh_link var/cache/zoneminder/temp usr/share/zoneminder/temp - # - # This is a slightly lesser kludge; moving the cgi stuff to - # /usr/share/zoneminder/cgi-bin breaks one set of behavior, - # having it just in /usr/lib/cgi-bin breaks another bit of - # behavior. - # - dh_link usr/lib/cgi-bin usr/share/zoneminder/cgi-bin - -override_dh_fixperms: - dh_fixperms - chown root:root debian/zoneminder/etc/zm/zm.conf +override_dh_auto_install: + dh_auto_install --buildsystem=cmake + install -D -m 0644 debian/apache.conf $(INSTDIR)/etc/zm/apache.conf + rm $(INSTDIR)/usr/share/zoneminder/api/lib/Cake/LICENSE.txt + rm $(INSTDIR)/usr/share/zoneminder/api/.gitignore + rm -r $(INSTDIR)/usr/share/zoneminder/api/lib/Cake/Test override_dh_auto_test: # do not run tests... -.PHONY: override_dh_strip override_dh_strip: - dh_strip --dbg-package=zoneminder-dbg + dh_strip --dbg-package=zoneminder-dbg + +%: + dh $@ --buildsystem=cmake --parallel diff --git a/distros/debian8/README.Debian b/distros/debian8/README.Debian deleted file mode 100644 index a49b6be72..000000000 --- a/distros/debian8/README.Debian +++ /dev/null @@ -1,51 +0,0 @@ -zoneminder for Debian ---------------------- - -There is one manual step to get the web interface working. -You need to link /etc/zm/apache.conf to /etc/apache2/conf.d/zoneminder.conf, -then reload the apache config (i.e. /etc/init.d/apache2 reload) - -Changing the location for images and events -------------------------------------------- - -Zoneminder, in its upstream form, stores data in /usr/share/zoneminder/. This -package modifies that by changing /usr/share/zoneminder/images and -/usr/share/zoneminder/events to symlinks to directories under -/var/cache/zoneminder. - -There are numerous places these could be put and ways to do it. But, at the -moment, if you change this, an upgrade will fail with a warning about these -locations having changed (the reason for this was that previously, an upgrade -would silently revert the changes and cause event loss - refer -bug #608793). - -If you do want to change the location, here are a couple of suggestions. - -These lines would mount /dev/sdX1 to /video_storage, and then 'link' /video_storage -to the locations that ZoneMinder expects them to be at. - - /dev/sdX1 /video_storage ext4 defaults 0 2 - /video_storage/zoneminder/images /var/cache/zoneminder/images none bind 0 2 - /video_storage/zoneminder/events /var/cache/zoneminder/events none bind 0 2 - - or if you have a separate partition for each: - - /dev/sdX1 /var/cache/zoneminder/images ext4 defaults 0 2 - /dev/sdX2 /var/cache/zoneminder/events ext4 defaults 0 2 - - - - -- Peter Howard , Sun, 16 Jan 2010 01:35:51 +1100 - -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 Sun, 27 Mar 2011 13:06:56 -0700 diff --git a/distros/debian8/apache.conf b/distros/debian8/apache.conf deleted file mode 100644 index 965c67f86..000000000 --- a/distros/debian8/apache.conf +++ /dev/null @@ -1,9 +0,0 @@ -Alias /zm /usr/share/zoneminder/www - - - php_flag register_globals off - Options Indexes FollowSymLinks - - DirectoryIndex index.php - - diff --git a/distros/debian8/changelog b/distros/debian8/changelog deleted file mode 100644 index 0035f1e36..000000000 --- a/distros/debian8/changelog +++ /dev/null @@ -1,41 +0,0 @@ -zoneminder (1.28.0+nmu1) testing; urgency=medium - - * Non-maintainer upload - * Split the debian package into several packages - * Switch to native source format - - -- Emmanuel Papin Thu, 15 Jan 2015 20:00:08 +0100 - -zoneminder (1.28.0-0.2) testing; urgency=medium - - * Non-maintainer upload. - * Upstream release for debian jessie - * Package dependencies updated - * debhelper version upgraded - * Standards-Version upgraded - * Use debhelper commands instead of standard commands - * Install man pages in /usr/share/man (patch added) - * Switch to quilt - * Switch to systemd - * Some lintian fixes - - -- Emmanuel Papin Wed, 26 Nov 2014 00:26:01 +0100 - -zoneminder (1.28.0-0.1) stable; urgency=medium - - * Release - - -- Isaac Connor Fri, 17 Oct 2014 09:27:22 -0400 - -zoneminder (1.27.99+1-testing-SNAPSHOT2014072901) testing; urgency=medium - - * improve error messages - * Make zmupdate re-run the most recent patch so that people running the daily builds get their db updates - - -- Isaac Connor Tue, 29 Jul 2014 14:50:20 -0400 - -zoneminder (1.27.0+1-testing-v4ltomonitor-1) testing; urgency=high - - * Snapshot release - - - -- Isaac Connor Wed, 09 Jul 2014 21:35:29 -0400 diff --git a/distros/debian8/compat b/distros/debian8/compat deleted file mode 100644 index ec635144f..000000000 --- a/distros/debian8/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/distros/debian8/control b/distros/debian8/control deleted file mode 100644 index af5ba9ad0..000000000 --- a/distros/debian8/control +++ /dev/null @@ -1,122 +0,0 @@ -Source: zoneminder -Section: net -Priority: optional -Maintainer: Isaac Connor -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 -Section: metapackages -Architecture: all -Depends: ${misc:Depends}, - libzoneminder-perl (>= ${source:Version}), - zoneminder-database (>= ${source:Version}), - zoneminder-core (>= ${binary:Version}), - zoneminder-ui-base (>= ${source:Version}), - zoneminder-ui-classic (>= ${source:Version}), - zoneminder-ui-mobile (>= ${source:Version}), - zoneminder-ui-xml (>= ${source:Version}) -Description: Video camera security and surveillance solution (metapackage) - 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 -Depends: ${misc:Depends}, ${perl:Depends}, libdbi-perl, - libdevice-serialport-perl, libimage-info-perl, libjson-any-perl, - libsys-mmap-perl, liburi-encode-perl, libwww-perl -Description: Perl libraries for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the libraries for the perl scripts, it can be used to - write custom interfaces as well. - -Package: zoneminder-database -Section: database -Architecture: all -Depends: ${misc:Depends}, debconf, dbconfig-common, - mysql-client | mariadb-client -Recommends: mysql-server | mariadb-server -Description: Database management package for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the sql files and maintenance scripts to perform all the - database operations (installation, upgrade or removal) on a local or a remote - server. - -Package: zoneminder-core -Section: video -Architecture: any -Depends: libzoneminder-perl (= ${source:Version}), - zoneminder-database (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}, - ${perl:Depends}, libarchive-tar-perl, libarchive-zip-perl, libdate-manip-perl, - libdbi-perl, libmodule-load-conditional-perl, libmime-lite-perl, - libmime-tools-perl, libnet-sftp-foreign-perl, libphp-serialization-perl, - debconf, ffmpeg | libav-tools, rsyslog | system-log-daemon, netpbm, zip, - policykit-1, apache2 -Description: Core binaries and perl scripts for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the executable compiled binaries which do the main video - processing work and the perl scripts which perform helper and/or external - interface tasks. - -Package: zoneminder-core-dbg -Priority: extra -Section: debug -Architecture: any -Depends: zoneminder-core (= ${binary:Version}), ${misc:Depends} -Description: Debugging symbols for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the debugging symbols for the executable compiled - binaries. - -Package: zoneminder-ui-base -Section: web -Architecture: any -Depends: zoneminder-core (= ${binary:Version}), ${shlibs:Depends}, - ${misc:Depends}, debconf, apache2, libapache2-mod-php5 | libapache2-mod-fcgid, - php5, php5-mysql | php5-mysqlnd, php5-gd -Description: Essential files for ZoneMinder's web user interface - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the essential web files and maintenance scripts to set up - a basic web environment. - -Package: zoneminder-ui-classic -Section: web -Architecture: all -Depends: zoneminder-ui-base (>= ${source:Version}), ${misc:Depends} -Description: Classic web user interface for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the classic web user interface. - -Package: zoneminder-ui-mobile -Section: web -Architecture: all -Depends: zoneminder-ui-base (>= ${source:Version}), ${misc:Depends} -Description: Mobile web user interface for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the web user interface for mobile devices. - -Package: zoneminder-ui-xml -Section: web -Architecture: all -Depends: zoneminder-ui-base (>= ${source:Version}), ${misc:Depends} -Description: XML interface for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides a XML interface mainly intended for use with the eyeZm - iPhone Application, but can be used with any other custom programs as well. diff --git a/distros/debian8/copyright b/distros/debian8/copyright deleted file mode 100644 index a177502a0..000000000 --- a/distros/debian8/copyright +++ /dev/null @@ -1,22 +0,0 @@ -Copyright: - -Copyright 2002 Philip Coombes - -License: - -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 - -On Debian GNU/Linux systems, the text of the GPL can be found in -/usr/share/common-licenses/GPL. diff --git a/distros/debian8/docs b/distros/debian8/docs deleted file mode 100644 index b43bf86b5..000000000 --- a/distros/debian8/docs +++ /dev/null @@ -1 +0,0 @@ -README.md diff --git a/distros/debian8/libzoneminder-perl.install b/distros/debian8/libzoneminder-perl.install deleted file mode 100644 index 792ffc15e..000000000 --- a/distros/debian8/libzoneminder-perl.install +++ /dev/null @@ -1,4 +0,0 @@ -usr/share/perl5/ZoneMinder -usr/share/perl5/ZoneMinder.pm -debian/tmp/usr/share/man/man3/ZoneMinder.3pm -debian/tmp/usr/share/man/man3/ZoneMinder::* diff --git a/distros/debian8/po/POTFILES.in b/distros/debian8/po/POTFILES.in deleted file mode 100644 index 5b155907e..000000000 --- a/distros/debian8/po/POTFILES.in +++ /dev/null @@ -1,3 +0,0 @@ -[type: gettext/rfc822deb] zoneminder-core.templates -[type: gettext/rfc822deb] zoneminder-database.templates -[type: gettext/rfc822deb] zoneminder-ui-base.templates diff --git a/distros/debian8/po/fr.po b/distros/debian8/po/fr.po deleted file mode 100644 index 85ced7fd2..000000000 --- a/distros/debian8/po/fr.po +++ /dev/null @@ -1,252 +0,0 @@ -# debconf french translation file for ZoneMinder. -# Copyright (C) 2001-2008 Philip Coombes -# This file is distributed under the same license as the zoneminder package. -# First author: Emmanuel Papin , 2014. -# -msgid "" -msgstr "" -"Project-Id-Version: zoneminder\n" -"Report-Msgid-Bugs-To: zoneminder@packages.debian.org\n" -"POT-Creation-Date: 2014-12-16 12:34+0100\n" -"PO-Revision-Date: 2014-12-07 00:40+0100\n" -"Last-Translator: Emmanuel Papin \n" -"Language-Team: French \n" -"Language: fr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "Delete this non empty directory?" -msgstr "Supprimer ce répertoire non vide ?" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "" -"A purge of the ZoneMinder package is performed but the directory '/var/cache/" -"zoneminder' is not empty so it will not be deleted." -msgstr "" -"Une purge du paquet ZoneMinder est en cours mais le répertoire '/var/cache/" -"zoneminder' n'est pas vide et sera donc conservé." - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "" -"Please consider that this directory is designed to contain data resulting " -"from event detection. Therefore, \"proof of evidence\" could be lost!\"" -msgstr "" -"Veuillez considérer que ce répertoire est conçu pour contenir des données " -"résultants de la détection d'événements. Par conséquent, des preuves " -"pourraient être perdues !" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "" -"If you are not sure of your decision, please do not delete this directory " -"but perform a manual checkup." -msgstr "" -"Si vous n'êtes pas sûr de votre décision, veuillez conserver ce répertoire " -"et effectuer une vérification manuelle." - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:2001 -msgid "Deletion confirmed?" -msgstr "Supression confirmée ?" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:2001 -msgid "" -"You have allowed the deletion of directory '/var/cache/zoneminder' although " -"it may contain critical data." -msgstr "" -"Vous avez autorisé la suppression du répertoire '/var/cache/zoneminder' bien " -"qu'il puisse contenir des données critiques." - -#. Type: select -#. Choices -#: ../zoneminder-database.templates:1001 -msgid "local" -msgstr "local" - -#. Type: select -#. Choices -#: ../zoneminder-database.templates:1001 -msgid "remote" -msgstr "distant" - -#. Type: select -#. Description -#: ../zoneminder-database.templates:1002 -msgid "Database location:" -msgstr "Emplacement de la base de donnée :" - -#. Type: select -#. Description -#: ../zoneminder-database.templates:1002 -msgid "" -"A database server is required to run ZoneMinder. The database can be " -"installed either locally or remotely on a machine of your network." -msgstr "" -"Un serveur de base de données est requis pour ZoneMinder. La base de donnée " -"peut être installée localement ou à distance sur une machine de votre réseau." - -#. Type: select -#. Description -#: ../zoneminder-database.templates:1002 -msgid "" -"If you choose a remote location, you will have to select the 'tcp/ip' " -"connection method and enter the hostname or ip address of the remote machine " -"in the next configuration screens." -msgstr "" -"Si vous choisissez un emplacement distant, vous devrez sélectionner la " -"méthode de connexion 'tcp/ip' et entrer le nom réseau ou l'adresse ip de la " -"machine distante dans les écrans de configuration suivants." - -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 -msgid "No local database server is available:" -msgstr "Aucun serveur local de base de données n'est disponible :" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 -msgid "" -"Currently ZoneMinder supports mysql or mariadb database server but none of " -"them appears to be installed on this machine." -msgstr "" -"Actuellement ZoneMinder supporte les serveurs de base de données mysql et " -"mariadb mais aucun d'entre eux n'est installé sur cette machine." - -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 -msgid "" -"In order to complete ZoneMinder's installation, after ending of this " -"assistant, please install a compatible database server and then restart the " -"assistant by invoking:" -msgstr "" -"Afin de compléter l'installation de ZoneMinder, après la fermeture de cet " -"assitant, veuillez installer un serveur de base de données compatible et " -"ensuite redémarrez l'assistant en invoquant :" - -#. Type: error -#. Description -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 ../zoneminder-database.templates:3001 -msgid "$ sudo dpkg-reconfigure zoneminder" -msgstr "$ sudo dpkg-reconfigure zoneminder" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "Remote database servers are not allowed:" -msgstr "Les serveurs de base de données distants ne sont pas autorisés :" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "" -"The current configuration of dbconfig-common does not allow installation of " -"a database on remote servers." -msgstr "" -"La configuration actuelle de dbconfig-common ne permet pas l'installation de " -"bases de données sur des serveurs distants." - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "" -"In order to reconfigure dbconfig-common, please invoke the following command " -"after ending of this assistant:" -msgstr "" -"Afin de reconfigurer dbconfig-common, veuillez invoquer la commande suivante " -"après la fermeture de cet assitant :" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "$ sudo dpkg-reconfigure dbconfig-common" -msgstr "$ sudo dpkg-reconfigure dbconfig-common" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "" -"Then, to complete ZoneMinder's installation, please restart this assistant " -"by invoking:" -msgstr "" -"Ensuite, pour compléter l'installation de ZoneMinder, veuillez redémarrer " -"cet assistant en invoquant :" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "New password for the ZoneMinder 'admin' user:" -msgstr "Nouveau mot de passe pour le compte 'admin' de ZoneMinder :" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "Please enter the password of the default administrative user." -msgstr "Veuillez entrer le mot de passe du compte administrateur par défaut." - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "" -"While not mandatory, it is highly recommended that you set a custom password " -"for the administrative 'admin' user." -msgstr "" -"Bien que cela ne soit pas obligatoire, il est fortement recommandé de " -"fournir un mot de passe personnalisé pour le compte administrateur 'admin'." - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "If this field is left blank, the password will not be changed." -msgstr "Si le champ est laissé vide, le mot de passe ne sera pas changé." - -#. Type: password -#. Description -#: ../zoneminder-database.templates:5001 -msgid "Repeat password for the ZoneMinder 'admin' user:" -msgstr "Répéter le mot de passe pour le compte 'admin' de ZoneMinder :" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:6001 -msgid "Password input error" -msgstr "Erreur de mot de passe" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:6001 -msgid "The two passwords you entered were not the same. Please try again." -msgstr "" -"Les deux mots de passe saisis ne sont pas les mêmes. Veuillez essayer à " -"nouveau." - -#. Type: multiselect -#. Description -#: ../zoneminder-ui-base.templates:1001 -msgid "Web server to reconfigure automatically:" -msgstr "Serveur web à reconfigurer automatiquement :" - -#. Type: multiselect -#. Description -#: ../zoneminder-ui-base.templates:1001 -msgid "" -"Please choose the web server that should be automatically configured for " -"ZoneMinder's web portal access." -msgstr "" -"Veuillez choisir le serveur web à reconfigurer automatiquement pour l'accès " -"au portail web de ZoneMinder." diff --git a/distros/debian8/po/templates.pot b/distros/debian8/po/templates.pot deleted file mode 100644 index 941a4094e..000000000 --- a/distros/debian8/po/templates.pot +++ /dev/null @@ -1,222 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: zoneminder\n" -"Report-Msgid-Bugs-To: zoneminder@packages.debian.org\n" -"POT-Creation-Date: 2014-12-16 12:34+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "Delete this non empty directory?" -msgstr "" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "" -"A purge of the ZoneMinder package is performed but the directory '/var/cache/" -"zoneminder' is not empty so it will not be deleted." -msgstr "" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "" -"Please consider that this directory is designed to contain data resulting " -"from event detection. Therefore, \"proof of evidence\" could be lost!\"" -msgstr "" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:1001 -msgid "" -"If you are not sure of your decision, please do not delete this directory " -"but perform a manual checkup." -msgstr "" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:2001 -msgid "Deletion confirmed?" -msgstr "" - -#. Type: boolean -#. Description -#: ../zoneminder-core.templates:2001 -msgid "" -"You have allowed the deletion of directory '/var/cache/zoneminder' although " -"it may contain critical data." -msgstr "" - -#. Type: select -#. Choices -#: ../zoneminder-database.templates:1001 -msgid "local" -msgstr "" - -#. Type: select -#. Choices -#: ../zoneminder-database.templates:1001 -msgid "remote" -msgstr "" - -#. Type: select -#. Description -#: ../zoneminder-database.templates:1002 -msgid "Database location:" -msgstr "" - -#. Type: select -#. Description -#: ../zoneminder-database.templates:1002 -msgid "" -"A database server is required to run ZoneMinder. The database can be " -"installed either locally or remotely on a machine of your network." -msgstr "" - -#. Type: select -#. Description -#: ../zoneminder-database.templates:1002 -msgid "" -"If you choose a remote location, you will have to select the 'tcp/ip' " -"connection method and enter the hostname or ip address of the remote machine " -"in the next configuration screens." -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 -msgid "No local database server is available:" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 -msgid "" -"Currently ZoneMinder supports mysql or mariadb database server but none of " -"them appears to be installed on this machine." -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 -msgid "" -"In order to complete ZoneMinder's installation, after ending of this " -"assistant, please install a compatible database server and then restart the " -"assistant by invoking:" -msgstr "" - -#. Type: error -#. Description -#. Type: error -#. Description -#: ../zoneminder-database.templates:2001 ../zoneminder-database.templates:3001 -msgid "$ sudo dpkg-reconfigure zoneminder" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "Remote database servers are not allowed:" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "" -"The current configuration of dbconfig-common does not allow installation of " -"a database on remote servers." -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "" -"In order to reconfigure dbconfig-common, please invoke the following command " -"after ending of this assistant:" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "$ sudo dpkg-reconfigure dbconfig-common" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:3001 -msgid "" -"Then, to complete ZoneMinder's installation, please restart this assistant " -"by invoking:" -msgstr "" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "New password for the ZoneMinder 'admin' user:" -msgstr "" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "Please enter the password of the default administrative user." -msgstr "" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "" -"While not mandatory, it is highly recommended that you set a custom password " -"for the administrative 'admin' user." -msgstr "" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:4001 -msgid "If this field is left blank, the password will not be changed." -msgstr "" - -#. Type: password -#. Description -#: ../zoneminder-database.templates:5001 -msgid "Repeat password for the ZoneMinder 'admin' user:" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:6001 -msgid "Password input error" -msgstr "" - -#. Type: error -#. Description -#: ../zoneminder-database.templates:6001 -msgid "The two passwords you entered were not the same. Please try again." -msgstr "" - -#. Type: multiselect -#. Description -#: ../zoneminder-ui-base.templates:1001 -msgid "Web server to reconfigure automatically:" -msgstr "" - -#. Type: multiselect -#. Description -#: ../zoneminder-ui-base.templates:1001 -msgid "" -"Please choose the web server that should be automatically configured for " -"ZoneMinder's web portal access." -msgstr "" diff --git a/distros/debian8/rules b/distros/debian8/rules deleted file mode 100755 index 3364d8750..000000000 --- a/distros/debian8/rules +++ /dev/null @@ -1,154 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - -CFLAGS = -Wall -CPPFLAGS = -D__STDC_CONSTANT_MACROS -CXXFLAGS = -DHAVE_LIBCRYPTO - -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) -DEBOPT = --enable-debug -CFLAGS += -g -CXXFLAGS += -g -else -DEBOPT = -endif - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) -CFLAGS += -O0 -else -CFLAGS += -O2 -endif - -# These are used to get the most recent version of the original sources from github -UURL = $(shell git config --get remote.origin.url) -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.*)(?:\-|\+nmu\d+.*)};') -DTYPE = -TARBALL = ../$(PKG)_$(VER)$(DTYPE).orig.tar.xz - -%: - dh $@ --with autoreconf,systemd - -override_dh_auto_configure: - CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" dh_auto_configure -- \ - --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ - --sysconfdir=/etc/zm --prefix=/usr --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info --with-mysql=/usr \ - --with-mariadb=/usr --with-webdir=/usr/share/zoneminder \ - --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin \ - --with-webuser=www-data --with-webgroup=www-data \ - --enable-crashtrace=no --enable-mmap=yes $(DEBOPT) - -override_dh_clean: - # Add here commands to clean up after the build process. - [ ! -f Makefile ] || $(MAKE) distclean - dh_clean src/zm_config_defines.h - # - # Delete remaining auto-generated Makefile if Makefile.in exists - find $(CURDIR)/ -type f -name "Makefile" | while read file; do \ - [ -f $$file.in ] && rm -f $$file; \ - done || true - # - # Delete remaining auto-generated Makefile.in if Makefile.am exists - find $(CURDIR)/ -type f -name "Makefile.in" | while read filein; do \ - fileam=`echo $$filein | sed 's/\(.*\)\.in/\1\.am/'`; \ - [ -f $$fileam ] && rm -f $$filein; \ - done || true - -override_dh_install: - dh_install --fail-missing - # - # NOTE: This is a short-term kludge; hopefully changes in the next - # upstream version will render this unnecessary. - rm -rf debian/zoneminder/usr/share/zoneminder/events - rm -rf debian/zoneminder/usr/share/zoneminder/images - rm -rf debian/zoneminder/usr/share/zoneminder/temp - # The link stuff for these folders has been moved to - # zoneminder-core.links file - # - # This is a slightly lesser kludge; moving the cgi stuff to - # /usr/share/zoneminder/cgi-bin breaks one set of behavior, - # having it just in /usr/lib/cgi-bin breaks another bit of - # behavior. - # 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 - # - # As requested by the Debian Webapps Policy Manual §3.2.1 - chown root:www-data debian/zoneminder-core/etc/zm/zm.conf - chmod 640 debian/zoneminder-core/etc/zm/zm.conf - -override_dh_auto_test: - # do not run tests... - -.PHONY: override_dh_strip -override_dh_strip: - dh_strip --dbg-package=zoneminder-core-dbg - -# Inspired by https://wiki.debian.org/onlyjob/get-orig-source -.PHONY: get-orig-source -get-orig-source: $(TARBALL) $(info I: $(PKG)_$(VER)$(DTYPE)) - @ - -$(TARBALL): - $(if $(wildcard $(PKG)-$(VER)),$(error folder '$(PKG)-$(VER)' exists, aborting...)) - @echo "# Cloning origin repository..."; \ - if ! git clone $(UURL) $(PKG)-$(VER); then \ - $(RM) -r $(PKG)-$(VER); \ - echo "failed to clone repository, aborting..."; \ - false; \ - fi - @if [ $(BRANCH) != "master" ]; then \ - cd $(PKG)-$(VER); \ - echo "# Not on master branch, fetching origin branch '$(BRANCH)'..."; \ - git fetch origin $(BRANCH):$(BRANCH) || false; \ - echo "# Switching to branch '$(BRANCH)'..."; \ - git checkout $(BRANCH) || false; \ - fi - @echo "# Checking local source..." - @if [ $$(cd $(PKG)-$(VER) && git rev-parse HEAD) = $(HEAD) ]; then \ - echo "even with origin, ok"; \ - true; \ - else \ - echo "not even with origin, aborting..."; \ - false; \ - fi - @echo "# Setting times..." - @cd $(PKG)-$(VER) \ - && for F in $$(git ls-tree -r --name-only HEAD | sed -e "s/\s/\*/g"); do \ - touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; \ - done - @echo "# Cleaning-up..." - cd $(PKG)-$(VER) && $(RM) -r .git - @echo "# Packing file '$(TARBALL)'..." - @find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \ - | XZ_OPT="-6v" tar -caf "$(TARBALL)" -T- --owner=root --group=root --mode=a+rX \ - && $(RM) -r "$(PKG)-$(VER)" diff --git a/distros/debian8/source/local-options b/distros/debian8/source/local-options deleted file mode 100644 index e69de29bb..000000000 diff --git a/distros/debian8/source/options b/distros/debian8/source/options deleted file mode 100644 index 8bd61fce6..000000000 --- a/distros/debian8/source/options +++ /dev/null @@ -1 +0,0 @@ -extend-diff-ignore = "(^|/)(config\.sub|config\.guess|Makefile|aclocal.m4|compile|config.h.in|configure|depcomp|install-sh|missing)$" diff --git a/distros/debian8/zoneminder-core.config b/distros/debian8/zoneminder-core.config deleted file mode 100644 index 2a15a599e..000000000 --- a/distros/debian8/zoneminder-core.config +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# config maintainer script for zoneminder-core package - -set -e - -# Source the debconf stuff -. /usr/share/debconf/confmodule - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-core.dirs b/distros/debian8/zoneminder-core.dirs deleted file mode 100644 index 350c32aff..000000000 --- a/distros/debian8/zoneminder-core.dirs +++ /dev/null @@ -1,4 +0,0 @@ -var/log/zm -var/cache/zoneminder/events -var/cache/zoneminder/images -var/cache/zoneminder/temp diff --git a/distros/debian8/zoneminder-core.install b/distros/debian8/zoneminder-core.install deleted file mode 100644 index afd9ada95..000000000 --- a/distros/debian8/zoneminder-core.install +++ /dev/null @@ -1,4 +0,0 @@ -etc/zm -usr/bin -usr/share/polkit-1/actions -usr/share/polkit-1/rules.d diff --git a/distros/debian8/zoneminder-core.links b/distros/debian8/zoneminder-core.links deleted file mode 100644 index 5560a100a..000000000 --- a/distros/debian8/zoneminder-core.links +++ /dev/null @@ -1,3 +0,0 @@ -var/cache/zoneminder/events usr/share/zoneminder/events -var/cache/zoneminder/images usr/share/zoneminder/images -var/cache/zoneminder/temp usr/share/zoneminder/temp diff --git a/distros/debian8/zoneminder-core.postinst b/distros/debian8/zoneminder-core.postinst deleted file mode 100644 index b1552e73b..000000000 --- a/distros/debian8/zoneminder-core.postinst +++ /dev/null @@ -1,80 +0,0 @@ -#! /bin/sh -# postinst maintainer script for zoneminder-core package - -set -e - -# Source the debconf stuff -. /usr/share/debconf/confmodule - -# Source the config file -CONFIGFILE=/etc/zm/zm.conf -. $CONFIGFILE - -# Do this when the package is installed, upgraded or reconfigured -if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then - - # Retrieve data from dbconfig (inputs from user) - . /etc/dbconfig-common/zoneminder.conf - - # ZoneMinder config file handling - # Inspired by: http://manpages.debian.org/cgi-bin/man.cgi?query=debconf-devel&sektion=7 - - # Backup the config file - cp -a -f $CONFIGFILE ${CONFIGFILE}.postinst.bak - - # Redeclare variables if missing in config file - test -z $dbc_dbserver || grep -Eq "^ *ZM_DB_HOST=" $CONFIGFILE \ - || echo "ZM_DB_HOST=" >> ${CONFIGFILE}.postinst.bak - test -z $dbc_dbname || grep -Eq "^ *ZM_DB_NAME=" $CONFIGFILE \ - || echo "ZM_DB_NAME=" >> ${CONFIGFILE}.postinst.bak - test -z $dbc_dbuser || grep -Eq "^ *ZM_DB_USER=" $CONFIGFILE \ - || echo "ZM_DB_USER=" >> ${CONFIGFILE}.postinst.bak - test -z $dbc_dbpass || grep -Eq "^ *ZM_DB_PASS=" $CONFIGFILE \ - || echo "ZM_DB_PASS=" >> ${CONFIGFILE}.postinst.bak - - # Prevent ZM_DB_HOST to be empty if user selected the 'unix socket' method - if test -z $dbc_dbserver; then - dbc_dbserver_override="localhost" - else - dbc_dbserver_override=$dbc_dbserver - fi - - # Update variables in config file - sed -i "s/^ *ZM_DB_HOST=.*/ZM_DB_HOST=$dbc_dbserver_override/" \ - ${CONFIGFILE}.postinst.bak - test -z $dbc_dbname || sed -i "s/^ *ZM_DB_NAME=.*/ZM_DB_NAME=$dbc_dbname/" \ - ${CONFIGFILE}.postinst.bak - test -z $dbc_dbuser || sed -i "s/^ *ZM_DB_USER=.*/ZM_DB_USER=$dbc_dbuser/" \ - ${CONFIGFILE}.postinst.bak - test -z $dbc_dbpass || sed -i "s/^ *ZM_DB_PASS=.*/ZM_DB_PASS=$dbc_dbpass/" \ - ${CONFIGFILE}.postinst.bak - - # Clean-up backup file - mv -f ${CONFIGFILE}.postinst.bak $CONFIGFILE - - - # Set some file permissions - chown $ZM_WEB_USER:$ZM_WEB_GROUP /var/log/zm - if [ -z "$2" ]; then - chown $ZM_WEB_USER:$ZM_WEB_GROUP -R /var/cache/zoneminder - fi - # As requested by the Debian Webapps Policy Manual §3.2.1 - chown root:${ZM_WEB_GROUP} $CONFIGFILE - chmod 640 $CONFIGFILE -fi - -# Do this every time the package is installed or upgraded -# Test for database presence to avoid failure of zmupdate.pl -if [ "$dbc_install" = "true" ] && [ "$1" = "configure" ]; then - - # Ensure zoneminder is stopped - deb-systemd-invoke stop zoneminder.service || exit $? - - # Run the ZoneMinder update tool - zmupdate.pl --nointeractive - -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-core.postrm b/distros/debian8/zoneminder-core.postrm deleted file mode 100644 index d75e75e8b..000000000 --- a/distros/debian8/zoneminder-core.postrm +++ /dev/null @@ -1,37 +0,0 @@ -#! /bin/sh -# postrm maintainer script for zoneminder-core package - -set -e - -# Source the debconf stuff -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule -fi - -if [ "$1" = "purge" ]; then - - # Ask the user if we have to remove the cache directory even if not empty - if [ -d /var/cache/zoneminder ] \ - && [ ! $(find /var/cache/zoneminder -maxdepth 0 -type d -empty 2>/dev/null) ]; then - RET="" - db_input high zoneminder/ask_delete || true - db_go || true - db_get zoneminder/ask_delete - if [ "$RET" = "true" ]; then - RET="" - db_input high zoneminder/ask_delete_again || true - db_go || true - db_get zoneminder/ask_delete_again - if [ "$RET" = "true" ]; then - rm -rf /var/cache/zoneminder - fi - fi - fi -fi - -#DEBHELPER# - -# postrm rm may freeze without that -db_stop - -exit 0 diff --git a/distros/debian8/zoneminder-core.preinst b/distros/debian8/zoneminder-core.preinst deleted file mode 100644 index 3ed1ef661..000000000 --- a/distros/debian8/zoneminder-core.preinst +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# preinst maintainer script for zoneminder-core package - -set -e - -abort=false -if [ -L /usr/share/zoneminder/events ]; then - l=$(readlink /usr/share/zoneminder/events) - if [ "$l" != "/var/cache/zoneminder/events" ]; then - abort=true - fi -fi -if [ -L /usr/share/zoneminder/images ]; then - l=$(readlink /usr/share/zoneminder/images ) - if [ "$l" != "/var/cache/zoneminder/images" ]; then - abort=true - fi -fi - -if [ "$abort" = "true" ]; then - cat >&2 << EOF -Aborting installation of zoneminder due to non-default symlinks in -/usr/share/zoneminder for the images and/or events directory, which could -result in loss of data. Please move your data in each of these directories to -/var/cache/zoneminder before installing zoneminder from the package. -EOF - exit 1 - -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-core.templates b/distros/debian8/zoneminder-core.templates deleted file mode 100644 index 35fdefd7a..000000000 --- a/distros/debian8/zoneminder-core.templates +++ /dev/null @@ -1,19 +0,0 @@ -Template: zoneminder/ask_delete -Type: boolean -Default: false -_Description: Delete this non empty directory? - A purge of the ZoneMinder package is performed but the directory - '/var/cache/zoneminder' is not empty so it will not be deleted. - . - Please consider that this directory is designed to contain data resulting from - event detection. Therefore, "proof of evidence" could be lost!" - . - If you are not sure of your decision, please do not delete this directory but - perform a manual checkup. - -Template: zoneminder/ask_delete_again -Type: boolean -Default: false -_Description: Deletion confirmed? - You have allowed the deletion of directory '/var/cache/zoneminder' although - it may contain critical data. diff --git a/distros/debian8/zoneminder-core.zoneminder.init b/distros/debian8/zoneminder-core.zoneminder.init deleted file mode 100644 index 41d3cb9dc..000000000 --- a/distros/debian8/zoneminder-core.zoneminder.init +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# -### BEGIN INIT INFO -# Provides: zoneminder -# Required-Start: -# Required-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Do nothing more than fixing a lintian error -# Description: This script is provided by the Zoneminder package -# Zomeminder init configuration has been switched to systemd -# This dummy script can be safely deleted; It does nothing -# more than fixing a lintian error when testing the package -### END INIT INFO - -. /lib/lsb/init-functions - -case "$1" in - start) - ;; - stop) - ;; - status) - ;; - restart|reload) - ;; - force-reload) - ;; - *) - echo "Usage: ${0:-} {start|stop|status|restart|reload|force-reload}" >&2 - exit 1 - ;; -esac - -exit 0 - diff --git a/distros/debian8/zoneminder-core.zoneminder.service b/distros/debian8/zoneminder-core.zoneminder.service deleted file mode 100644 index d82270024..000000000 --- a/distros/debian8/zoneminder-core.zoneminder.service +++ /dev/null @@ -1,19 +0,0 @@ -# ZoneMinder systemd unit file -# This file is intended to work with debian distributions - -[Unit] -Description=ZoneMinder CCTV recording and security system -After=network.target mysql.service apache2.service -Requires=apache2.service -Wants=mysql.service - -[Service] -User=www-data -Type=forking -ExecStart=/usr/bin/zmpkg.pl start -ExecReload=/usr/bin/zmpkg.pl restart -ExecStop=/usr/bin/zmpkg.pl stop -PIDFile=/var/run/zm/zm.pid - -[Install] -WantedBy=multi-user.target diff --git a/distros/debian8/zoneminder-core.zoneminder.tmpfile b/distros/debian8/zoneminder-core.zoneminder.tmpfile deleted file mode 100644 index 6ea70bf35..000000000 --- a/distros/debian8/zoneminder-core.zoneminder.tmpfile +++ /dev/null @@ -1 +0,0 @@ -d /var/run/zm 0755 www-data www-data diff --git a/distros/debian8/zoneminder-database.config b/distros/debian8/zoneminder-database.config deleted file mode 100644 index f6a84d36d..000000000 --- a/distros/debian8/zoneminder-database.config +++ /dev/null @@ -1,142 +0,0 @@ -#!/bin/sh -# config maintainer script for zoneminder - -set -e - -# Source the debconf stuff -. /usr/share/debconf/confmodule - -# Set the first version in which dbconfig-common was introduced in the package -dbc_first_version="1.28.0" - -CONFIGFILE=/etc/zm/zm.conf -if [ -e $CONFIGFILE ]; then - # Source the config file if exists - . $CONFIGFILE -elif [ -e ${CONFIGFILE}.dpkg-new ]; then - # If no config file, source the config file which is going to be installed - # by the core package - . ${CONFIGFILE}.dpkg-new -else - # If no config file is going to be installed, set some default values - ZM_DB_HOST= - ZM_DB_NAME="zm" - ZM_DB_USER="zmuser" -fi - -# Set some variables for the dbconfig-common stuff -dbc_dbserver="$ZM_DB_HOST" -dbc_dbname="$ZM_DB_NAME" -dbc_dbuser="$ZM_DB_USER" - -if [ -f /usr/share/dbconfig-common/dpkg/config ]; then - - # Default use dbconfig-common - dbc_install="true" - - # Currently we only support mysql database - dbc_dbtypes="mysql" - - # Set authentication method to password - dbc_authmethod_user="password" - - # Source the dbconfig-common stuff - . /usr/share/dbconfig-common/dpkg/config -fi - -# Do this when the package is installed, upgraded or reconfigured -# Most of answers are cached so the questions will not be asked again -if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then - - # Ask the user if the database shall be installed locally or remotely - db_input high zoneminder/debconf_dblocation || true - db_go || true - db_get zoneminder/debconf_dblocation - - if [ "$RET" = "local" ]; then - if [ ! -e "/usr/sbin/mysqld" ]; then - # Display a message and exit if the user want a local database but - # no database server is available - db_input high zoneminder/debconf_dblocalmissingerror || true - db_go || true - exit 0 - else - # Set the database server to localhost - dbc_dbserver="localhost" - fi - else - # Source the dbconfig main configuration file - if [ -f /etc/dbconfig-common/config ]; then - . /etc/dbconfig-common/config - fi - if [ "$dbc_remote_questions_default" = "false" ]; then - # Display a message and exit if the dbconfig configuration does not - # allow installation of remote databases - # Note: To overcome this issue, we could think to override the - # default setting by using dbc_remote_questions_default='true' in - # maintainer scripts but unfortunately this does not work due to - # current dbconfig design - # More information here: - # https://bugs.launchpad.net/ubuntu/+source/dbconfig-common/+bug/1065331 - db_input high zoneminder/debconf_dbconfigerror || true - db_go || true - exit 0 - fi - fi - - # Ask the user for all database settings - dbc_go zoneminder $@ - - # Ask the user for the password of the database administrator if the user - # has not yet answered to this question. - # This situation may occur if the user skipped the database creation step - # when reconfiguring the package. - RET="" - db_get zoneminder/mysql/admin-pass - if [ -z "$RET" ]; then - db_input high zoneminder/mysql/admin-pass || true - db_go || true - fi - - # Do this only when not upgrading the package (no old version in argument) - if [ -z "$2" ]; then - # Ask for the password of 'admin' user - while :; do - RET="" - db_input high zoneminder/admin_password || true - db_go || true - db_get zoneminder/admin_password - # If password isn't empty we ask for password verification - if [ -z "$RET" ]; then - db_fset zoneminder/admin_password seen false - db_fset zoneminder/admin_password_again seen false - break - fi - ROOT_PW="$RET" - db_input high zoneminder/admin_password_again || true - db_go || true - db_get zoneminder/admin_password_again - if [ "$RET" = "$ROOT_PW" ]; then - ROOT_PW="" - break - fi - db_fset zoneminder/password_mismatch seen false - db_input critical zoneminder/password_mismatch || true - db_set zoneminder/admin_password "" - db_set zoneminder/admin_password_again "" - db_go || true - done - else - # If we are upgrading the package, set an empty password to disable - # password update in ZoneMinder database - db_set zoneminder/admin_password "" - fi - # Set the seen flag to not ask this question again if no password is - # provided - db_fset zoneminder/admin_password seen true - -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-database.dirs b/distros/debian8/zoneminder-database.dirs deleted file mode 100644 index b37463a9e..000000000 --- a/distros/debian8/zoneminder-database.dirs +++ /dev/null @@ -1,3 +0,0 @@ -usr/share/zoneminder/db -usr/share/dbconfig-common/data/zoneminder/install -usr/share/dbconfig-common/data/zoneminder/upgrade/mysql diff --git a/distros/debian8/zoneminder-database.install b/distros/debian8/zoneminder-database.install deleted file mode 100644 index 756c5bbfa..000000000 --- a/distros/debian8/zoneminder-database.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/zoneminder/db diff --git a/distros/debian8/zoneminder-database.postinst b/distros/debian8/zoneminder-database.postinst deleted file mode 100644 index 41d4e5b5b..000000000 --- a/distros/debian8/zoneminder-database.postinst +++ /dev/null @@ -1,79 +0,0 @@ -#! /bin/sh -# postinst maintainer script for zoneminder-db package - -set -e - -# Source the debconf stuff -. /usr/share/debconf/confmodule - -mysql_update() { - - # Source the dbconfig stuff - . /usr/share/dbconfig-common/internal/mysql - - # Update the password of the hard-coded default 'admin' account - test -z $ADMIN_PASSWORD || dbc_mysql_exec_command "UPDATE Users SET Password = password('$ADMIN_PASSWORD') WHERE Username = 'admin';" || true - - # Update the database version - dbc_mysql_exec_command "UPDATE Config SET Value = '$DB_VERSION' WHERE Name = 'ZM_DYN_DB_VERSION';" || true -} - -if [ -f /usr/share/dbconfig-common/dpkg/postinst ]; then - - # Set the first version in which dbconfig-common was introduced in the package - dbc_first_version="1.28.0" - - # Set the database type - dbc_dbtypes="mysql" - - # Source the dbconfig-common stuff - . /usr/share/dbconfig-common/dpkg/postinst -fi - -# Do this when the package is installed, upgraded or reconfigured -if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then - - # Install sql database create file for dbconfig - # (needed at first package installation) - if [ ! -f /usr/share/dbconfig-common/data/zoneminder/install/mysql ]; then - install -m 644 /usr/share/zoneminder/db/zm_create.sql \ - /usr/share/dbconfig-common/data/zoneminder/install/mysql - # Remove unneeded sql requests - # dbconfig will create the underlying database - sed -i "/^ *CREATE DATABASE /d" \ - /usr/share/dbconfig-common/data/zoneminder/install/mysql - sed -i "/^ *USE /d" \ - /usr/share/dbconfig-common/data/zoneminder/install/mysql - fi - - # Symlink sql update files for dbconfig (needed when upgrading the package) - for sqlfile in /usr/share/zoneminder/db/zm_update-*.sql; do - lnk=`echo $sqlfile | sed "s/^\/usr\/share\/zoneminder\/db\/zm_update-\(.*\)\.sql/\1/"` - if [ ! -L /usr/share/dbconfig-common/data/zoneminder/upgrade/mysql/$lnk ]; then - ln -sf $sqlfile \ - /usr/share/dbconfig-common/data/zoneminder/upgrade/mysql/$lnk - fi - done || true - - # Create the underlying database and populate it - # dbconfig will take care of applying any updates which are newer than the - # previously installed version - dbc_go zoneminder $@ - - # Get the password of ZoneMinder user 'admin' from debconf - db_get zoneminder/admin_password - ADMIN_PASSWORD=$RET - - # Remove the password from debconf database - test -z $ADMIN_PASSWORD || db_reset zoneminder/admin_password || true - - # Get the lastest database version from dbconfig upgrade folder - DB_VERSION=$(ls -rv /usr/share/dbconfig-common/data/zoneminder/upgrade/$dbc_dbtypes | head -1) - - # Update the default admin account and database version - mysql_update -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-database.postrm b/distros/debian8/zoneminder-database.postrm deleted file mode 100644 index 231f01ad7..000000000 --- a/distros/debian8/zoneminder-database.postrm +++ /dev/null @@ -1,34 +0,0 @@ -#! /bin/sh -# postrm maintainer script for zoneminder-db package - -set -e - -# Source the debconf stuff -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule -fi - -# Source the dbconfig stuff -if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then - . /usr/share/dbconfig-common/dpkg/postrm - # Ask the user what do to with dbconfig when removing the package - dbc_go zoneminder $@ -fi - -if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then - # Remove dbconfig stuff added in postinst script - rm -rf /usr/share/dbconfig-common/data/zoneminder - # No need to manually remove the zm database, dbconfig take care of this -fi - -if [ "$1" = "purge" ]; then - # Delete a potential remaining file used in postinst script - rm -f /etc/zm/zm.conf.postinst.bak -fi - -#DEBHELPER# - -# postrm rm may freeze without that -db_stop - -exit 0 diff --git a/distros/debian8/zoneminder-database.prerm b/distros/debian8/zoneminder-database.prerm deleted file mode 100644 index 31786116a..000000000 --- a/distros/debian8/zoneminder-database.prerm +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# prerm script for zoneminder-db package - -set -e - -# Source the debconf stuff if file exists -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule -fi - -# If dbconfig-common is installed and has been used by zoneminder -if [ -f /usr/share/dbconfig-common/dpkg/prerm ] \ - && [ -f /etc/dbconfig-common/zoneminder.conf ]; then - # Source the dbconfig stuff - . /usr/share/dbconfig-common/dpkg/prerm - # Ask the user what do to with dbconfig before removing the package - dbc_go zoneminder $@ -fi - -# #DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-database.templates b/distros/debian8/zoneminder-database.templates deleted file mode 100644 index 4de4342f6..000000000 --- a/distros/debian8/zoneminder-database.templates +++ /dev/null @@ -1,58 +0,0 @@ -Template: zoneminder/debconf_dblocation -Type: select -__Choices: local, remote -Default: local -_Description: Database location: - A database server is required to run ZoneMinder. The database can be installed - either locally or remotely on a machine of your network. - . - If you choose a remote location, you will have to select the 'tcp/ip' - connection method and enter the hostname or ip address of the remote machine - in the next configuration screens. - -Template: zoneminder/debconf_dblocalmissingerror -Type: error -_Description: No local database server is available: - Currently ZoneMinder supports mysql or mariadb database server but none of them - appears to be installed on this machine. - . - In order to complete ZoneMinder's installation, after ending of this assistant, - please install a compatible database server and then restart the assistant by - invoking: - . - $ sudo dpkg-reconfigure zoneminder - -Template: zoneminder/debconf_dbconfigerror -Type: error -_Description: Remote database servers are not allowed: - The current configuration of dbconfig-common does not allow installation of - a database on remote servers. - . - In order to reconfigure dbconfig-common, please invoke the following command - after ending of this assistant: - . - $ sudo dpkg-reconfigure dbconfig-common - . - Then, to complete ZoneMinder's installation, please restart this assistant by - invoking: - . - $ sudo dpkg-reconfigure zoneminder - -Template: zoneminder/admin_password -Type: password -_Description: New password for the ZoneMinder 'admin' user: - Please enter the password of the default administrative user. - . - While not mandatory, it is highly recommended that you set a custom password - for the administrative 'admin' user. - . - If this field is left blank, the password will not be changed. - -Template: zoneminder/admin_password_again -Type: password -_Description: Repeat password for the ZoneMinder 'admin' user: - -Template: zoneminder/password_mismatch -Type: error -_Description: Password input error - The two passwords you entered were not the same. Please try again. diff --git a/distros/debian8/zoneminder-ui-base.config b/distros/debian8/zoneminder-ui-base.config deleted file mode 100644 index 2660208a8..000000000 --- a/distros/debian8/zoneminder-ui-base.config +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# config maintainer script for zoneminder-ui-base package - -set -e - -# Source the debconf stuff -. /usr/share/debconf/confmodule - -# Do this when the package is installed, upgraded or reconfigured -# Most of answers are cached so the questions will not be asked again -if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then - - # Ask the user for the web server(s) to configure - db_input high zoneminder/webserver || true - db_go || true -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-ui-base.install b/distros/debian8/zoneminder-ui-base.install deleted file mode 100644 index f72b569be..000000000 --- a/distros/debian8/zoneminder-ui-base.install +++ /dev/null @@ -1,11 +0,0 @@ -debian/apache.conf etc/zm -usr/lib/cgi-bin -usr/share/zoneminder/ajax -usr/share/zoneminder/css -usr/share/zoneminder/graphics -usr/share/zoneminder/includes -usr/share/zoneminder/index.php -usr/share/zoneminder/js -usr/share/zoneminder/lang -usr/share/zoneminder/tools -usr/share/zoneminder/views diff --git a/distros/debian8/zoneminder-ui-base.links b/distros/debian8/zoneminder-ui-base.links deleted file mode 100644 index b00a147d6..000000000 --- a/distros/debian8/zoneminder-ui-base.links +++ /dev/null @@ -1 +0,0 @@ -usr/lib/cgi-bin usr/share/zoneminder/cgi-bin diff --git a/distros/debian8/zoneminder-ui-base.postinst b/distros/debian8/zoneminder-ui-base.postinst deleted file mode 100644 index a5bce3c98..000000000 --- a/distros/debian8/zoneminder-ui-base.postinst +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/sh -# postinst maintainer script for zoneminder-ui-base package - -set -e - -# Source the debconf stuff -. /usr/share/debconf/confmodule - -apache_install() { - - mkdir -p /etc/apache2/conf-available - ln -sf ../../zm/apache.conf /etc/apache2/conf-available/zoneminder.conf - - COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) - - if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then - . /usr/share/apache2/apache2-maintscript-helper - apache2_invoke enconf zoneminder - elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then - [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/zoneminder.conf ] && ln -s ../conf-available/zoneminder.conf /etc/apache2/conf.d/zoneminder.conf - fi - - # Enable CGI script module in apache (not enabled by default on jessie) - a2enmod cgi >/dev/null 2>&1 - - # Reload the web server - deb-systemd-invoke reload apache2.service || true -} - -# Do this when the package is installed, upgraded or reconfigured -if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then - - # Configure the web server - db_get zoneminder/webserver - webservers="$RET" - - for webserver in $webservers; do - webserver=${webserver%,} - # Currently we only support apache2 - if [ "$webserver" = "apache2" ] ; then - apache_install $1 - fi - done -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian8/zoneminder-ui-base.postrm b/distros/debian8/zoneminder-ui-base.postrm deleted file mode 100644 index fd4d0d6d8..000000000 --- a/distros/debian8/zoneminder-ui-base.postrm +++ /dev/null @@ -1,41 +0,0 @@ -#! /bin/sh -# postrm maintainer script for zoneminder-ui-base package - -set -e - -# Source the debconf stuff -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule -fi - -apache_remove() { - COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true) - if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then - . /usr/share/apache2/apache2-maintscript-helper - apache2_invoke disconf zoneminder - elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then - rm -f /etc/apache2/conf.d/zoneminder.conf - fi - rm -f /etc/apache2/conf-available/zoneminder.conf - # Reload the web server - deb-systemd-invoke reload apache2.service || true -} - -if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then - # Deconfigure the web server - db_get zoneminder/webserver || true - for webserver in $RET; do - webserver=${webserver%,} - # Currently we only support apache2 - if [ "$webserver" = "apache2" ] ; then - apache_remove $1 - fi - done -fi - -#DEBHELPER# - -# postrm rm may freeze without that -db_stop - -exit 0 diff --git a/distros/debian8/zoneminder-ui-base.templates b/distros/debian8/zoneminder-ui-base.templates deleted file mode 100644 index 31e70277f..000000000 --- a/distros/debian8/zoneminder-ui-base.templates +++ /dev/null @@ -1,7 +0,0 @@ -Template: zoneminder/webserver -Type: multiselect -Choices: apache2 -Default: apache2 -_Description: Web server to reconfigure automatically: - Please choose the web server that should be automatically configured for - ZoneMinder's web portal access. diff --git a/distros/debian8/zoneminder-ui-classic.install b/distros/debian8/zoneminder-ui-classic.install deleted file mode 100644 index 9532d9dc9..000000000 --- a/distros/debian8/zoneminder-ui-classic.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/zoneminder/skins/classic diff --git a/distros/debian8/zoneminder-ui-mobile.install b/distros/debian8/zoneminder-ui-mobile.install deleted file mode 100644 index 464bb74eb..000000000 --- a/distros/debian8/zoneminder-ui-mobile.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/zoneminder/skins/mobile diff --git a/distros/debian8/zoneminder-ui-xml.install b/distros/debian8/zoneminder-ui-xml.install deleted file mode 100644 index 6617707f8..000000000 --- a/distros/debian8/zoneminder-ui-xml.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/zoneminder/skins/xml diff --git a/distros/debian_cmake/README.Debian b/distros/debian_cmake/README.Debian deleted file mode 100644 index a49b6be72..000000000 --- a/distros/debian_cmake/README.Debian +++ /dev/null @@ -1,51 +0,0 @@ -zoneminder for Debian ---------------------- - -There is one manual step to get the web interface working. -You need to link /etc/zm/apache.conf to /etc/apache2/conf.d/zoneminder.conf, -then reload the apache config (i.e. /etc/init.d/apache2 reload) - -Changing the location for images and events -------------------------------------------- - -Zoneminder, in its upstream form, stores data in /usr/share/zoneminder/. This -package modifies that by changing /usr/share/zoneminder/images and -/usr/share/zoneminder/events to symlinks to directories under -/var/cache/zoneminder. - -There are numerous places these could be put and ways to do it. But, at the -moment, if you change this, an upgrade will fail with a warning about these -locations having changed (the reason for this was that previously, an upgrade -would silently revert the changes and cause event loss - refer -bug #608793). - -If you do want to change the location, here are a couple of suggestions. - -These lines would mount /dev/sdX1 to /video_storage, and then 'link' /video_storage -to the locations that ZoneMinder expects them to be at. - - /dev/sdX1 /video_storage ext4 defaults 0 2 - /video_storage/zoneminder/images /var/cache/zoneminder/images none bind 0 2 - /video_storage/zoneminder/events /var/cache/zoneminder/events none bind 0 2 - - or if you have a separate partition for each: - - /dev/sdX1 /var/cache/zoneminder/images ext4 defaults 0 2 - /dev/sdX2 /var/cache/zoneminder/events ext4 defaults 0 2 - - - - -- Peter Howard , Sun, 16 Jan 2010 01:35:51 +1100 - -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 Sun, 27 Mar 2011 13:06:56 -0700 diff --git a/distros/debian_cmake/apache.conf b/distros/debian_cmake/apache.conf deleted file mode 100644 index 965c67f86..000000000 --- a/distros/debian_cmake/apache.conf +++ /dev/null @@ -1,9 +0,0 @@ -Alias /zm /usr/share/zoneminder/www - - - php_flag register_globals off - Options Indexes FollowSymLinks - - DirectoryIndex index.php - - diff --git a/distros/debian_cmake/changelog b/distros/debian_cmake/changelog deleted file mode 100644 index 46f1e2bd9..000000000 --- a/distros/debian_cmake/changelog +++ /dev/null @@ -1,47 +0,0 @@ -zoneminder (1.28.108-nmu2015100101) wheezy; urgency=low - - * - - -- Isaac Connor Thu, 01 Oct 2015 18:20:29 +0000 - -zoneminder (1.28.107-nmu2015092401) wheezy; urgency=low - - * - - -- Isaac Connor Thu, 24 Sep 2015 14:15:46 +0000 - -zoneminder (1.28.1+106-nmu2015091001) wheezy; urgency=low - - * - - -- Isaac Connor Thu, 10 Sep 2015 18:03:43 +0000 - -zoneminder (1.28.0-0.1) wheezy; urgency=low - - * Use CMake instead of Autotools to simplify - debian/rules and have less build-depends. - * Some lintian love in debian/{control,copyright} - and perl ZoneMinder modules. - * Don't purge database if we use a remote - MySQL server. - - -- Cosme Domínguez Díaz Sun, 09 Nov 2014 02:20:20 +0100 - -zoneminder (1.28.0-wheezy) wheezy; urgency=medium - - * Release - - -- Isaac Connor Fri, 17 Oct 2014 09:27:22 -0400 - -zoneminder (1.27.99+1-testing-SNAPSHOT2014072901) testing; urgency=medium - - * improve error messages - * Make zmupdate re-run the most recent patch so that people running the daily builds get their db updates - - -- Isaac Connor Tue, 29 Jul 2014 14:50:20 -0400 - -zoneminder (1.27.0+1-testing-v4ltomonitor-1) testing; urgency=high - - * Snapshot release - - - -- Isaac Connor Wed, 09 Jul 2014 21:35:29 -0400 diff --git a/distros/debian_cmake/compat b/distros/debian_cmake/compat deleted file mode 100644 index ec635144f..000000000 --- a/distros/debian_cmake/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/distros/debian_cmake/control b/distros/debian_cmake/control deleted file mode 100644 index 4c4d405e9..000000000 --- a/distros/debian_cmake/control +++ /dev/null @@ -1,40 +0,0 @@ -Source: zoneminder -Section: net -Priority: optional -Maintainer: Isaac Connor -Build-Depends: debhelper (>= 9), cmake, libphp-serialization-perl, libgnutls-dev, libmysqlclient-dev | libmariadbclient-dev, libdbd-mysql-perl, libdate-manip-perl, libwww-perl, libjpeg8-dev, libpcre3-dev, libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev, libv4l-dev (>= 0.8.3), libbz2-dev, libsys-mmap-perl, libav-tools, libnetpbm10-dev, libavdevice-dev, libdevice-serialport-perl, libarchive-zip-perl, libmime-lite-perl, libvlccore-dev, libvlc-dev, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libgcrypt11-dev, libpolkit-gobject-1-dev -Standards-Version: 3.9.4 - -Package: zoneminder -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, apache2 | httpd, libapache2-mod-php5 | libapache2-mod-fcgid | php5-fpm, php5-mysqlnd | php5-mysql, libphp-serialization-perl, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, mariadb-client | mysql-client, libwww-perl, libarchive-tar-perl, libarchive-zip-perl, libdevice-serialport-perl, libpcre3, libav-tools, rsyslog | system-log-daemon, libmodule-load-perl, libsys-mmap-perl, libjson-any-perl, netpbm, libavdevice53, libjpeg8, zip, libnet-sftp-foreign-perl, libio-pty-perl, libexpect-perl, libvlccore5 | libvlccore7, libvlc5, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libpolkit-gobject-1-0, php5-gd -Recommends: mysql-server | mariadb-server -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: zoneminder-dbg -Architecture: any -Section: debug -Priority: extra -Depends: zoneminder (= ${binary:Version}), ${misc:Depends} -Description: Debugging symbols for zoneminder. - ZoneMinder is a 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. diff --git a/distros/debian_cmake/copyright b/distros/debian_cmake/copyright deleted file mode 100644 index 1c10c59db..000000000 --- a/distros/debian_cmake/copyright +++ /dev/null @@ -1,57 +0,0 @@ -Copyright: - -Copyright 2002 Philip Coombes - -License: - -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 - -On Debian GNU/Linux systems, the text of the GPL can be found in -/usr/share/common-licenses/GPL. - -/usr/share/zoneminder/api/lib/Cake/*: -Copyright: - -Copyright (c) 2005-2013, Cake Software Foundation, Inc. - -License: - -CakePHP(tm) : The Rapid Development PHP Framework (http://cakephp.org) - -The MIT License - -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. - -Cake Software Foundation, Inc. -1785 E. Sahara Avenue, -Suite 490-204 -Las Vegas, Nevada 89104, -United States of America. diff --git a/distros/debian_cmake/dirs b/distros/debian_cmake/dirs deleted file mode 100644 index 9e29e6113..000000000 --- a/distros/debian_cmake/dirs +++ /dev/null @@ -1,5 +0,0 @@ -var/log/zm -var/lib/zm -var/cache/zoneminder/events -var/cache/zoneminder/images -var/cache/zoneminder/temp diff --git a/distros/debian_cmake/docs b/distros/debian_cmake/docs deleted file mode 100644 index b43bf86b5..000000000 --- a/distros/debian_cmake/docs +++ /dev/null @@ -1 +0,0 @@ -README.md diff --git a/distros/debian_cmake/init.d b/distros/debian_cmake/init.d deleted file mode 100644 index 036bb695d..000000000 --- a/distros/debian_cmake/init.d +++ /dev/null @@ -1,88 +0,0 @@ -#!/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 -### END INIT INFO -# description: Control ZoneMinder as a Service -# chkconfig: 2345 20 20 - -# Source function library. -#. /etc/rc.d/init.d/functions - -prog=ZoneMinder -ZM_PATH_BIN="/usr/bin" -RUNDIR=/var/run/zm -TMPDIR=/tmp/zm -command="$ZM_PATH_BIN/zmpkg.pl" - -start() { - echo -n "Starting $prog: " - export TZ=:/etc/localtime - mkdir -p $RUNDIR $TMPDIR && chown www-data:www-data $RUNDIR $TMPDIR - $command start - RETVAL=$? - [ $RETVAL = 0 ] && echo success || 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 || 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 diff --git a/distros/debian_cmake/install b/distros/debian_cmake/install deleted file mode 100644 index 97c5f7a03..000000000 --- a/distros/debian_cmake/install +++ /dev/null @@ -1,8 +0,0 @@ -usr/bin -usr/lib/zoneminder/cgi-bin -usr/share/man -usr/share/perl5/ZoneMinder -usr/share/perl5/ZoneMinder.pm -usr/share/zoneminder/db -usr/share/zoneminder/www -etc/zm diff --git a/distros/debian_cmake/links b/distros/debian_cmake/links deleted file mode 100644 index 5560a100a..000000000 --- a/distros/debian_cmake/links +++ /dev/null @@ -1,3 +0,0 @@ -var/cache/zoneminder/events usr/share/zoneminder/events -var/cache/zoneminder/images usr/share/zoneminder/images -var/cache/zoneminder/temp usr/share/zoneminder/temp diff --git a/distros/debian_cmake/postinst b/distros/debian_cmake/postinst deleted file mode 100644 index d06f9c641..000000000 --- a/distros/debian_cmake/postinst +++ /dev/null @@ -1,53 +0,0 @@ -#! /bin/sh - -set -e - -if [ "$1" = "configure" ]; 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 - echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - fi - - invoke-rc.d zoneminder stop || true - zmupdate.pl --nointeractive - - 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 - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - if [ -z "$2" ]; then - chown www-data:www-data -R /var/cache/zoneminder - fi -fi -# Ensure zoneminder is stopped... -if [ -x "/etc/init.d/zoneminder" ]; then - if invoke-rc.d zoneminder status ; then - invoke-rc.d zoneminder stop || exit $? - fi -fi - -if [ "$1" = "configure" ]; then - if [ -z "$2" ]; then - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - chown www-data:www-data -R /var/cache/zoneminder - else - chown www-data:www-data /var/log/zm - zmupdate.pl - fi -fi -#DEBHELPER# diff --git a/distros/debian_cmake/postrm b/distros/debian_cmake/postrm deleted file mode 100644 index fde590981..000000000 --- a/distros/debian_cmake/postrm +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh -set -e - -if [ "$1" = "purge" ]; then - if [ -e "/etc/init.d/mysql" ]; then - echo 'delete from user where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - echo 'delete from db where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm - fi -fi -#DEBHELPER# diff --git a/distros/debian_cmake/preinst b/distros/debian_cmake/preinst deleted file mode 100644 index 6cd01ba55..000000000 --- a/distros/debian_cmake/preinst +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -set -e - -abort=false -if [ -L /usr/share/zoneminder/events ]; then - l=$(readlink /usr/share/zoneminder/events) - if [ "$l" != "/var/cache/zoneminder/events" ]; then - abort=true - fi -fi -if [ -L /usr/share/zoneminder/images ]; then - l=$(readlink /usr/share/zoneminder/images ) - if [ "$l" != "/var/cache/zoneminder/images" ]; then - abort=true - fi -fi - -if [ "$abort" = "true" ]; then - cat >&2 << EOF -Aborting installation of zoneminder due to non-default symlinks in -/usr/share/zoneminder for the images and/or events directory, which could -result in loss of data. Please move your data in each of these directories to -/var/cache/zoneminder before installing zoneminder from the package. -EOF - exit 1 - -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/debian_cmake/rules b/distros/debian_cmake/rules deleted file mode 100755 index 4bdc7cb0c..000000000 --- a/distros/debian_cmake/rules +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -export CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe -export CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe -INSTDIR = debian/tmp - -override_dh_auto_configure: - dh_auto_configure -- \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_SKIP_RPATH=ON \ - -DCMAKE_VERBOSE_MAKEFILE=OFF \ - -DCMAKE_COLOR_MAKEFILE=ON \ - -DZM_RUNDIR=/var/run/zm \ - -DZM_SOCKDIR=/var/run/zm \ - -DZM_TMPDIR=/var/tmp/zm \ - -DZM_LOGDIR=/var/log/zm \ - -DZM_WEBDIR=/usr/share/zoneminder/www \ - -DZM_CONTENTDIR=/var/cache/zoneminder \ - -DZM_CGIDIR=/usr/lib/zoneminder/cgi-bin \ - -DZM_WEB_USER=www-data \ - -DZM_WEB_GROUP=www-data \ - -DCMAKE_INSTALL_SYSCONFDIR=etc/zm - -override_dh_auto_install: - dh_auto_install --buildsystem=cmake - install -D -m 0644 debian/apache.conf $(INSTDIR)/etc/zm/apache.conf - rm $(INSTDIR)/usr/share/zoneminder/api/lib/Cake/LICENSE.txt - rm $(INSTDIR)/usr/share/zoneminder/api/.gitignore - rm -r $(INSTDIR)/usr/share/zoneminder/api/lib/Cake/Test - -override_dh_auto_test: - # do not run tests... - -override_dh_strip: - dh_strip --dbg-package=zoneminder-dbg - -%: - dh $@ --buildsystem=cmake --parallel diff --git a/distros/debian_cmake/watch b/distros/debian_cmake/watch deleted file mode 100644 index 5a8a9c4d7..000000000 --- a/distros/debian_cmake/watch +++ /dev/null @@ -1,3 +0,0 @@ -version=3 -http://www.zoneminder.com/downloads.html \ - .*/ZoneMinder-(.*).tar.gz diff --git a/distros/fedora/README.Fedora b/distros/fedora/README.Fedora index 18d091772..74386c9df 100644 --- a/distros/fedora/README.Fedora +++ b/distros/fedora/README.Fedora @@ -42,7 +42,7 @@ New installs mysqladmin -uroot -p reload The database account credentials, zmuser/zmpass, are arbitrary. Set them to - anything that suits your envinroment. + anything that suits your environment. 3. If you have chosen to change the zoneminder database account credentials to something other than zmuser/zmpass, you must now edit /etc/zm/zm.conf. diff --git a/distros/fedora/archive/zoneminder.cmake.f19.spec b/distros/fedora/archive/zoneminder.cmake.f19.spec index 771209247..0af88f41f 100644 --- a/distros/fedora/archive/zoneminder.cmake.f19.spec +++ b/distros/fedora/archive/zoneminder.cmake.f19.spec @@ -140,7 +140,6 @@ fi # zmfix removed from zoneminder 1.26.6 #%attr(4755,root,root) %{_bindir}/zmfix %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu diff --git a/distros/fedora/archive/zoneminder.f19.spec b/distros/fedora/archive/zoneminder.f19.spec index 11a8ba249..d1be12aa2 100644 --- a/distros/fedora/archive/zoneminder.f19.spec +++ b/distros/fedora/archive/zoneminder.f19.spec @@ -232,7 +232,6 @@ fi # zmfix removed from zoneminder 1.26.6 #%attr(4755,root,root) %{_bindir}/zmfix %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu diff --git a/distros/fedora/archive/zoneminder.f20.spec b/distros/fedora/archive/zoneminder.f20.spec index b06db673d..513a9cfee 100644 --- a/distros/fedora/archive/zoneminder.f20.spec +++ b/distros/fedora/archive/zoneminder.f20.spec @@ -142,7 +142,6 @@ fi %{_bindir}/zmf %{_bindir}/zmfilter.pl %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu diff --git a/distros/fedora/archive/zoneminder.f21.spec b/distros/fedora/archive/zoneminder.f21.spec index 6dfabceea..35662bf6c 100644 --- a/distros/fedora/archive/zoneminder.f21.spec +++ b/distros/fedora/archive/zoneminder.f21.spec @@ -142,7 +142,6 @@ fi %{_bindir}/zmf %{_bindir}/zmfilter.pl %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu diff --git a/distros/fedora/zonemidner.f22.spec b/distros/fedora/zoneminder.f22.spec similarity index 100% rename from distros/fedora/zonemidner.f22.spec rename to distros/fedora/zoneminder.f22.spec diff --git a/distros/fedora/zoneminder.f23.spec b/distros/fedora/zoneminder.f23.spec index 435a3ba58..5335b90cc 100644 --- a/distros/fedora/zoneminder.f23.spec +++ b/distros/fedora/zoneminder.f23.spec @@ -163,7 +163,6 @@ fi %{_bindir}/zmf %{_bindir}/zmfilter.pl %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu @@ -180,6 +179,7 @@ fi %{perl_vendorlib}/ONVIF* %{perl_vendorlib}/WSDiscovery* %{perl_vendorlib}/WSSecurity* +%{perl_vendorlib}/WSNotification* %{_mandir}/man*/* %dir %{_libexecdir}/zoneminder %{_libexecdir}/zoneminder/cgi-bin diff --git a/distros/redhat/README.CentOS b/distros/redhat/README.CentOS index 35718a691..2cdaea68e 100644 --- a/distros/redhat/README.CentOS +++ b/distros/redhat/README.CentOS @@ -34,7 +34,7 @@ New installs mysqladmin -uroot -p reload The database account credentials, zmuser/zmpass, are arbitrary. Set them to - anything that suits your envinroment. + anything that suits your environment. 3. If you have chosen to change the zoneminder mysql credentials to something other than zmuser/zmpass then you must now edit /etc/zm.conf. Change diff --git a/distros/redhat/README.Centos7 b/distros/redhat/README.Centos7 index de0bd52d6..47ec542ac 100644 --- a/distros/redhat/README.Centos7 +++ b/distros/redhat/README.Centos7 @@ -40,7 +40,7 @@ New installs mysqladmin -uroot -p reload The database account credentials, zmuser/zmpass, are arbitrary. Set them to - anything that suits your envinroment. + anything that suits your environment. 3. If you have chosen to change the zoneminder database account credentials to something other than zmuser/zmpass, you must now edit /etc/zm/zm.conf. diff --git a/distros/redhat/archive/zoneminder.el6.spec b/distros/redhat/archive/zoneminder.el6.spec index d61a153e7..46bce099a 100644 --- a/distros/redhat/archive/zoneminder.el6.spec +++ b/distros/redhat/archive/zoneminder.el6.spec @@ -237,7 +237,6 @@ fi # zmfix removed from zoneminder 1.26.6 #%attr(4755,root,root) %{_bindir}/zmfix %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu diff --git a/distros/redhat/zoneminder.el6.spec b/distros/redhat/zoneminder.el6.spec index 69e3b972f..0b7770b50 100644 --- a/distros/redhat/zoneminder.el6.spec +++ b/distros/redhat/zoneminder.el6.spec @@ -150,7 +150,6 @@ rm -rf %{_docdir}/%{name}-%{version} %{_bindir}/zmf %{_bindir}/zmfilter.pl %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu @@ -169,6 +168,7 @@ rm -rf %{_docdir}/%{name}-%{version} %{perl_vendorlib}/ONVIF* %{perl_vendorlib}/WSDiscovery* %{perl_vendorlib}/WSSecurity* +%{perl_vendorlib}/WSNotification* %{_mandir}/man*/* %dir %{_libexecdir}/%{name} %{_libexecdir}/%{name}/cgi-bin diff --git a/distros/redhat/zoneminder.el7.spec b/distros/redhat/zoneminder.el7.spec index 485c214c2..b72e0bbe7 100644 --- a/distros/redhat/zoneminder.el7.spec +++ b/distros/redhat/zoneminder.el7.spec @@ -159,7 +159,6 @@ fi %{_bindir}/zmf %{_bindir}/zmfilter.pl %{_bindir}/zmpkg.pl -%{_bindir}/zmstreamer %{_bindir}/zmtrack.pl %{_bindir}/zmtrigger.pl %{_bindir}/zmu @@ -178,6 +177,7 @@ fi %{perl_vendorlib}/ONVIF* %{perl_vendorlib}/WSDiscovery* %{perl_vendorlib}/WSSecurity* +%{perl_vendorlib}/WSNotification* %{_mandir}/man*/* %dir %{_libexecdir}/zoneminder %{_libexecdir}/zoneminder/cgi-bin diff --git a/distros/ubuntu1204_cmake/NEWS b/distros/ubuntu1204/NEWS similarity index 100% rename from distros/ubuntu1204_cmake/NEWS rename to distros/ubuntu1204/NEWS diff --git a/distros/ubuntu1204/README.Debian b/distros/ubuntu1204/README.Debian index b8ea413e3..2ba809fe4 100644 --- a/distros/ubuntu1204/README.Debian +++ b/distros/ubuntu1204/README.Debian @@ -1,9 +1,120 @@ -zoneminder for Debian +Zoneminder for Debian --------------------- -There is one manual step to get the web interface working. -You need to link /etc/zm/apache.conf to /etc/apache2/conf.d/zoneminder.conf, -then reload the apache config (i.e. /etc/init.d/apache2 reload) +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,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 +------------------ + +Prior to 1.28.1 database upgrade was performed automatically. +"zoneminder" service will refuse to start with outdated database. + +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 starting automatically and need to be +manually activated once database is configured: + +On systemd: + + sudo systemctl enable zoneminder.service + +On SysV: + + sudo update-rc.d zoneminder enable + + +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 "php5-fpm" package to support PHP and "fcgiwrap" package +for binary "cgi-bin" applications: + + sudo apt-get install php5-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 ------------------------------------------- @@ -33,19 +144,17 @@ These lines in fstab could allow you to bind-mount an alternate location /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2 - - -- Peter Howard , Sun, 16 Jan 2010 01:35:51 +1100 Access to /dev/video* --------------------- -For cameras which require access to /dev/video*, zoneminder may need the +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 +Note that all web applications running on the zoneminder server will then have access to all video devices on the system. -- Vagrant Cascadian Sun, 27 Mar 2011 13:06:56 -0700 diff --git a/distros/ubuntu1204_cmake/TODO.Debian b/distros/ubuntu1204/TODO.Debian similarity index 100% rename from distros/ubuntu1204_cmake/TODO.Debian rename to distros/ubuntu1204/TODO.Debian diff --git a/distros/ubuntu1204/apache.conf b/distros/ubuntu1204/apache.conf deleted file mode 100644 index 262db423f..000000000 --- a/distros/ubuntu1204/apache.conf +++ /dev/null @@ -1,21 +0,0 @@ -Alias /zm /usr/share/zoneminder/www - - - - Options +ExecCGI - AllowOverride All - AddHandler fcgid-script .php - FCGIWrapper /usr/bin/php5-cgi - Order allow,deny - Allow from all - - - - - php_flag register_globals off - Options Indexes FollowSymLinks - - DirectoryIndex index.php - - - diff --git a/distros/ubuntu1204/changelog b/distros/ubuntu1204/changelog index 1a5ab6ee9..74cf1d0b8 100644 --- a/distros/ubuntu1204/changelog +++ b/distros/ubuntu1204/changelog @@ -1,99 +1,573 @@ -zoneminder (1.28.1+1-trusty-SNAPSHOT2015071501) trusty; urgency=medium +zoneminder (1.28.1+1-vivid-SNAPSHOT2015081701) vivid; urgency=medium - * fix for issue #586 and #932 - * fix for db not being upgraded - * version upgraded to .100 + * include api, switch to cmake build - -- Isaac Connor Wed, 15 Jul 2015 11:56:28 -0400 -zoneminder (1.28.1+1-trusty-SNAPSHOT2015030201ubuntu1) UNRELEASED; urgency=medium + -- Isaac Connor Mon, 17 Aug 2015 10:29:23 -0400 - * add h264 - -- Isaac Connor Fri, 27 Mar 2015 10:08:27 -0400 +zoneminder (1.28.1-8) unstable; urgency=medium -zoneminder (1.28.1+1-trusty-SNAPSHOT2015030201) trusty; urgency=medium + * Patchworks: + + New upstream "980-fix-image-size.patch". + + New "default_cgi-path.patch" to correct default ZM_PATH_ZMS. + * postinst: set "root" as group owner for "/var/log/zm" to silence + logrotate warnings. + * Minor correction to README.Debian. - * maybe fix for RTSP Basic Auth - * Also remove dependency on netpbm + -- Dmitry Smirnov Sun, 16 Aug 2015 19:19:50 +1000 - -- Isaac Connor Mon, 02 Mar 2015 11:25:59 -0500 +zoneminder (1.28.1-7) unstable; urgency=medium -zoneminder (1.28.1+1-utopic-SNAPSHOT2015022301) utopic; urgency=medium + * Build-Depends += "cakephp (<< 3.0.0~)"; + Zoneminder is not compatible with latest CakePHP. + * Handle conffile removal from maintscript. + * rules: build man pages reproducibly. + * gbp.conf: renamed old style config section [git-dch] to [dch]. + * README + + added instructions to update owner of the "/etc/zm/zm.conf" + (Closes: #789327). + + zmupdate.pl needs CREATE rights. + + added note about required number of "fcgiwrap" workers. + * New upstream patch: "zmtrigger-plus.patch". - * Big merge of onvif support and some fixes. + -- Dmitry Smirnov Mon, 20 Jul 2015 16:30:15 +1000 - -- Isaac Connor Mon, 23 Feb 2015 19:45:45 -0500 +zoneminder (1.28.1-6) unstable; urgency=low -zoneminder (1.28.0+1-trusty-SNAPSHOT2015021201) trusty; urgency=medium + * New "zoneminder-doc" and "zoneminder-dbg" packages. - * add mysql-client-5.6 as a dependency instaed of mysql-client. + -- Dmitry Smirnov Sun, 19 Apr 2015 14:50:41 +1000 - -- Isaac Connor Fri, 13 Feb 2015 09:35:13 -0500 +zoneminder (1.28.1-5) unstable; urgency=low -zoneminder (1.28.0+1-trusty-SNAPSHOT2015011101) trusty; urgency=medium + * Move handling of "/var/run/zm" and "/tmp/zm" from .service into .tmpfile. + Let dh_installinit do the job. Thanks, Andrew Bauer. + * Use dh_apache2 to install Apache conf file; remove old conf and symlink. + * Promote "libapache2-mod-php5 | php5-fpm" to Recommends. + * Build-Depends: + + dh-linktree + + cakephp (>= 2.6.3) + + libjs-jquery + + libjs-mootools + * Depends: + - libjs-jquery + - libjs-mootools + * Build-time replace bundled CakePHP with system one using "dh-linktree". + * Use "dh-linktree" to handle mootools and jquery symlinks. - * small changes + -- Dmitry Smirnov Sun, 19 Apr 2015 11:45:01 +1000 - -- Isaac Connor Fri, 12 Dec 2014 16:38:36 -0500 +zoneminder (1.28.1-4) unstable; urgency=low -zoneminder (1.28.0+1-utopic-SNAPSHOT2014112001) utopic; urgency=medium + * New patch to fix HTML export with USE_DEEP_STORAGE (closes: #723706). + * New "783.patch" to describe potential data loss in ZM_USE_DEEP_STORAGE. + * New patch to change default date format to region-neutral ISO notation + with time zone. + * Build sphinx documentation: + + Install "zoneminder.1" man page. + + Build-Depends += "python-sphinx | python3-sphinx" + + Added commented "zoneminder-doc" package. + + Added "docs.patch" to unlink distro-specific installation docs. + * rules: + + set ZM_CONTENTDIR, ZM_SOCKDIR and ZM_TMPDIR. + + remove mistakengly installed Perl module templates. + * Updated startup scripts to create ZM_TMPDIR. + * Hurd improvements: + + New patch to add PATH_MAX definitions. + + Build without MMAP support on Hurd. + + libsys-mmap-perl [!hurd-any]. - * Various fixes and developments since 1.28.0. Includes Digest-Auth for HTTP and better for RTSP + -- Dmitry Smirnov Mon, 06 Apr 2015 18:18:55 +1000 - -- Isaac Connor Thu, 20 Nov 2014 10:57:57 -0500 +zoneminder (1.28.1-3) unstable; urgency=low -zoneminder (1.28.0-trusty) trusty; urgency=medium + * Updated Apache2 and nginx configuration templates to support CGI. + * Updated README.Debian to document cgi-bin setup. + * Removed "/usr/share/zoneminder/www/cgi-bin" symlink. + * Added "apache2.patch" to correct Apache2 site configuration example. + * control: Suggests += "fcgiwrap". + * rules: added dh_systemd overrides to prevent automatic service + activation and start. + * Added note about manual service activation to README.Debian + (Closes: #781733). - * Release + -- Dmitry Smirnov Thu, 02 Apr 2015 23:20:20 +1100 - -- Isaac Connor Fri, 17 Oct 2014 09:25:55 -0400 +zoneminder (1.28.1-2) unstable; urgency=low -zoneminder (1.27.99+1-trusty-SNAPSHOT2014101401) trusty; urgency=medium + * Removed word "Linux" from short package description. + * Build-Depends: do not require "libv4l-dev" on Hurd i.e. [!hurd-any]. + * Added run-time Perl Depends: + + libdbd-mysql-perl + + libimage-info-perl + + libmodule-load-conditional-perl + + libnet-sftp-foreign-perl + + liburi-encode-perl + * Prepare for package split: added commented "libzoneminder-perl" + and "zoneminder-dbg" packages to "debian/control". + * rules: do not install worthless ".packlist" file. + * Updated "libv4l1-videodev.h.patch" to fix v4lv1 detection in CMake. - * Several PR merges in big push for 1.28.0 + -- Dmitry Smirnov Thu, 02 Apr 2015 13:25:19 +1100 - -- Isaac Connor Tue, 14 Oct 2014 09:28:29 -0400 +zoneminder (1.28.1-1) unstable; urgency=low -zoneminder (1.27.99+1-trusty-SNAPSHOT2014092601) trusty; urgency=medium + [ Dmitry Smirnov ] + * New upstream release [February 2015]. + * Upload to unstable. + * Disabled automatic database upgrades: post(inst|rm) scripts no longer + touch database or do unexpected stuff (Closes: #779254). + See README.Debian for details. + * Updated installation paths: + + /usr/share/zoneminder --> /usr/share/zoneminder/www + + /usr/lib/cgi-bin --> /usr/lib/zoneminder/cgi-bin + * Added logrotate config (Closes: #544826). + Thanks, Alberto Reyes. + * Native systemd service; "--with systemd" added to dh. + * Build with CMake instead of autoconf; rules clean-up. + * Build with all hardening. + * Build and install "zmupdate.pl.1" man page. + * Added nginx/php5-fpm configuration example. + * Install upstream "apache.conf" example. + * Described setup of Zoneminer web site and database in README.Debian. + * Install "/etc/zm/zm.conf" with tighter permissions. + * Added TODO.Debian. + * Added "debian/clean"; "debian/gbp.conf"; bug-presubj. + * Remove bundled Cake tests to take ~5 MB off big-usr-share. + * Standards-Version: 3.9.6; compat/debhelper to version 9. + * Vcs links to new git repository at collab-maint. + * Build-Depends: + + dh-systemd + + libgcrypt11-dev --> libgcrypt-dev + + libcurl4-gnutls-dev + + libvlc-dev + + policykit-1 (required by "zmsystemctl.pl") + - dh-autoreconf, autoconf, automake + * Depends: + - apache2 + - libapache2-mod-php5 (moved to Suggests) + - libpcre3 (invalid) + - libmodule-load-perl (obsolete; replaced with perl-modules) + - libarchive-tar-perl (obsolete; replaced with perl-modules) + - mysql-server (moved to Recommends, Closes: #759504). + - php5 + + libav-tools + + libjs-jquery (replaces bundled component) + + libjs-mootool (replaces bundled component) + + libjson-any-perl (Closes: #690803). + + perl-modules (Closes: #745819). + * Recommends: + + apache2 | httpd + + mysql-server | virtual-mysql-server (Closes: #732874). + * Suggests: + + libapache2-mod-php5 | php5-fpm + + logrotate + * Refreshed, renamed and re-ordered patches; added DEP-3 headers. + * Removed "vendor_perl" patch (applied-upstream). + * New patches: + + cmake-fix-confpath.patch + + cmake-gnutls.patch + + cmake-nossl.patch + + cmake.patch + + format-hardening.patch + + pod_man_fixes.patch + + pod_name_fixes.patch + + pod_zmupdate-to-pod2usage.patch + * Lintianisation (incomplete): + - extra-license-file + - init.d-script-missing-lsb-description + - init.d-script-does-not-source-init-functions + - privacy-breach-generic + - package-contains-empty-directory + - manpage-has-errors-from-pod2man + - manpage-has-bad-whatis-entry + - quilt-patch-missing-description + - no-dep5-copyright + * Lintian-overrides: + + unusual-interpreter usr/bin/zmsystemctl.pl #!/usr/bin/pkexec + + script-not-executable usr/share/zoneminder/www/api/* + + script-with-language-extension usr/bin/*.pl + + source-is-missing web/tools/mootools/mootools-*-yc.js + + source-is-missing web/skins/*/js/jquery-1.4.2.min.js + + source-contains-prebuilt-javascript-object + * Renamed files in "debian". + * watch: dfsg repacksuffix and dversionmangle. + * "debian/copyright" to Copyright-Format-1.0. + * Set myself as new Maintainer (Closes: #760314). - * style updates and db fixes for database logging filters + [ Vagrant Cascadian ] + * Removed obsolete DM-Upload-Allowed flag. + * Update debian/watch to use tarballs from github. + * Add Build-Depends on libgcrypt11-dev (Closes: #745819). + * Use canonical alioth Vcs-Hg URL. + * debian/control: Add Build-Depends: libpolkit-gobject-1-dev. + * Removed configure flag "--enable-crashtrace=no", which is no longer + present upstream. - -- Isaac Connor Fri, 26 Sep 2014 14:44:45 -0400 + -- Dmitry Smirnov Tue, 31 Mar 2015 15:11:13 +1100 -zoneminder (1.27.99+1-trusty-SNAPSHOT2014090801) trusty; urgency=medium +zoneminder (1.26.5-3.1) experimental; urgency=low - * several segfault fixes for local cameras + * Non-maintainer upload. + * Add libav10.patch and compile against libav10 (Closes: #739461) - -- Isaac Connor Mon, 08 Sep 2014 16:56:57 -0400 + -- Reinhard Tartler Wed, 19 Mar 2014 00:31:22 +0000 -zoneminder (1.27.99+1-trusty-SNAPSHOT2014090701) trusty; urgency=medium +zoneminder (1.26.5-3) unstable; urgency=low - * Fix segfaults for local cameras, also now includes the systemd support patch - -- Isaac Connor Sun, 07 Sep 2014 17:19:01 -0400 + * Previous release still didn't build on PPC - this has been corrected. + (Closes: #736516) -zoneminder (1.27.99+1-trusty-SNAPSHOT2014082102) trusty; urgency=medium + -- Peter Howard Tue, 4 Feb 2014 02:02:10 +1000 - * Fix UI inputs for v4l multibuffer and captures per frame +zoneminder (1.26.5-2) unstable; urgency=low - -- Isaac Connor Thu, 21 Aug 2014 12:03:31 -0400 + * Remove dependency on ffmpeg + (Closes: #721161) -zoneminder (1.27.99+1-trusty-SNAPSHOT2014082101) trusty; urgency=medium + * Builds again on non-x86 target architectures. - * fall back to Config table values for V4l MultiBUffer and Captures Per Frame - * add mention of monitor page settings for thse in the config table + -- Peter Howard Thu, 23 Jan 2014 01:02:10 +1000 - -- Isaac Connor Thu, 21 Aug 2014 10:04:46 -0400 +zoneminder (1.26.5-1) unstable; urgency=low -zoneminder (1.27.99+1-precise-SNAPSHOT2014080601) precise; urgency=medium + * New upstream version + (Closes: #694131) + * Change Build-Depends on libgnutls-dev to libgnutls-openssl-dev + (Closes: #731560) + -- Peter Howard Tue, 17 Dec 2013 01:02:10 +1000 - * improve error messages - * Make zmupdate re-run the most recent patch so that people running the daily builds get their db updates +zoneminder (1.25.0-4) unstable; urgency=high - -- Isaac Connor Wed, 06 Aug 2014 20:20:20 -0400 + * Add CVE-2013-0232 patch + [SECURITY] CVE-2013-0232: Shell escape commands with untrusted content. + Thanks to James McCoy (Closes: #698910) + Thanks also to Salvatore Bonaccorso -zoneminder (1.27.0+1-trusty-v4ltomonitor-1) trusty; urgency=high + -- Peter Howard Tue, 12 Jun 2013 12:02:10 +1000 - * Snapshot release - +zoneminder (1.25.0-3) unstable; urgency=low - -- Isaac Connor Wed, 09 Jul 2014 21:35:29 -0400 + * debian/rules: Export CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS, to ensure + hardening build flags are enabled. + + -- Vagrant Cascadian Tue, 28 Aug 2012 12:10:03 -0700 + +zoneminder (1.25.0-2) unstable; urgency=low + + [ Vagrant Cascadian ] + * Add a patch to disable checking for updated versions by default, as + upgrades should happen through package management. + * Use dpkg-buildflags in debian/rules to set default compiler flags. + * Ensure zoneminder is stopped before starting (Closes: #657407). + + [ Peter Howard ] + * Fix postinst to add permission for table creation during upgrade + (Closes: #657407). + + -- Vagrant Cascadian Thu, 23 Aug 2012 12:40:34 -0700 + +zoneminder (1.25.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "ftbfs with GCC-4.7": add patch Fix-FTBFS-with-gcc-4.7 from Cyril + Brulebois: fix missing includes. + (Closes: #667428) + + -- gregor herrmann Sun, 13 May 2012 17:02:21 +0200 + +zoneminder (1.25.0-1) unstable; urgency=low + + * Fix typo in libv4l1-videodev.h patch that caused v4l1 support to be + dropped. + * Fail to build if version in postinst doesn't match upstream version. + * Add Build-Depends: libavdevice-dev to fix MPEG streaming (Closes: #515558). + * debian/rules: Convert to using debhelper overrides. + * Set debian/compat to 7. + * Simplify debian/watch file. + * Refresh debian/patches/use_libjs-mootools. + * Refresh debian/patches/libv4l1-videodev.h. + * Remove dependencies on php4 and related packages. + * Remove build-dependencies on libmysqlclient14-dev and + libmysqlclient15-dev. + * Update Build-Depends to use libjpeg-dev instead of libjpeg62-dev + (Closes: #647114). + * Add patch to fix build by testing for C headers rather than C++ headers. + Thanks to Ryan Niebur. (Closes: #654230) + * Add a patch to fix build problems caused by API changes in libav 0.8. + Thanks again to Ryan Niebur. (Closes: #654230) + + -- Vagrant Cascadian Mon, 16 Jan 2012 11:58:05 -0800 + +zoneminder (1.24.4-1) unstable; urgency=low + + [ Peter Howard ] + * Initial release of 1.24.4 (Closes: #634985). + - Fix 32/64-bit type declarations (Closes: #614404). + * Update patches. + + [ Vagrant Cascadian ] + * Add patch to fix FTBFS by using libv4l1-videodev.h from libv4l-dev. + Thanks to Andreas Metzler for reporting the issue. + (Closes: #619813). + * Document adding the www-data user to the video group in README.Debian. + (Closes: #611324) + * Depend on libsys-mmap-perl to enable mapped memory support. + (Closes: #607331) + * Update libjs-mootools patch to use -nc variants (Closes: #635075). + * Depend on javascript-common, to ensure that /javascript is available in + the web server. + * Set the upstream version in postinst at build time. + * Use dh-autoreconf to properly clean up autogenerated files during build. + * Add Vcs-HG to debian/control. + * Add Build-Depends: libv4l-dev, libbz2-dev, dh-autoreconf, libsys-mmap-perl. + + -- Vagrant Cascadian Sun, 24 Jul 2011 16:44:30 +0200 + +zoneminder (1.24.2-9) unstable; urgency=low + + * Apply patch from Ubuntu to fix FTBFS with ffmpeg 0.6: + - Add -D__STDC_CONSTANT_MACROS to CPPFLAGS (closes: 614080). + * Update Standards-Version to 3.9.1, no changes necessary. + + -- Vagrant Cascadian Sun, 20 Feb 2011 23:43:02 -0800 + +zoneminder (1.24.2-8) unstable; urgency=medium + + [ Vagrant Cascadian ] + * Apply patch to fix V4L2 cameras without crop support (closes: #608790). + Thanks to piratebab. + * Add preinst script which aborts if dangerous symlinks exist. + (closes: #608793) + + [ Peter Howard ] + * Added to README.Debian with info about images and events directories. + (closes: #608793) + + -- Vagrant Cascadian Sat, 15 Jan 2011 19:39:26 -0800 + +zoneminder (1.24.2-7) unstable; urgency=medium + + * Do not set ownership of /var/cache/zoneminder when upgrading, which fixes a + regression causing upgrades to take inordinately long with large + installations (closes: #597040). + + -- Vagrant Cascadian Fri, 17 Sep 2010 11:24:41 -0700 + +zoneminder (1.24.2-6) unstable; urgency=low + + * Only remove database on purge. This requires only creating the database if + it doesn't already exist, and upgrading the database only if the database + is an older version (closes: #497107). + + * Do not prompt the user on database upgrades by using the --nointeractive + flag when calling zmupdate.pl from postinst (closes: #595902). + + -- Vagrant Cascadian Fri, 10 Sep 2010 10:06:06 -0700 + +zoneminder (1.24.2-5) unstable; urgency=low + + [ Peter Howard ] + * Add zip dependency + (closes: #494261) + * Add debian/watch file + (closes: #545552) + * Use packaged libjs-mootools + (closes: #585590) + * Miscellaneous cleanups + + [ Vagrant Cascadian ] + * Add vagrant@debian.org as uploader + * Update Standards-Version to 3.9.0, no changes necessary. + + -- Vagrant Cascadian Fri, 23 Jul 2010 18:12:50 -0500 + +zoneminder (1.24.2-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "package removed, processes still running": apply patch to + debian/postinst by Vagrant Cascadian: use invoke-rc.d and run + mysql-related actions only when mysql is running (closes: #583648). + + -- gregor herrmann Thu, 01 Jul 2010 19:47:10 +0200 + +zoneminder (1.24.2-4) unstable; urgency=high + * Update init.d to list mysql dependency + (closes: #583505) + * Change depenency from libmime-perl to libmime-tools-perl + (closes: #585589) + * Problems in changelog format fixed + (closes: #585592) + * Fix debian-rules-ignores-make-clean-error + (closes: #585593) + -- Peter Howard Mon, 14 jun 2010 15:02:10 +1000 + +zoneminder (1.24.2-3) unstable; urgency=high + * Changes symbols to build with libjpeg8 + (closes: #565326, #568327) + * Note: location of all perl files should have been fixed in previous release + (closes: #553096) + -- Peter Howard Mon, 26 apr 2010 15:02:10 +1000 + +zoneminder (1.24.2-2) unstable; urgency=high + + * Remove custom perl parth from zmpkg.pl, fix location of manpages. + (closes: #551746, #553092) + * Fix GCC4.4 bug + (closes: #531717) + * Fix potential bug in postinst script + + -- Peter Howard Sat, 14 Nov 2009 15:02:10 +1000 + +zoneminder (1.24.2-1) unstable; urgency=high + + * Initial release of zoneminder 1.24.2 + -- Peter Howard Fri, 11 Sep 2009 07:02:50 +1000 + +zoneminder (1.24.1-1) unstable; urgency=high + + * Initial release of zoneminder 1.24.1, closing CVE-2008-3882, + CVE-2008-3881, CVE-2008-3880 + (closes: #497640) + * Change syslog dependency to rsyslog. + (closes: #526918) + * Add missing perl depenency. + * Restore patch to disable "check for updates" by default. + * Removed spurious '$' in init script. + (closes: #486064) + * Change permission of zm.conf from 0600 to 0400 for CVE-2008-6755 + (closes: #528252) + -- Peter Howard Sat, 16 May 2009 07:02:50 +1000 + +zoneminder (1.23.3-4) unstable; urgency=high + + * update to get it building with latest unstable. Thanks to waldi@debian.org + (closes: #517569) + -- Peter Howard Thu, 16 Apr 2009 01:02:50 +1000 + +zoneminder (1.23.3-3) unstable; urgency=high + + * ffmpeg confirmed working + (closes: #475145) + * Fix upgrade problem intrudouced in 1.23.3-1 + (closes: #481637) + * Include libmime-lite-perl in dependencies + (closes: #486312) + -- Peter Howard Thu, 18 Sep 2008 01:02:50 +1000 + +zoneminder (1.23.3-2) unstable; urgency=high + + * ffmpeg finally working? + + -- Peter Howard Wed, 13 Aug 2008 01:02:50 +1000 + +zoneminder (1.23.3-1) unstable; urgency=high + + * Initial version for 1.23.3 - security fix. + (closes: #479034) + + -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 + +zoneminder (1.23.2-2) unstable; urgency=low + + * Update to init.d + (closes: #468856) + * Add dependency on logging daemon + (closes: #471277) + + -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 + +zoneminder (1.23.2-1) unstable; urgency=low + + * Initial version for 1.23.2 + (closes: #464152) + * Zoneminder 1.23.2 upstream includes fix for GCC 4.3 + (closes: #454980) + * Includes ffmpeg patch by Alexander Kushnirenko + + -- Peter Howard Sat, 01 Mar 2008 16:02:50 +1000 + +zoneminder (1.22.3-10) unstable; urgency=low + + * Fix bug introduced in -9 where perl is put under /usr/local + (closes: #457507) + + -- Peter Howard Mon, 24 Dec 2007 16:02:50 +1000 + +zoneminder (1.22.3-9) unstable; urgency=low + + * Starting zoneminder via init script now invokes "zmfix -a" + (closes: #481637) + * Change apache2-mpm-prefork dependency to apache2 + * Temp dir for export under /var/cache/zoneminder (but linked back to + /usr/share/zoneminder for now) + * Redo use of gnutls rather than openssl for md5 hashes + + -- Peter Howard Mon, 10 Dec 2007 16:02:50 +1000 + +zoneminder (1.22.3-8) unstable; urgency=low + + * Build now includes libpcre3 + (closes: #437533) + * "Monitor Presets" patch now applied to package during build. + + -- Peter Howard Sat, 18 Aug 2007 14:35:23 +1000 + +zoneminder (1.22.3-7) unstable; urgency=low + + * Turn off debug trace and crash dump on build + (closes:#414857,#414891) + * Additional perl libraries added in dependencies + (closes:#416291) + * Change preferred PHP version from 4 to 5 + -- Peter Howard Sun, 29 Jul 2007 15:11:13 +1000 + +zoneminder (1.22.3-6) unstable; urgency=low + + * Removed a similar bash only statement from zmpkg.pl + (closes:414882) + + -- Peter Howard Sat, 14 Apr 2007 11:46:56 +1000 + +zoneminder (1.22.3-5) unstable; urgency=low + + * Installs with "phone home" feature turned off by default, and permissions + on /etc/zm/zm.conf fixed (now the 0600 it s hould be) + (closes:415349) + * Removed "stupid bash-ism" on mysqld check in postinst file. + + -- Peter Howard Fri, 6 Apr 2007 15:50:00 +1000 + +zoneminder (1.22.3-4) unstable; urgency=low + + * Put libmysqlclient-15-dev in front of -14-dev so sbuild works + (closes: #414410) + + -- Peter Howard Mon, 12 Mar 2007 11:38:56 +1100 + +zoneminder (1.22.3-3) unstable; urgency=low + + * Clean up of postinstall, postrm ; user "zm" definitely was a mistake + * Also in postinstall: check and start MySQL if it's not running. + * init.d script now checks if zoneminder isn't running and still returns 0 + (which helps uninstalling) + * Addition of php5 dependency options as well as php4. + + -- Peter Howard Mon, 26 Feb 2007 10:40:52 +1100 + +zoneminder (1.22.3-2) unstable; urgency=low + + * Added zmuser in the mysql creation; this should fix the install problem + for people, but needs to be cleaned up (in -3) + + -- Peter Howard Fri, 16 Feb 2007 14:16:03 +1100 + +zoneminder (1.22.3-1) unstable; urgency=low + + * Initial Version. (closes: #248393) + * Patched out use of openssl; uses gnutls instead for MD5 hashes. + * Removed MakeMaker-inserted Perl licensing (with authors permission) in + various scripts; replaced with GPL. + + -- Peter Howard Wed, 7 Feb 2007 14:09:01 +1100 diff --git a/distros/ubuntu1204_cmake/clean b/distros/ubuntu1204/clean similarity index 100% rename from distros/ubuntu1204_cmake/clean rename to distros/ubuntu1204/clean diff --git a/distros/ubuntu1204_cmake/conf/apache2/zoneminder.conf b/distros/ubuntu1204/conf/apache2/zoneminder.conf similarity index 100% rename from distros/ubuntu1204_cmake/conf/apache2/zoneminder.conf rename to distros/ubuntu1204/conf/apache2/zoneminder.conf diff --git a/distros/ubuntu1204/control b/distros/ubuntu1204/control index 170504b5a..6368d9417 100644 --- a/distros/ubuntu1204/control +++ b/distros/ubuntu1204/control @@ -1,33 +1,64 @@ Source: zoneminder Section: net Priority: optional -Maintainer: Isaac Connor -Build-Depends: debhelper (>= 9), autoconf, automake, quilt, libphp-serialization-perl, libgnutls-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, ffmpeg | libav-tools, libavdevice-dev, libdevice-serialport-perl, libpcre3, libarchive-zip-perl, libmime-lite-perl, dh-autoreconf, libvlccore-dev, libvlc-dev, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libgcrypt11-dev, libpolkit-gobject-1-dev +Maintainer: Dmitry Smirnov +Uploaders: Vagrant Cascadian +Build-Depends: debhelper (>= 9), python-sphinx | python3-sphinx, apache2-dev, dh-linktree + ,cmake + ,libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev, libavdevice-dev + ,libbz2-dev + ,libgcrypt-dev + ,libcurl4-gnutls-dev + ,libgnutls-openssl-dev + ,libjpeg8-dev|libjpeg9-dev|libjpeg62-turbo-dev, + ,libmysqlclient-dev + ,libpcre3-dev + ,libpolkit-gobject-1-dev + ,libv4l-dev (>= 0.8.3) [!hurd-any] + ,libvlc-dev +# Unbundled (dh_linktree): + ,libjs-jquery + ,libjs-mootools Standards-Version: 3.9.4 +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}, apache2, libapache2-mod-php5 | libapache2-mod-fcgid, php5, php5-mysql|php5-mysqlnd, libphp-serialization-perl, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, mariadb-client|mysql-client|mysql-client-5.6, libwww-perl, libarchive-tar-perl, libarchive-zip-perl, libdevice-serialport-perl, libpcre3, ffmpeg | libav-tools, rsyslog | system-log-daemon, libmodule-load-perl, libsys-mmap-perl, libjson-any-perl, libavdevice53 | libavdevice55, libjpeg8|libjpeg9|libjpeg62-turbo, zip, libnet-sftp-foreign-perl, libio-pty-perl, libexpect-perl, libvlccore5 | libvlccore7 | libvlccore8, libvlc5, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libpolkit-gobject-1-0, liburi-encode-perl, php5-gd -Recommends: mysql-server|mariadb-server -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: zoneminder-dbg -Section: debug -Priority: extra -Architecture: any -Depends: zoneminder (= ${binary:Version}), ${misc:Depends} -Description: Debugging symbols for zoneminder. - ZoneMinder is a video camera security and surveillance solution. +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} + ,javascript-common + ,libav-tools|ffmpeg + ,libdate-manip-perl + ,libdbd-mysql-perl + ,libmime-lite-perl + ,libmime-tools-perl + ,libphp-serialization-perl + ,libmodule-load-conditional-perl + ,libnet-sftp-foreign-perl +# ,libzoneminder-perl (= ${source:Version}) + ,libarchive-zip-perl + ,libdbd-mysql-perl + ,libdevice-serialport-perl + ,libimage-info-perl + ,libjson-any-perl + ,libsys-mmap-perl [!hurd-any] + ,liburi-encode-perl + ,libwww-perl + ,mysql-client | virtual-mysql-client + ,perl-modules + ,php5-mysql, php5-gd + ,policykit-1 + ,rsyslog | system-log-daemon + ,zip + ,libdata-dump-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl + , libsys-cpu-perl, libsys-meminfo-perl +Recommends: ${misc:Recommends} + ,libapache2-mod-php5 | php5-fpm + ,mysql-server | virtual-mysql-server + ,zoneminder-doc (>= ${source:Version}) +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 @@ -38,3 +69,70 @@ Description: Debugging symbols for zoneminder. 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-any-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} +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 diff --git a/distros/ubuntu1204/copyright b/distros/ubuntu1204/copyright index a177502a0..c48025a25 100644 --- a/distros/ubuntu1204/copyright +++ b/distros/ubuntu1204/copyright @@ -1,22 +1,174 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ZoneMinder +Upstream-Contact: Philip Coombes +Source: https://github.com/ZoneMinder/ZoneMinder +Comment: + This package was originally debianized by matrix + on Mon, 7 Mar 2005 02:07:57 -0500. + It was re-done for submission to the Debian project by Peter Howard + 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 + 2008 Brian Rudy + 2014 Vincent Giovannone + 2013 Tim Craig + 2003-2008 Corey DeLasaux + 2001-2010 Chris Kistner +License: GPL-2+ + +Files: distros/* +Copyright: 2001-2008 Philip Coombes + 2014 Isaac Connor + 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) + 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 + 2009 Dario Freddi + 2008 Laurent Montel, + 2011 Nikita Krupen'ko +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. -Copyright 2002 Philip Coombes +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. -License: +Files: debian/* +Copyright: 2015 Dmitry Smirnov + 2007-2014 Peter Howard + 2010-2012 Vagrant Cascadian + 2001-2008 Philip Coombes +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. +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. -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. +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". -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 - -On Debian GNU/Linux systems, the text of the GPL can be found in -/usr/share/common-licenses/GPL. +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". diff --git a/distros/ubuntu1204/dirs b/distros/ubuntu1204/dirs deleted file mode 100644 index 4178482c1..000000000 --- a/distros/ubuntu1204/dirs +++ /dev/null @@ -1,6 +0,0 @@ -var/log/zm -var/lib/zm -var/cache/zoneminder/events -var/cache/zoneminder/images -var/cache/zoneminder/temp -usr/share/zoneminder/db diff --git a/distros/ubuntu1204/docs b/distros/ubuntu1204/docs deleted file mode 100644 index b43bf86b5..000000000 --- a/distros/ubuntu1204/docs +++ /dev/null @@ -1 +0,0 @@ -README.md diff --git a/distros/ubuntu1204_cmake/examples/nginx.conf b/distros/ubuntu1204/examples/nginx.conf similarity index 100% rename from distros/ubuntu1204_cmake/examples/nginx.conf rename to distros/ubuntu1204/examples/nginx.conf diff --git a/distros/ubuntu1204_cmake/gbp.conf b/distros/ubuntu1204/gbp.conf similarity index 100% rename from distros/ubuntu1204_cmake/gbp.conf rename to distros/ubuntu1204/gbp.conf diff --git a/distros/ubuntu1204/init.d b/distros/ubuntu1204/init.d deleted file mode 100644 index f22143c38..000000000 --- a/distros/ubuntu1204/init.d +++ /dev/null @@ -1,91 +0,0 @@ -#!/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 -### END INIT INFO -# description: Control ZoneMinder as a Service -# chkconfig: 2345 20 20 - -# Source function library. -#. /etc/rc.d/init.d/functions - -prog=ZoneMinder -ZM_PATH_BIN="/usr/bin" -RUNDIR=/var/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 diff --git a/distros/ubuntu1204/install b/distros/ubuntu1204/install deleted file mode 100644 index 4b0009cea..000000000 --- a/distros/ubuntu1204/install +++ /dev/null @@ -1,12 +0,0 @@ -usr/bin -usr/lib/cgi-bin -usr/share/man -usr/share/perl5/ZoneMinder -usr/share/perl5/ZoneMinder.pm -usr/share/polkit-1/actions -usr/share/polkit-1/rules.d -usr/share/zoneminder -etc/zm -db/zm_create.sql usr/share/zoneminder/db -db/zm_update-*.sql usr/share/zoneminder/db -debian/apache.conf etc/zm diff --git a/distros/ubuntu1204_cmake/libzoneminder-perl.install b/distros/ubuntu1204/libzoneminder-perl.install similarity index 100% rename from distros/ubuntu1204_cmake/libzoneminder-perl.install rename to distros/ubuntu1204/libzoneminder-perl.install diff --git a/distros/ubuntu1204/links b/distros/ubuntu1204/links deleted file mode 100644 index 9715ee428..000000000 --- a/distros/ubuntu1204/links +++ /dev/null @@ -1,4 +0,0 @@ -var/cache/zoneminder/events usr/share/zoneminder/events -var/cache/zoneminder/images usr/share/zoneminder/images -var/cache/zoneminder/temp usr/share/zoneminder/temp -usr/lib/cgi-bin usr/share/zoneminder/cgi-bin diff --git a/distros/ubuntu1204_cmake/patches/default_cgi-path.patch b/distros/ubuntu1204/patches/default_cgi-path.patch similarity index 100% rename from distros/ubuntu1204_cmake/patches/default_cgi-path.patch rename to distros/ubuntu1204/patches/default_cgi-path.patch diff --git a/distros/ubuntu1204/patches/series b/distros/ubuntu1204/patches/series index e69de29bb..fc70f4006 100644 --- a/distros/ubuntu1204/patches/series +++ b/distros/ubuntu1204/patches/series @@ -0,0 +1,2 @@ +default_cgi-path.patch +use_libjs-mootools.patch diff --git a/distros/ubuntu1204_cmake/patches/use_libjs-mootools.patch b/distros/ubuntu1204/patches/use_libjs-mootools.patch similarity index 100% rename from distros/ubuntu1204_cmake/patches/use_libjs-mootools.patch rename to distros/ubuntu1204/patches/use_libjs-mootools.patch diff --git a/distros/ubuntu1204/postinst b/distros/ubuntu1204/postinst deleted file mode 100644 index d06f9c641..000000000 --- a/distros/ubuntu1204/postinst +++ /dev/null @@ -1,53 +0,0 @@ -#! /bin/sh - -set -e - -if [ "$1" = "configure" ]; 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 - echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - fi - - invoke-rc.d zoneminder stop || true - zmupdate.pl --nointeractive - - 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 - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - if [ -z "$2" ]; then - chown www-data:www-data -R /var/cache/zoneminder - fi -fi -# Ensure zoneminder is stopped... -if [ -x "/etc/init.d/zoneminder" ]; then - if invoke-rc.d zoneminder status ; then - invoke-rc.d zoneminder stop || exit $? - fi -fi - -if [ "$1" = "configure" ]; then - if [ -z "$2" ]; then - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - chown www-data:www-data -R /var/cache/zoneminder - else - chown www-data:www-data /var/log/zm - zmupdate.pl - fi -fi -#DEBHELPER# diff --git a/distros/ubuntu1204/postrm b/distros/ubuntu1204/postrm deleted file mode 100644 index 28a00a7a0..000000000 --- a/distros/ubuntu1204/postrm +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/sh -# set -e # to be reinstated later - -if [ "$1" = "purge" ]; then - echo 'delete from user where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - echo 'delete from db where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm -fi -#DEBHELPER# diff --git a/distros/ubuntu1204/preinst b/distros/ubuntu1204/preinst deleted file mode 100755 index 6cd01ba55..000000000 --- a/distros/ubuntu1204/preinst +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -set -e - -abort=false -if [ -L /usr/share/zoneminder/events ]; then - l=$(readlink /usr/share/zoneminder/events) - if [ "$l" != "/var/cache/zoneminder/events" ]; then - abort=true - fi -fi -if [ -L /usr/share/zoneminder/images ]; then - l=$(readlink /usr/share/zoneminder/images ) - if [ "$l" != "/var/cache/zoneminder/images" ]; then - abort=true - fi -fi - -if [ "$abort" = "true" ]; then - cat >&2 << EOF -Aborting installation of zoneminder due to non-default symlinks in -/usr/share/zoneminder for the images and/or events directory, which could -result in loss of data. Please move your data in each of these directories to -/var/cache/zoneminder before installing zoneminder from the package. -EOF - exit 1 - -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/ubuntu1204/rules b/distros/ubuntu1204/rules index e25e5514d..b467c870f 100755 --- a/distros/ubuntu1204/rules +++ b/distros/ubuntu1204/rules @@ -1,67 +1,87 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed -CFLAGS = -Wall -g -CPPFLAGS = -D__STDC_CONSTANT_MACROS -CXXFLAGS = -DHAVE_LIBCRYPTO - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 +ifeq ($(DEB_BUILD_ARCH_OS),hurd) +ARGS:= -DZM_NO_MMAP=ON endif %: - dh $@ --with quilt,autoreconf + dh $@ --parallel --buildsystem=cmake --builddirectory=dbuild \ + --with sphinxdoc,apache2,linktree override_dh_auto_configure: - CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --sysconfdir=/etc/zm --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-mysql=/usr --with-mariadb=/usr --with-webdir=/usr/share/zoneminder --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=no --enable-mmap=yes + dh_auto_configure -- $(ARGS) \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DZM_CONFIG_DIR="/etc/zm" \ + -DZM_RUNDIR="/var/run/zm" \ + -DZM_SOCKDIR="/var/run/zm" \ + -DZM_TMPDIR="/tmp/zm" \ + -DZM_CGIDIR="/usr/lib/zoneminder/cgi-bin" \ + -DZM_CONTENTDIR="/var/cache/zoneminder" override_dh_clean: - # Add here commands to clean up after the build process. - [ ! -f Makefile ] || $(MAKE) distclean - dh_clean + dh_clean $(MANPAGES1) + $(RM) -r docs/_build docs/installationguide -override_dh_install: - dh_install --fail-missing - # - # NOTE: This is a short-term kludge; hopefully changes in the next - # upstream version will render this unnecessary. - rm -rf debian/zoneminder/usr/share/zoneminder/events - rm -rf debian/zoneminder/usr/share/zoneminder/images - rm -rf debian/zoneminder/usr/share/zoneminder/temp - dh_link var/cache/zoneminder/events usr/share/zoneminder/events - dh_link var/cache/zoneminder/images usr/share/zoneminder/images - dh_link var/cache/zoneminder/temp usr/share/zoneminder/temp +build-indep: + #$(MAKE) -C docs text + $(MAKE) -C docs html - # - # This is a slightly lesser kludge; moving the cgi stuff to - # /usr/share/zoneminder/cgi-bin breaks one set of behavior, - # having it just in /usr/lib/cgi-bin breaks another bit of - # behavior. - # - dh_link usr/lib/cgi-bin usr/share/zoneminder/cgi-bin +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 - chown root:root debian/zoneminder/etc/zm/zm.conf + ## 637685 + chmod -c o-r $(CURDIR)/debian/zoneminder/etc/zm/zm.conf -override_dh_auto_test: - # do not run tests... +override_dh_installinit: + dh_installinit --no-start + +override_dh_apache2: + dh_apache2 --noenable -.PHONY: override_dh_strip override_dh_strip: - dh_strip --dbg-package=zoneminder-dbg + [ -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 diff --git a/distros/debian8/source/format b/distros/ubuntu1204/source/format similarity index 100% rename from distros/debian8/source/format rename to distros/ubuntu1204/source/format diff --git a/distros/ubuntu1204_cmake/source/lintian-overrides b/distros/ubuntu1204/source/lintian-overrides similarity index 100% rename from distros/ubuntu1204_cmake/source/lintian-overrides rename to distros/ubuntu1204/source/lintian-overrides diff --git a/distros/ubuntu1204/watch b/distros/ubuntu1204/watch index 5a8a9c4d7..7ee690edb 100644 --- a/distros/ubuntu1204/watch +++ b/distros/ubuntu1204/watch @@ -1,3 +1,7 @@ version=3 -http://www.zoneminder.com/downloads.html \ - .*/ZoneMinder-(.*).tar.gz + +opts=\ +repacksuffix=+dfsg,\ +dversionmangle=s{\+dfsg\d*}{},\ + https://github.com/ZoneMinder/ZoneMinder/releases \ + .*/ZoneMinder/archive/v(.*).tar.gz diff --git a/distros/ubuntu1204_cmake/zoneminder-doc.doc-base b/distros/ubuntu1204/zoneminder-doc.doc-base similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder-doc.doc-base rename to distros/ubuntu1204/zoneminder-doc.doc-base diff --git a/distros/ubuntu1204_cmake/zoneminder-doc.install b/distros/ubuntu1204/zoneminder-doc.install similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder-doc.install rename to distros/ubuntu1204/zoneminder-doc.install diff --git a/distros/ubuntu1204_cmake/zoneminder-doc.links b/distros/ubuntu1204/zoneminder-doc.links similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder-doc.links rename to distros/ubuntu1204/zoneminder-doc.links diff --git a/distros/ubuntu1204_cmake/zoneminder.apache2 b/distros/ubuntu1204/zoneminder.apache2 similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.apache2 rename to distros/ubuntu1204/zoneminder.apache2 diff --git a/distros/ubuntu1204_cmake/zoneminder.bug-presubj b/distros/ubuntu1204/zoneminder.bug-presubj similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.bug-presubj rename to distros/ubuntu1204/zoneminder.bug-presubj diff --git a/distros/ubuntu1204_cmake/zoneminder.dirs b/distros/ubuntu1204/zoneminder.dirs similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.dirs rename to distros/ubuntu1204/zoneminder.dirs diff --git a/distros/ubuntu1204_cmake/zoneminder.docs b/distros/ubuntu1204/zoneminder.docs similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.docs rename to distros/ubuntu1204/zoneminder.docs diff --git a/distros/ubuntu1204_cmake/zoneminder.examples b/distros/ubuntu1204/zoneminder.examples similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.examples rename to distros/ubuntu1204/zoneminder.examples diff --git a/distros/ubuntu1204_cmake/zoneminder.init b/distros/ubuntu1204/zoneminder.init similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.init rename to distros/ubuntu1204/zoneminder.init diff --git a/distros/ubuntu1204_cmake/zoneminder.install b/distros/ubuntu1204/zoneminder.install similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.install rename to distros/ubuntu1204/zoneminder.install diff --git a/distros/ubuntu1204_cmake/zoneminder.links b/distros/ubuntu1204/zoneminder.links similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.links rename to distros/ubuntu1204/zoneminder.links diff --git a/distros/ubuntu1204_cmake/zoneminder.linktrees b/distros/ubuntu1204/zoneminder.linktrees similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.linktrees rename to distros/ubuntu1204/zoneminder.linktrees diff --git a/distros/ubuntu1204_cmake/zoneminder.lintian-overrides b/distros/ubuntu1204/zoneminder.lintian-overrides similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.lintian-overrides rename to distros/ubuntu1204/zoneminder.lintian-overrides diff --git a/distros/ubuntu1204_cmake/zoneminder.logrotate b/distros/ubuntu1204/zoneminder.logrotate similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.logrotate rename to distros/ubuntu1204/zoneminder.logrotate diff --git a/distros/ubuntu1204_cmake/zoneminder.maintscript b/distros/ubuntu1204/zoneminder.maintscript similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.maintscript rename to distros/ubuntu1204/zoneminder.maintscript diff --git a/distros/ubuntu1204_cmake/zoneminder.manpages b/distros/ubuntu1204/zoneminder.manpages similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.manpages rename to distros/ubuntu1204/zoneminder.manpages diff --git a/distros/ubuntu1204/zoneminder.postinst b/distros/ubuntu1204/zoneminder.postinst new file mode 100644 index 000000000..7c01cdde4 --- /dev/null +++ b/distros/ubuntu1204/zoneminder.postinst @@ -0,0 +1,53 @@ +#! /bin/sh + +set -e + +if [ "$1" = "configure" ]; then + + . /etc/zm/zm.conf + + # 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 + + 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 + # This creates the user. + echo "grant lock tables, alter,select,insert,update,delete,create,index 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,select,insert,update,delete,create,index on ${ZM_DB_NAME}.* to '${ZM_DB_USER}'@localhost;" | mysql --defaults-file=/etc/mysql/debian.cnf mysql + fi + + # Ensure zoneminder is stopped + invoke-rc.d zoneminder stop || true + zmupdate.pl --nointeractive + zmupdate.pl --nointeractive -f + invoke-rc.d zoneminder start || true + 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 +fi + +#DEBHELPER# diff --git a/distros/ubuntu1204_cmake/zoneminder.postrm b/distros/ubuntu1204/zoneminder.postrm similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.postrm rename to distros/ubuntu1204/zoneminder.postrm diff --git a/distros/ubuntu1204_cmake/zoneminder.preinst b/distros/ubuntu1204/zoneminder.preinst similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.preinst rename to distros/ubuntu1204/zoneminder.preinst diff --git a/distros/ubuntu1204_cmake/zoneminder.service b/distros/ubuntu1204/zoneminder.service similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.service rename to distros/ubuntu1204/zoneminder.service diff --git a/distros/ubuntu1204_cmake/zoneminder.tmpfile b/distros/ubuntu1204/zoneminder.tmpfile similarity index 100% rename from distros/ubuntu1204_cmake/zoneminder.tmpfile rename to distros/ubuntu1204/zoneminder.tmpfile diff --git a/distros/ubuntu1204_cmake/README.Debian b/distros/ubuntu1204_cmake/README.Debian deleted file mode 100644 index 2ba809fe4..000000000 --- a/distros/ubuntu1204_cmake/README.Debian +++ /dev/null @@ -1,160 +0,0 @@ -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,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 ------------------- - -Prior to 1.28.1 database upgrade was performed automatically. -"zoneminder" service will refuse to start with outdated database. - -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 starting automatically and need to be -manually activated once database is configured: - -On systemd: - - sudo systemctl enable zoneminder.service - -On SysV: - - sudo update-rc.d zoneminder enable - - -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 "php5-fpm" package to support PHP and "fcgiwrap" package -for binary "cgi-bin" applications: - - sudo apt-get install php5-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, in its upstream form, stores data in /usr/share/zoneminder/. This -package modifies that by changing /usr/share/zoneminder/images and -/usr/share/zoneminder/events to symlinks to directories under -/var/cache/zoneminder. - -There are numerous places these could be put and ways to do it. But, at the -moment, if you change this, an upgrade will fail with a warning about these -locations having changed (the reason for this was that previously, an upgrade -would silently revert the changes and cause event loss - refer -bug #608793). - -If you do want to change the location, here are a couple of suggestions. -(thanks to vagrant@freegeek.org): - -These lines in fstab could allow you to bind-mount an alternate location - - /dev/sdX1 /otherdrive ext3 defaults 0 2 - /otherdrive/zoneminder/images /var/cache/zoneminder/images bind defaults 0 2 - /otherdrive/zoneminder/events /var/cache/zoneminder/events bind defaults 0 2 - - or if you have a separate partition for each: - - /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2 - /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2 - - -- Peter Howard , Sun, 16 Jan 2010 01:35:51 +1100 - -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 Sun, 27 Mar 2011 13:06:56 -0700 diff --git a/distros/ubuntu1204_cmake/changelog b/distros/ubuntu1204_cmake/changelog deleted file mode 100644 index 74cf1d0b8..000000000 --- a/distros/ubuntu1204_cmake/changelog +++ /dev/null @@ -1,573 +0,0 @@ -zoneminder (1.28.1+1-vivid-SNAPSHOT2015081701) vivid; urgency=medium - - * include api, switch to cmake build - - -- Isaac Connor Mon, 17 Aug 2015 10:29:23 -0400 - - -zoneminder (1.28.1-8) unstable; urgency=medium - - * Patchworks: - + New upstream "980-fix-image-size.patch". - + New "default_cgi-path.patch" to correct default ZM_PATH_ZMS. - * postinst: set "root" as group owner for "/var/log/zm" to silence - logrotate warnings. - * Minor correction to README.Debian. - - -- Dmitry Smirnov Sun, 16 Aug 2015 19:19:50 +1000 - -zoneminder (1.28.1-7) unstable; urgency=medium - - * Build-Depends += "cakephp (<< 3.0.0~)"; - Zoneminder is not compatible with latest CakePHP. - * Handle conffile removal from maintscript. - * rules: build man pages reproducibly. - * gbp.conf: renamed old style config section [git-dch] to [dch]. - * README - + added instructions to update owner of the "/etc/zm/zm.conf" - (Closes: #789327). - + zmupdate.pl needs CREATE rights. - + added note about required number of "fcgiwrap" workers. - * New upstream patch: "zmtrigger-plus.patch". - - -- Dmitry Smirnov Mon, 20 Jul 2015 16:30:15 +1000 - -zoneminder (1.28.1-6) unstable; urgency=low - - * New "zoneminder-doc" and "zoneminder-dbg" packages. - - -- Dmitry Smirnov Sun, 19 Apr 2015 14:50:41 +1000 - -zoneminder (1.28.1-5) unstable; urgency=low - - * Move handling of "/var/run/zm" and "/tmp/zm" from .service into .tmpfile. - Let dh_installinit do the job. Thanks, Andrew Bauer. - * Use dh_apache2 to install Apache conf file; remove old conf and symlink. - * Promote "libapache2-mod-php5 | php5-fpm" to Recommends. - * Build-Depends: - + dh-linktree - + cakephp (>= 2.6.3) - + libjs-jquery - + libjs-mootools - * Depends: - - libjs-jquery - - libjs-mootools - * Build-time replace bundled CakePHP with system one using "dh-linktree". - * Use "dh-linktree" to handle mootools and jquery symlinks. - - -- Dmitry Smirnov Sun, 19 Apr 2015 11:45:01 +1000 - -zoneminder (1.28.1-4) unstable; urgency=low - - * New patch to fix HTML export with USE_DEEP_STORAGE (closes: #723706). - * New "783.patch" to describe potential data loss in ZM_USE_DEEP_STORAGE. - * New patch to change default date format to region-neutral ISO notation - with time zone. - * Build sphinx documentation: - + Install "zoneminder.1" man page. - + Build-Depends += "python-sphinx | python3-sphinx" - + Added commented "zoneminder-doc" package. - + Added "docs.patch" to unlink distro-specific installation docs. - * rules: - + set ZM_CONTENTDIR, ZM_SOCKDIR and ZM_TMPDIR. - + remove mistakengly installed Perl module templates. - * Updated startup scripts to create ZM_TMPDIR. - * Hurd improvements: - + New patch to add PATH_MAX definitions. - + Build without MMAP support on Hurd. - + libsys-mmap-perl [!hurd-any]. - - -- Dmitry Smirnov Mon, 06 Apr 2015 18:18:55 +1000 - -zoneminder (1.28.1-3) unstable; urgency=low - - * Updated Apache2 and nginx configuration templates to support CGI. - * Updated README.Debian to document cgi-bin setup. - * Removed "/usr/share/zoneminder/www/cgi-bin" symlink. - * Added "apache2.patch" to correct Apache2 site configuration example. - * control: Suggests += "fcgiwrap". - * rules: added dh_systemd overrides to prevent automatic service - activation and start. - * Added note about manual service activation to README.Debian - (Closes: #781733). - - -- Dmitry Smirnov Thu, 02 Apr 2015 23:20:20 +1100 - -zoneminder (1.28.1-2) unstable; urgency=low - - * Removed word "Linux" from short package description. - * Build-Depends: do not require "libv4l-dev" on Hurd i.e. [!hurd-any]. - * Added run-time Perl Depends: - + libdbd-mysql-perl - + libimage-info-perl - + libmodule-load-conditional-perl - + libnet-sftp-foreign-perl - + liburi-encode-perl - * Prepare for package split: added commented "libzoneminder-perl" - and "zoneminder-dbg" packages to "debian/control". - * rules: do not install worthless ".packlist" file. - * Updated "libv4l1-videodev.h.patch" to fix v4lv1 detection in CMake. - - -- Dmitry Smirnov Thu, 02 Apr 2015 13:25:19 +1100 - -zoneminder (1.28.1-1) unstable; urgency=low - - [ Dmitry Smirnov ] - * New upstream release [February 2015]. - * Upload to unstable. - * Disabled automatic database upgrades: post(inst|rm) scripts no longer - touch database or do unexpected stuff (Closes: #779254). - See README.Debian for details. - * Updated installation paths: - + /usr/share/zoneminder --> /usr/share/zoneminder/www - + /usr/lib/cgi-bin --> /usr/lib/zoneminder/cgi-bin - * Added logrotate config (Closes: #544826). - Thanks, Alberto Reyes. - * Native systemd service; "--with systemd" added to dh. - * Build with CMake instead of autoconf; rules clean-up. - * Build with all hardening. - * Build and install "zmupdate.pl.1" man page. - * Added nginx/php5-fpm configuration example. - * Install upstream "apache.conf" example. - * Described setup of Zoneminer web site and database in README.Debian. - * Install "/etc/zm/zm.conf" with tighter permissions. - * Added TODO.Debian. - * Added "debian/clean"; "debian/gbp.conf"; bug-presubj. - * Remove bundled Cake tests to take ~5 MB off big-usr-share. - * Standards-Version: 3.9.6; compat/debhelper to version 9. - * Vcs links to new git repository at collab-maint. - * Build-Depends: - + dh-systemd - + libgcrypt11-dev --> libgcrypt-dev - + libcurl4-gnutls-dev - + libvlc-dev - + policykit-1 (required by "zmsystemctl.pl") - - dh-autoreconf, autoconf, automake - * Depends: - - apache2 - - libapache2-mod-php5 (moved to Suggests) - - libpcre3 (invalid) - - libmodule-load-perl (obsolete; replaced with perl-modules) - - libarchive-tar-perl (obsolete; replaced with perl-modules) - - mysql-server (moved to Recommends, Closes: #759504). - - php5 - + libav-tools - + libjs-jquery (replaces bundled component) - + libjs-mootool (replaces bundled component) - + libjson-any-perl (Closes: #690803). - + perl-modules (Closes: #745819). - * Recommends: - + apache2 | httpd - + mysql-server | virtual-mysql-server (Closes: #732874). - * Suggests: - + libapache2-mod-php5 | php5-fpm - + logrotate - * Refreshed, renamed and re-ordered patches; added DEP-3 headers. - * Removed "vendor_perl" patch (applied-upstream). - * New patches: - + cmake-fix-confpath.patch - + cmake-gnutls.patch - + cmake-nossl.patch - + cmake.patch - + format-hardening.patch - + pod_man_fixes.patch - + pod_name_fixes.patch - + pod_zmupdate-to-pod2usage.patch - * Lintianisation (incomplete): - - extra-license-file - - init.d-script-missing-lsb-description - - init.d-script-does-not-source-init-functions - - privacy-breach-generic - - package-contains-empty-directory - - manpage-has-errors-from-pod2man - - manpage-has-bad-whatis-entry - - quilt-patch-missing-description - - no-dep5-copyright - * Lintian-overrides: - + unusual-interpreter usr/bin/zmsystemctl.pl #!/usr/bin/pkexec - + script-not-executable usr/share/zoneminder/www/api/* - + script-with-language-extension usr/bin/*.pl - + source-is-missing web/tools/mootools/mootools-*-yc.js - + source-is-missing web/skins/*/js/jquery-1.4.2.min.js - + source-contains-prebuilt-javascript-object - * Renamed files in "debian". - * watch: dfsg repacksuffix and dversionmangle. - * "debian/copyright" to Copyright-Format-1.0. - * Set myself as new Maintainer (Closes: #760314). - - [ Vagrant Cascadian ] - * Removed obsolete DM-Upload-Allowed flag. - * Update debian/watch to use tarballs from github. - * Add Build-Depends on libgcrypt11-dev (Closes: #745819). - * Use canonical alioth Vcs-Hg URL. - * debian/control: Add Build-Depends: libpolkit-gobject-1-dev. - * Removed configure flag "--enable-crashtrace=no", which is no longer - present upstream. - - -- Dmitry Smirnov Tue, 31 Mar 2015 15:11:13 +1100 - -zoneminder (1.26.5-3.1) experimental; urgency=low - - * Non-maintainer upload. - * Add libav10.patch and compile against libav10 (Closes: #739461) - - -- Reinhard Tartler Wed, 19 Mar 2014 00:31:22 +0000 - -zoneminder (1.26.5-3) unstable; urgency=low - - - * Previous release still didn't build on PPC - this has been corrected. - (Closes: #736516) - - -- Peter Howard Tue, 4 Feb 2014 02:02:10 +1000 - -zoneminder (1.26.5-2) unstable; urgency=low - - * Remove dependency on ffmpeg - (Closes: #721161) - - * Builds again on non-x86 target architectures. - - -- Peter Howard Thu, 23 Jan 2014 01:02:10 +1000 - -zoneminder (1.26.5-1) unstable; urgency=low - - * New upstream version - (Closes: #694131) - * Change Build-Depends on libgnutls-dev to libgnutls-openssl-dev - (Closes: #731560) - -- Peter Howard Tue, 17 Dec 2013 01:02:10 +1000 - -zoneminder (1.25.0-4) unstable; urgency=high - - * Add CVE-2013-0232 patch - [SECURITY] CVE-2013-0232: Shell escape commands with untrusted content. - Thanks to James McCoy (Closes: #698910) - Thanks also to Salvatore Bonaccorso - - -- Peter Howard Tue, 12 Jun 2013 12:02:10 +1000 - -zoneminder (1.25.0-3) unstable; urgency=low - - * debian/rules: Export CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS, to ensure - hardening build flags are enabled. - - -- Vagrant Cascadian Tue, 28 Aug 2012 12:10:03 -0700 - -zoneminder (1.25.0-2) unstable; urgency=low - - [ Vagrant Cascadian ] - * Add a patch to disable checking for updated versions by default, as - upgrades should happen through package management. - * Use dpkg-buildflags in debian/rules to set default compiler flags. - * Ensure zoneminder is stopped before starting (Closes: #657407). - - [ Peter Howard ] - * Fix postinst to add permission for table creation during upgrade - (Closes: #657407). - - -- Vagrant Cascadian Thu, 23 Aug 2012 12:40:34 -0700 - -zoneminder (1.25.0-1.1) unstable; urgency=low - - * Non-maintainer upload. - * Fix "ftbfs with GCC-4.7": add patch Fix-FTBFS-with-gcc-4.7 from Cyril - Brulebois: fix missing includes. - (Closes: #667428) - - -- gregor herrmann Sun, 13 May 2012 17:02:21 +0200 - -zoneminder (1.25.0-1) unstable; urgency=low - - * Fix typo in libv4l1-videodev.h patch that caused v4l1 support to be - dropped. - * Fail to build if version in postinst doesn't match upstream version. - * Add Build-Depends: libavdevice-dev to fix MPEG streaming (Closes: #515558). - * debian/rules: Convert to using debhelper overrides. - * Set debian/compat to 7. - * Simplify debian/watch file. - * Refresh debian/patches/use_libjs-mootools. - * Refresh debian/patches/libv4l1-videodev.h. - * Remove dependencies on php4 and related packages. - * Remove build-dependencies on libmysqlclient14-dev and - libmysqlclient15-dev. - * Update Build-Depends to use libjpeg-dev instead of libjpeg62-dev - (Closes: #647114). - * Add patch to fix build by testing for C headers rather than C++ headers. - Thanks to Ryan Niebur. (Closes: #654230) - * Add a patch to fix build problems caused by API changes in libav 0.8. - Thanks again to Ryan Niebur. (Closes: #654230) - - -- Vagrant Cascadian Mon, 16 Jan 2012 11:58:05 -0800 - -zoneminder (1.24.4-1) unstable; urgency=low - - [ Peter Howard ] - * Initial release of 1.24.4 (Closes: #634985). - - Fix 32/64-bit type declarations (Closes: #614404). - * Update patches. - - [ Vagrant Cascadian ] - * Add patch to fix FTBFS by using libv4l1-videodev.h from libv4l-dev. - Thanks to Andreas Metzler for reporting the issue. - (Closes: #619813). - * Document adding the www-data user to the video group in README.Debian. - (Closes: #611324) - * Depend on libsys-mmap-perl to enable mapped memory support. - (Closes: #607331) - * Update libjs-mootools patch to use -nc variants (Closes: #635075). - * Depend on javascript-common, to ensure that /javascript is available in - the web server. - * Set the upstream version in postinst at build time. - * Use dh-autoreconf to properly clean up autogenerated files during build. - * Add Vcs-HG to debian/control. - * Add Build-Depends: libv4l-dev, libbz2-dev, dh-autoreconf, libsys-mmap-perl. - - -- Vagrant Cascadian Sun, 24 Jul 2011 16:44:30 +0200 - -zoneminder (1.24.2-9) unstable; urgency=low - - * Apply patch from Ubuntu to fix FTBFS with ffmpeg 0.6: - - Add -D__STDC_CONSTANT_MACROS to CPPFLAGS (closes: 614080). - * Update Standards-Version to 3.9.1, no changes necessary. - - -- Vagrant Cascadian Sun, 20 Feb 2011 23:43:02 -0800 - -zoneminder (1.24.2-8) unstable; urgency=medium - - [ Vagrant Cascadian ] - * Apply patch to fix V4L2 cameras without crop support (closes: #608790). - Thanks to piratebab. - * Add preinst script which aborts if dangerous symlinks exist. - (closes: #608793) - - [ Peter Howard ] - * Added to README.Debian with info about images and events directories. - (closes: #608793) - - -- Vagrant Cascadian Sat, 15 Jan 2011 19:39:26 -0800 - -zoneminder (1.24.2-7) unstable; urgency=medium - - * Do not set ownership of /var/cache/zoneminder when upgrading, which fixes a - regression causing upgrades to take inordinately long with large - installations (closes: #597040). - - -- Vagrant Cascadian Fri, 17 Sep 2010 11:24:41 -0700 - -zoneminder (1.24.2-6) unstable; urgency=low - - * Only remove database on purge. This requires only creating the database if - it doesn't already exist, and upgrading the database only if the database - is an older version (closes: #497107). - - * Do not prompt the user on database upgrades by using the --nointeractive - flag when calling zmupdate.pl from postinst (closes: #595902). - - -- Vagrant Cascadian Fri, 10 Sep 2010 10:06:06 -0700 - -zoneminder (1.24.2-5) unstable; urgency=low - - [ Peter Howard ] - * Add zip dependency - (closes: #494261) - * Add debian/watch file - (closes: #545552) - * Use packaged libjs-mootools - (closes: #585590) - * Miscellaneous cleanups - - [ Vagrant Cascadian ] - * Add vagrant@debian.org as uploader - * Update Standards-Version to 3.9.0, no changes necessary. - - -- Vagrant Cascadian Fri, 23 Jul 2010 18:12:50 -0500 - -zoneminder (1.24.2-4.1) unstable; urgency=low - - * Non-maintainer upload. - * Fix "package removed, processes still running": apply patch to - debian/postinst by Vagrant Cascadian: use invoke-rc.d and run - mysql-related actions only when mysql is running (closes: #583648). - - -- gregor herrmann Thu, 01 Jul 2010 19:47:10 +0200 - -zoneminder (1.24.2-4) unstable; urgency=high - * Update init.d to list mysql dependency - (closes: #583505) - * Change depenency from libmime-perl to libmime-tools-perl - (closes: #585589) - * Problems in changelog format fixed - (closes: #585592) - * Fix debian-rules-ignores-make-clean-error - (closes: #585593) - -- Peter Howard Mon, 14 jun 2010 15:02:10 +1000 - -zoneminder (1.24.2-3) unstable; urgency=high - * Changes symbols to build with libjpeg8 - (closes: #565326, #568327) - * Note: location of all perl files should have been fixed in previous release - (closes: #553096) - -- Peter Howard Mon, 26 apr 2010 15:02:10 +1000 - -zoneminder (1.24.2-2) unstable; urgency=high - - * Remove custom perl parth from zmpkg.pl, fix location of manpages. - (closes: #551746, #553092) - * Fix GCC4.4 bug - (closes: #531717) - * Fix potential bug in postinst script - - -- Peter Howard Sat, 14 Nov 2009 15:02:10 +1000 - -zoneminder (1.24.2-1) unstable; urgency=high - - * Initial release of zoneminder 1.24.2 - -- Peter Howard Fri, 11 Sep 2009 07:02:50 +1000 - -zoneminder (1.24.1-1) unstable; urgency=high - - * Initial release of zoneminder 1.24.1, closing CVE-2008-3882, - CVE-2008-3881, CVE-2008-3880 - (closes: #497640) - * Change syslog dependency to rsyslog. - (closes: #526918) - * Add missing perl depenency. - * Restore patch to disable "check for updates" by default. - * Removed spurious '$' in init script. - (closes: #486064) - * Change permission of zm.conf from 0600 to 0400 for CVE-2008-6755 - (closes: #528252) - -- Peter Howard Sat, 16 May 2009 07:02:50 +1000 - -zoneminder (1.23.3-4) unstable; urgency=high - - * update to get it building with latest unstable. Thanks to waldi@debian.org - (closes: #517569) - -- Peter Howard Thu, 16 Apr 2009 01:02:50 +1000 - -zoneminder (1.23.3-3) unstable; urgency=high - - * ffmpeg confirmed working - (closes: #475145) - * Fix upgrade problem intrudouced in 1.23.3-1 - (closes: #481637) - * Include libmime-lite-perl in dependencies - (closes: #486312) - -- Peter Howard Thu, 18 Sep 2008 01:02:50 +1000 - -zoneminder (1.23.3-2) unstable; urgency=high - - * ffmpeg finally working? - - -- Peter Howard Wed, 13 Aug 2008 01:02:50 +1000 - -zoneminder (1.23.3-1) unstable; urgency=high - - * Initial version for 1.23.3 - security fix. - (closes: #479034) - - -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 - -zoneminder (1.23.2-2) unstable; urgency=low - - * Update to init.d - (closes: #468856) - * Add dependency on logging daemon - (closes: #471277) - - -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 - -zoneminder (1.23.2-1) unstable; urgency=low - - * Initial version for 1.23.2 - (closes: #464152) - * Zoneminder 1.23.2 upstream includes fix for GCC 4.3 - (closes: #454980) - * Includes ffmpeg patch by Alexander Kushnirenko - - -- Peter Howard Sat, 01 Mar 2008 16:02:50 +1000 - -zoneminder (1.22.3-10) unstable; urgency=low - - * Fix bug introduced in -9 where perl is put under /usr/local - (closes: #457507) - - -- Peter Howard Mon, 24 Dec 2007 16:02:50 +1000 - -zoneminder (1.22.3-9) unstable; urgency=low - - * Starting zoneminder via init script now invokes "zmfix -a" - (closes: #481637) - * Change apache2-mpm-prefork dependency to apache2 - * Temp dir for export under /var/cache/zoneminder (but linked back to - /usr/share/zoneminder for now) - * Redo use of gnutls rather than openssl for md5 hashes - - -- Peter Howard Mon, 10 Dec 2007 16:02:50 +1000 - -zoneminder (1.22.3-8) unstable; urgency=low - - * Build now includes libpcre3 - (closes: #437533) - * "Monitor Presets" patch now applied to package during build. - - -- Peter Howard Sat, 18 Aug 2007 14:35:23 +1000 - -zoneminder (1.22.3-7) unstable; urgency=low - - * Turn off debug trace and crash dump on build - (closes:#414857,#414891) - * Additional perl libraries added in dependencies - (closes:#416291) - * Change preferred PHP version from 4 to 5 - -- Peter Howard Sun, 29 Jul 2007 15:11:13 +1000 - -zoneminder (1.22.3-6) unstable; urgency=low - - * Removed a similar bash only statement from zmpkg.pl - (closes:414882) - - -- Peter Howard Sat, 14 Apr 2007 11:46:56 +1000 - -zoneminder (1.22.3-5) unstable; urgency=low - - * Installs with "phone home" feature turned off by default, and permissions - on /etc/zm/zm.conf fixed (now the 0600 it s hould be) - (closes:415349) - * Removed "stupid bash-ism" on mysqld check in postinst file. - - -- Peter Howard Fri, 6 Apr 2007 15:50:00 +1000 - -zoneminder (1.22.3-4) unstable; urgency=low - - * Put libmysqlclient-15-dev in front of -14-dev so sbuild works - (closes: #414410) - - -- Peter Howard Mon, 12 Mar 2007 11:38:56 +1100 - -zoneminder (1.22.3-3) unstable; urgency=low - - * Clean up of postinstall, postrm ; user "zm" definitely was a mistake - * Also in postinstall: check and start MySQL if it's not running. - * init.d script now checks if zoneminder isn't running and still returns 0 - (which helps uninstalling) - * Addition of php5 dependency options as well as php4. - - -- Peter Howard Mon, 26 Feb 2007 10:40:52 +1100 - -zoneminder (1.22.3-2) unstable; urgency=low - - * Added zmuser in the mysql creation; this should fix the install problem - for people, but needs to be cleaned up (in -3) - - -- Peter Howard Fri, 16 Feb 2007 14:16:03 +1100 - -zoneminder (1.22.3-1) unstable; urgency=low - - * Initial Version. (closes: #248393) - * Patched out use of openssl; uses gnutls instead for MD5 hashes. - * Removed MakeMaker-inserted Perl licensing (with authors permission) in - various scripts; replaced with GPL. - - -- Peter Howard Wed, 7 Feb 2007 14:09:01 +1100 diff --git a/distros/ubuntu1204_cmake/compat b/distros/ubuntu1204_cmake/compat deleted file mode 100644 index ec635144f..000000000 --- a/distros/ubuntu1204_cmake/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/distros/ubuntu1204_cmake/control b/distros/ubuntu1204_cmake/control deleted file mode 100644 index fd7a53049..000000000 --- a/distros/ubuntu1204_cmake/control +++ /dev/null @@ -1,140 +0,0 @@ -Source: zoneminder -Section: net -Priority: optional -Maintainer: Dmitry Smirnov -Uploaders: Vagrant Cascadian -Build-Depends: debhelper (>= 9), python-sphinx | python3-sphinx, apache2-dev, dh-linktree - ,cmake - ,libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev, libavdevice-dev - ,libbz2-dev - ,libdate-manip-perl - ,libdbd-mysql-perl - ,libgcrypt-dev - ,libcurl4-gnutls-dev - ,libgnutls-openssl-dev - ,libjpeg8-dev|libjpeg9-dev|libjpeg62-turbo-dev, - ,libmysqlclient-dev - ,libpcre3-dev - ,libphp-serialization-perl - ,libpolkit-gobject-1-dev - ,libsys-mmap-perl [!hurd-any] - ,libv4l-dev (>= 0.8.3) [!hurd-any] - ,libvlc-dev - ,libwww-perl -# Unbundled (dh_linktree): - ,libjs-jquery - ,libjs-mootools -Standards-Version: 3.9.4 -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 - ,libav-tools|ffmpeg - ,libdate-manip-perl - ,libmime-lite-perl - ,libmime-tools-perl - ,libphp-serialization-perl - ,libmodule-load-conditional-perl - ,libnet-sftp-foreign-perl -# ,libzoneminder-perl (= ${source:Version}) - ,libarchive-zip-perl - ,libdbd-mysql-perl - ,libdevice-serialport-perl - ,libimage-info-perl - ,libjson-any-perl - ,libsys-mmap-perl [!hurd-any] - ,liburi-encode-perl - ,libwww-perl - ,mysql-client | virtual-mysql-client - ,perl-modules - ,php5-mysql, php5-gd - ,policykit-1 - ,rsyslog | system-log-daemon - ,zip -Recommends: ${misc:Recommends} - ,libapache2-mod-php5 | php5-fpm - ,mysql-server | virtual-mysql-server - ,zoneminder-doc (>= ${source:Version}) -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-any-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} -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 diff --git a/distros/ubuntu1204_cmake/copyright b/distros/ubuntu1204_cmake/copyright deleted file mode 100644 index c48025a25..000000000 --- a/distros/ubuntu1204_cmake/copyright +++ /dev/null @@ -1,174 +0,0 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: ZoneMinder -Upstream-Contact: Philip Coombes -Source: https://github.com/ZoneMinder/ZoneMinder -Comment: - This package was originally debianized by matrix - on Mon, 7 Mar 2005 02:07:57 -0500. - It was re-done for submission to the Debian project by Peter Howard - 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 - 2008 Brian Rudy - 2014 Vincent Giovannone - 2013 Tim Craig - 2003-2008 Corey DeLasaux - 2001-2010 Chris Kistner -License: GPL-2+ - -Files: distros/* -Copyright: 2001-2008 Philip Coombes - 2014 Isaac Connor - 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) - 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 - 2009 Dario Freddi - 2008 Laurent Montel, - 2011 Nikita Krupen'ko -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 - 2007-2014 Peter Howard - 2010-2012 Vagrant Cascadian - 2001-2008 Philip Coombes -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". diff --git a/distros/ubuntu1204_cmake/patches/series b/distros/ubuntu1204_cmake/patches/series deleted file mode 100644 index fc70f4006..000000000 --- a/distros/ubuntu1204_cmake/patches/series +++ /dev/null @@ -1,2 +0,0 @@ -default_cgi-path.patch -use_libjs-mootools.patch diff --git a/distros/ubuntu1204_cmake/rules b/distros/ubuntu1204_cmake/rules deleted file mode 100755 index b467c870f..000000000 --- a/distros/ubuntu1204_cmake/rules +++ /dev/null @@ -1,87 +0,0 @@ -#!/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_RUNDIR="/var/run/zm" \ - -DZM_SOCKDIR="/var/run/zm" \ - -DZM_TMPDIR="/tmp/zm" \ - -DZM_CGIDIR="/usr/lib/zoneminder/cgi-bin" \ - -DZM_CONTENTDIR="/var/cache/zoneminder" - -override_dh_clean: - dh_clean $(MANPAGES1) - $(RM) -r docs/_build docs/installationguide - -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 - ## 637685 - chmod -c o-r $(CURDIR)/debian/zoneminder/etc/zm/zm.conf - -override_dh_installinit: - dh_installinit --no-start - -override_dh_apache2: - dh_apache2 --noenable - -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 diff --git a/distros/ubuntu1204_cmake/watch b/distros/ubuntu1204_cmake/watch deleted file mode 100644 index 7ee690edb..000000000 --- a/distros/ubuntu1204_cmake/watch +++ /dev/null @@ -1,7 +0,0 @@ -version=3 - -opts=\ -repacksuffix=+dfsg,\ -dversionmangle=s{\+dfsg\d*}{},\ - https://github.com/ZoneMinder/ZoneMinder/releases \ - .*/ZoneMinder/archive/v(.*).tar.gz diff --git a/distros/ubuntu1204_cmake/zoneminder.postinst b/distros/ubuntu1204_cmake/zoneminder.postinst deleted file mode 100644 index e7810e468..000000000 --- a/distros/ubuntu1204_cmake/zoneminder.postinst +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/sh - -set -e - -if [ "$1" = "configure" ]; then - chown www-data:root /var/log/zm - chown www-data:www-data /var/lib/zm - if [ -z "$2" ]; then - chown www-data:www-data -R /var/cache/zoneminder - fi -fi - -#DEBHELPER# diff --git a/distros/ubuntu1504_cmake/NEWS b/distros/ubuntu1504/NEWS similarity index 100% rename from distros/ubuntu1504_cmake/NEWS rename to distros/ubuntu1504/NEWS diff --git a/distros/ubuntu1504/README.Debian b/distros/ubuntu1504/README.Debian index b8ea413e3..8182e0678 100644 --- a/distros/ubuntu1504/README.Debian +++ b/distros/ubuntu1504/README.Debian @@ -1,9 +1,120 @@ -zoneminder for Debian +Zoneminder for Debian --------------------- -There is one manual step to get the web interface working. -You need to link /etc/zm/apache.conf to /etc/apache2/conf.d/zoneminder.conf, -then reload the apache config (i.e. /etc/init.d/apache2 reload) +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 +------------------ + +Prior to 1.28.1 database upgrade was performed automatically. +"zoneminder" service will refuse to start with outdated database. + +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 starting automatically and need to be +manually activated once database is configured: + +On systemd: + + sudo systemctl enable zoneminder.service + +On SysV: + + sudo update-rc.d zoneminder enable + + +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 "php5-fpm" package to support PHP and "fcgiwrap" package +for binary "cgi-bin" applications: + + sudo apt-get install php5-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 ------------------------------------------- @@ -33,19 +144,17 @@ These lines in fstab could allow you to bind-mount an alternate location /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2 /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2 - - -- Peter Howard , Sun, 16 Jan 2010 01:35:51 +1100 Access to /dev/video* --------------------- -For cameras which require access to /dev/video*, zoneminder may need the +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 +Note that all web applications running on the zoneminder server will then have access to all video devices on the system. -- Vagrant Cascadian Sun, 27 Mar 2011 13:06:56 -0700 diff --git a/distros/ubuntu1504_cmake/TODO.Debian b/distros/ubuntu1504/TODO.Debian similarity index 100% rename from distros/ubuntu1504_cmake/TODO.Debian rename to distros/ubuntu1504/TODO.Debian diff --git a/distros/ubuntu1504/apache.conf b/distros/ubuntu1504/apache.conf deleted file mode 100644 index 965c67f86..000000000 --- a/distros/ubuntu1504/apache.conf +++ /dev/null @@ -1,9 +0,0 @@ -Alias /zm /usr/share/zoneminder/www - - - php_flag register_globals off - Options Indexes FollowSymLinks - - DirectoryIndex index.php - - diff --git a/distros/ubuntu1504/changelog b/distros/ubuntu1504/changelog index 9dea00498..74cf1d0b8 100644 --- a/distros/ubuntu1504/changelog +++ b/distros/ubuntu1504/changelog @@ -1,94 +1,573 @@ -zoneminder (1.28.1+1-vivid-SNAPSHOT2015071501) vivid; urgency=medium +zoneminder (1.28.1+1-vivid-SNAPSHOT2015081701) vivid; urgency=medium - * fix for issue #586 and #932 - * fix for db not being upgraded - * version upgraded to .100 + * include api, switch to cmake build - -- Isaac Connor Wed, 15 Jul 2015 11:56:28 -0400 + -- Isaac Connor Mon, 17 Aug 2015 10:29:23 -0400 -zoneminder (1.28.1+1-trusty-SNAPSHOT2015030201) trusty; urgency=medium - * maybe fix for RTSP Basic Auth - * Also remove dependency on netpbm +zoneminder (1.28.1-8) unstable; urgency=medium - -- Isaac Connor Mon, 02 Mar 2015 11:25:59 -0500 + * Patchworks: + + New upstream "980-fix-image-size.patch". + + New "default_cgi-path.patch" to correct default ZM_PATH_ZMS. + * postinst: set "root" as group owner for "/var/log/zm" to silence + logrotate warnings. + * Minor correction to README.Debian. -zoneminder (1.28.1+1-utopic-SNAPSHOT2015022301) utopic; urgency=medium + -- Dmitry Smirnov Sun, 16 Aug 2015 19:19:50 +1000 - * Big merge of onvif support and some fixes. +zoneminder (1.28.1-7) unstable; urgency=medium - -- Isaac Connor Mon, 23 Feb 2015 19:45:45 -0500 + * Build-Depends += "cakephp (<< 3.0.0~)"; + Zoneminder is not compatible with latest CakePHP. + * Handle conffile removal from maintscript. + * rules: build man pages reproducibly. + * gbp.conf: renamed old style config section [git-dch] to [dch]. + * README + + added instructions to update owner of the "/etc/zm/zm.conf" + (Closes: #789327). + + zmupdate.pl needs CREATE rights. + + added note about required number of "fcgiwrap" workers. + * New upstream patch: "zmtrigger-plus.patch". -zoneminder (1.28.0+1-trusty-SNAPSHOT2015021201) trusty; urgency=medium + -- Dmitry Smirnov Mon, 20 Jul 2015 16:30:15 +1000 - * add mysql-client-5.6 as a dependency instaed of mysql-client. +zoneminder (1.28.1-6) unstable; urgency=low - -- Isaac Connor Fri, 13 Feb 2015 09:35:13 -0500 + * New "zoneminder-doc" and "zoneminder-dbg" packages. -zoneminder (1.28.0+1-trusty-SNAPSHOT2015011101) trusty; urgency=medium + -- Dmitry Smirnov Sun, 19 Apr 2015 14:50:41 +1000 - * small changes +zoneminder (1.28.1-5) unstable; urgency=low - -- Isaac Connor Fri, 12 Dec 2014 16:38:36 -0500 + * Move handling of "/var/run/zm" and "/tmp/zm" from .service into .tmpfile. + Let dh_installinit do the job. Thanks, Andrew Bauer. + * Use dh_apache2 to install Apache conf file; remove old conf and symlink. + * Promote "libapache2-mod-php5 | php5-fpm" to Recommends. + * Build-Depends: + + dh-linktree + + cakephp (>= 2.6.3) + + libjs-jquery + + libjs-mootools + * Depends: + - libjs-jquery + - libjs-mootools + * Build-time replace bundled CakePHP with system one using "dh-linktree". + * Use "dh-linktree" to handle mootools and jquery symlinks. -zoneminder (1.28.0+1-utopic-SNAPSHOT2014112001) utopic; urgency=medium + -- Dmitry Smirnov Sun, 19 Apr 2015 11:45:01 +1000 - * Various fixes and developments since 1.28.0. Includes Digest-Auth for HTTP and better for RTSP +zoneminder (1.28.1-4) unstable; urgency=low - -- Isaac Connor Thu, 20 Nov 2014 10:57:57 -0500 + * New patch to fix HTML export with USE_DEEP_STORAGE (closes: #723706). + * New "783.patch" to describe potential data loss in ZM_USE_DEEP_STORAGE. + * New patch to change default date format to region-neutral ISO notation + with time zone. + * Build sphinx documentation: + + Install "zoneminder.1" man page. + + Build-Depends += "python-sphinx | python3-sphinx" + + Added commented "zoneminder-doc" package. + + Added "docs.patch" to unlink distro-specific installation docs. + * rules: + + set ZM_CONTENTDIR, ZM_SOCKDIR and ZM_TMPDIR. + + remove mistakengly installed Perl module templates. + * Updated startup scripts to create ZM_TMPDIR. + * Hurd improvements: + + New patch to add PATH_MAX definitions. + + Build without MMAP support on Hurd. + + libsys-mmap-perl [!hurd-any]. -zoneminder (1.28.0-trusty) trusty; urgency=medium + -- Dmitry Smirnov Mon, 06 Apr 2015 18:18:55 +1000 - * Release +zoneminder (1.28.1-3) unstable; urgency=low - -- Isaac Connor Fri, 17 Oct 2014 09:25:55 -0400 + * Updated Apache2 and nginx configuration templates to support CGI. + * Updated README.Debian to document cgi-bin setup. + * Removed "/usr/share/zoneminder/www/cgi-bin" symlink. + * Added "apache2.patch" to correct Apache2 site configuration example. + * control: Suggests += "fcgiwrap". + * rules: added dh_systemd overrides to prevent automatic service + activation and start. + * Added note about manual service activation to README.Debian + (Closes: #781733). -zoneminder (1.27.99+1-trusty-SNAPSHOT2014101401) trusty; urgency=medium + -- Dmitry Smirnov Thu, 02 Apr 2015 23:20:20 +1100 - * Several PR merges in big push for 1.28.0 +zoneminder (1.28.1-2) unstable; urgency=low - -- Isaac Connor Tue, 14 Oct 2014 09:28:29 -0400 + * Removed word "Linux" from short package description. + * Build-Depends: do not require "libv4l-dev" on Hurd i.e. [!hurd-any]. + * Added run-time Perl Depends: + + libdbd-mysql-perl + + libimage-info-perl + + libmodule-load-conditional-perl + + libnet-sftp-foreign-perl + + liburi-encode-perl + * Prepare for package split: added commented "libzoneminder-perl" + and "zoneminder-dbg" packages to "debian/control". + * rules: do not install worthless ".packlist" file. + * Updated "libv4l1-videodev.h.patch" to fix v4lv1 detection in CMake. -zoneminder (1.27.99+1-trusty-SNAPSHOT2014092601) trusty; urgency=medium + -- Dmitry Smirnov Thu, 02 Apr 2015 13:25:19 +1100 - * style updates and db fixes for database logging filters +zoneminder (1.28.1-1) unstable; urgency=low - -- Isaac Connor Fri, 26 Sep 2014 14:44:45 -0400 + [ Dmitry Smirnov ] + * New upstream release [February 2015]. + * Upload to unstable. + * Disabled automatic database upgrades: post(inst|rm) scripts no longer + touch database or do unexpected stuff (Closes: #779254). + See README.Debian for details. + * Updated installation paths: + + /usr/share/zoneminder --> /usr/share/zoneminder/www + + /usr/lib/cgi-bin --> /usr/lib/zoneminder/cgi-bin + * Added logrotate config (Closes: #544826). + Thanks, Alberto Reyes. + * Native systemd service; "--with systemd" added to dh. + * Build with CMake instead of autoconf; rules clean-up. + * Build with all hardening. + * Build and install "zmupdate.pl.1" man page. + * Added nginx/php5-fpm configuration example. + * Install upstream "apache.conf" example. + * Described setup of Zoneminer web site and database in README.Debian. + * Install "/etc/zm/zm.conf" with tighter permissions. + * Added TODO.Debian. + * Added "debian/clean"; "debian/gbp.conf"; bug-presubj. + * Remove bundled Cake tests to take ~5 MB off big-usr-share. + * Standards-Version: 3.9.6; compat/debhelper to version 9. + * Vcs links to new git repository at collab-maint. + * Build-Depends: + + dh-systemd + + libgcrypt11-dev --> libgcrypt-dev + + libcurl4-gnutls-dev + + libvlc-dev + + policykit-1 (required by "zmsystemctl.pl") + - dh-autoreconf, autoconf, automake + * Depends: + - apache2 + - libapache2-mod-php5 (moved to Suggests) + - libpcre3 (invalid) + - libmodule-load-perl (obsolete; replaced with perl-modules) + - libarchive-tar-perl (obsolete; replaced with perl-modules) + - mysql-server (moved to Recommends, Closes: #759504). + - php5 + + libav-tools + + libjs-jquery (replaces bundled component) + + libjs-mootool (replaces bundled component) + + libjson-any-perl (Closes: #690803). + + perl-modules (Closes: #745819). + * Recommends: + + apache2 | httpd + + mysql-server | virtual-mysql-server (Closes: #732874). + * Suggests: + + libapache2-mod-php5 | php5-fpm + + logrotate + * Refreshed, renamed and re-ordered patches; added DEP-3 headers. + * Removed "vendor_perl" patch (applied-upstream). + * New patches: + + cmake-fix-confpath.patch + + cmake-gnutls.patch + + cmake-nossl.patch + + cmake.patch + + format-hardening.patch + + pod_man_fixes.patch + + pod_name_fixes.patch + + pod_zmupdate-to-pod2usage.patch + * Lintianisation (incomplete): + - extra-license-file + - init.d-script-missing-lsb-description + - init.d-script-does-not-source-init-functions + - privacy-breach-generic + - package-contains-empty-directory + - manpage-has-errors-from-pod2man + - manpage-has-bad-whatis-entry + - quilt-patch-missing-description + - no-dep5-copyright + * Lintian-overrides: + + unusual-interpreter usr/bin/zmsystemctl.pl #!/usr/bin/pkexec + + script-not-executable usr/share/zoneminder/www/api/* + + script-with-language-extension usr/bin/*.pl + + source-is-missing web/tools/mootools/mootools-*-yc.js + + source-is-missing web/skins/*/js/jquery-1.4.2.min.js + + source-contains-prebuilt-javascript-object + * Renamed files in "debian". + * watch: dfsg repacksuffix and dversionmangle. + * "debian/copyright" to Copyright-Format-1.0. + * Set myself as new Maintainer (Closes: #760314). -zoneminder (1.27.99+1-trusty-SNAPSHOT2014090801) trusty; urgency=medium + [ Vagrant Cascadian ] + * Removed obsolete DM-Upload-Allowed flag. + * Update debian/watch to use tarballs from github. + * Add Build-Depends on libgcrypt11-dev (Closes: #745819). + * Use canonical alioth Vcs-Hg URL. + * debian/control: Add Build-Depends: libpolkit-gobject-1-dev. + * Removed configure flag "--enable-crashtrace=no", which is no longer + present upstream. - * several segfault fixes for local cameras + -- Dmitry Smirnov Tue, 31 Mar 2015 15:11:13 +1100 - -- Isaac Connor Mon, 08 Sep 2014 16:56:57 -0400 +zoneminder (1.26.5-3.1) experimental; urgency=low -zoneminder (1.27.99+1-trusty-SNAPSHOT2014090701) trusty; urgency=medium + * Non-maintainer upload. + * Add libav10.patch and compile against libav10 (Closes: #739461) - * Fix segfaults for local cameras, also now includes the systemd support patch + -- Reinhard Tartler Wed, 19 Mar 2014 00:31:22 +0000 - -- Isaac Connor Sun, 07 Sep 2014 17:19:01 -0400 +zoneminder (1.26.5-3) unstable; urgency=low -zoneminder (1.27.99+1-trusty-SNAPSHOT2014082102) trusty; urgency=medium - * Fix UI inputs for v4l multibuffer and captures per frame + * Previous release still didn't build on PPC - this has been corrected. + (Closes: #736516) - -- Isaac Connor Thu, 21 Aug 2014 12:03:31 -0400 + -- Peter Howard Tue, 4 Feb 2014 02:02:10 +1000 -zoneminder (1.27.99+1-trusty-SNAPSHOT2014082101) trusty; urgency=medium +zoneminder (1.26.5-2) unstable; urgency=low - * fall back to Config table values for V4l MultiBUffer and Captures Per Frame - * add mention of monitor page settings for thse in the config table + * Remove dependency on ffmpeg + (Closes: #721161) - -- Isaac Connor Thu, 21 Aug 2014 10:04:46 -0400 + * Builds again on non-x86 target architectures. -zoneminder (1.27.99+1-precise-SNAPSHOT2014080601) precise; urgency=medium + -- Peter Howard Thu, 23 Jan 2014 01:02:10 +1000 - * improve error messages - * Make zmupdate re-run the most recent patch so that people running the daily builds get their db updates +zoneminder (1.26.5-1) unstable; urgency=low - -- Isaac Connor Wed, 06 Aug 2014 20:20:20 -0400 + * New upstream version + (Closes: #694131) + * Change Build-Depends on libgnutls-dev to libgnutls-openssl-dev + (Closes: #731560) + -- Peter Howard Tue, 17 Dec 2013 01:02:10 +1000 -zoneminder (1.27.0+1-trusty-v4ltomonitor-1) trusty; urgency=high +zoneminder (1.25.0-4) unstable; urgency=high - * Snapshot release - + * Add CVE-2013-0232 patch + [SECURITY] CVE-2013-0232: Shell escape commands with untrusted content. + Thanks to James McCoy (Closes: #698910) + Thanks also to Salvatore Bonaccorso - -- Isaac Connor Wed, 09 Jul 2014 21:35:29 -0400 + -- Peter Howard Tue, 12 Jun 2013 12:02:10 +1000 + +zoneminder (1.25.0-3) unstable; urgency=low + + * debian/rules: Export CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS, to ensure + hardening build flags are enabled. + + -- Vagrant Cascadian Tue, 28 Aug 2012 12:10:03 -0700 + +zoneminder (1.25.0-2) unstable; urgency=low + + [ Vagrant Cascadian ] + * Add a patch to disable checking for updated versions by default, as + upgrades should happen through package management. + * Use dpkg-buildflags in debian/rules to set default compiler flags. + * Ensure zoneminder is stopped before starting (Closes: #657407). + + [ Peter Howard ] + * Fix postinst to add permission for table creation during upgrade + (Closes: #657407). + + -- Vagrant Cascadian Thu, 23 Aug 2012 12:40:34 -0700 + +zoneminder (1.25.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "ftbfs with GCC-4.7": add patch Fix-FTBFS-with-gcc-4.7 from Cyril + Brulebois: fix missing includes. + (Closes: #667428) + + -- gregor herrmann Sun, 13 May 2012 17:02:21 +0200 + +zoneminder (1.25.0-1) unstable; urgency=low + + * Fix typo in libv4l1-videodev.h patch that caused v4l1 support to be + dropped. + * Fail to build if version in postinst doesn't match upstream version. + * Add Build-Depends: libavdevice-dev to fix MPEG streaming (Closes: #515558). + * debian/rules: Convert to using debhelper overrides. + * Set debian/compat to 7. + * Simplify debian/watch file. + * Refresh debian/patches/use_libjs-mootools. + * Refresh debian/patches/libv4l1-videodev.h. + * Remove dependencies on php4 and related packages. + * Remove build-dependencies on libmysqlclient14-dev and + libmysqlclient15-dev. + * Update Build-Depends to use libjpeg-dev instead of libjpeg62-dev + (Closes: #647114). + * Add patch to fix build by testing for C headers rather than C++ headers. + Thanks to Ryan Niebur. (Closes: #654230) + * Add a patch to fix build problems caused by API changes in libav 0.8. + Thanks again to Ryan Niebur. (Closes: #654230) + + -- Vagrant Cascadian Mon, 16 Jan 2012 11:58:05 -0800 + +zoneminder (1.24.4-1) unstable; urgency=low + + [ Peter Howard ] + * Initial release of 1.24.4 (Closes: #634985). + - Fix 32/64-bit type declarations (Closes: #614404). + * Update patches. + + [ Vagrant Cascadian ] + * Add patch to fix FTBFS by using libv4l1-videodev.h from libv4l-dev. + Thanks to Andreas Metzler for reporting the issue. + (Closes: #619813). + * Document adding the www-data user to the video group in README.Debian. + (Closes: #611324) + * Depend on libsys-mmap-perl to enable mapped memory support. + (Closes: #607331) + * Update libjs-mootools patch to use -nc variants (Closes: #635075). + * Depend on javascript-common, to ensure that /javascript is available in + the web server. + * Set the upstream version in postinst at build time. + * Use dh-autoreconf to properly clean up autogenerated files during build. + * Add Vcs-HG to debian/control. + * Add Build-Depends: libv4l-dev, libbz2-dev, dh-autoreconf, libsys-mmap-perl. + + -- Vagrant Cascadian Sun, 24 Jul 2011 16:44:30 +0200 + +zoneminder (1.24.2-9) unstable; urgency=low + + * Apply patch from Ubuntu to fix FTBFS with ffmpeg 0.6: + - Add -D__STDC_CONSTANT_MACROS to CPPFLAGS (closes: 614080). + * Update Standards-Version to 3.9.1, no changes necessary. + + -- Vagrant Cascadian Sun, 20 Feb 2011 23:43:02 -0800 + +zoneminder (1.24.2-8) unstable; urgency=medium + + [ Vagrant Cascadian ] + * Apply patch to fix V4L2 cameras without crop support (closes: #608790). + Thanks to piratebab. + * Add preinst script which aborts if dangerous symlinks exist. + (closes: #608793) + + [ Peter Howard ] + * Added to README.Debian with info about images and events directories. + (closes: #608793) + + -- Vagrant Cascadian Sat, 15 Jan 2011 19:39:26 -0800 + +zoneminder (1.24.2-7) unstable; urgency=medium + + * Do not set ownership of /var/cache/zoneminder when upgrading, which fixes a + regression causing upgrades to take inordinately long with large + installations (closes: #597040). + + -- Vagrant Cascadian Fri, 17 Sep 2010 11:24:41 -0700 + +zoneminder (1.24.2-6) unstable; urgency=low + + * Only remove database on purge. This requires only creating the database if + it doesn't already exist, and upgrading the database only if the database + is an older version (closes: #497107). + + * Do not prompt the user on database upgrades by using the --nointeractive + flag when calling zmupdate.pl from postinst (closes: #595902). + + -- Vagrant Cascadian Fri, 10 Sep 2010 10:06:06 -0700 + +zoneminder (1.24.2-5) unstable; urgency=low + + [ Peter Howard ] + * Add zip dependency + (closes: #494261) + * Add debian/watch file + (closes: #545552) + * Use packaged libjs-mootools + (closes: #585590) + * Miscellaneous cleanups + + [ Vagrant Cascadian ] + * Add vagrant@debian.org as uploader + * Update Standards-Version to 3.9.0, no changes necessary. + + -- Vagrant Cascadian Fri, 23 Jul 2010 18:12:50 -0500 + +zoneminder (1.24.2-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "package removed, processes still running": apply patch to + debian/postinst by Vagrant Cascadian: use invoke-rc.d and run + mysql-related actions only when mysql is running (closes: #583648). + + -- gregor herrmann Thu, 01 Jul 2010 19:47:10 +0200 + +zoneminder (1.24.2-4) unstable; urgency=high + * Update init.d to list mysql dependency + (closes: #583505) + * Change depenency from libmime-perl to libmime-tools-perl + (closes: #585589) + * Problems in changelog format fixed + (closes: #585592) + * Fix debian-rules-ignores-make-clean-error + (closes: #585593) + -- Peter Howard Mon, 14 jun 2010 15:02:10 +1000 + +zoneminder (1.24.2-3) unstable; urgency=high + * Changes symbols to build with libjpeg8 + (closes: #565326, #568327) + * Note: location of all perl files should have been fixed in previous release + (closes: #553096) + -- Peter Howard Mon, 26 apr 2010 15:02:10 +1000 + +zoneminder (1.24.2-2) unstable; urgency=high + + * Remove custom perl parth from zmpkg.pl, fix location of manpages. + (closes: #551746, #553092) + * Fix GCC4.4 bug + (closes: #531717) + * Fix potential bug in postinst script + + -- Peter Howard Sat, 14 Nov 2009 15:02:10 +1000 + +zoneminder (1.24.2-1) unstable; urgency=high + + * Initial release of zoneminder 1.24.2 + -- Peter Howard Fri, 11 Sep 2009 07:02:50 +1000 + +zoneminder (1.24.1-1) unstable; urgency=high + + * Initial release of zoneminder 1.24.1, closing CVE-2008-3882, + CVE-2008-3881, CVE-2008-3880 + (closes: #497640) + * Change syslog dependency to rsyslog. + (closes: #526918) + * Add missing perl depenency. + * Restore patch to disable "check for updates" by default. + * Removed spurious '$' in init script. + (closes: #486064) + * Change permission of zm.conf from 0600 to 0400 for CVE-2008-6755 + (closes: #528252) + -- Peter Howard Sat, 16 May 2009 07:02:50 +1000 + +zoneminder (1.23.3-4) unstable; urgency=high + + * update to get it building with latest unstable. Thanks to waldi@debian.org + (closes: #517569) + -- Peter Howard Thu, 16 Apr 2009 01:02:50 +1000 + +zoneminder (1.23.3-3) unstable; urgency=high + + * ffmpeg confirmed working + (closes: #475145) + * Fix upgrade problem intrudouced in 1.23.3-1 + (closes: #481637) + * Include libmime-lite-perl in dependencies + (closes: #486312) + -- Peter Howard Thu, 18 Sep 2008 01:02:50 +1000 + +zoneminder (1.23.3-2) unstable; urgency=high + + * ffmpeg finally working? + + -- Peter Howard Wed, 13 Aug 2008 01:02:50 +1000 + +zoneminder (1.23.3-1) unstable; urgency=high + + * Initial version for 1.23.3 - security fix. + (closes: #479034) + + -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 + +zoneminder (1.23.2-2) unstable; urgency=low + + * Update to init.d + (closes: #468856) + * Add dependency on logging daemon + (closes: #471277) + + -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 + +zoneminder (1.23.2-1) unstable; urgency=low + + * Initial version for 1.23.2 + (closes: #464152) + * Zoneminder 1.23.2 upstream includes fix for GCC 4.3 + (closes: #454980) + * Includes ffmpeg patch by Alexander Kushnirenko + + -- Peter Howard Sat, 01 Mar 2008 16:02:50 +1000 + +zoneminder (1.22.3-10) unstable; urgency=low + + * Fix bug introduced in -9 where perl is put under /usr/local + (closes: #457507) + + -- Peter Howard Mon, 24 Dec 2007 16:02:50 +1000 + +zoneminder (1.22.3-9) unstable; urgency=low + + * Starting zoneminder via init script now invokes "zmfix -a" + (closes: #481637) + * Change apache2-mpm-prefork dependency to apache2 + * Temp dir for export under /var/cache/zoneminder (but linked back to + /usr/share/zoneminder for now) + * Redo use of gnutls rather than openssl for md5 hashes + + -- Peter Howard Mon, 10 Dec 2007 16:02:50 +1000 + +zoneminder (1.22.3-8) unstable; urgency=low + + * Build now includes libpcre3 + (closes: #437533) + * "Monitor Presets" patch now applied to package during build. + + -- Peter Howard Sat, 18 Aug 2007 14:35:23 +1000 + +zoneminder (1.22.3-7) unstable; urgency=low + + * Turn off debug trace and crash dump on build + (closes:#414857,#414891) + * Additional perl libraries added in dependencies + (closes:#416291) + * Change preferred PHP version from 4 to 5 + -- Peter Howard Sun, 29 Jul 2007 15:11:13 +1000 + +zoneminder (1.22.3-6) unstable; urgency=low + + * Removed a similar bash only statement from zmpkg.pl + (closes:414882) + + -- Peter Howard Sat, 14 Apr 2007 11:46:56 +1000 + +zoneminder (1.22.3-5) unstable; urgency=low + + * Installs with "phone home" feature turned off by default, and permissions + on /etc/zm/zm.conf fixed (now the 0600 it s hould be) + (closes:415349) + * Removed "stupid bash-ism" on mysqld check in postinst file. + + -- Peter Howard Fri, 6 Apr 2007 15:50:00 +1000 + +zoneminder (1.22.3-4) unstable; urgency=low + + * Put libmysqlclient-15-dev in front of -14-dev so sbuild works + (closes: #414410) + + -- Peter Howard Mon, 12 Mar 2007 11:38:56 +1100 + +zoneminder (1.22.3-3) unstable; urgency=low + + * Clean up of postinstall, postrm ; user "zm" definitely was a mistake + * Also in postinstall: check and start MySQL if it's not running. + * init.d script now checks if zoneminder isn't running and still returns 0 + (which helps uninstalling) + * Addition of php5 dependency options as well as php4. + + -- Peter Howard Mon, 26 Feb 2007 10:40:52 +1100 + +zoneminder (1.22.3-2) unstable; urgency=low + + * Added zmuser in the mysql creation; this should fix the install problem + for people, but needs to be cleaned up (in -3) + + -- Peter Howard Fri, 16 Feb 2007 14:16:03 +1100 + +zoneminder (1.22.3-1) unstable; urgency=low + + * Initial Version. (closes: #248393) + * Patched out use of openssl; uses gnutls instead for MD5 hashes. + * Removed MakeMaker-inserted Perl licensing (with authors permission) in + various scripts; replaced with GPL. + + -- Peter Howard Wed, 7 Feb 2007 14:09:01 +1100 diff --git a/distros/ubuntu1504_cmake/clean b/distros/ubuntu1504/clean similarity index 100% rename from distros/ubuntu1504_cmake/clean rename to distros/ubuntu1504/clean diff --git a/distros/ubuntu1504_cmake/conf/apache2/zoneminder.conf b/distros/ubuntu1504/conf/apache2/zoneminder.conf similarity index 100% rename from distros/ubuntu1504_cmake/conf/apache2/zoneminder.conf rename to distros/ubuntu1504/conf/apache2/zoneminder.conf diff --git a/distros/ubuntu1504/control b/distros/ubuntu1504/control index 8fa3f3596..c1b7d958f 100644 --- a/distros/ubuntu1504/control +++ b/distros/ubuntu1504/control @@ -1,45 +1,72 @@ Source: zoneminder Section: net Priority: optional -Maintainer: Isaac Connor -Build-Depends: debhelper (>= 9), dh-systemd (>= 1.5), autoconf, automake, quilt, libtool, dh-autoreconf - , libphp-serialization-perl, libgnutls-dev - , libmysqlclient-dev | libmariadbclient-dev, libdbd-mysql-perl - , libdate-manip-perl, libwww-perl - , libjpeg8-dev|libjpeg9-dev|libjpeg62-turbo-dev, libpcre3-dev - , libavcodec-ffmpeg-dev, libavformat-ffmpeg-dev, libswscale-ffmpeg-dev, libavutil-ffmpeg-dev, libavdevice-ffmpeg-dev - , libv4l-dev (>= 0.8.3), libbz2-dev - , libsys-mmap-perl - , libdevice-serialport-perl, libpcre3, libarchive-zip-perl, libmime-lite-perl - , libvlccore-dev, libvlc-dev - , libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev - , libgcrypt11-dev, libpolkit-gobject-1-dev +Maintainer: Dmitry Smirnov +Uploaders: Vagrant Cascadian +Build-Depends: debhelper (>= 9), dh-systemd, python-sphinx | python3-sphinx, apache2-dev, dh-linktree + ,cmake + ,libavcodec-ffmpeg-dev, libavformat-ffmpeg-dev, libswscale-ffmpeg-dev, libavutil-ffmpeg-dev, libavdevice-ffmpeg-dev + ,libbz2-dev + ,libgcrypt-dev + ,libcurl4-gnutls-dev + ,libgnutls-openssl-dev + ,libjpeg-dev + ,libmysqlclient-dev + ,libpcre3-dev + ,libpolkit-gobject-1-dev + ,libv4l-dev (>= 0.8.3) [!hurd-any] + ,libvlc-dev + ,libdate-manip-perl + ,libdbd-mysql-perl + ,libphp-serialization-perl + ,libsys-mmap-perl [!hurd-any] + ,libwww-perl +# Unbundled (dh_linktree): + ,libjs-jquery + ,libjs-mootools Standards-Version: 3.9.6 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}, apache2, libapache2-mod-php5 | libapache2-mod-fcgid, php5, php5-mysql|php5-mysqlnd, libphp-serialization-perl, libdate-manip-perl, libmime-lite-perl, libmime-tools-perl, mariadb-client|mysql-client|mysql-client-5.6, libwww-perl, libarchive-tar-perl, libarchive-zip-perl, libdevice-serialport-perl, libpcre3, ffmpeg, rsyslog | system-log-daemon, libmodule-load-perl, libsys-mmap-perl, libjson-any-perl, libavdevice-ffmpeg56, libjpeg8|libjpeg9|libjpeg62-turbo, zip, libnet-sftp-foreign-perl, libio-pty-perl, libexpect-perl, libvlccore5 | libvlccore7 | libvlccore8, libvlc5, libcurl4-gnutls-dev | libcurl4-nss-dev | libcurl4-openssl-dev, libpolkit-gobject-1-0, liburi-encode-perl, php5-gd -Recommends: mysql-server|mariadb-server -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: zoneminder-dbg -Section: debug -Priority: extra -Architecture: any -Depends: zoneminder (= ${binary:Version}), ${misc:Depends} -Description: Debugging symbols for zoneminder. - ZoneMinder is a video camera security and surveillance solution. +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} + ,javascript-common + ,libav-tools + ,libdate-manip-perl + ,libdbd-mysql-perl + ,libmime-lite-perl + ,libmime-tools-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-any-perl + ,libsys-mmap-perl [!hurd-any] + ,liburi-encode-perl + ,libwww-perl + ,libdata-dump-perl + ,libclass-std-fast-perl + ,libsoap-wsdl-perl + ,libio-socket-multicast-perl + ,libdigest-sha-perl + ,libsys-cpu-perl, libsys-meminfo-perl + ,mysql-client | virtual-mysql-client + ,perl-modules + ,php5-mysql, php5-gd + ,policykit-1 + ,rsyslog | system-log-daemon + ,zip +Recommends: ${misc:Recommends} + ,libapache2-mod-php5 | php5-fpm + ,mysql-server | virtual-mysql-server + ,zoneminder-doc (>= ${source:Version}) +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 @@ -50,3 +77,70 @@ Description: Debugging symbols for zoneminder. 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-any-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 diff --git a/distros/ubuntu1504/copyright b/distros/ubuntu1504/copyright index a177502a0..c48025a25 100644 --- a/distros/ubuntu1504/copyright +++ b/distros/ubuntu1504/copyright @@ -1,22 +1,174 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ZoneMinder +Upstream-Contact: Philip Coombes +Source: https://github.com/ZoneMinder/ZoneMinder +Comment: + This package was originally debianized by matrix + on Mon, 7 Mar 2005 02:07:57 -0500. + It was re-done for submission to the Debian project by Peter Howard + 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 + 2008 Brian Rudy + 2014 Vincent Giovannone + 2013 Tim Craig + 2003-2008 Corey DeLasaux + 2001-2010 Chris Kistner +License: GPL-2+ + +Files: distros/* +Copyright: 2001-2008 Philip Coombes + 2014 Isaac Connor + 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) + 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 + 2009 Dario Freddi + 2008 Laurent Montel, + 2011 Nikita Krupen'ko +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. -Copyright 2002 Philip Coombes +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. -License: +Files: debian/* +Copyright: 2015 Dmitry Smirnov + 2007-2014 Peter Howard + 2010-2012 Vagrant Cascadian + 2001-2008 Philip Coombes +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. +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. -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. +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". -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 - -On Debian GNU/Linux systems, the text of the GPL can be found in -/usr/share/common-licenses/GPL. +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". diff --git a/distros/ubuntu1504/dirs b/distros/ubuntu1504/dirs deleted file mode 100644 index 4178482c1..000000000 --- a/distros/ubuntu1504/dirs +++ /dev/null @@ -1,6 +0,0 @@ -var/log/zm -var/lib/zm -var/cache/zoneminder/events -var/cache/zoneminder/images -var/cache/zoneminder/temp -usr/share/zoneminder/db diff --git a/distros/ubuntu1504/docs b/distros/ubuntu1504/docs deleted file mode 100644 index b43bf86b5..000000000 --- a/distros/ubuntu1504/docs +++ /dev/null @@ -1 +0,0 @@ -README.md diff --git a/distros/ubuntu1504_cmake/examples/nginx.conf b/distros/ubuntu1504/examples/nginx.conf similarity index 100% rename from distros/ubuntu1504_cmake/examples/nginx.conf rename to distros/ubuntu1504/examples/nginx.conf diff --git a/distros/ubuntu1504_cmake/gbp.conf b/distros/ubuntu1504/gbp.conf similarity index 100% rename from distros/ubuntu1504_cmake/gbp.conf rename to distros/ubuntu1504/gbp.conf diff --git a/distros/ubuntu1504/install b/distros/ubuntu1504/install deleted file mode 100644 index 4b0009cea..000000000 --- a/distros/ubuntu1504/install +++ /dev/null @@ -1,12 +0,0 @@ -usr/bin -usr/lib/cgi-bin -usr/share/man -usr/share/perl5/ZoneMinder -usr/share/perl5/ZoneMinder.pm -usr/share/polkit-1/actions -usr/share/polkit-1/rules.d -usr/share/zoneminder -etc/zm -db/zm_create.sql usr/share/zoneminder/db -db/zm_update-*.sql usr/share/zoneminder/db -debian/apache.conf etc/zm diff --git a/distros/ubuntu1504_cmake/libzoneminder-perl.install b/distros/ubuntu1504/libzoneminder-perl.install similarity index 100% rename from distros/ubuntu1504_cmake/libzoneminder-perl.install rename to distros/ubuntu1504/libzoneminder-perl.install diff --git a/distros/ubuntu1504/links b/distros/ubuntu1504/links deleted file mode 100644 index 2de75e323..000000000 --- a/distros/ubuntu1504/links +++ /dev/null @@ -1,4 +0,0 @@ -var/cache/zoneminder/events usr/share/zoneminder/www/events -var/cache/zoneminder/images usr/share/zoneminder/www/images -var/cache/zoneminder/temp usr/share/zoneminder/www/temp -usr/lib/cgi-bin usr/lib/zoneminder/cgi-bin diff --git a/distros/ubuntu1504_cmake/patches/default_cgi-path.patch b/distros/ubuntu1504/patches/default_cgi-path.patch similarity index 100% rename from distros/ubuntu1504_cmake/patches/default_cgi-path.patch rename to distros/ubuntu1504/patches/default_cgi-path.patch diff --git a/distros/ubuntu1504/patches/series b/distros/ubuntu1504/patches/series index e69de29bb..fc70f4006 100644 --- a/distros/ubuntu1504/patches/series +++ b/distros/ubuntu1504/patches/series @@ -0,0 +1,2 @@ +default_cgi-path.patch +use_libjs-mootools.patch diff --git a/distros/ubuntu1504_cmake/patches/use_libjs-mootools.patch b/distros/ubuntu1504/patches/use_libjs-mootools.patch similarity index 100% rename from distros/ubuntu1504_cmake/patches/use_libjs-mootools.patch rename to distros/ubuntu1504/patches/use_libjs-mootools.patch diff --git a/distros/ubuntu1504/postinst b/distros/ubuntu1504/postinst deleted file mode 100644 index e009a9799..000000000 --- a/distros/ubuntu1504/postinst +++ /dev/null @@ -1,53 +0,0 @@ -#! /bin/sh - -set -e - -if [ "$1" = "configure" ]; then - if [ -e "/lib/systemd/system/mysql.service" ]; then - # - # Get mysql started if it isn't - # - if ! $(systemctl is-active mysql >/dev/null 2>&1); then - systemctl start mysql - fi - if $(systemctl is-active mysql >/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 - echo 'grant lock tables, alter,select,insert,update,delete on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - fi - - systemctl stop zoneminder || true #not sure about "|| true" - zmupdate.pl --nointeractive - - 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 - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - if [ -z "$2" ]; then - chown www-data:www-data -R /var/cache/zoneminder - fi -fi -# Ensure zoneminder is stopped... -if [ -e "/lib/systemd/system/zoneminder.service" ]; then #changed from -x to -e, could be wrong - if systemctl is-active zoneminder >/dev/null 2>&1 ; then - systemctl stop zoneminder || exit $? - fi -fi - -if [ "$1" = "configure" ]; then - if [ -z "$2" ]; then - chown www-data:www-data /var/log/zm - chown www-data:www-data /var/lib/zm/ - chown www-data:www-data -R /var/cache/zoneminder - else - chown www-data:www-data /var/log/zm - zmupdate.pl - fi -fi -#DEBHELPER# diff --git a/distros/ubuntu1504/postrm b/distros/ubuntu1504/postrm deleted file mode 100644 index 28a00a7a0..000000000 --- a/distros/ubuntu1504/postrm +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/sh -# set -e # to be reinstated later - -if [ "$1" = "purge" ]; then - echo 'delete from user where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - echo 'delete from db where User="zmuser";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - mysqladmin --defaults-file=/etc/mysql/debian.cnf -f drop zm -fi -#DEBHELPER# diff --git a/distros/ubuntu1504/preinst b/distros/ubuntu1504/preinst deleted file mode 100755 index f35723bc0..000000000 --- a/distros/ubuntu1504/preinst +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -set -e - -abort=false -if [ -L /usr/share/zoneminder/www/events ]; then - l=$(readlink /usr/share/zoneminder/www/events) - if [ "$l" != "/var/cache/zoneminder/events" ]; then - abort=true - fi -fi -if [ -L /usr/share/zoneminder/www/images ]; then - l=$(readlink /usr/share/zoneminder/www/images ) - if [ "$l" != "/var/cache/zoneminder/images" ]; then - abort=true - fi -fi - -if [ "$abort" = "true" ]; then - cat >&2 << EOF -Aborting installation of zoneminder due to non-default symlinks in -/usr/share/zoneminder/www for the images and/or events directory, which could -result in loss of data. Please move your data in each of these directories to -/var/cache/zoneminder/www before installing zoneminder from the package. -EOF - exit 1 - -fi - -#DEBHELPER# - -exit 0 diff --git a/distros/ubuntu1504/rules b/distros/ubuntu1504/rules index 9fe5e92d8..bf8012aa8 100755 --- a/distros/ubuntu1504/rules +++ b/distros/ubuntu1504/rules @@ -1,67 +1,93 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed -CFLAGS = -Wall -g -CPPFLAGS = -D__STDC_CONSTANT_MACROS -CXXFLAGS = -DHAVE_LIBCRYPTO - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 +ifeq ($(DEB_BUILD_ARCH_OS),hurd) +ARGS:= -DZM_NO_MMAP=ON endif %: - dh $@ --with quilt,autoreconf,systemd + dh $@ --parallel --buildsystem=cmake --builddirectory=dbuild \ + --with systemd,sphinxdoc,apache2,linktree override_dh_auto_configure: - CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --sysconfdir=/etc/zm --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-mysql=/usr --with-mariadb=/usr --with-webdir=/usr/share/zoneminder --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=no --enable-mmap=yes + dh_auto_configure -- $(ARGS) \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DZM_CONFIG_DIR="/etc/zm" \ + -DZM_RUNDIR="/var/run/zm" \ + -DZM_SOCKDIR="/var/run/zm" \ + -DZM_TMPDIR="/tmp/zm" \ + -DZM_CGIDIR="/usr/lib/zoneminder/cgi-bin" \ + -DZM_CONTENTDIR="/var/cache/zoneminder" override_dh_clean: - # Add here commands to clean up after the build process. - [ ! -f Makefile ] || $(MAKE) distclean - dh_clean + dh_clean $(MANPAGES1) + $(RM) -r docs/_build docs/installationguide -override_dh_install: - dh_install --fail-missing - # - # NOTE: This is a short-term kludge; hopefully changes in the next - # upstream version will render this unnecessary. - rm -rf debian/zoneminder/usr/share/zoneminder/www/events - rm -rf debian/zoneminder/usr/share/zoneminder/www/images - rm -rf debian/zoneminder/usr/share/zoneminder/temp - dh_link var/cache/zoneminder/events usr/share/zoneminder/www/events - dh_link var/cache/zoneminder/images usr/share/zoneminder/www/images - dh_link var/cache/zoneminder/temp usr/share/zoneminder/www/temp +build-indep: + #$(MAKE) -C docs text + $(MAKE) -C docs html - # - # This is a slightly lesser kludge; moving the cgi stuff to - # /usr/share/zoneminder/cgi-bin breaks one set of behavior, - # having it just in /usr/lib/cgi-bin breaks another bit of - # behavior. - # - dh_link usr/lib/cgi-bin usr/lib/zoneminder/cgi-bin +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 - chown root:root debian/zoneminder/etc/zm/zm.conf + ## 637685 + chmod -c o-r $(CURDIR)/debian/zoneminder/etc/zm/zm.conf -override_dh_auto_test: - # do not run tests... +override_dh_installinit: + dh_installinit --no-start + +override_dh_systemd_start: + dh_systemd_start --no-start + +override_dh_systemd_enable: + dh_systemd_enable --no-enable + +override_dh_apache2: + dh_apache2 --noenable -.PHONY: override_dh_strip override_dh_strip: - dh_strip --dbg-package=zoneminder-dbg + [ -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 diff --git a/distros/ubuntu1204_cmake/source/format b/distros/ubuntu1504/source/format similarity index 100% rename from distros/ubuntu1204_cmake/source/format rename to distros/ubuntu1504/source/format diff --git a/distros/ubuntu1504_cmake/source/lintian-overrides b/distros/ubuntu1504/source/lintian-overrides similarity index 100% rename from distros/ubuntu1504_cmake/source/lintian-overrides rename to distros/ubuntu1504/source/lintian-overrides diff --git a/distros/ubuntu1504/watch b/distros/ubuntu1504/watch index 5a8a9c4d7..7ee690edb 100644 --- a/distros/ubuntu1504/watch +++ b/distros/ubuntu1504/watch @@ -1,3 +1,7 @@ version=3 -http://www.zoneminder.com/downloads.html \ - .*/ZoneMinder-(.*).tar.gz + +opts=\ +repacksuffix=+dfsg,\ +dversionmangle=s{\+dfsg\d*}{},\ + https://github.com/ZoneMinder/ZoneMinder/releases \ + .*/ZoneMinder/archive/v(.*).tar.gz diff --git a/distros/ubuntu1504_cmake/zoneminder-doc.doc-base b/distros/ubuntu1504/zoneminder-doc.doc-base similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder-doc.doc-base rename to distros/ubuntu1504/zoneminder-doc.doc-base diff --git a/distros/ubuntu1504_cmake/zoneminder-doc.install b/distros/ubuntu1504/zoneminder-doc.install similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder-doc.install rename to distros/ubuntu1504/zoneminder-doc.install diff --git a/distros/ubuntu1504_cmake/zoneminder-doc.links b/distros/ubuntu1504/zoneminder-doc.links similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder-doc.links rename to distros/ubuntu1504/zoneminder-doc.links diff --git a/distros/ubuntu1504_cmake/zoneminder.apache2 b/distros/ubuntu1504/zoneminder.apache2 similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.apache2 rename to distros/ubuntu1504/zoneminder.apache2 diff --git a/distros/ubuntu1504_cmake/zoneminder.bug-presubj b/distros/ubuntu1504/zoneminder.bug-presubj similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.bug-presubj rename to distros/ubuntu1504/zoneminder.bug-presubj diff --git a/distros/ubuntu1504_cmake/zoneminder.dirs b/distros/ubuntu1504/zoneminder.dirs similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.dirs rename to distros/ubuntu1504/zoneminder.dirs diff --git a/distros/ubuntu1504_cmake/zoneminder.docs b/distros/ubuntu1504/zoneminder.docs similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.docs rename to distros/ubuntu1504/zoneminder.docs diff --git a/distros/ubuntu1504_cmake/zoneminder.examples b/distros/ubuntu1504/zoneminder.examples similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.examples rename to distros/ubuntu1504/zoneminder.examples diff --git a/distros/ubuntu1504_cmake/zoneminder.init b/distros/ubuntu1504/zoneminder.init similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.init rename to distros/ubuntu1504/zoneminder.init diff --git a/distros/ubuntu1504_cmake/zoneminder.install b/distros/ubuntu1504/zoneminder.install similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.install rename to distros/ubuntu1504/zoneminder.install diff --git a/distros/ubuntu1504_cmake/zoneminder.links b/distros/ubuntu1504/zoneminder.links similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.links rename to distros/ubuntu1504/zoneminder.links diff --git a/distros/ubuntu1504_cmake/zoneminder.linktrees b/distros/ubuntu1504/zoneminder.linktrees similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.linktrees rename to distros/ubuntu1504/zoneminder.linktrees diff --git a/distros/ubuntu1504_cmake/zoneminder.lintian-overrides b/distros/ubuntu1504/zoneminder.lintian-overrides similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.lintian-overrides rename to distros/ubuntu1504/zoneminder.lintian-overrides diff --git a/distros/ubuntu1504_cmake/zoneminder.logrotate b/distros/ubuntu1504/zoneminder.logrotate similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.logrotate rename to distros/ubuntu1504/zoneminder.logrotate diff --git a/distros/ubuntu1504_cmake/zoneminder.maintscript b/distros/ubuntu1504/zoneminder.maintscript similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.maintscript rename to distros/ubuntu1504/zoneminder.maintscript diff --git a/distros/ubuntu1504_cmake/zoneminder.manpages b/distros/ubuntu1504/zoneminder.manpages similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.manpages rename to distros/ubuntu1504/zoneminder.manpages diff --git a/distros/ubuntu1504/zoneminder.postinst b/distros/ubuntu1504/zoneminder.postinst new file mode 100644 index 000000000..64699d1ca --- /dev/null +++ b/distros/ubuntu1504/zoneminder.postinst @@ -0,0 +1,59 @@ +#! /bin/sh + +set -e + +if [ "$1" = "configure" ]; then + + . /etc/zm/zm.conf + + # 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 + + 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 + deb-systemd-invoke start mysql.service || exit $? + 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 + # This creates the user. + echo "grant lock tables,alter,select,insert,update,delete,create,index 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,select,insert,update,delete,create,index on ${ZM_DB_NAME}.* to '${ZM_DB_USER}'@localhost;" | mysql --defaults-file=/etc/mysql/debian.cnf mysql + fi + + # Ensure zoneminder is stopped + deb-systemd-invoke stop zoneminder.service || exit $? + zmupdate.pl --nointeractive + zmupdate.pl --nointeractive -f + deb-systemd-invoke start zoneminder.service || exit $? + + 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 + +fi + +#DEBHELPER# diff --git a/distros/ubuntu1504_cmake/zoneminder.postrm b/distros/ubuntu1504/zoneminder.postrm similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.postrm rename to distros/ubuntu1504/zoneminder.postrm diff --git a/distros/ubuntu1504_cmake/zoneminder.preinst b/distros/ubuntu1504/zoneminder.preinst similarity index 100% rename from distros/ubuntu1504_cmake/zoneminder.preinst rename to distros/ubuntu1504/zoneminder.preinst diff --git a/distros/ubuntu1504/zoneminder.service b/distros/ubuntu1504/zoneminder.service index 3ce608a49..e3575c039 100644 --- a/distros/ubuntu1504/zoneminder.service +++ b/distros/ubuntu1504/zoneminder.service @@ -1,16 +1,20 @@ # ZoneMinder systemd unit file - # This file is intended to work with all Linux distributions - [Unit] - Description=ZoneMinder CCTV recording and security system - After=network.target mysql.service apache2.service - Requires=mysql.service apache2.service - [Service] - User=www-data - Type=forking - ExecStart=/usr/bin/zmpkg.pl start - ExecReload=/usr/bin/zmpkg.pl restart - ExecStop=/usr/bin/zmpkg.pl stop - PIDFile="/run/zm/zm.pid" - [Install] - WantedBy=multi-user.target +# This file is intended to work with Debian distributions +[Unit] +Description=ZoneMinder CCTV recording and surveillance system +After=network.target mysql.service +# Remarked out so that it will start ZM on machines that don't have mysql installed +#Requires=mysql.service + +[Service] +#User=www-data +Type=forking +ExecStart=/usr/bin/zmpkg.pl start +ExecReload=/usr/bin/zmpkg.pl restart +ExecStop=/usr/bin/zmpkg.pl stop +PIDFile=/var/run/zm/zm.pid +Restart=on-abnormal + +[Install] +WantedBy=multi-user.target diff --git a/distros/ubuntu1504/zoneminder.tmpfile b/distros/ubuntu1504/zoneminder.tmpfile index 036883750..d307c6640 100644 --- a/distros/ubuntu1504/zoneminder.tmpfile +++ b/distros/ubuntu1504/zoneminder.tmpfile @@ -1,2 +1,2 @@ d /var/run/zm 0755 www-data www-data - +d /tmp/zm 0755 www-data www-data diff --git a/distros/ubuntu1504_cmake/README.Debian b/distros/ubuntu1504_cmake/README.Debian deleted file mode 100644 index 8182e0678..000000000 --- a/distros/ubuntu1504_cmake/README.Debian +++ /dev/null @@ -1,160 +0,0 @@ -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 ------------------- - -Prior to 1.28.1 database upgrade was performed automatically. -"zoneminder" service will refuse to start with outdated database. - -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 starting automatically and need to be -manually activated once database is configured: - -On systemd: - - sudo systemctl enable zoneminder.service - -On SysV: - - sudo update-rc.d zoneminder enable - - -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 "php5-fpm" package to support PHP and "fcgiwrap" package -for binary "cgi-bin" applications: - - sudo apt-get install php5-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, in its upstream form, stores data in /usr/share/zoneminder/. This -package modifies that by changing /usr/share/zoneminder/images and -/usr/share/zoneminder/events to symlinks to directories under -/var/cache/zoneminder. - -There are numerous places these could be put and ways to do it. But, at the -moment, if you change this, an upgrade will fail with a warning about these -locations having changed (the reason for this was that previously, an upgrade -would silently revert the changes and cause event loss - refer -bug #608793). - -If you do want to change the location, here are a couple of suggestions. -(thanks to vagrant@freegeek.org): - -These lines in fstab could allow you to bind-mount an alternate location - - /dev/sdX1 /otherdrive ext3 defaults 0 2 - /otherdrive/zoneminder/images /var/cache/zoneminder/images bind defaults 0 2 - /otherdrive/zoneminder/events /var/cache/zoneminder/events bind defaults 0 2 - - or if you have a separate partition for each: - - /dev/sdX1 /var/cache/zoneminder/images ext3 defaults 0 2 - /dev/sdX2 /var/cache/zoneminder/events ext3 defaults 0 2 - - -- Peter Howard , Sun, 16 Jan 2010 01:35:51 +1100 - -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 Sun, 27 Mar 2011 13:06:56 -0700 diff --git a/distros/ubuntu1504_cmake/changelog b/distros/ubuntu1504_cmake/changelog deleted file mode 100644 index 74cf1d0b8..000000000 --- a/distros/ubuntu1504_cmake/changelog +++ /dev/null @@ -1,573 +0,0 @@ -zoneminder (1.28.1+1-vivid-SNAPSHOT2015081701) vivid; urgency=medium - - * include api, switch to cmake build - - -- Isaac Connor Mon, 17 Aug 2015 10:29:23 -0400 - - -zoneminder (1.28.1-8) unstable; urgency=medium - - * Patchworks: - + New upstream "980-fix-image-size.patch". - + New "default_cgi-path.patch" to correct default ZM_PATH_ZMS. - * postinst: set "root" as group owner for "/var/log/zm" to silence - logrotate warnings. - * Minor correction to README.Debian. - - -- Dmitry Smirnov Sun, 16 Aug 2015 19:19:50 +1000 - -zoneminder (1.28.1-7) unstable; urgency=medium - - * Build-Depends += "cakephp (<< 3.0.0~)"; - Zoneminder is not compatible with latest CakePHP. - * Handle conffile removal from maintscript. - * rules: build man pages reproducibly. - * gbp.conf: renamed old style config section [git-dch] to [dch]. - * README - + added instructions to update owner of the "/etc/zm/zm.conf" - (Closes: #789327). - + zmupdate.pl needs CREATE rights. - + added note about required number of "fcgiwrap" workers. - * New upstream patch: "zmtrigger-plus.patch". - - -- Dmitry Smirnov Mon, 20 Jul 2015 16:30:15 +1000 - -zoneminder (1.28.1-6) unstable; urgency=low - - * New "zoneminder-doc" and "zoneminder-dbg" packages. - - -- Dmitry Smirnov Sun, 19 Apr 2015 14:50:41 +1000 - -zoneminder (1.28.1-5) unstable; urgency=low - - * Move handling of "/var/run/zm" and "/tmp/zm" from .service into .tmpfile. - Let dh_installinit do the job. Thanks, Andrew Bauer. - * Use dh_apache2 to install Apache conf file; remove old conf and symlink. - * Promote "libapache2-mod-php5 | php5-fpm" to Recommends. - * Build-Depends: - + dh-linktree - + cakephp (>= 2.6.3) - + libjs-jquery - + libjs-mootools - * Depends: - - libjs-jquery - - libjs-mootools - * Build-time replace bundled CakePHP with system one using "dh-linktree". - * Use "dh-linktree" to handle mootools and jquery symlinks. - - -- Dmitry Smirnov Sun, 19 Apr 2015 11:45:01 +1000 - -zoneminder (1.28.1-4) unstable; urgency=low - - * New patch to fix HTML export with USE_DEEP_STORAGE (closes: #723706). - * New "783.patch" to describe potential data loss in ZM_USE_DEEP_STORAGE. - * New patch to change default date format to region-neutral ISO notation - with time zone. - * Build sphinx documentation: - + Install "zoneminder.1" man page. - + Build-Depends += "python-sphinx | python3-sphinx" - + Added commented "zoneminder-doc" package. - + Added "docs.patch" to unlink distro-specific installation docs. - * rules: - + set ZM_CONTENTDIR, ZM_SOCKDIR and ZM_TMPDIR. - + remove mistakengly installed Perl module templates. - * Updated startup scripts to create ZM_TMPDIR. - * Hurd improvements: - + New patch to add PATH_MAX definitions. - + Build without MMAP support on Hurd. - + libsys-mmap-perl [!hurd-any]. - - -- Dmitry Smirnov Mon, 06 Apr 2015 18:18:55 +1000 - -zoneminder (1.28.1-3) unstable; urgency=low - - * Updated Apache2 and nginx configuration templates to support CGI. - * Updated README.Debian to document cgi-bin setup. - * Removed "/usr/share/zoneminder/www/cgi-bin" symlink. - * Added "apache2.patch" to correct Apache2 site configuration example. - * control: Suggests += "fcgiwrap". - * rules: added dh_systemd overrides to prevent automatic service - activation and start. - * Added note about manual service activation to README.Debian - (Closes: #781733). - - -- Dmitry Smirnov Thu, 02 Apr 2015 23:20:20 +1100 - -zoneminder (1.28.1-2) unstable; urgency=low - - * Removed word "Linux" from short package description. - * Build-Depends: do not require "libv4l-dev" on Hurd i.e. [!hurd-any]. - * Added run-time Perl Depends: - + libdbd-mysql-perl - + libimage-info-perl - + libmodule-load-conditional-perl - + libnet-sftp-foreign-perl - + liburi-encode-perl - * Prepare for package split: added commented "libzoneminder-perl" - and "zoneminder-dbg" packages to "debian/control". - * rules: do not install worthless ".packlist" file. - * Updated "libv4l1-videodev.h.patch" to fix v4lv1 detection in CMake. - - -- Dmitry Smirnov Thu, 02 Apr 2015 13:25:19 +1100 - -zoneminder (1.28.1-1) unstable; urgency=low - - [ Dmitry Smirnov ] - * New upstream release [February 2015]. - * Upload to unstable. - * Disabled automatic database upgrades: post(inst|rm) scripts no longer - touch database or do unexpected stuff (Closes: #779254). - See README.Debian for details. - * Updated installation paths: - + /usr/share/zoneminder --> /usr/share/zoneminder/www - + /usr/lib/cgi-bin --> /usr/lib/zoneminder/cgi-bin - * Added logrotate config (Closes: #544826). - Thanks, Alberto Reyes. - * Native systemd service; "--with systemd" added to dh. - * Build with CMake instead of autoconf; rules clean-up. - * Build with all hardening. - * Build and install "zmupdate.pl.1" man page. - * Added nginx/php5-fpm configuration example. - * Install upstream "apache.conf" example. - * Described setup of Zoneminer web site and database in README.Debian. - * Install "/etc/zm/zm.conf" with tighter permissions. - * Added TODO.Debian. - * Added "debian/clean"; "debian/gbp.conf"; bug-presubj. - * Remove bundled Cake tests to take ~5 MB off big-usr-share. - * Standards-Version: 3.9.6; compat/debhelper to version 9. - * Vcs links to new git repository at collab-maint. - * Build-Depends: - + dh-systemd - + libgcrypt11-dev --> libgcrypt-dev - + libcurl4-gnutls-dev - + libvlc-dev - + policykit-1 (required by "zmsystemctl.pl") - - dh-autoreconf, autoconf, automake - * Depends: - - apache2 - - libapache2-mod-php5 (moved to Suggests) - - libpcre3 (invalid) - - libmodule-load-perl (obsolete; replaced with perl-modules) - - libarchive-tar-perl (obsolete; replaced with perl-modules) - - mysql-server (moved to Recommends, Closes: #759504). - - php5 - + libav-tools - + libjs-jquery (replaces bundled component) - + libjs-mootool (replaces bundled component) - + libjson-any-perl (Closes: #690803). - + perl-modules (Closes: #745819). - * Recommends: - + apache2 | httpd - + mysql-server | virtual-mysql-server (Closes: #732874). - * Suggests: - + libapache2-mod-php5 | php5-fpm - + logrotate - * Refreshed, renamed and re-ordered patches; added DEP-3 headers. - * Removed "vendor_perl" patch (applied-upstream). - * New patches: - + cmake-fix-confpath.patch - + cmake-gnutls.patch - + cmake-nossl.patch - + cmake.patch - + format-hardening.patch - + pod_man_fixes.patch - + pod_name_fixes.patch - + pod_zmupdate-to-pod2usage.patch - * Lintianisation (incomplete): - - extra-license-file - - init.d-script-missing-lsb-description - - init.d-script-does-not-source-init-functions - - privacy-breach-generic - - package-contains-empty-directory - - manpage-has-errors-from-pod2man - - manpage-has-bad-whatis-entry - - quilt-patch-missing-description - - no-dep5-copyright - * Lintian-overrides: - + unusual-interpreter usr/bin/zmsystemctl.pl #!/usr/bin/pkexec - + script-not-executable usr/share/zoneminder/www/api/* - + script-with-language-extension usr/bin/*.pl - + source-is-missing web/tools/mootools/mootools-*-yc.js - + source-is-missing web/skins/*/js/jquery-1.4.2.min.js - + source-contains-prebuilt-javascript-object - * Renamed files in "debian". - * watch: dfsg repacksuffix and dversionmangle. - * "debian/copyright" to Copyright-Format-1.0. - * Set myself as new Maintainer (Closes: #760314). - - [ Vagrant Cascadian ] - * Removed obsolete DM-Upload-Allowed flag. - * Update debian/watch to use tarballs from github. - * Add Build-Depends on libgcrypt11-dev (Closes: #745819). - * Use canonical alioth Vcs-Hg URL. - * debian/control: Add Build-Depends: libpolkit-gobject-1-dev. - * Removed configure flag "--enable-crashtrace=no", which is no longer - present upstream. - - -- Dmitry Smirnov Tue, 31 Mar 2015 15:11:13 +1100 - -zoneminder (1.26.5-3.1) experimental; urgency=low - - * Non-maintainer upload. - * Add libav10.patch and compile against libav10 (Closes: #739461) - - -- Reinhard Tartler Wed, 19 Mar 2014 00:31:22 +0000 - -zoneminder (1.26.5-3) unstable; urgency=low - - - * Previous release still didn't build on PPC - this has been corrected. - (Closes: #736516) - - -- Peter Howard Tue, 4 Feb 2014 02:02:10 +1000 - -zoneminder (1.26.5-2) unstable; urgency=low - - * Remove dependency on ffmpeg - (Closes: #721161) - - * Builds again on non-x86 target architectures. - - -- Peter Howard Thu, 23 Jan 2014 01:02:10 +1000 - -zoneminder (1.26.5-1) unstable; urgency=low - - * New upstream version - (Closes: #694131) - * Change Build-Depends on libgnutls-dev to libgnutls-openssl-dev - (Closes: #731560) - -- Peter Howard Tue, 17 Dec 2013 01:02:10 +1000 - -zoneminder (1.25.0-4) unstable; urgency=high - - * Add CVE-2013-0232 patch - [SECURITY] CVE-2013-0232: Shell escape commands with untrusted content. - Thanks to James McCoy (Closes: #698910) - Thanks also to Salvatore Bonaccorso - - -- Peter Howard Tue, 12 Jun 2013 12:02:10 +1000 - -zoneminder (1.25.0-3) unstable; urgency=low - - * debian/rules: Export CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS, to ensure - hardening build flags are enabled. - - -- Vagrant Cascadian Tue, 28 Aug 2012 12:10:03 -0700 - -zoneminder (1.25.0-2) unstable; urgency=low - - [ Vagrant Cascadian ] - * Add a patch to disable checking for updated versions by default, as - upgrades should happen through package management. - * Use dpkg-buildflags in debian/rules to set default compiler flags. - * Ensure zoneminder is stopped before starting (Closes: #657407). - - [ Peter Howard ] - * Fix postinst to add permission for table creation during upgrade - (Closes: #657407). - - -- Vagrant Cascadian Thu, 23 Aug 2012 12:40:34 -0700 - -zoneminder (1.25.0-1.1) unstable; urgency=low - - * Non-maintainer upload. - * Fix "ftbfs with GCC-4.7": add patch Fix-FTBFS-with-gcc-4.7 from Cyril - Brulebois: fix missing includes. - (Closes: #667428) - - -- gregor herrmann Sun, 13 May 2012 17:02:21 +0200 - -zoneminder (1.25.0-1) unstable; urgency=low - - * Fix typo in libv4l1-videodev.h patch that caused v4l1 support to be - dropped. - * Fail to build if version in postinst doesn't match upstream version. - * Add Build-Depends: libavdevice-dev to fix MPEG streaming (Closes: #515558). - * debian/rules: Convert to using debhelper overrides. - * Set debian/compat to 7. - * Simplify debian/watch file. - * Refresh debian/patches/use_libjs-mootools. - * Refresh debian/patches/libv4l1-videodev.h. - * Remove dependencies on php4 and related packages. - * Remove build-dependencies on libmysqlclient14-dev and - libmysqlclient15-dev. - * Update Build-Depends to use libjpeg-dev instead of libjpeg62-dev - (Closes: #647114). - * Add patch to fix build by testing for C headers rather than C++ headers. - Thanks to Ryan Niebur. (Closes: #654230) - * Add a patch to fix build problems caused by API changes in libav 0.8. - Thanks again to Ryan Niebur. (Closes: #654230) - - -- Vagrant Cascadian Mon, 16 Jan 2012 11:58:05 -0800 - -zoneminder (1.24.4-1) unstable; urgency=low - - [ Peter Howard ] - * Initial release of 1.24.4 (Closes: #634985). - - Fix 32/64-bit type declarations (Closes: #614404). - * Update patches. - - [ Vagrant Cascadian ] - * Add patch to fix FTBFS by using libv4l1-videodev.h from libv4l-dev. - Thanks to Andreas Metzler for reporting the issue. - (Closes: #619813). - * Document adding the www-data user to the video group in README.Debian. - (Closes: #611324) - * Depend on libsys-mmap-perl to enable mapped memory support. - (Closes: #607331) - * Update libjs-mootools patch to use -nc variants (Closes: #635075). - * Depend on javascript-common, to ensure that /javascript is available in - the web server. - * Set the upstream version in postinst at build time. - * Use dh-autoreconf to properly clean up autogenerated files during build. - * Add Vcs-HG to debian/control. - * Add Build-Depends: libv4l-dev, libbz2-dev, dh-autoreconf, libsys-mmap-perl. - - -- Vagrant Cascadian Sun, 24 Jul 2011 16:44:30 +0200 - -zoneminder (1.24.2-9) unstable; urgency=low - - * Apply patch from Ubuntu to fix FTBFS with ffmpeg 0.6: - - Add -D__STDC_CONSTANT_MACROS to CPPFLAGS (closes: 614080). - * Update Standards-Version to 3.9.1, no changes necessary. - - -- Vagrant Cascadian Sun, 20 Feb 2011 23:43:02 -0800 - -zoneminder (1.24.2-8) unstable; urgency=medium - - [ Vagrant Cascadian ] - * Apply patch to fix V4L2 cameras without crop support (closes: #608790). - Thanks to piratebab. - * Add preinst script which aborts if dangerous symlinks exist. - (closes: #608793) - - [ Peter Howard ] - * Added to README.Debian with info about images and events directories. - (closes: #608793) - - -- Vagrant Cascadian Sat, 15 Jan 2011 19:39:26 -0800 - -zoneminder (1.24.2-7) unstable; urgency=medium - - * Do not set ownership of /var/cache/zoneminder when upgrading, which fixes a - regression causing upgrades to take inordinately long with large - installations (closes: #597040). - - -- Vagrant Cascadian Fri, 17 Sep 2010 11:24:41 -0700 - -zoneminder (1.24.2-6) unstable; urgency=low - - * Only remove database on purge. This requires only creating the database if - it doesn't already exist, and upgrading the database only if the database - is an older version (closes: #497107). - - * Do not prompt the user on database upgrades by using the --nointeractive - flag when calling zmupdate.pl from postinst (closes: #595902). - - -- Vagrant Cascadian Fri, 10 Sep 2010 10:06:06 -0700 - -zoneminder (1.24.2-5) unstable; urgency=low - - [ Peter Howard ] - * Add zip dependency - (closes: #494261) - * Add debian/watch file - (closes: #545552) - * Use packaged libjs-mootools - (closes: #585590) - * Miscellaneous cleanups - - [ Vagrant Cascadian ] - * Add vagrant@debian.org as uploader - * Update Standards-Version to 3.9.0, no changes necessary. - - -- Vagrant Cascadian Fri, 23 Jul 2010 18:12:50 -0500 - -zoneminder (1.24.2-4.1) unstable; urgency=low - - * Non-maintainer upload. - * Fix "package removed, processes still running": apply patch to - debian/postinst by Vagrant Cascadian: use invoke-rc.d and run - mysql-related actions only when mysql is running (closes: #583648). - - -- gregor herrmann Thu, 01 Jul 2010 19:47:10 +0200 - -zoneminder (1.24.2-4) unstable; urgency=high - * Update init.d to list mysql dependency - (closes: #583505) - * Change depenency from libmime-perl to libmime-tools-perl - (closes: #585589) - * Problems in changelog format fixed - (closes: #585592) - * Fix debian-rules-ignores-make-clean-error - (closes: #585593) - -- Peter Howard Mon, 14 jun 2010 15:02:10 +1000 - -zoneminder (1.24.2-3) unstable; urgency=high - * Changes symbols to build with libjpeg8 - (closes: #565326, #568327) - * Note: location of all perl files should have been fixed in previous release - (closes: #553096) - -- Peter Howard Mon, 26 apr 2010 15:02:10 +1000 - -zoneminder (1.24.2-2) unstable; urgency=high - - * Remove custom perl parth from zmpkg.pl, fix location of manpages. - (closes: #551746, #553092) - * Fix GCC4.4 bug - (closes: #531717) - * Fix potential bug in postinst script - - -- Peter Howard Sat, 14 Nov 2009 15:02:10 +1000 - -zoneminder (1.24.2-1) unstable; urgency=high - - * Initial release of zoneminder 1.24.2 - -- Peter Howard Fri, 11 Sep 2009 07:02:50 +1000 - -zoneminder (1.24.1-1) unstable; urgency=high - - * Initial release of zoneminder 1.24.1, closing CVE-2008-3882, - CVE-2008-3881, CVE-2008-3880 - (closes: #497640) - * Change syslog dependency to rsyslog. - (closes: #526918) - * Add missing perl depenency. - * Restore patch to disable "check for updates" by default. - * Removed spurious '$' in init script. - (closes: #486064) - * Change permission of zm.conf from 0600 to 0400 for CVE-2008-6755 - (closes: #528252) - -- Peter Howard Sat, 16 May 2009 07:02:50 +1000 - -zoneminder (1.23.3-4) unstable; urgency=high - - * update to get it building with latest unstable. Thanks to waldi@debian.org - (closes: #517569) - -- Peter Howard Thu, 16 Apr 2009 01:02:50 +1000 - -zoneminder (1.23.3-3) unstable; urgency=high - - * ffmpeg confirmed working - (closes: #475145) - * Fix upgrade problem intrudouced in 1.23.3-1 - (closes: #481637) - * Include libmime-lite-perl in dependencies - (closes: #486312) - -- Peter Howard Thu, 18 Sep 2008 01:02:50 +1000 - -zoneminder (1.23.3-2) unstable; urgency=high - - * ffmpeg finally working? - - -- Peter Howard Wed, 13 Aug 2008 01:02:50 +1000 - -zoneminder (1.23.3-1) unstable; urgency=high - - * Initial version for 1.23.3 - security fix. - (closes: #479034) - - -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 - -zoneminder (1.23.2-2) unstable; urgency=low - - * Update to init.d - (closes: #468856) - * Add dependency on logging daemon - (closes: #471277) - - -- Peter Howard Wed, 19 Mar 2008 01:02:50 +1000 - -zoneminder (1.23.2-1) unstable; urgency=low - - * Initial version for 1.23.2 - (closes: #464152) - * Zoneminder 1.23.2 upstream includes fix for GCC 4.3 - (closes: #454980) - * Includes ffmpeg patch by Alexander Kushnirenko - - -- Peter Howard Sat, 01 Mar 2008 16:02:50 +1000 - -zoneminder (1.22.3-10) unstable; urgency=low - - * Fix bug introduced in -9 where perl is put under /usr/local - (closes: #457507) - - -- Peter Howard Mon, 24 Dec 2007 16:02:50 +1000 - -zoneminder (1.22.3-9) unstable; urgency=low - - * Starting zoneminder via init script now invokes "zmfix -a" - (closes: #481637) - * Change apache2-mpm-prefork dependency to apache2 - * Temp dir for export under /var/cache/zoneminder (but linked back to - /usr/share/zoneminder for now) - * Redo use of gnutls rather than openssl for md5 hashes - - -- Peter Howard Mon, 10 Dec 2007 16:02:50 +1000 - -zoneminder (1.22.3-8) unstable; urgency=low - - * Build now includes libpcre3 - (closes: #437533) - * "Monitor Presets" patch now applied to package during build. - - -- Peter Howard Sat, 18 Aug 2007 14:35:23 +1000 - -zoneminder (1.22.3-7) unstable; urgency=low - - * Turn off debug trace and crash dump on build - (closes:#414857,#414891) - * Additional perl libraries added in dependencies - (closes:#416291) - * Change preferred PHP version from 4 to 5 - -- Peter Howard Sun, 29 Jul 2007 15:11:13 +1000 - -zoneminder (1.22.3-6) unstable; urgency=low - - * Removed a similar bash only statement from zmpkg.pl - (closes:414882) - - -- Peter Howard Sat, 14 Apr 2007 11:46:56 +1000 - -zoneminder (1.22.3-5) unstable; urgency=low - - * Installs with "phone home" feature turned off by default, and permissions - on /etc/zm/zm.conf fixed (now the 0600 it s hould be) - (closes:415349) - * Removed "stupid bash-ism" on mysqld check in postinst file. - - -- Peter Howard Fri, 6 Apr 2007 15:50:00 +1000 - -zoneminder (1.22.3-4) unstable; urgency=low - - * Put libmysqlclient-15-dev in front of -14-dev so sbuild works - (closes: #414410) - - -- Peter Howard Mon, 12 Mar 2007 11:38:56 +1100 - -zoneminder (1.22.3-3) unstable; urgency=low - - * Clean up of postinstall, postrm ; user "zm" definitely was a mistake - * Also in postinstall: check and start MySQL if it's not running. - * init.d script now checks if zoneminder isn't running and still returns 0 - (which helps uninstalling) - * Addition of php5 dependency options as well as php4. - - -- Peter Howard Mon, 26 Feb 2007 10:40:52 +1100 - -zoneminder (1.22.3-2) unstable; urgency=low - - * Added zmuser in the mysql creation; this should fix the install problem - for people, but needs to be cleaned up (in -3) - - -- Peter Howard Fri, 16 Feb 2007 14:16:03 +1100 - -zoneminder (1.22.3-1) unstable; urgency=low - - * Initial Version. (closes: #248393) - * Patched out use of openssl; uses gnutls instead for MD5 hashes. - * Removed MakeMaker-inserted Perl licensing (with authors permission) in - various scripts; replaced with GPL. - - -- Peter Howard Wed, 7 Feb 2007 14:09:01 +1100 diff --git a/distros/ubuntu1504_cmake/compat b/distros/ubuntu1504_cmake/compat deleted file mode 100644 index ec635144f..000000000 --- a/distros/ubuntu1504_cmake/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/distros/ubuntu1504_cmake/control b/distros/ubuntu1504_cmake/control deleted file mode 100644 index 65e11fac9..000000000 --- a/distros/ubuntu1504_cmake/control +++ /dev/null @@ -1,140 +0,0 @@ -Source: zoneminder -Section: net -Priority: optional -Maintainer: Dmitry Smirnov -Uploaders: Vagrant Cascadian -Build-Depends: debhelper (>= 9), dh-systemd, python-sphinx | python3-sphinx, apache2-dev, dh-linktree - ,cmake - ,libavcodec-ffmpeg-dev, libavformat-ffmpeg-dev, libswscale-ffmpeg-dev, libavutil-ffmpeg-dev, libavdevice-ffmpeg-dev - ,libbz2-dev - ,libdate-manip-perl - ,libdbd-mysql-perl - ,libgcrypt-dev - ,libcurl4-gnutls-dev - ,libgnutls-openssl-dev - ,libjpeg-dev - ,libmysqlclient-dev - ,libpcre3-dev - ,libphp-serialization-perl - ,libpolkit-gobject-1-dev - ,libsys-mmap-perl [!hurd-any] - ,libv4l-dev (>= 0.8.3) [!hurd-any] - ,libvlc-dev - ,libwww-perl -# Unbundled (dh_linktree): - ,libjs-jquery - ,libjs-mootools -Standards-Version: 3.9.6 -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 - ,libav-tools - ,libdate-manip-perl - ,libmime-lite-perl - ,libmime-tools-perl - ,libphp-serialization-perl - ,libmodule-load-conditional-perl - ,libnet-sftp-foreign-perl -# ,libzoneminder-perl (= ${source:Version}) - ,libarchive-zip-perl - ,libdbd-mysql-perl - ,libdevice-serialport-perl - ,libimage-info-perl - ,libjson-any-perl - ,libsys-mmap-perl [!hurd-any] - ,liburi-encode-perl - ,libwww-perl - ,mysql-client | virtual-mysql-client - ,perl-modules - ,php5-mysql - ,policykit-1 - ,rsyslog | system-log-daemon - ,zip -Recommends: ${misc:Recommends} - ,libapache2-mod-php5 | php5-fpm - ,mysql-server | virtual-mysql-server - ,zoneminder-doc (>= ${source:Version}) -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-any-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 diff --git a/distros/ubuntu1504_cmake/copyright b/distros/ubuntu1504_cmake/copyright deleted file mode 100644 index c48025a25..000000000 --- a/distros/ubuntu1504_cmake/copyright +++ /dev/null @@ -1,174 +0,0 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: ZoneMinder -Upstream-Contact: Philip Coombes -Source: https://github.com/ZoneMinder/ZoneMinder -Comment: - This package was originally debianized by matrix - on Mon, 7 Mar 2005 02:07:57 -0500. - It was re-done for submission to the Debian project by Peter Howard - 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 - 2008 Brian Rudy - 2014 Vincent Giovannone - 2013 Tim Craig - 2003-2008 Corey DeLasaux - 2001-2010 Chris Kistner -License: GPL-2+ - -Files: distros/* -Copyright: 2001-2008 Philip Coombes - 2014 Isaac Connor - 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) - 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 - 2009 Dario Freddi - 2008 Laurent Montel, - 2011 Nikita Krupen'ko -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 - 2007-2014 Peter Howard - 2010-2012 Vagrant Cascadian - 2001-2008 Philip Coombes -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". diff --git a/distros/ubuntu1504_cmake/patches/series b/distros/ubuntu1504_cmake/patches/series deleted file mode 100644 index fc70f4006..000000000 --- a/distros/ubuntu1504_cmake/patches/series +++ /dev/null @@ -1,2 +0,0 @@ -default_cgi-path.patch -use_libjs-mootools.patch diff --git a/distros/ubuntu1504_cmake/rules b/distros/ubuntu1504_cmake/rules deleted file mode 100755 index bf8012aa8..000000000 --- a/distros/ubuntu1504_cmake/rules +++ /dev/null @@ -1,93 +0,0 @@ -#!/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 systemd,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_RUNDIR="/var/run/zm" \ - -DZM_SOCKDIR="/var/run/zm" \ - -DZM_TMPDIR="/tmp/zm" \ - -DZM_CGIDIR="/usr/lib/zoneminder/cgi-bin" \ - -DZM_CONTENTDIR="/var/cache/zoneminder" - -override_dh_clean: - dh_clean $(MANPAGES1) - $(RM) -r docs/_build docs/installationguide - -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 - ## 637685 - chmod -c o-r $(CURDIR)/debian/zoneminder/etc/zm/zm.conf - -override_dh_installinit: - dh_installinit --no-start - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_systemd_enable: - dh_systemd_enable --no-enable - -override_dh_apache2: - dh_apache2 --noenable - -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 diff --git a/distros/ubuntu1504_cmake/source/format b/distros/ubuntu1504_cmake/source/format deleted file mode 100644 index 89ae9db8f..000000000 --- a/distros/ubuntu1504_cmake/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (native) diff --git a/distros/ubuntu1504_cmake/watch b/distros/ubuntu1504_cmake/watch deleted file mode 100644 index 7ee690edb..000000000 --- a/distros/ubuntu1504_cmake/watch +++ /dev/null @@ -1,7 +0,0 @@ -version=3 - -opts=\ -repacksuffix=+dfsg,\ -dversionmangle=s{\+dfsg\d*}{},\ - https://github.com/ZoneMinder/ZoneMinder/releases \ - .*/ZoneMinder/archive/v(.*).tar.gz diff --git a/distros/ubuntu1504_cmake/zoneminder.postinst b/distros/ubuntu1504_cmake/zoneminder.postinst deleted file mode 100644 index 82b256e6b..000000000 --- a/distros/ubuntu1504_cmake/zoneminder.postinst +++ /dev/null @@ -1,30 +0,0 @@ -#! /bin/sh - -set -e - -. /etc/zm/zm.conf - -if [ "$1" = "configure" ]; then - chown www-data:root /var/log/zm - chown www-data:www-data /var/lib/zm - if [ -z "$2" ]; then - chown www-data:www-data -R /var/cache/zoneminder - fi - - # Do this every time the package is installed or upgraded - # Test for database presence to avoid failure of zmupdate.pl - - # Ensure zoneminder is stopped - deb-systemd-invoke stop zoneminder.service || exit $? - - if [ "$ZM_DB_HOST" = "localhost" ]; then - echo 'grant lock tables, create, index, alter on zm.* to 'zmuser'@localhost identified by "zmpass";' | mysql --defaults-file=/etc/mysql/debian.cnf mysql - # Run the ZoneMinder update tool - zmupdate.pl --nointeractive - else - echo "Not doing database upgrade due to remote db server ($ZM_DB_HOST)" - fi; - -fi - -#DEBHELPER# diff --git a/distros/ubuntu1504_cmake/zoneminder.service b/distros/ubuntu1504_cmake/zoneminder.service deleted file mode 100644 index e3575c039..000000000 --- a/distros/ubuntu1504_cmake/zoneminder.service +++ /dev/null @@ -1,20 +0,0 @@ -# ZoneMinder systemd unit file -# This file is intended to work with Debian distributions - -[Unit] -Description=ZoneMinder CCTV recording and surveillance system -After=network.target mysql.service -# Remarked out so that it will start ZM on machines that don't have mysql installed -#Requires=mysql.service - -[Service] -#User=www-data -Type=forking -ExecStart=/usr/bin/zmpkg.pl start -ExecReload=/usr/bin/zmpkg.pl restart -ExecStop=/usr/bin/zmpkg.pl stop -PIDFile=/var/run/zm/zm.pid -Restart=on-abnormal - -[Install] -WantedBy=multi-user.target diff --git a/distros/ubuntu1504_cmake/zoneminder.tmpfile b/distros/ubuntu1504_cmake/zoneminder.tmpfile deleted file mode 100644 index d307c6640..000000000 --- a/distros/ubuntu1504_cmake/zoneminder.tmpfile +++ /dev/null @@ -1,2 +0,0 @@ -d /var/run/zm 0755 www-data www-data -d /tmp/zm 0755 www-data www-data diff --git a/distros/ubuntu1504_cmake_split_packages/control b/distros/ubuntu1504_cmake_split_packages/control index 4a152c46b..5f313897f 100644 --- a/distros/ubuntu1504_cmake_split_packages/control +++ b/distros/ubuntu1504_cmake_split_packages/control @@ -28,9 +28,7 @@ Depends: ${misc:Depends}, zoneminder-database (>= ${source:Version}), zoneminder-core (>= ${binary:Version}), zoneminder-ui-base (>= ${source:Version}), - zoneminder-ui-classic (>= ${source:Version}), - zoneminder-ui-mobile (>= ${source:Version}), - zoneminder-ui-xml (>= ${source:Version}) + zoneminder-ui-classic (>= ${source:Version}) Description: Video camera security and surveillance solution (metapackage) ZoneMinder is intended for use in single or multi-camera video security applications, including commercial or home CCTV, theft prevention and child @@ -78,6 +76,8 @@ Depends: libzoneminder-perl (= ${source:Version}), libmime-tools-perl, libnet-sftp-foreign-perl, libphp-serialization-perl, debconf, ffmpeg | libav-tools, rsyslog | system-log-daemon, zip, policykit-1, apache2, libmp4v2-2, libpcre++0 +, libsys-cpu-perl, libsys-meminfo-perl +, libdata-dump-perl, libclass-std-fast-perl, libsoap-wsdl-perl, libio-socket-multicast-perl, libdigest-sha-perl Description: Core binaries and perl scripts for ZoneMinder ZoneMinder is a video camera security and surveillance solution. . @@ -117,25 +117,6 @@ Description: Classic web user interface for ZoneMinder . This package provides the classic web user interface. -Package: zoneminder-ui-mobile -Section: web -Architecture: all -Depends: zoneminder-ui-base (>= ${source:Version}), ${misc:Depends} -Description: Mobile web user interface for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides the web user interface for mobile devices. - -Package: zoneminder-ui-xml -Section: web -Architecture: all -Depends: zoneminder-ui-base (>= ${source:Version}), ${misc:Depends} -Description: XML interface for ZoneMinder - ZoneMinder is a video camera security and surveillance solution. - . - This package provides a XML interface mainly intended for use with the eyeZm - iPhone Application, but can be used with any other custom programs as well. - Package: zoneminder-ui-api Section: web Architecture: all diff --git a/distros/ubuntu1504_cmake_split_packages/zoneminder-ui-mobile.install b/distros/ubuntu1504_cmake_split_packages/zoneminder-ui-mobile.install deleted file mode 100644 index 464bb74eb..000000000 --- a/distros/ubuntu1504_cmake_split_packages/zoneminder-ui-mobile.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/zoneminder/skins/mobile diff --git a/distros/ubuntu1504_cmake_split_packages/zoneminder-ui-xml.install b/distros/ubuntu1504_cmake_split_packages/zoneminder-ui-xml.install deleted file mode 100644 index 6617707f8..000000000 --- a/distros/ubuntu1504_cmake_split_packages/zoneminder-ui-xml.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/zoneminder/skins/xml diff --git a/docs/faq.rst b/docs/faq.rst index 5aa736ee8..1c5c36d09 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -514,6 +514,8 @@ You do not need to rebuild ZM for X10 support. You will need to install the perl Extending Zoneminder ------------------------ +.. _runstate_cron_example: + How can I get ZM to do different things at different times of day or week? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/installationguide/centos.rst b/docs/installationguide/centos.rst deleted file mode 100644 index 606aaffd5..000000000 --- a/docs/installationguide/centos.rst +++ /dev/null @@ -1,5 +0,0 @@ -Centos -====== - - - diff --git a/docs/installationguide/fedora.rst b/docs/installationguide/fedora.rst deleted file mode 100644 index 09ffe4297..000000000 --- a/docs/installationguide/fedora.rst +++ /dev/null @@ -1,4 +0,0 @@ -Fedora -====== - - diff --git a/docs/installationguide/index.rst b/docs/installationguide/index.rst index be0df2c06..e030ed7cf 100644 --- a/docs/installationguide/index.rst +++ b/docs/installationguide/index.rst @@ -8,6 +8,5 @@ Contents: ubuntu debian - fedora - centos + redhat multiserver diff --git a/docs/installationguide/redhat.rst b/docs/installationguide/redhat.rst new file mode 100644 index 000000000..e15d58aa7 --- /dev/null +++ b/docs/installationguide/redhat.rst @@ -0,0 +1,203 @@ +Redhat +====== + +.. contents:: + +These instructions apply to all Redhat distros and their clones, including but not limited to: Fedora, RHEL, CentOS, Scientific Linux, and others. While the installation instructions are the same for each distro, the reason why one might use one distro over the other is different. A short description follows, which is intended to help you chose what distro best fits your needs. + +Background: RHEL, CentOS, and Clones +------------------------------------ + +These distributions are classified as enterprise operating systems and have a long operating lifetime of many years. By design, they will not have the latest and greatest versions of any package. Instead, stable packages are the emphasis. + +Replacing any core package in these distributions with a newer package from a third party is expressly verboten. The ZoneMinder development team will not do this, and neither should you. If you have the perception that you've got to have a newer version of mysql, gnome, apache, etc. then, rather than upgrade these packages, you should instead consider using a different distribution such as Fedora. + +The ZoneMinder team will not provide support for systems which have had any core package replaced with a package from a third party. + +Background: Fedora +------------------------------------ + +One can think of Fedora as RHEL or CentOS Beta. This is, in fact, what it is. Fedora is primarily geared towards development and testing of newer, sometimes bleeding edge, packages. The ZoneMinder team uses this distro to determine the interoperability of ZoneMinder with the latest and greatest versions of packages like mysql, apache, systemd, and others. If a problem is detected, it will be addressed long before it makes it way into RHEL. + +Fedora has a short life-cycle of just 6 months. However, Fedora, and consequently ZoneMinder, is available on armv7 architecture. Rejoice, Raspberry Pi users! + +If you desire newer packages than what is available in RHEL or CentOS, you should consider using Fedora. + +Zmrepo – A ZoneMinder RPM Repository +------------------------------------ + +Zmrepo is a turn key solution. It will install all of ZoneMinder's dependencies for you. This is the easiest and the recommended way to install ZoneMinder on any system running a Redhat based distribution. + +Zmrepo supports the two most recent, major releases of each Redhat based distro. + +The following notes are based on real problems which have occurred: + +- Zmrepo assumes you have installed the underlying distrubution **using the official installation media for that distro**. Third party "Spins" are not supported and may not work correctly. + +- ZoneMinder is intended to be installed in an environment dedicated to ZoneMinder. While ZoneMinder will play well with many applications, some invariably will not. Asterisk is one such example. + +- Be advised that you need to start with a clean system before using zmrepo. + +- If you have previously installed ZoneMinder from-source, then your system is **NOT** clean. You must manually search for and delete all ZoneMinder related files before using zmrepo (look under /usr/local). Make uninstall helps, but it will not do this for you correctly. You **WILL** have problems if you ignore this step. + +- It is not necessary, and not recommended, to install a LAMP stack ahead of time. + +- Disable other third party repos and uninstall any of ZoneMinder's third party dependencies, which might already be on the system, especially ffmpeg and vlc. Attempting to install dependencies yourself often causes problems. + +- Each ZoneMinder rpm includes a README file under /usr/share/doc. You must follow the all steps in this README file, precisely, each and every time ZoneMinder is installed or upgraded. **Failure to do so is guaranteed to result in a non-functional system.** + +To begin the installation of ZoneMinder on your Redhat based distro, please navigate to: http://zmrepo.zoneminder.com + +How to Build a (Custom) ZoneMinder Package +------------------------------------------ + +If you are looking to do development or the packages in zmrepo just don't suit you, then you should follow these steps to learn how to build your own ZoneMinder RPM. + +Background +********** +The following method documents how to build ZoneMinder into an RPM package, compatible with Fedora, Redhat, CentOS, and other compatible clones. This is exactly how the RPMS in zmrepo are built. + +The method documented below was chosen because: + +- All of ZoneMinder's dependencies are downloaded and installed automatically + +- Cross platform capable. The build host does not have to be the same distro or release version as the target. + +- Once your build environment is set up, few steps are required to run the build again in the future. + +- Troubleshooting becomes easier if we are all building ZoneMinder the same way. + +The build instructions below make use of a custom script called "buildzm.sh". Advanced users are encouraged to view the contents of this script. Notice that the script doesn't really do a whole lot. The goal of the script is to simply make the process a little easier for the first time user. Once you become familar with the build process, you can issue the mock commands found in the buildzm.sh script yourself if you so desire. + +***IMPORTANT*** +Certain commands in these instructions require root privileges while other commands do not. Pay close attention to this. If the instructions below state to issue a command without a “sudo” prefix, then you should *not* be root while issuing the command. Getting this incorrect will result in a failed build. + +Set Up Your Environment +*********************** +Before you begin, set up an rpmbuild environment by following `this guide `_ by the CentOS developers. + +Next, navigate to `Zmrepo `_, and follow the instructions to enable zmrepo on your system. + +With zmrepo enabled, issue the following command: + +:: + + sudo yum install zmrepo-mock-configs mock + + +Add your user account to the group mock: + +:: + + sudo gpasswd -a {your account name} mock + + +Your build environment is now set up. + +Build from SRPM +*************** +To continue, you need a ZoneMinder SRPM. For starters, let's use one of the SRPMS from zmrepo. Go browse the `Zmrepo `_ site and choose an appropriate SRPM and place it into the ~/rpmbuild/SRPMS folder. + +For CentOS 7, I have chosen the following SRPM: + +:: + + wget -P ~/rpmbuild/SRPMS http://zmrepo.zoneminder.com/el/7/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm + + +Now comes the fun part. To build ZoneMinder, issue the following command: + +:: + + buildzm.sh zmrepo-el7-x86_64 ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm + + +Want to build ZoneMinder for Fedora, instead of CentOS, from the same host? Once you download the Fedora SRPM, issue the following: + +:: + + buildzm.sh zmrepo-f21-x86_64 ~/rpmbuild/SRPMS/zoneminder-1.28.1-1.fc21.src.rpm + +Notice that the buildzm.sh tool requires the following parameters: + +:: + + buildzm.sh MOCKCONFIG ZONEMINDER_SRPM + +The list of available Mock config files are available here: + +:: + + ls /etc/mock/zmrepo*.cfg + + +You choose the config file based on the desired distro (e.g. el6, el7, f20, f21) and basearch (e.g. x86, x86_64, arhmhfp). Notice that, when specifying the Mock config as a commandline parameter, you should leave off the ".cfg" filename extension. + +Installation +************ +Once the build completes, you will be presented with a folder containing the RPM's that were built. Copy the newly built ZoneMinder RPM to the desired system, enable zmrepo per the instruction on the `Zmrepo `_ +website, and then install the rpm by issuing the appropriate yum install command. Finish the installation by following the zoneminder setup instructions in the distro specific readme file, named README.{distroname}, which will be installed into the /usr/share/doc/zoneminder* folder. + +Finally, you may want to consider editing the zmrepo repo file under /etc/yum.repos.d and placing an “exclude=zoneminder*” line into the config file. This will prevent your system from overwriting your manually built RPM with the ZoneMinder RPM found in the repo. + +How to Modify the Source Prior to Build +*************************************** +Before attempting this part of the instructions, make sure and follow the previous instructions for building one of the unmodified SRPMS from zmrepo. Knowing this part works will assist in troubleshooting should something go wrong. + +These instructions may vary depending on what exactly you want to do. The following example assumes you want to build a development snapshot from the master branch. + +From the previous instructions, we downloaded a CentOS 7 ZoneMinder SRPM and placed it into ~/rpmbuild/SRPMS. For this example, install it onto your system: + +:: + + rpm -ivh ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm + + +IMPORTANT: This operation must be done with your normal user account. Do *not* perform this command as root. + +Make sure you have git installed: + +:: + + sudo yum install git + + +Now clone the ZoneMinder git repository: + +:: + + cd + git clone https://github.com/ZoneMinder/ZoneMinder + cd ZoneMinder + git submodule init + git submodule update + +This will create a sub-folder called ZoneMinder, which will contain the latest development. + +We want to turn this into a tarball, but first we need to figure out what to name it. Look here: + +:: + + ls ~/rpmbuild/SOURCES + +The tarball from the previsouly installed SRPM should be there. This is the name we will use. For this example, the name is ZoneMinder-1.28.1.tar.gz. From one folder above the local ZoneMinder git repository, execute the following: + +:: + + mv ZoneMinder ZoneMinder-1.28.1 + tar -cvzf ~/rpmbuild/SOURCES/ZoneMinder-1.28.1.tar.gz ZoneMinder-1.28.1/* + +The trailing "/\*" leaves off the hidden dot "." file and folders from the git repo, which is what we want. +Note that we are overwriting the original tarball. If you wish to keep the original tarball then create a copy prior to creating the new tarball. + +Now build a new src.rpm: + +:: + + rpmbuild -bs --nodeps ~/rpmbuild/SPECS/zoneminder.el7.spec + +This step will overwrite the SRPM you originally downloaded, so you may want to back it up prior to completing this step. Note that the name of the specfile will vary slightly depending on the target distro. + +You should now have a new SRPM under ~/rpmbuild/SRPMS. In our example, the SRPM is called zoneminder-1.28.1-2.el7.centos.src.rpm. Now follow the previous instructions that describe how to use the buildzm script, using ~/rpmbuild/SRPMS/zoneminder-1.28.1-2.el7.centos.src.rpm as the path to your SRPM. + + diff --git a/docs/installationguide/ubuntu.rst b/docs/installationguide/ubuntu.rst index bad2b651d..80cb27552 100644 --- a/docs/installationguide/ubuntu.rst +++ b/docs/installationguide/ubuntu.rst @@ -181,7 +181,7 @@ Easy Way: Install ZoneMinder from a package (Ubuntu 14.x) **Step 4:**:Some tweaks that will be needed: -Edit /etc/init.d/zoneminder: +Edit ``/etc/init.d/zoneminder``: add a ``sleep 10`` right after line 25 that reads ``echo -n "Starting $prog:"`` (The reason we need this sleep is to make sure ZM starts after mysqld starts) @@ -198,7 +198,7 @@ As of Oct 3 2015, zm.conf is not readable by ZM. This is likely a bug and will g If you changed the DB password **after** installing ZM, the APIs will not be able to connect to the DB. -If you have, go to zoneminder/www/api/app/Config & Edit ``database.php`` +If you have, go to ``/usr/share/zoneminder/www/api/app/Config`` & Edit ``database.php`` There is a class there called ``DATABASE_CONFIG`` - change the ``$default`` array to reflect your new details. Example: @@ -224,7 +224,7 @@ We also need to install php5-gd (as of 1.28.107, this is not installed) **Step 6**: Edit Timezone in PHP -vi /etc/php5/apache2/php.ini +``sudo vi /etc/php5/apache2/php.ini`` Look for [Date] and inside it you will see a date.timezone that is commented. remove the comment and specific your timezone. Please make sure the timezone is valid (see [this](http://php.net/manual/en/timezones.php)) @@ -247,7 +247,7 @@ restart: :: sudo service apache2 restart - /etc/init.d/zoneminder restart + sudo service zoneminder restart **Step 8**: Making sure ZM and APIs work: (optional - only if you need APIs) diff --git a/docs/userguide/components.rst b/docs/userguide/components.rst index ebedc8c7e..48aff0be4 100644 --- a/docs/userguide/components.rst +++ b/docs/userguide/components.rst @@ -26,16 +26,13 @@ Binaries PHP --- -As well as this there are the web PHP files in the web directory. Currently these consist of 4 possible skins. +As well as this there are the web PHP files in the web directory. Currently these consist of a single skin with Classic and Flat styles. **Classic** Original ZoneMinder skin **Flat** - An updated version of classic skin, retaining the same layout with a more modern style -**XML** - Displays certain views as XML. Used by eyeZM as an interfacing skin (Note that eyeZM no longer seems to work with later versions of Zoneminder). New developers of 3rd party clients should use the API instead (:doc:`../api`) -**Mobile** - A skin that displays views in a more condensed and single page format, likely suitable for smaller mobile devices, should one choose to access the ZoneMinder console using such devices. Note that there are also third party mobile clients one could use (:doc:`mobile`) + An updated version of Classic skin, retaining the same layout with a more modern style. Originally a skin this is now just a CSS style. + Perl ---- diff --git a/docs/userguide/gettingstarted.rst b/docs/userguide/gettingstarted.rst index 73f6e2783..b2e92f63f 100644 --- a/docs/userguide/gettingstarted.rst +++ b/docs/userguide/gettingstarted.rst @@ -67,8 +67,14 @@ own empty screen. * **D**: This is the core of ZoneMinder - recording events. It gives you a count of how many events were recorded over the hour, day, week, month. * **E**: These are the "Zones". Zones are areas within the camera that you mark as 'hotspots' for motion detection. Simply put, when you first configure your monitors (cameras), by default Zoneminder uses the entire field of view of the camera to detect motion. You may not want this. You may want to create "zones" specifically for detecting motion and ignore others. For example, lets consider a room with a fan that spins. You surely don't want to consider the fan moving continuously a reason for triggering a record? Probably not - in that case, you'd leave the fan out while making your zones. * **F**: This is the "source" column that tells you the type of the camera - if its an IP camera, a USB camera or more. In this example, they are all IP cameras. Note the color red on item F ? Well that means there is something wrong with that camera. No wonder the log also shows red. Good indication for you to tap on logs and investigate -* **G**: This defines how Zoneminder will record events. There are various modes. In brief Modect == record if a motion is detected,Record = always record 24x7, Mocord = always record PLUS detect motion, Monitor = just provide a live view but don't record anytime, Nodect = Don't record till an externa entity via zmtrigger tells Zoneminder to (this is advanced usage). +* **G**: This defines how Zoneminder will record events. There are various modes. In brief Modect == record if a motion is detected,Record = always record 24x7, Mocord = always record PLUS detect motion, Monitor = just provide a live view but don't record anytime, Nodect = Don't record till an external entity via zmtrigger tells Zoneminder to (this is advanced usage). * **H**: If you click on these links you can view a "Montage" of all your configured monitors or cycle through each one +* **I**: One of the most often missed features is the ability of ZoneMinder to maintain "run states". If you click on the "Running" text, ZoneMinder brings up a popup that allows you to define additional "states" (referred to as runstates). A runstate is essentially a snapshot that records the state of each monitor and you can switch between states easily. For example, you might have a run state defined that switches all monitors to "monitor" mode in which they are not recording anything while another state that sets some of the monitors to "modect". Why would you want this? A great example is to disable recording when you are at home and enable when you are away, based on time of day or other triggers. You can switch states by selecting an appropriate state manually, or do it automatically via cron jobs, for example. An example of using cron to automatically switch is provided in the :ref:`FAQ `. More esoteric examples of switching run states based on phone location can be found `here `__. + +Here is an example of multiple run states that I've defined. Each one of these runstates changes the mode of specific monitors depending on time of day and other conditions. Use your imagination to decide which conditions require state changes. + +.. image:: images/runstates.png + Adding Monitors diff --git a/docs/userguide/images/getting-started-understand-console.png b/docs/userguide/images/getting-started-understand-console.png index 805917f23..f332b4977 100644 Binary files a/docs/userguide/images/getting-started-understand-console.png and b/docs/userguide/images/getting-started-understand-console.png differ diff --git a/docs/userguide/images/runstates.png b/docs/userguide/images/runstates.png new file mode 100644 index 000000000..ced74cb55 Binary files /dev/null and b/docs/userguide/images/runstates.png differ diff --git a/docs/userguide/options.rst b/docs/userguide/options.rst index 4a0b357f6..8186d8b6a 100644 --- a/docs/userguide/options.rst +++ b/docs/userguide/options.rst @@ -19,6 +19,4 @@ If you have changed the value of an option you should then ‘save’ it. A numb options/options_upload options/options_x10 options/options_bw - options/options_phonebw - options/options_eyezm options/options_users diff --git a/docs/userguide/options/options_eyezm.rst b/docs/userguide/options/options_eyezm.rst deleted file mode 100644 index 21c780bc0..000000000 --- a/docs/userguide/options/options_eyezm.rst +++ /dev/null @@ -1,26 +0,0 @@ -Options - eyeZM ---------------- - -.. NOTE:: - eyeZM does not seem to be actively maintained by the developers and does not work with later versions of ZoneMinder. - - -.. image:: images/Options_eyezm.png - -EYEZM_DEBUG - Enable or Disable extra debugging from the eyeZm Plugin. Extra debugging information will be displayed in it's own file (EYEZM_LOG_TO_FILE is set), or your Apache error log - -EYEZM_LOG_TO_FILE - When EYEZM_DEBUG is on and EYEZM_LOG_TO_FILE is on, output generated from the eyeZm Plugin will go to it's own file. Otherwise it will go to the apache error log. - -EYEZM_LOG_FILE - Default filename to use when logging eyeZm Output and EYEZM_LOG_TO_FILE is enabled. This file will contain it's own output from the eyeZm Plugin when EYEZM_LOG_TO_FILE and EYEZM_DEBUG are both enabled. - -EYEZM_EVENT_VCODEC - The eyeZm Plugin calls FFMPEG externally to encode the captured images. If your FFMPEG is not built with support for H264, change this to MPEG-4. If using H264, please check http://www.eyezm.com for H264 requirements and that your eyeZm version supports H264 (v1.2+). - -EYEZM_FEED_VCODEC - Determines whether the live stream is generated using native MJPEG streaming with ZoneMinder, or H264 using FFMPEG and HTML-5 streaming. If using H264, please check http://www.eyezm.com for H264 requirements and that your eyeZm version supports H264 (v1.2+). This is just a default parameter, and can be overridden with eyeZm. - -EYEZM_H264_DEFAULT_BR - Default bit-rate to use with FFMPEG for H264 streaming. When using the eyeZm Plugin to stream H264 data, FFMPEG requires a bitrate to control the quality and bandwidth of the video. This should be specified in a format acceptable to FFMPEG. The default value is sufficient for most installations. This is just a default parameter, and can be overridden with eyeZm. - -EYEZM_H264_DEFAULT_EVBR - Default bit-rate to use with FFMPEG for H264 event viewing. When using the eyeZm Plugin to view events in H264, FFMPEG requires a bitrate to control the quality and bandwidth of the video. This should be specified in a format acceptable to FFMPEG. The default value is sufficient for most installations. This is just a default parameter, and can be overridden with eyeZm. - -EYEZM_H264_TIMEOUT - Timeout (sec) to wait for H264 stream to start before terminating. The eyeZm Plugin will attempt to spawn an H264 stream when requested, and require that it complete within the timeout specified. If you have a slow system or find through the logs that the H264 stream is not starting because the timeout is expiring, even though FFMPEG is running, try increasing this value. If you have a fast system, decreasing this value can improve the responsiveness when there are issues starting H264 streams. - -EYEZM_SEG_DURATION - Segment duration used for streaming using HTTP-5 Streaming protocol. The HTTP-5 Live Streaming Protocol segments the input video stream into small chunks of a duration specified by this parameter. Increasing the segment duration will help with choppy connections on the other end, but will increase the latency in starting a stream. diff --git a/docs/userguide/options/options_phonebw.rst b/docs/userguide/options/options_phonebw.rst deleted file mode 100644 index e2389bccf..000000000 --- a/docs/userguide/options/options_phonebw.rst +++ /dev/null @@ -1,20 +0,0 @@ -Options - Phone Bandwidth -------------------------- - -.. image:: images/Options_BW_Phone.png - -WEB_P_CAN_STREAM - Override the automatic detection of browser streaming capability. If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect this correctly you can set this option to ensure that the stream is delivered with or without the use of the Cambozola plugin. Selecting 'yes' will tell ZoneMinder that your browser can handle the streams natively, 'no' means that it can't and so the plugin will be used while 'auto' lets ZoneMinder decide. - -WEB_P_STREAM_METHOD - ZoneMinder can be configured to use either mpeg encoded video or a series or still jpeg images when sending video streams. This option defines which is used. If you choose mpeg you should ensure that you have the appropriate plugins available on your browser whereas choosing jpeg will work natively on Mozilla and related browsers and with a Java applet on Internet Explorer" - -WEB_P_DEFAULT_SCALE - Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc. - -WEB_P_DEFAULT_RATE - Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc. - -WEB_P_VIDEO_BITRATE - When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available bandwidth used for the stream. This setting effectively corresponds to a 'quality' setting for the video. A low value will result in a blocky image whereas a high value will produce a clearer view. Note that this setting does not control the frame rate of the video however the quality of the video produced is affected both by this setting and the frame rate that the video is produced at. A higher frame rate at a particular bit rate result in individual frames being at a lower quality. - -WEB_P_VIDEO_MAXFPS - When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower bitrate at high frame rates results in a lower quality image. This option allows you to limit the maximum frame rate to ensure that video quality is maintained. An additional advantage is that encoding video at high frame rates is a processor intensive task when for the most part a very high frame rate offers little perceptible improvement over one that has a more manageable resource requirement. Note, this option is implemented as a cap beyond which binary reduction takes place. So if you have a device capturing at 15fps and set this option to 10fps then the video is not produced at 10fps, but rather at 7.5fps (15 divided by 2) as the final frame rate must be the original divided by a power of 2. - -WEB_P_SCALE_THUMBS - If unset, this option sends the whole image to the browser which resizes it in the window. If set the image is scaled down on the server before sending a reduced size image to the browser to conserve bandwidth at the cost of cpu on the server. Note that ZM can only perform the resizing if the appropriate PHP graphics functionality is installed. This is usually available in the php-gd package. - -WEB_P_AJAX_TIMEOUT - The newer versions of the live feed and event views use Ajax to request information from the server and populate the views dynamically. This option allows you to specify a timeout if required after which requests are abandoned. A timeout may be necessary if requests would overwise hang such as on a slow connection. This would tend to consume a lot of browser memory and make the interface unresponsive. Ordinarily no requests should timeout so this setting should be set to a value greater than the slowest expected response. This value is in milliseconds but if set to zero then no timeout will be used. \ No newline at end of file diff --git a/m4/ac_check_sendfile.m4 b/m4/ac_check_sendfile.m4 deleted file mode 100644 index 12605d588..000000000 --- a/m4/ac_check_sendfile.m4 +++ /dev/null @@ -1,63 +0,0 @@ -AC_DEFUN([AC_CHECK_SENDFILE],[ -AC_MSG_CHECKING([whether sendfile() is supported and what prototype it has]) - -saved_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Werror-implicit-function-declaration" -ac_sendfile_supported=no -AC_TRY_LINK([#include - #include ], - [sendfile(1, 1, NULL, 0);], - [ - AC_DEFINE(HAVE_SENDFILE4_SUPPORT, 1, - [Define this if Linux/Solaris sendfile() is supported]) - AC_MSG_RESULT([Linux sendfile()]) - ac_sendfile_supported=yes - ], []) - -if test x$ac_sendfile_supported = xno; then - dnl Checking wether we need libsendfile - dnl Presumably on Solaris - AC_CHECK_LIB(sendfile, sendfile, - [ - AC_DEFINE(HAVE_SENDFILE4_SUPPORT, 1, - [Define this if Linux/Solaris sendfile() is supported]) - SENDFILE_LIBS="-lsendfile" - AC_SUBST(SENDFILE_LIBS) - AC_MSG_RESULT([Solaris sendfile()]) - ac_sendfile_supported=yes - ], []) -fi - -if test x$ac_sendfile_supported = xno; then - dnl Checking wether we have FreeBSD-like sendfile() support. - AC_TRY_LINK([#include - #include ], - [sendfile(1, 1, 0, 0, NULL, NULL, 0);], - [ - AC_DEFINE(HAVE_SENDFILE7_SUPPORT, 1, - [Define this if FreeBSD sendfile() is supported]) - AC_MSG_RESULT([FreeBSD sendfile()]) - ac_sendfile_supported=yes - ], []) -fi - -if test x$ac_sendfile_supported = xno; then - dnl Checking wether we have MacOS-like sendfile() support. - AC_TRY_LINK([#include - #include - #include ], - [sendfile(1, 1, 0, NULL, NULL, 0);], - [ - AC_DEFINE(HAVE_SENDFILE6_SUPPORT, 1, - [Define this if MacOS sendfile() is supported]) - AC_MSG_RESULT([MacOS sendfile()]) - ac_sendfile_supported=yes - ], []) -fi - -CFLAGS="$saved_CFLAGS" - -if test x$ac_sendfile_supported = xno; then - AC_MSG_RESULT([no sendfile() support, using read/send]) -fi -]) diff --git a/misc/Makefile.am b/misc/Makefile.am deleted file mode 100644 index 5578e4373..000000000 --- a/misc/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -EXTRA_DIST = \ - apache.conf.in \ - logrotate.conf.in \ - syslog.conf.in \ - zoneminder-tmpfiles.conf.in \ - zoneminder.service.in \ - com.zoneminder.systemctl.policy.in \ - com.zoneminder.systemctl.rules.in - -polkit_actiondir = @POLKIT_PREFIX@/share/polkit-1/actions -dist_polkit_action_DATA = com.zoneminder.systemctl.policy - -polkit_rulesdir = @POLKIT_PREFIX@/share/polkit-1/rules.d -dist_polkit_rules_DATA = com.zoneminder.systemctl.rules - diff --git a/misc/logcheck b/misc/logcheck new file mode 100644 index 000000000..28940a6cc --- /dev/null +++ b/misc/logcheck @@ -0,0 +1,29 @@ +zmc_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Capturing at [.[:digit:]]+ fps\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Processing at [.[:digit:]]+ fps\]$ +zmc_m[[:digit:]]+\[[[:digit:]]+\]: INF \[Got signal 15 \(Terminated\), exiting\]$ +zmc_m[[:digit:]]+\[[[:digit:]]+\]: INF \[Starting Capture\]$ +zmc_m[[:digit:]]+\[[[:digit:]]+\]: ERR \[(Connection dropped by remote end|Unable to read (sub)?header|Unable to get response(, disconnecting)?|Select error: Interrupted system call|Can't connect to remote camera: Interrupted system call|Unable to connect to (the remote )?camera(, aborting)?)\]$ +zmc_m[[:digit:]]+\[[[:digit:]]+\]: WAR \[(Unable to capture image, retrying|Select timed out)\]$ +zmaudit\[[[:digit:]]+\]: INF \[Deleted [[:digit:]]+ log table entries by time\]$ +zmdc\[[[:digit:]]+\]: INF \[Starting pending process, [. [:alnum:]-]+\]$ +zmdc\[[[:digit:]]+\]: INF \['[. [:alnum:]-]+' start(ed|ing) at [/: [:digit:]]+(, pid = [[:digit:]]+)?\]$ +zmwatch\[[[:digit:]]+\]: INF \[Watchdog starting\]$ +zmwatch\[[[:digit:]]+\]: INF \[Watchdog pausing for 30 seconds\]$ +zmc_m3\[[[:digit:]]+\]: ERR \[Can't connect to remote camera: (No route to host|Connection refused)\]$ +zmdc\[[[:digit:]]+\]: ERR \['zmc -m 3' exited abnormally, exit status 255\]$ +zmc_m1\[[[:digit:]]+\]: ERR-zm_remote_camera_rtsp.cpp/302 \[Error while decoding frame 0\]$ +zmc_m1\[[[:digit:]]+\]: ERR-zm_remote_camera_rtsp.cpp/303 \[256: [ [:xdigit:]]+\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Gone into alarm state\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Opening new event [[:digit:]]+, alarm start\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Gone into alert state\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: WAR \[Waiting for capture daemon\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Gone back into alarm state\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Left alarm state \([[:digit:]]+\) - [[:digit:]]+\([[:digit:]]+\) images\]$ +zma_m[[:digit:]]+\[[[:digit:]]+\]: INF \[[[:alnum:]]+: [[:digit:]]+ - Closing event [[:digit:]]+, alarm end\]$ +zmaudit\[[[:digit:]]+\]: INF \[Filesystem event '[[:digit:]]+/[[:digit:]]+' does not exist in database\]$ +zmaudit\[[[:digit:]]+\]: INF \[deleting\]$ +zmaudit\[[[:digit:]]+\]: INF \[Found orphaned frame records for event '[[:digit:]]+'\]$ +zmfilter\[[[:digit:]]+\]: INF \[Deleting event [[:digit:]]+\]$ +zmtelemetry\[[[:digit:]]+\]: INF \[Telemetry data uploaded successfully.\]$ +zmtelemetry\[[[:digit:]]+\]: INF \[Sending data to ZoneMinder Telemetry server.\]$ +zmtelemetry\[[[:digit:]]+\]: INF \[Collec?ting data to send to ZoneMinder Telemetry server.\]$ diff --git a/onvif/Makefile.am b/onvif/Makefile.am deleted file mode 100644 index 8cc9d700a..000000000 --- a/onvif/Makefile.am +++ /dev/null @@ -1,26 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -# Ack! Nasty hack to get modules Makefile regenerated if wiped with make clean -all-local: proxy/Makefile modules/Makefile - -proxy/Makefile: proxy/Makefile.PL - ( cd proxy; perl Makefile.PL ) - -modules/Makefile: modules/Makefile.PL - ( cd modules; perl Makefile.PL ) - -SUBDIRS = \ - . \ - proxy \ - modules \ - scripts - - -EXTRA_DIST = \ - proxy/Makefile.PL \ - proxy/lib \ - modules/Makefile.PL \ - modules/lib \ - wsdl \ - doc \ - patches diff --git a/onvif/modules/CMakeLists.txt b/onvif/modules/CMakeLists.txt index 9e46ef9f7..d7ddbf466 100644 --- a/onvif/modules/CMakeLists.txt +++ b/onvif/modules/CMakeLists.txt @@ -9,7 +9,7 @@ endif(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)) # MAKEMAKER_NOECHO_COMMAND previously defined in /scripts/zoneminder/CMakeLists.txt # Add build target for the perl modules -add_custom_target(zmonvifmodules ALL perl Makefile.PL ${ZM_PERL_MM_PARMS} FIRST_MAKEFILE=MakefilePerl DESTDIR="${CMAKE_CURRENT_BINARY_DIR}/output" ${MAKEMAKER_NOECHO_COMMAND} COMMAND make --makefile=MakefilePerl pure_install COMMENT "Building ZoneMinder perl ONVIF proxy module") +add_custom_target(zmonvifmodules ALL perl Makefile.PL ${ZM_PERL_MM_PARMS} FIRST_MAKEFILE=MakefilePerl DESTDIR="${CMAKE_CURRENT_BINARY_DIR}/output" ${MAKEMAKER_NOECHO_COMMAND} COMMAND make -f MakefilePerl pure_install COMMENT "Building ZoneMinder perl ONVIF proxy module") # Add install target for the perl modules install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/output/" DESTINATION "/") diff --git a/onvif/modules/lib/ONVIF/Serializer/Base.pm b/onvif/modules/lib/ONVIF/Serializer/Base.pm index 7bab331cf..adbb173c6 100644 --- a/onvif/modules/lib/ONVIF/Serializer/Base.pm +++ b/onvif/modules/lib/ONVIF/Serializer/Base.pm @@ -97,8 +97,11 @@ sub serialize { my $soap_prefix = $opt->{ namespace }->{ $SOAP_NS }; - # envelope start with namespaces - my $xml = "<$soap_prefix\:Envelope "; + # XML starts with header + my $xml = "\n"; + + # envelope starts with namespaces + $xml .= "<$soap_prefix\:Envelope "; while (my ($uri, $prefix) = each %{ $opt->{ namespace } }) { diff --git a/onvif/proxy/CMakeLists.txt b/onvif/proxy/CMakeLists.txt index 0051bf2b1..1a40c0ffb 100644 --- a/onvif/proxy/CMakeLists.txt +++ b/onvif/proxy/CMakeLists.txt @@ -9,7 +9,7 @@ endif(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)) # MAKEMAKER_NOECHO_COMMAND previously defined in /scripts/zoneminder/CMakeLists.txt # Add build target for the perl modules -add_custom_target(zmonvifproxy ALL perl Makefile.PL ${ZM_PERL_MM_PARMS} FIRST_MAKEFILE=MakefilePerl DESTDIR="${CMAKE_CURRENT_BINARY_DIR}/output" ${MAKEMAKER_NOECHO_COMMAND} COMMAND make --makefile=MakefilePerl pure_install COMMENT "Building ZoneMinder perl ONVIF proxy module") +add_custom_target(zmonvifproxy ALL perl Makefile.PL ${ZM_PERL_MM_PARMS} FIRST_MAKEFILE=MakefilePerl DESTDIR="${CMAKE_CURRENT_BINARY_DIR}/output" ${MAKEMAKER_NOECHO_COMMAND} COMMAND make -f MakefilePerl pure_install COMMENT "Building ZoneMinder perl ONVIF proxy module") # Add install target for the perl modules install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/output/" DESTINATION "/") diff --git a/onvif/proxy/lib/ONVIF/Analytics/Attributes/actor.pm b/onvif/proxy/lib/ONVIF/Analytics/Attributes/actor.pm new file mode 100644 index 000000000..32ec1b360 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Attributes/actor.pm @@ -0,0 +1,54 @@ + +package ONVIF::Analytics::Attributes::actor; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('actor'); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Attribute + SOAP::WSDL::XSD::Typelib::Builtin::anyURI +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Attributes::actor + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined attribute +actor from the namespace http://schemas.xmlsoap.org/soap/envelope/. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Attributes::actor->new($data); + +Constructor. The following data structure may be passed to new(): + + { value => $value } + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Attributes/contentType.pm b/onvif/proxy/lib/ONVIF/Analytics/Attributes/contentType.pm new file mode 100644 index 000000000..7efcde9bc --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Attributes/contentType.pm @@ -0,0 +1,64 @@ + +package ONVIF::Analytics::Attributes::contentType; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.w3.org/2005/05/xmlmime' } + +__PACKAGE__->__set_name('contentType'); +__PACKAGE__->__set_ref(); + +# atomic simpleType: new($data); + +Constructor. The following data structure may be passed to new(): + + { value => $value } + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Attributes/encodingStyle.pm b/onvif/proxy/lib/ONVIF/Analytics/Attributes/encodingStyle.pm new file mode 100644 index 000000000..7f16b80d3 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Attributes/encodingStyle.pm @@ -0,0 +1,54 @@ + +package ONVIF::Analytics::Attributes::encodingStyle; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('encodingStyle'); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Attribute + ONVIF::Analytics::Types::encodingStyle +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Attributes::encodingStyle + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined attribute +encodingStyle from the namespace http://schemas.xmlsoap.org/soap/envelope/. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Attributes::encodingStyle->new($data); + +Constructor. The following data structure may be passed to new(): + + { value => $value } + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Attributes/expectedContentTypes.pm b/onvif/proxy/lib/ONVIF/Analytics/Attributes/expectedContentTypes.pm new file mode 100644 index 000000000..cfcb44a2d --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Attributes/expectedContentTypes.pm @@ -0,0 +1,54 @@ + +package ONVIF::Analytics::Attributes::expectedContentTypes; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.w3.org/2005/05/xmlmime' } + +__PACKAGE__->__set_name('expectedContentTypes'); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Attribute + SOAP::WSDL::XSD::Typelib::Builtin::string +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Attributes::expectedContentTypes + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined attribute +expectedContentTypes from the namespace http://www.w3.org/2005/05/xmlmime. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Attributes::expectedContentTypes->new($data); + +Constructor. The following data structure may be passed to new(): + + { value => $value } + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Attributes/mustUnderstand.pm b/onvif/proxy/lib/ONVIF/Analytics/Attributes/mustUnderstand.pm new file mode 100644 index 000000000..363cec963 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Attributes/mustUnderstand.pm @@ -0,0 +1,64 @@ + +package ONVIF::Analytics::Attributes::mustUnderstand; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('mustUnderstand'); +__PACKAGE__->__set_ref(); + +# atomic simpleType: new($data); + +Constructor. The following data structure may be passed to new(): + + { value => $value } + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioDecoderConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioDecoderConfiguration.pm new file mode 100644 index 000000000..d0fc89bd0 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioDecoderConfiguration.pm @@ -0,0 +1,58 @@ + +package ONVIF::Analytics::Elements::AudioDecoderConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('AudioDecoderConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::AudioDecoderConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::AudioDecoderConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +AudioDecoderConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::AudioDecoderConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioDecoderConfiguration + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioEncoderConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioEncoderConfiguration.pm new file mode 100644 index 000000000..6c0db80d6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioEncoderConfiguration.pm @@ -0,0 +1,72 @@ + +package ONVIF::Analytics::Elements::AudioEncoderConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('AudioEncoderConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::AudioEncoderConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::AudioEncoderConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +AudioEncoderConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::AudioEncoderConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioEncoderConfiguration + Encoding => $some_value, # AudioEncoding + Bitrate => $some_value, # int + SampleRate => $some_value, # int + Multicast => { # ONVIF::Analytics::Types::MulticastConfiguration + Address => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Port => $some_value, # int + TTL => $some_value, # int + AutoStart => $some_value, # boolean + }, + SessionTimeout => $some_value, # duration + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioOutputConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioOutputConfiguration.pm new file mode 100644 index 000000000..f7c0f7b32 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioOutputConfiguration.pm @@ -0,0 +1,61 @@ + +package ONVIF::Analytics::Elements::AudioOutputConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('AudioOutputConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::AudioOutputConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::AudioOutputConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +AudioOutputConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::AudioOutputConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioOutputConfiguration + OutputToken => $some_value, # ReferenceToken + SendPrimacy => $some_value, # anyURI + OutputLevel => $some_value, # int + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioSourceConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioSourceConfiguration.pm new file mode 100644 index 000000000..d1cb63ff7 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/AudioSourceConfiguration.pm @@ -0,0 +1,59 @@ + +package ONVIF::Analytics::Elements::AudioSourceConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('AudioSourceConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::AudioSourceConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::AudioSourceConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +AudioSourceConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::AudioSourceConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioSourceConfiguration + SourceToken => $some_value, # ReferenceToken + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Body.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Body.pm new file mode 100644 index 000000000..41611b087 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Body.pm @@ -0,0 +1,58 @@ + +package ONVIF::Analytics::Elements::Body; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('Body'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Body +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Body + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Body from the namespace http://schemas.xmlsoap.org/soap/envelope/. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Body->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Body + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Capabilities.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Capabilities.pm new file mode 100644 index 000000000..7c134f381 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Capabilities.pm @@ -0,0 +1,58 @@ + +package ONVIF::Analytics::Elements::Capabilities; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('Capabilities'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Capabilities +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Capabilities + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Capabilities from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Capabilities->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Capabilities + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateAnalyticsModules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateAnalyticsModules.pm new file mode 100644 index 000000000..a0f19cb3b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateAnalyticsModules.pm @@ -0,0 +1,143 @@ + +package ONVIF::Analytics::Elements::CreateAnalyticsModules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('CreateAnalyticsModules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); +my %AnalyticsModule_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + AnalyticsModule + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + 'AnalyticsModule' => \%AnalyticsModule_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + 'AnalyticsModule' => 'AnalyticsModule', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::CreateAnalyticsModules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +CreateAnalyticsModules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + +=item * AnalyticsModule + + $element->set_AnalyticsModule($data); + $element->get_AnalyticsModule(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::CreateAnalyticsModules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateAnalyticsModulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateAnalyticsModulesResponse.pm new file mode 100644 index 000000000..c23ffecc0 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateAnalyticsModulesResponse.pm @@ -0,0 +1,90 @@ + +package ONVIF::Analytics::Elements::CreateAnalyticsModulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('CreateAnalyticsModulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::CreateAnalyticsModulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +CreateAnalyticsModulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::CreateAnalyticsModulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + +, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateRules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateRules.pm new file mode 100644 index 000000000..d149b29dc --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateRules.pm @@ -0,0 +1,143 @@ + +package ONVIF::Analytics::Elements::CreateRules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('CreateRules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); +my %Rule_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + Rule + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + 'Rule' => \%Rule_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'Rule' => 'ONVIF::Analytics::Types::Config', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + 'Rule' => 'Rule', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::CreateRules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +CreateRules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + +=item * Rule + + $element->set_Rule($data); + $element->get_Rule(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::CreateRules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateRulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateRulesResponse.pm new file mode 100644 index 000000000..3c28a2165 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/CreateRulesResponse.pm @@ -0,0 +1,90 @@ + +package ONVIF::Analytics::Elements::CreateRulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('CreateRulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::CreateRulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +CreateRulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::CreateRulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + +, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteAnalyticsModules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteAnalyticsModules.pm new file mode 100644 index 000000000..6f977ae23 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteAnalyticsModules.pm @@ -0,0 +1,135 @@ + +package ONVIF::Analytics::Elements::DeleteAnalyticsModules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('DeleteAnalyticsModules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); +my %AnalyticsModuleName_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + AnalyticsModuleName + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + 'AnalyticsModuleName' => \%AnalyticsModuleName_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'AnalyticsModuleName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + 'AnalyticsModuleName' => 'AnalyticsModuleName', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::DeleteAnalyticsModules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +DeleteAnalyticsModules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + +=item * AnalyticsModuleName + + $element->set_AnalyticsModuleName($data); + $element->get_AnalyticsModuleName(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::DeleteAnalyticsModules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + AnalyticsModuleName => $some_value, # string + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteAnalyticsModulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteAnalyticsModulesResponse.pm new file mode 100644 index 000000000..f723a7331 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteAnalyticsModulesResponse.pm @@ -0,0 +1,90 @@ + +package ONVIF::Analytics::Elements::DeleteAnalyticsModulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('DeleteAnalyticsModulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::DeleteAnalyticsModulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +DeleteAnalyticsModulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::DeleteAnalyticsModulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + +, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteRules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteRules.pm new file mode 100644 index 000000000..cc007d5f5 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteRules.pm @@ -0,0 +1,135 @@ + +package ONVIF::Analytics::Elements::DeleteRules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('DeleteRules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); +my %RuleName_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + RuleName + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + 'RuleName' => \%RuleName_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'RuleName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + 'RuleName' => 'RuleName', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::DeleteRules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +DeleteRules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + +=item * RuleName + + $element->set_RuleName($data); + $element->get_RuleName(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::DeleteRules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + RuleName => $some_value, # string + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteRulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteRulesResponse.pm new file mode 100644 index 000000000..d8b7d5969 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/DeleteRulesResponse.pm @@ -0,0 +1,90 @@ + +package ONVIF::Analytics::Elements::DeleteRulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('DeleteRulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::DeleteRulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +DeleteRulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::DeleteRulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + +, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Envelope.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Envelope.pm new file mode 100644 index 000000000..65b60aeb4 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Envelope.pm @@ -0,0 +1,62 @@ + +package ONVIF::Analytics::Elements::Envelope; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('Envelope'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Envelope +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Envelope + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Envelope from the namespace http://schemas.xmlsoap.org/soap/envelope/. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Envelope->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Envelope + Header => { # ONVIF::Analytics::Types::Header + }, + Body => { # ONVIF::Analytics::Types::Body + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Fault.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Fault.pm new file mode 100644 index 000000000..d8903ea39 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Fault.pm @@ -0,0 +1,63 @@ + +package ONVIF::Analytics::Elements::Fault; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('Fault'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Fault +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Fault + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Fault from the namespace http://schemas.xmlsoap.org/soap/envelope/. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Fault->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Fault + faultcode => $some_value, # QName + faultstring => $some_value, # string + faultactor => $some_value, # anyURI + detail => { # ONVIF::Analytics::Types::detail + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetAnalyticsModules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetAnalyticsModules.pm new file mode 100644 index 000000000..23039ed5d --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetAnalyticsModules.pm @@ -0,0 +1,121 @@ + +package ONVIF::Analytics::Elements::GetAnalyticsModules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetAnalyticsModules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetAnalyticsModules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetAnalyticsModules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetAnalyticsModules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetAnalyticsModulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetAnalyticsModulesResponse.pm new file mode 100644 index 000000000..01509ac6b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetAnalyticsModulesResponse.pm @@ -0,0 +1,129 @@ + +package ONVIF::Analytics::Elements::GetAnalyticsModulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetAnalyticsModulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %AnalyticsModule_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( AnalyticsModule + + ) ], + { + 'AnalyticsModule' => \%AnalyticsModule_of, + }, + { + 'AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + }, + { + + 'AnalyticsModule' => 'AnalyticsModule', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetAnalyticsModulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetAnalyticsModulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AnalyticsModule + + $element->set_AnalyticsModule($data); + $element->get_AnalyticsModule(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetAnalyticsModulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + + { + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetRules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetRules.pm new file mode 100644 index 000000000..7d96f0a1c --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetRules.pm @@ -0,0 +1,121 @@ + +package ONVIF::Analytics::Elements::GetRules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetRules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetRules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetRules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetRules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetRulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetRulesResponse.pm new file mode 100644 index 000000000..510591322 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetRulesResponse.pm @@ -0,0 +1,129 @@ + +package ONVIF::Analytics::Elements::GetRulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetRulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Rule_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Rule + + ) ], + { + 'Rule' => \%Rule_of, + }, + { + 'Rule' => 'ONVIF::Analytics::Types::Config', + }, + { + + 'Rule' => 'Rule', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetRulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetRulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Rule + + $element->set_Rule($data); + $element->get_Rule(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetRulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + + { + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetServiceCapabilities.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetServiceCapabilities.pm new file mode 100644 index 000000000..dd8589e07 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetServiceCapabilities.pm @@ -0,0 +1,107 @@ + +package ONVIF::Analytics::Elements::GetServiceCapabilities; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetServiceCapabilities'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetServiceCapabilities + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetServiceCapabilities from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetServiceCapabilities->new($data); + +Constructor. The following data structure may be passed to new(): + + { + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetServiceCapabilitiesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetServiceCapabilitiesResponse.pm new file mode 100644 index 000000000..3361117af --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetServiceCapabilitiesResponse.pm @@ -0,0 +1,122 @@ + +package ONVIF::Analytics::Elements::GetServiceCapabilitiesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetServiceCapabilitiesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Capabilities_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Capabilities + + ) ], + { + 'Capabilities' => \%Capabilities_of, + }, + { + 'Capabilities' => 'ONVIF::Analytics::Types::Capabilities', + }, + { + + 'Capabilities' => 'Capabilities', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetServiceCapabilitiesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetServiceCapabilitiesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Capabilities + + $element->set_Capabilities($data); + $element->get_Capabilities(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetServiceCapabilitiesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + + { + Capabilities => { # ONVIF::Analytics::Types::Capabilities + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedAnalyticsModules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedAnalyticsModules.pm new file mode 100644 index 000000000..d2f6fc924 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedAnalyticsModules.pm @@ -0,0 +1,121 @@ + +package ONVIF::Analytics::Elements::GetSupportedAnalyticsModules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetSupportedAnalyticsModules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetSupportedAnalyticsModules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetSupportedAnalyticsModules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetSupportedAnalyticsModules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedAnalyticsModulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedAnalyticsModulesResponse.pm new file mode 100644 index 000000000..9962a617c --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedAnalyticsModulesResponse.pm @@ -0,0 +1,138 @@ + +package ONVIF::Analytics::Elements::GetSupportedAnalyticsModulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetSupportedAnalyticsModulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %SupportedAnalyticsModules_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( SupportedAnalyticsModules + + ) ], + { + 'SupportedAnalyticsModules' => \%SupportedAnalyticsModules_of, + }, + { + 'SupportedAnalyticsModules' => 'ONVIF::Analytics::Types::SupportedAnalyticsModules', + }, + { + + 'SupportedAnalyticsModules' => 'SupportedAnalyticsModules', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetSupportedAnalyticsModulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetSupportedAnalyticsModulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * SupportedAnalyticsModules + + $element->set_SupportedAnalyticsModules($data); + $element->get_SupportedAnalyticsModules(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetSupportedAnalyticsModulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + + { + SupportedAnalyticsModules => { # ONVIF::Analytics::Types::SupportedAnalyticsModules + AnalyticsModuleContentSchemaLocation => $some_value, # anyURI + AnalyticsModuleDescription => { # ONVIF::Analytics::Types::ConfigDescription + Parameters => { # ONVIF::Analytics::Types::ItemListDescription + SimpleItemDescription => , + ElementItemDescription => , + Extension => { # ONVIF::Analytics::Types::ItemListDescriptionExtension + }, + }, + Messages => { + ParentTopic => $some_value, # string + }, + Extension => { # ONVIF::Analytics::Types::ConfigDescriptionExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::SupportedAnalyticsModulesExtension + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedRules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedRules.pm new file mode 100644 index 000000000..7dfd0aa7d --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedRules.pm @@ -0,0 +1,121 @@ + +package ONVIF::Analytics::Elements::GetSupportedRules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetSupportedRules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetSupportedRules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetSupportedRules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetSupportedRules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedRulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedRulesResponse.pm new file mode 100644 index 000000000..c23b26b6b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/GetSupportedRulesResponse.pm @@ -0,0 +1,138 @@ + +package ONVIF::Analytics::Elements::GetSupportedRulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('GetSupportedRulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %SupportedRules_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( SupportedRules + + ) ], + { + 'SupportedRules' => \%SupportedRules_of, + }, + { + 'SupportedRules' => 'ONVIF::Analytics::Types::SupportedRules', + }, + { + + 'SupportedRules' => 'SupportedRules', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::GetSupportedRulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +GetSupportedRulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * SupportedRules + + $element->set_SupportedRules($data); + $element->get_SupportedRules(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::GetSupportedRulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + + { + SupportedRules => { # ONVIF::Analytics::Types::SupportedRules + RuleContentSchemaLocation => $some_value, # anyURI + RuleDescription => { # ONVIF::Analytics::Types::ConfigDescription + Parameters => { # ONVIF::Analytics::Types::ItemListDescription + SimpleItemDescription => , + ElementItemDescription => , + Extension => { # ONVIF::Analytics::Types::ItemListDescriptionExtension + }, + }, + Messages => { + ParentTopic => $some_value, # string + }, + Extension => { # ONVIF::Analytics::Types::ConfigDescriptionExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::SupportedRulesExtension + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Header.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Header.pm new file mode 100644 index 000000000..4f64e72ba --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Header.pm @@ -0,0 +1,58 @@ + +package ONVIF::Analytics::Elements::Header; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' } + +__PACKAGE__->__set_name('Header'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Header +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Header + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Header from the namespace http://schemas.xmlsoap.org/soap/envelope/. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Header->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Header + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Include.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Include.pm new file mode 100644 index 000000000..9db022058 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Include.pm @@ -0,0 +1,58 @@ + +package ONVIF::Analytics::Elements::Include; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.w3.org/2004/08/xop/include' } + +__PACKAGE__->__set_name('Include'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Include +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Include + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Include from the namespace http://www.w3.org/2004/08/xop/include. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Include->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Include + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Message.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Message.pm new file mode 100644 index 000000000..d71b8e03c --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Message.pm @@ -0,0 +1,207 @@ + +package ONVIF::Analytics::Elements::Message; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('Message'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Elements::Message::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Source_of :ATTR(:get); +my %Key_of :ATTR(:get); +my %Data_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Source + Key + Data + Extension + + ) ], + { + 'Source' => \%Source_of, + 'Key' => \%Key_of, + 'Data' => \%Data_of, + 'Extension' => \%Extension_of, + }, + { + 'Source' => 'ONVIF::Analytics::Types::ItemList', + 'Key' => 'ONVIF::Analytics::Types::ItemList', + 'Data' => 'ONVIF::Analytics::Types::ItemList', + 'Extension' => 'ONVIF::Analytics::Types::MessageExtension', + }, + { + + 'Source' => 'Source', + 'Key' => 'Key', + 'Data' => 'Data', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Elements::Message::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %UtcTime_of :ATTR(:get); +my %PropertyOperation_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + UtcTime + PropertyOperation + ) ], + { + + UtcTime => \%UtcTime_of, + + PropertyOperation => \%PropertyOperation_of, + }, + { + UtcTime => 'SOAP::WSDL::XSD::Typelib::Builtin::dateTime', + PropertyOperation => 'ONVIF::Analytics::Types::PropertyOperation', + } +); + +} # end BLOCK + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Message + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Message from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Source + + $element->set_Source($data); + $element->get_Source(); + + + + +=item * Key + + $element->set_Key($data); + $element->get_Key(); + + + + +=item * Data + + $element->set_Data($data); + $element->get_Data(); + + + + +=item * Extension + + $element->set_Extension($data); + $element->get_Extension(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Message->new($data); + +Constructor. The following data structure may be passed to new(): + + { + Source => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + Key => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + Data => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::MessageExtension + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/MetadataConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/MetadataConfiguration.pm new file mode 100644 index 000000000..24662efd0 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/MetadataConfiguration.pm @@ -0,0 +1,89 @@ + +package ONVIF::Analytics::Elements::MetadataConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('MetadataConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::MetadataConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::MetadataConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +MetadataConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::MetadataConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::MetadataConfiguration + PTZStatus => { # ONVIF::Analytics::Types::PTZFilter + Status => $some_value, # boolean + Position => $some_value, # boolean + }, + Analytics => $some_value, # boolean + Multicast => { # ONVIF::Analytics::Types::MulticastConfiguration + Address => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Port => $some_value, # int + TTL => $some_value, # int + AutoStart => $some_value, # boolean + }, + SessionTimeout => $some_value, # duration + AnalyticsEngineConfiguration => { # ONVIF::Analytics::Types::AnalyticsEngineConfiguration + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::MetadataConfigurationExtension + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/MetadataStream.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/MetadataStream.pm new file mode 100644 index 000000000..eb0831001 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/MetadataStream.pm @@ -0,0 +1,192 @@ + +package ONVIF::Analytics::Elements::MetadataStream; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('MetadataStream'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::MetadataStream +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::MetadataStream + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +MetadataStream from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::MetadataStream->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::MetadataStream + # One of the following elements. + # No occurance checks yet, so be sure to pass just one... + VideoAnalytics => { # ONVIF::Analytics::Types::VideoAnalyticsStream + # One of the following elements. + # No occurance checks yet, so be sure to pass just one... + Frame => { # ONVIF::Analytics::Types::Frame + PTZStatus => { # ONVIF::Analytics::Types::PTZStatus + Position => { # ONVIF::Analytics::Types::PTZVector + PanTilt => , + Zoom => , + }, + MoveStatus => { # ONVIF::Analytics::Types::PTZMoveStatus + PanTilt => $some_value, # MoveStatus + Zoom => $some_value, # MoveStatus + }, + Error => $some_value, # string + UtcTime => $some_value, # dateTime + }, + Transformation => { # ONVIF::Analytics::Types::Transformation + Translate => , + Scale => , + Extension => { # ONVIF::Analytics::Types::TransformationExtension + }, + }, + Object => { # ONVIF::Analytics::Types::Object + Appearance => { # ONVIF::Analytics::Types::Appearance + Transformation => { # ONVIF::Analytics::Types::Transformation + Translate => , + Scale => , + Extension => { # ONVIF::Analytics::Types::TransformationExtension + }, + }, + Shape => { # ONVIF::Analytics::Types::ShapeDescriptor + BoundingBox => , + CenterOfGravity => , + Polygon => { # ONVIF::Analytics::Types::Polygon + Point => , + }, + Extension => { # ONVIF::Analytics::Types::ShapeDescriptorExtension + }, + }, + Color => { # ONVIF::Analytics::Types::ColorDescriptor + ColorCluster => { + Color => , + Weight => $some_value, # float + Covariance => , + }, + Extension => { # ONVIF::Analytics::Types::ColorDescriptorExtension + }, + }, + Class => { # ONVIF::Analytics::Types::ClassDescriptor + ClassCandidate => { + Type => $some_value, # ClassType + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension + OtherTypes => { # ONVIF::Analytics::Types::OtherType + Type => $some_value, # string + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension2 + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AppearanceExtension + }, + }, + Behaviour => { # ONVIF::Analytics::Types::Behaviour + Removed => { + }, + Idle => { + }, + Extension => { # ONVIF::Analytics::Types::BehaviourExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::ObjectExtension + }, + }, + ObjectTree => { # ONVIF::Analytics::Types::ObjectTree + Rename => { # ONVIF::Analytics::Types::Rename + from => , + to => , + }, + Split => { # ONVIF::Analytics::Types::Split + from => , + to => , + }, + Merge => { # ONVIF::Analytics::Types::Merge + from => , + to => , + }, + Delete => , + Extension => { # ONVIF::Analytics::Types::ObjectTreeExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::FrameExtension + MotionInCells => { # ONVIF::Analytics::Types::MotionInCells + }, + Extension => { # ONVIF::Analytics::Types::FrameExtension2 + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::VideoAnalyticsStreamExtension + }, + }, + PTZ => { # ONVIF::Analytics::Types::PTZStream + # One of the following elements. + # No occurance checks yet, so be sure to pass just one... + PTZStatus => { # ONVIF::Analytics::Types::PTZStatus + Position => { # ONVIF::Analytics::Types::PTZVector + PanTilt => , + Zoom => , + }, + MoveStatus => { # ONVIF::Analytics::Types::PTZMoveStatus + PanTilt => $some_value, # MoveStatus + Zoom => $some_value, # MoveStatus + }, + Error => $some_value, # string + UtcTime => $some_value, # dateTime + }, + Extension => { # ONVIF::Analytics::Types::PTZStreamExtension + }, + }, + Event => $some_value, # anyType + Extension => { # ONVIF::Analytics::Types::MetadataStreamExtension + AudioAnalyticsStream => { # ONVIF::Analytics::Types::AudioAnalyticsStream + AudioDescriptor => { # ONVIF::Analytics::Types::AudioDescriptor + }, + Extension => { # ONVIF::Analytics::Types::AudioAnalyticsStreamExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::MetadataStreamExtension2 + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyAnalyticsModules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyAnalyticsModules.pm new file mode 100644 index 000000000..b1115dbe6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyAnalyticsModules.pm @@ -0,0 +1,143 @@ + +package ONVIF::Analytics::Elements::ModifyAnalyticsModules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('ModifyAnalyticsModules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); +my %AnalyticsModule_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + AnalyticsModule + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + 'AnalyticsModule' => \%AnalyticsModule_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + 'AnalyticsModule' => 'AnalyticsModule', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::ModifyAnalyticsModules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +ModifyAnalyticsModules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + +=item * AnalyticsModule + + $element->set_AnalyticsModule($data); + $element->get_AnalyticsModule(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::ModifyAnalyticsModules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyAnalyticsModulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyAnalyticsModulesResponse.pm new file mode 100644 index 000000000..50d373978 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyAnalyticsModulesResponse.pm @@ -0,0 +1,90 @@ + +package ONVIF::Analytics::Elements::ModifyAnalyticsModulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('ModifyAnalyticsModulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::ModifyAnalyticsModulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +ModifyAnalyticsModulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::ModifyAnalyticsModulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + +, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyRules.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyRules.pm new file mode 100644 index 000000000..cda8c66d6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyRules.pm @@ -0,0 +1,143 @@ + +package ONVIF::Analytics::Elements::ModifyRules; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('ModifyRules'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ConfigurationToken_of :ATTR(:get); +my %Rule_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ConfigurationToken + Rule + + ) ], + { + 'ConfigurationToken' => \%ConfigurationToken_of, + 'Rule' => \%Rule_of, + }, + { + 'ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'Rule' => 'ONVIF::Analytics::Types::Config', + }, + { + + 'ConfigurationToken' => 'ConfigurationToken', + 'Rule' => 'Rule', + } +); + +} # end BLOCK + + + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::ModifyRules + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +ModifyRules from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ConfigurationToken + + $element->set_ConfigurationToken($data); + $element->get_ConfigurationToken(); + + + + +=item * Rule + + $element->set_Rule($data); + $element->get_Rule(); + + + + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::ModifyRules->new($data); + +Constructor. The following data structure may be passed to new(): + + { + ConfigurationToken => $some_value, # ReferenceToken + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyRulesResponse.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyRulesResponse.pm new file mode 100644 index 000000000..0efce26d5 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/ModifyRulesResponse.pm @@ -0,0 +1,90 @@ + +package ONVIF::Analytics::Elements::ModifyRulesResponse; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' } + +__PACKAGE__->__set_name('ModifyRulesResponse'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); + +use base qw( + SOAP::WSDL::XSD::Typelib::Element + SOAP::WSDL::XSD::Typelib::ComplexType +); + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + + + + +} # end of BLOCK + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::ModifyRulesResponse + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +ModifyRulesResponse from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + + +=head1 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + +=back + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::ModifyRulesResponse->new($data); + +Constructor. The following data structure may be passed to new(): + +, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/PTZConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/PTZConfiguration.pm new file mode 100644 index 000000000..40870ad10 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/PTZConfiguration.pm @@ -0,0 +1,106 @@ + +package ONVIF::Analytics::Elements::PTZConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('PTZConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::PTZConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::PTZConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +PTZConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::PTZConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::PTZConfiguration + NodeToken => $some_value, # ReferenceToken + DefaultAbsolutePantTiltPositionSpace => $some_value, # anyURI + DefaultAbsoluteZoomPositionSpace => $some_value, # anyURI + DefaultRelativePanTiltTranslationSpace => $some_value, # anyURI + DefaultRelativeZoomTranslationSpace => $some_value, # anyURI + DefaultContinuousPanTiltVelocitySpace => $some_value, # anyURI + DefaultContinuousZoomVelocitySpace => $some_value, # anyURI + DefaultPTZSpeed => { # ONVIF::Analytics::Types::PTZSpeed + PanTilt => , + Zoom => , + }, + DefaultPTZTimeout => $some_value, # duration + PanTiltLimits => { # ONVIF::Analytics::Types::PanTiltLimits + Range => { # ONVIF::Analytics::Types::Space2DDescription + URI => $some_value, # anyURI + XRange => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + YRange => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + }, + }, + ZoomLimits => { # ONVIF::Analytics::Types::ZoomLimits + Range => { # ONVIF::Analytics::Types::Space1DDescription + URI => $some_value, # anyURI + XRange => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::PTZConfigurationExtension + PTControlDirection => { # ONVIF::Analytics::Types::PTControlDirection + EFlip => { # ONVIF::Analytics::Types::EFlip + Mode => $some_value, # EFlipMode + }, + Reverse => { # ONVIF::Analytics::Types::Reverse + Mode => $some_value, # ReverseMode + }, + Extension => { # ONVIF::Analytics::Types::PTControlDirectionExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::PTZConfigurationExtension2 + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Polygon.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Polygon.pm new file mode 100644 index 000000000..4d4ff9f05 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Polygon.pm @@ -0,0 +1,59 @@ + +package ONVIF::Analytics::Elements::Polygon; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('Polygon'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Polygon +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Polygon + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Polygon from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Polygon->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Polygon + Point => , + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/Polyline.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/Polyline.pm new file mode 100644 index 000000000..9948d4835 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/Polyline.pm @@ -0,0 +1,59 @@ + +package ONVIF::Analytics::Elements::Polyline; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('Polyline'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::Polyline +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::Polyline + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +Polyline from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::Polyline->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Polyline + Point => , + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoAnalyticsConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoAnalyticsConfiguration.pm new file mode 100644 index 000000000..147929963 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoAnalyticsConfiguration.pm @@ -0,0 +1,84 @@ + +package ONVIF::Analytics::Elements::VideoAnalyticsConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('VideoAnalyticsConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::VideoAnalyticsConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::VideoAnalyticsConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +VideoAnalyticsConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::VideoAnalyticsConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::VideoAnalyticsConfiguration + AnalyticsEngineConfiguration => { # ONVIF::Analytics::Types::AnalyticsEngineConfiguration + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + }, + }, + RuleEngineConfiguration => { # ONVIF::Analytics::Types::RuleEngineConfiguration + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::RuleEngineConfigurationExtension + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoEncoderConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoEncoderConfiguration.pm new file mode 100644 index 000000000..7b0759d9c --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoEncoderConfiguration.pm @@ -0,0 +1,88 @@ + +package ONVIF::Analytics::Elements::VideoEncoderConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('VideoEncoderConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::VideoEncoderConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::VideoEncoderConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +VideoEncoderConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::VideoEncoderConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::VideoEncoderConfiguration + Encoding => $some_value, # VideoEncoding + Resolution => { # ONVIF::Analytics::Types::VideoResolution + Width => $some_value, # int + Height => $some_value, # int + }, + Quality => $some_value, # float + RateControl => { # ONVIF::Analytics::Types::VideoRateControl + FrameRateLimit => $some_value, # int + EncodingInterval => $some_value, # int + BitrateLimit => $some_value, # int + }, + MPEG4 => { # ONVIF::Analytics::Types::Mpeg4Configuration + GovLength => $some_value, # int + Mpeg4Profile => $some_value, # Mpeg4Profile + }, + H264 => { # ONVIF::Analytics::Types::H264Configuration + GovLength => $some_value, # int + H264Profile => $some_value, # H264Profile + }, + Multicast => { # ONVIF::Analytics::Types::MulticastConfiguration + Address => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Port => $some_value, # int + TTL => $some_value, # int + AutoStart => $some_value, # boolean + }, + SessionTimeout => $some_value, # duration + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoSourceConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoSourceConfiguration.pm new file mode 100644 index 000000000..50fe94f88 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Elements/VideoSourceConfiguration.pm @@ -0,0 +1,70 @@ + +package ONVIF::Analytics::Elements::VideoSourceConfiguration; +use strict; +use warnings; + +{ # BLOCK to scope variables + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' } + +__PACKAGE__->__set_name('VideoSourceConfiguration'); +__PACKAGE__->__set_nillable(); +__PACKAGE__->__set_minOccurs(); +__PACKAGE__->__set_maxOccurs(); +__PACKAGE__->__set_ref(); +use base qw( + SOAP::WSDL::XSD::Typelib::Element + ONVIF::Analytics::Types::VideoSourceConfiguration +); + +} + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Elements::VideoSourceConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined element +VideoSourceConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + + +=head1 METHODS + +=head2 new + + my $element = ONVIF::Analytics::Elements::VideoSourceConfiguration->new($data); + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::VideoSourceConfiguration + SourceToken => $some_value, # ReferenceToken + Bounds => , + Extension => { # ONVIF::Analytics::Types::VideoSourceConfigurationExtension + Rotate => { # ONVIF::Analytics::Types::Rotate + Mode => $some_value, # RotateMode + Degree => $some_value, # int + Extension => { # ONVIF::Analytics::Types::RotateExtension + }, + }, + Extension => { # ONVIF::Analytics::Types::VideoSourceConfigurationExtension2 + }, + }, + }, + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Interfaces/Analytics/AnalyticsEnginePort.pm b/onvif/proxy/lib/ONVIF/Analytics/Interfaces/Analytics/AnalyticsEnginePort.pm new file mode 100644 index 000000000..481d254ce --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Interfaces/Analytics/AnalyticsEnginePort.pm @@ -0,0 +1,338 @@ +package ONVIF::Analytics::Interfaces::Analytics::AnalyticsEnginePort; +use strict; +use warnings; +use Class::Std::Fast::Storable; +use Scalar::Util qw(blessed); +use base qw(SOAP::WSDL::Client::Base); + +# only load if it hasn't been loaded before +require ONVIF::Analytics::Typemaps::Analytics + if not ONVIF::Analytics::Typemaps::Analytics->can('get_class'); + +sub START { + $_[0]->set_proxy('http://www.examples.com/Analytics/') if not $_[2]->{proxy}; + $_[0]->set_class_resolver('ONVIF::Analytics::Typemaps::Analytics') + if not $_[2]->{class_resolver}; + + $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; +} + +sub GetServiceCapabilities { + my ($self, $body, $header) = @_; + die "GetServiceCapabilities must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'GetServiceCapabilities', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/GetServiceCapabilities', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::GetServiceCapabilities )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub GetSupportedAnalyticsModules { + my ($self, $body, $header) = @_; + die "GetSupportedAnalyticsModules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'GetSupportedAnalyticsModules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/GetSupportedAnalyticsModules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::GetSupportedAnalyticsModules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub CreateAnalyticsModules { + my ($self, $body, $header) = @_; + die "CreateAnalyticsModules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'CreateAnalyticsModules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/CreateAnalyticsModules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::CreateAnalyticsModules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub DeleteAnalyticsModules { + my ($self, $body, $header) = @_; + die "DeleteAnalyticsModules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'DeleteAnalyticsModules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/DeleteAnalyticsModules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::DeleteAnalyticsModules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub GetAnalyticsModules { + my ($self, $body, $header) = @_; + die "GetAnalyticsModules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'GetAnalyticsModules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/GetAnalyticsModules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::GetAnalyticsModules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub ModifyAnalyticsModules { + my ($self, $body, $header) = @_; + die "ModifyAnalyticsModules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'ModifyAnalyticsModules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/ModifyAnalyticsModules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::ModifyAnalyticsModules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + + + +1; + + + +__END__ + +=pod + +=head1 NAME + +ONVIF::Analytics::Interfaces::Analytics::AnalyticsEnginePort - SOAP Interface for the Analytics Web Service + +=head1 SYNOPSIS + + use ONVIF::Analytics::Interfaces::Analytics::AnalyticsEnginePort; + my $interface = ONVIF::Analytics::Interfaces::Analytics::AnalyticsEnginePort->new(); + + my $response; + $response = $interface->GetServiceCapabilities(); + $response = $interface->GetSupportedAnalyticsModules(); + $response = $interface->CreateAnalyticsModules(); + $response = $interface->DeleteAnalyticsModules(); + $response = $interface->GetAnalyticsModules(); + $response = $interface->ModifyAnalyticsModules(); + + + +=head1 DESCRIPTION + +SOAP Interface for the Analytics web service +located at http://www.examples.com/Analytics/. + +=head1 SERVICE Analytics + + + +=head2 Port AnalyticsEnginePort + + + +=head1 METHODS + +=head2 General methods + +=head3 new + +Constructor. + +All arguments are forwarded to L. + +=head2 SOAP Service methods + +Method synopsis is displayed with hash refs as parameters. + +The commented class names in the method's parameters denote that objects +of the corresponding class can be passed instead of the marked hash ref. + +You may pass any combination of objects, hash and list refs to these +methods, as long as you meet the structure. + +List items (i.e. multiple occurences) are not displayed in the synopsis. +You may generally pass a list ref of hash refs (or objects) instead of a hash +ref - this may result in invalid XML if used improperly, though. Note that +SOAP::WSDL always expects list references at maximum depth position. + +XML attributes are not displayed in this synopsis and cannot be set using +hash refs. See the respective class' documentation for additional information. + + + +=head3 GetServiceCapabilities + +Returns the capabilities of the analytics service. The result is returned in a typed answer. + +Returns a L object. + + $response = $interface->GetServiceCapabilities( { + },, + ); + +=head3 GetSupportedAnalyticsModules + +List all analytics modules that are supported by the given VideoAnalyticsConfiguration. The result of this method may depend on the overall Video analytics configuration of the device, which is available via the current set of profiles. + +Returns a L object. + + $response = $interface->GetSupportedAnalyticsModules( { + ConfigurationToken => $some_value, # ReferenceToken + },, + ); + +=head3 CreateAnalyticsModules + +The device shall ensure that a corresponding analytics engine starts operation when a client subscribes directly or indirectly for events produced by the analytics or rule engine or when a client requests the corresponding scene description stream. An analytics module must be attached to a Video source using the media profiles before it can be used. In case differing analytics configurations are attached to the same profile it is undefined which of the analytics module configuration becomes active if no stream is activated or multiple streams with different profiles are activated at the same time. + +Returns a L object. + + $response = $interface->CreateAnalyticsModules( { + ConfigurationToken => $some_value, # ReferenceToken + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + },, + ); + +=head3 DeleteAnalyticsModules + + + +Returns a L object. + + $response = $interface->DeleteAnalyticsModules( { + ConfigurationToken => $some_value, # ReferenceToken + AnalyticsModuleName => $some_value, # string + },, + ); + +=head3 GetAnalyticsModules + +List the currently assigned set of analytics modules of a VideoAnalyticsConfiguration. + +Returns a L object. + + $response = $interface->GetAnalyticsModules( { + ConfigurationToken => $some_value, # ReferenceToken + },, + ); + +=head3 ModifyAnalyticsModules + +Modify the settings of one or more analytics modules of a VideoAnalyticsConfiguration. The modules are referenced by their names. It is allowed to pass only a subset to be modified. + +Returns a L object. + + $response = $interface->ModifyAnalyticsModules( { + ConfigurationToken => $some_value, # ReferenceToken + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + },, + ); + + + +=head1 AUTHOR + +Generated by SOAP::WSDL on Tue Jul 15 19:19:50 2014 + +=cut diff --git a/onvif/proxy/lib/ONVIF/Analytics/Interfaces/Analytics/RuleEnginePort.pm b/onvif/proxy/lib/ONVIF/Analytics/Interfaces/Analytics/RuleEnginePort.pm new file mode 100644 index 000000000..835e119ff --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Interfaces/Analytics/RuleEnginePort.pm @@ -0,0 +1,301 @@ +package ONVIF::Analytics::Interfaces::Analytics::RuleEnginePort; +use strict; +use warnings; +use Class::Std::Fast::Storable; +use Scalar::Util qw(blessed); +use base qw(SOAP::WSDL::Client::Base); + +# only load if it hasn't been loaded before +require ONVIF::Analytics::Typemaps::Analytics + if not ONVIF::Analytics::Typemaps::Analytics->can('get_class'); + +sub START { + $_[0]->set_proxy('http://www.examples.com/Analytics/') if not $_[2]->{proxy}; + $_[0]->set_class_resolver('ONVIF::Analytics::Typemaps::Analytics') + if not $_[2]->{class_resolver}; + + $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; +} + +sub GetSupportedRules { + my ($self, $body, $header) = @_; + die "GetSupportedRules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'GetSupportedRules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/GetSupportedRules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::GetSupportedRules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub CreateRules { + my ($self, $body, $header) = @_; + die "CreateRules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'CreateRules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/CreateRules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::CreateRules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub DeleteRules { + my ($self, $body, $header) = @_; + die "DeleteRules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'DeleteRules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/DeleteRules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::DeleteRules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub GetRules { + my ($self, $body, $header) = @_; + die "GetRules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'GetRules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/GetRules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::GetRules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + +sub ModifyRules { + my ($self, $body, $header) = @_; + die "ModifyRules must be called as object method (\$self is <$self>)" if not blessed($self); + return $self->SUPER::call({ + operation => 'ModifyRules', + soap_action => 'http://www.onvif.org/ver20/analytics/wsdl/ModifyRules', + style => 'document', + body => { + + + 'use' => 'literal', + namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', + encodingStyle => '', + parts => [qw( ONVIF::Analytics::Elements::ModifyRules )], + + }, + header => { + + }, + headerfault => { + + } + }, $body, $header); +} + + + + +1; + + + +__END__ + +=pod + +=head1 NAME + +ONVIF::Analytics::Interfaces::Analytics::RuleEnginePort - SOAP Interface for the Analytics Web Service + +=head1 SYNOPSIS + + use ONVIF::Analytics::Interfaces::Analytics::RuleEnginePort; + my $interface = ONVIF::Analytics::Interfaces::Analytics::RuleEnginePort->new(); + + my $response; + $response = $interface->GetSupportedRules(); + $response = $interface->CreateRules(); + $response = $interface->DeleteRules(); + $response = $interface->GetRules(); + $response = $interface->ModifyRules(); + + + +=head1 DESCRIPTION + +SOAP Interface for the Analytics web service +located at http://www.examples.com/Analytics/. + +=head1 SERVICE Analytics + + + +=head2 Port RuleEnginePort + + + +=head1 METHODS + +=head2 General methods + +=head3 new + +Constructor. + +All arguments are forwarded to L. + +=head2 SOAP Service methods + +Method synopsis is displayed with hash refs as parameters. + +The commented class names in the method's parameters denote that objects +of the corresponding class can be passed instead of the marked hash ref. + +You may pass any combination of objects, hash and list refs to these +methods, as long as you meet the structure. + +List items (i.e. multiple occurences) are not displayed in the synopsis. +You may generally pass a list ref of hash refs (or objects) instead of a hash +ref - this may result in invalid XML if used improperly, though. Note that +SOAP::WSDL always expects list references at maximum depth position. + +XML attributes are not displayed in this synopsis and cannot be set using +hash refs. See the respective class' documentation for additional information. + + + +=head3 GetSupportedRules + +List all rules that are supported by the given VideoAnalyticsConfiguration. The result of this method may depend on the overall Video analytics configuration of the device, which is available via the current set of profiles. + +Returns a L object. + + $response = $interface->GetSupportedRules( { + ConfigurationToken => $some_value, # ReferenceToken + },, + ); + +=head3 CreateRules + +GetCompatibleVideoAnalyticsConfigurations. + +Returns a L object. + + $response = $interface->CreateRules( { + ConfigurationToken => $some_value, # ReferenceToken + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + },, + ); + +=head3 DeleteRules + +Remove one or more rules from a VideoAnalyticsConfiguration. + +Returns a L object. + + $response = $interface->DeleteRules( { + ConfigurationToken => $some_value, # ReferenceToken + RuleName => $some_value, # string + },, + ); + +=head3 GetRules + +List the currently assigned set of rules of a VideoAnalyticsConfiguration. + +Returns a L object. + + $response = $interface->GetRules( { + ConfigurationToken => $some_value, # ReferenceToken + },, + ); + +=head3 ModifyRules + +Modify one or more rules of a VideoAnalyticsConfiguration. The rules are referenced by their names. + +Returns a L object. + + $response = $interface->ModifyRules( { + ConfigurationToken => $some_value, # ReferenceToken + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + },, + ); + + + +=head1 AUTHOR + +Generated by SOAP::WSDL on Tue Jul 15 19:19:50 2014 + +=cut diff --git a/onvif/proxy/lib/ONVIF/Analytics/Typemaps/Analytics.pm b/onvif/proxy/lib/ONVIF/Analytics/Typemaps/Analytics.pm new file mode 100644 index 000000000..7b2dfb989 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Typemaps/Analytics.pm @@ -0,0 +1,154 @@ + +package ONVIF::Analytics::Typemaps::Analytics; +use strict; +use warnings; + +our $typemap_1 = { + 'ModifyAnalyticsModules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription' => 'ONVIF::Analytics::Types::ConfigDescription', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Data' => 'ONVIF::Analytics::Types::ItemListDescription', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Extension' => 'ONVIF::Analytics::Types::ConfigDescriptionExtension', + 'ModifyRules/Rule/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListExtension', + 'DeleteRules/RuleName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'CreateAnalyticsModules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'CreateAnalyticsModules/AnalyticsModule/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListExtension', + 'ModifyAnalyticsModules/AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + 'GetSupportedRulesResponse/SupportedRules/Extension' => 'ONVIF::Analytics::Types::SupportedRulesExtension', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/ParentTopic' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'CreateRules/Rule' => 'ONVIF::Analytics::Types::Config', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Parameters/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'ModifyAnalyticsModules/AnalyticsModule/Parameters/SimpleItem' => 'ONVIF::Analytics::Types::ItemList::_SimpleItem', + 'CreateRules/Rule/Parameters' => 'ONVIF::Analytics::Types::ItemList', + 'GetAnalyticsModulesResponse/AnalyticsModule/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListExtension', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Source/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Key' => 'ONVIF::Analytics::Types::ItemListDescription', + 'GetAnalyticsModulesResponse/AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + 'GetServiceCapabilitiesResponse/Capabilities' => 'ONVIF::Analytics::Types::Capabilities', + 'ModifyRules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Data/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'GetRulesResponse/Rule/Parameters' => 'ONVIF::Analytics::Types::ItemList', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Data/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Key/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Parameters/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'ModifyAnalyticsModulesResponse' => 'ONVIF::Analytics::Elements::ModifyAnalyticsModulesResponse', + 'GetRulesResponse/Rule/Parameters/ElementItem' => 'ONVIF::Analytics::Types::ItemList::_ElementItem', + 'GetSupportedAnalyticsModulesResponse' => 'ONVIF::Analytics::Elements::GetSupportedAnalyticsModulesResponse', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Key/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'CreateRules/Rule/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListExtension', + 'GetSupportedAnalyticsModules' => 'ONVIF::Analytics::Elements::GetSupportedAnalyticsModules', + 'DeleteAnalyticsModules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'Fault/faultactor' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleContentSchemaLocation' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'DeleteAnalyticsModulesResponse' => 'ONVIF::Analytics::Elements::DeleteAnalyticsModulesResponse', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Data' => 'ONVIF::Analytics::Types::ItemListDescription', + 'Fault/faultstring' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'ModifyRules/Rule/Parameters/SimpleItem' => 'ONVIF::Analytics::Types::ItemList::_SimpleItem', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Parameters' => 'ONVIF::Analytics::Types::ItemListDescription', + 'Fault' => 'SOAP::WSDL::SOAP::Typelib::Fault11', + 'CreateRules' => 'ONVIF::Analytics::Elements::CreateRules', + 'ModifyRules/Rule/Parameters' => 'ONVIF::Analytics::Types::ItemList', + 'CreateRulesResponse' => 'ONVIF::Analytics::Elements::CreateRulesResponse', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Key/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Extension' => 'ONVIF::Analytics::Types::ConfigDescriptionExtension', + 'GetAnalyticsModules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'DeleteRules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Key/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages' => 'ONVIF::Analytics::Types::ConfigDescription::_Messages', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Key/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'DeleteAnalyticsModules/AnalyticsModuleName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'DeleteAnalyticsModules' => 'ONVIF::Analytics::Elements::DeleteAnalyticsModules', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Data/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/Extension' => 'ONVIF::Analytics::Types::SupportedAnalyticsModulesExtension', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/ParentTopic' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Parameters' => 'ONVIF::Analytics::Types::ItemListDescription', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules' => 'ONVIF::Analytics::Types::SupportedAnalyticsModules', + 'GetSupportedAnalyticsModules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Parameters/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'ModifyAnalyticsModules/AnalyticsModule/Parameters/ElementItem' => 'ONVIF::Analytics::Types::ItemList::_ElementItem', + 'Fault/detail' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription' => 'ONVIF::Analytics::Types::ConfigDescription', + 'GetSupportedRulesResponse/SupportedRules' => 'ONVIF::Analytics::Types::SupportedRules', + 'GetSupportedRules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Data/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Data/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'GetServiceCapabilities' => 'ONVIF::Analytics::Elements::GetServiceCapabilities', + 'ModifyAnalyticsModules/AnalyticsModule/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListExtension', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Source/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Source' => 'ONVIF::Analytics::Types::ItemListDescription', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Source/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'GetAnalyticsModulesResponse' => 'ONVIF::Analytics::Elements::GetAnalyticsModulesResponse', + 'GetRulesResponse/Rule/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListExtension', + 'ModifyRules' => 'ONVIF::Analytics::Elements::ModifyRules', + 'GetRulesResponse/Rule' => 'ONVIF::Analytics::Types::Config', + 'CreateRules/Rule/Parameters/SimpleItem' => 'ONVIF::Analytics::Types::ItemList::_SimpleItem', + 'GetRules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetAnalyticsModulesResponse/AnalyticsModule/Parameters/SimpleItem' => 'ONVIF::Analytics::Types::ItemList::_SimpleItem', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Source' => 'ONVIF::Analytics::Types::ItemListDescription', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Extension' => 'ONVIF::Analytics::Types::MessageDescriptionExtension', + 'GetAnalyticsModulesResponse/AnalyticsModule/Parameters' => 'ONVIF::Analytics::Types::ItemList', + 'CreateRules/Rule/Parameters/ElementItem' => 'ONVIF::Analytics::Types::ItemList::_ElementItem', + 'GetRulesResponse' => 'ONVIF::Analytics::Elements::GetRulesResponse', + 'GetSupportedRules' => 'ONVIF::Analytics::Elements::GetSupportedRules', + 'GetRulesResponse/Rule/Parameters/SimpleItem' => 'ONVIF::Analytics::Types::ItemList::_SimpleItem', + 'ModifyRulesResponse' => 'ONVIF::Analytics::Elements::ModifyRulesResponse', + 'GetAnalyticsModules' => 'ONVIF::Analytics::Elements::GetAnalyticsModules', + 'ModifyRules/Rule' => 'ONVIF::Analytics::Types::Config', + 'DeleteRulesResponse' => 'ONVIF::Analytics::Elements::DeleteRulesResponse', + 'GetServiceCapabilitiesResponse' => 'ONVIF::Analytics::Elements::GetServiceCapabilitiesResponse', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Data/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'DeleteRules' => 'ONVIF::Analytics::Elements::DeleteRules', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages' => 'ONVIF::Analytics::Types::ConfigDescription::_Messages', + 'ModifyAnalyticsModules' => 'ONVIF::Analytics::Elements::ModifyAnalyticsModules', + 'GetSupportedRulesResponse' => 'ONVIF::Analytics::Elements::GetSupportedRulesResponse', + 'CreateAnalyticsModules/AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Source/SimpleItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_SimpleItemDescription', + 'ModifyAnalyticsModules/AnalyticsModule/Parameters' => 'ONVIF::Analytics::Types::ItemList', + 'GetAnalyticsModulesResponse/AnalyticsModule/Parameters/ElementItem' => 'ONVIF::Analytics::Types::ItemList::_ElementItem', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Parameters/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'Fault/faultcode' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Extension' => 'ONVIF::Analytics::Types::MessageDescriptionExtension', + 'CreateAnalyticsModules/AnalyticsModule/Parameters/ElementItem' => 'ONVIF::Analytics::Types::ItemList::_ElementItem', + 'CreateAnalyticsModulesResponse' => 'ONVIF::Analytics::Elements::CreateAnalyticsModulesResponse', + 'CreateRules/ConfigurationToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Source/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'CreateAnalyticsModules/AnalyticsModule/Parameters' => 'ONVIF::Analytics::Types::ItemList', + 'CreateAnalyticsModules' => 'ONVIF::Analytics::Elements::CreateAnalyticsModules', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Source/Extension' => 'ONVIF::Analytics::Types::ItemListDescriptionExtension', + 'GetSupportedAnalyticsModulesResponse/SupportedAnalyticsModules/AnalyticsModuleDescription/Messages/Key/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'CreateAnalyticsModules/AnalyticsModule/Parameters/SimpleItem' => 'ONVIF::Analytics::Types::ItemList::_SimpleItem', + 'ModifyRules/Rule/Parameters/ElementItem' => 'ONVIF::Analytics::Types::ItemList::_ElementItem', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Parameters/ElementItemDescription' => 'ONVIF::Analytics::Types::ItemListDescription::_ElementItemDescription', + 'GetRules' => 'ONVIF::Analytics::Elements::GetRules', + 'GetSupportedRulesResponse/SupportedRules/RuleContentSchemaLocation' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'GetSupportedRulesResponse/SupportedRules/RuleDescription/Messages/Key' => 'ONVIF::Analytics::Types::ItemListDescription' + }; +; + +sub get_class { + my $name = join '/', @{ $_[1] }; + return $typemap_1->{ $name }; +} + +sub get_typemap { + return $typemap_1; +} + +1; + +__END__ + +__END__ + +=pod + +=head1 NAME + +ONVIF::Analytics::Typemaps::Analytics - typemap for Analytics + +=head1 DESCRIPTION + +Typemap created by SOAP::WSDL for map-based SOAP message parsers. + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AACDecOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AACDecOptions.pm new file mode 100644 index 000000000..376a03c4e --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AACDecOptions.pm @@ -0,0 +1,116 @@ +package ONVIF::Analytics::Types::AACDecOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Bitrate_of :ATTR(:get); +my %SampleRateRange_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Bitrate + SampleRateRange + + ) ], + { + 'Bitrate' => \%Bitrate_of, + 'SampleRateRange' => \%SampleRateRange_of, + }, + { + 'Bitrate' => 'ONVIF::Analytics::Types::IntList', + 'SampleRateRange' => 'ONVIF::Analytics::Types::IntList', + }, + { + + 'Bitrate' => 'Bitrate', + 'SampleRateRange' => 'SampleRateRange', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AACDecOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AACDecOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Bitrate + + +=item * SampleRateRange + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AACDecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AbsoluteFocus.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AbsoluteFocus.pm new file mode 100644 index 000000000..652d075ed --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AbsoluteFocus.pm @@ -0,0 +1,112 @@ +package ONVIF::Analytics::Types::AbsoluteFocus; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Position_of :ATTR(:get); +my %Speed_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Position + Speed + + ) ], + { + 'Position' => \%Position_of, + 'Speed' => \%Speed_of, + }, + { + 'Position' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + 'Speed' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + }, + { + + 'Position' => 'Position', + 'Speed' => 'Speed', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AbsoluteFocus + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AbsoluteFocus from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Position + + +=item * Speed + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AbsoluteFocus + Position => $some_value, # float + Speed => $some_value, # float + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AbsoluteFocusOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AbsoluteFocusOptions.pm new file mode 100644 index 000000000..4479d0524 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AbsoluteFocusOptions.pm @@ -0,0 +1,118 @@ +package ONVIF::Analytics::Types::AbsoluteFocusOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Position_of :ATTR(:get); +my %Speed_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Position + Speed + + ) ], + { + 'Position' => \%Position_of, + 'Speed' => \%Speed_of, + }, + { + 'Position' => 'ONVIF::Analytics::Types::FloatRange', + 'Speed' => 'ONVIF::Analytics::Types::FloatRange', + }, + { + + 'Position' => 'Position', + 'Speed' => 'Speed', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AbsoluteFocusOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AbsoluteFocusOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Position + + +=item * Speed + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AbsoluteFocusOptions + Position => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Speed => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ActionEngineEventPayload.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ActionEngineEventPayload.pm new file mode 100644 index 000000000..d696c2e9e --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ActionEngineEventPayload.pm @@ -0,0 +1,147 @@ +package ONVIF::Analytics::Types::ActionEngineEventPayload; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %RequestInfo_of :ATTR(:get); +my %ResponseInfo_of :ATTR(:get); +my %Fault_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( RequestInfo + ResponseInfo + Fault + Extension + + ) ], + { + 'RequestInfo' => \%RequestInfo_of, + 'ResponseInfo' => \%ResponseInfo_of, + 'Fault' => \%Fault_of, + 'Extension' => \%Extension_of, + }, + { + 'RequestInfo' => 'ONVIF::Analytics::Types::Envelope', + 'ResponseInfo' => 'ONVIF::Analytics::Types::Envelope', + 'Fault' => 'ONVIF::Analytics::Types::Fault', + 'Extension' => 'ONVIF::Analytics::Types::ActionEngineEventPayloadExtension', + }, + { + + 'RequestInfo' => 'RequestInfo', + 'ResponseInfo' => 'ResponseInfo', + 'Fault' => 'Fault', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ActionEngineEventPayload + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ActionEngineEventPayload from the namespace http://www.onvif.org/ver10/schema. + +Action Engine Event Payload data structure contains the information about the ONVIF command invocations. Since this event could be generated by other or proprietary actions, the command invocation specific fields are defined as optional and additional extension mechanism is provided for future or additional action definitions. + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * RequestInfo + + +=item * ResponseInfo + + +=item * Fault + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ActionEngineEventPayload + RequestInfo => { # ONVIF::Analytics::Types::Envelope + Header => { # ONVIF::Analytics::Types::Header + }, + Body => { # ONVIF::Analytics::Types::Body + }, + }, + ResponseInfo => { # ONVIF::Analytics::Types::Envelope + Header => { # ONVIF::Analytics::Types::Header + }, + Body => { # ONVIF::Analytics::Types::Body + }, + }, + Fault => { # ONVIF::Analytics::Types::Fault + faultcode => $some_value, # QName + faultstring => $some_value, # string + faultactor => $some_value, # anyURI + detail => { # ONVIF::Analytics::Types::detail + }, + }, + Extension => { # ONVIF::Analytics::Types::ActionEngineEventPayloadExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ActionEngineEventPayloadExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ActionEngineEventPayloadExtension.pm new file mode 100644 index 000000000..0c6260802 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ActionEngineEventPayloadExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::ActionEngineEventPayloadExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ActionEngineEventPayloadExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ActionEngineEventPayloadExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ActionEngineEventPayloadExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsCapabilities.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsCapabilities.pm new file mode 100644 index 000000000..ce9cf9183 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsCapabilities.pm @@ -0,0 +1,121 @@ +package ONVIF::Analytics::Types::AnalyticsCapabilities; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %XAddr_of :ATTR(:get); +my %RuleSupport_of :ATTR(:get); +my %AnalyticsModuleSupport_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( XAddr + RuleSupport + AnalyticsModuleSupport + + ) ], + { + 'XAddr' => \%XAddr_of, + 'RuleSupport' => \%RuleSupport_of, + 'AnalyticsModuleSupport' => \%AnalyticsModuleSupport_of, + }, + { + 'XAddr' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'RuleSupport' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + 'AnalyticsModuleSupport' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + }, + { + + 'XAddr' => 'XAddr', + 'RuleSupport' => 'RuleSupport', + 'AnalyticsModuleSupport' => 'AnalyticsModuleSupport', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsCapabilities + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsCapabilities from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * XAddr + + +=item * RuleSupport + + +=item * AnalyticsModuleSupport + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsCapabilities + XAddr => $some_value, # anyURI + RuleSupport => $some_value, # boolean + AnalyticsModuleSupport => $some_value, # boolean + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceCapabilities.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceCapabilities.pm new file mode 100644 index 000000000..c4165e3eb --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceCapabilities.pm @@ -0,0 +1,122 @@ +package ONVIF::Analytics::Types::AnalyticsDeviceCapabilities; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %XAddr_of :ATTR(:get); +my %RuleSupport_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( XAddr + RuleSupport + Extension + + ) ], + { + 'XAddr' => \%XAddr_of, + 'RuleSupport' => \%RuleSupport_of, + 'Extension' => \%Extension_of, + }, + { + 'XAddr' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'RuleSupport' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + 'Extension' => 'ONVIF::Analytics::Types::AnalyticsDeviceExtension', + }, + { + + 'XAddr' => 'XAddr', + 'RuleSupport' => 'RuleSupport', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsDeviceCapabilities + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsDeviceCapabilities from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * XAddr + + +=item * RuleSupport + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsDeviceCapabilities + XAddr => $some_value, # anyURI + RuleSupport => $some_value, # boolean + Extension => { # ONVIF::Analytics::Types::AnalyticsDeviceExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceEngineConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceEngineConfiguration.pm new file mode 100644 index 000000000..5bff395ea --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceEngineConfiguration.pm @@ -0,0 +1,155 @@ +package ONVIF::Analytics::Types::AnalyticsDeviceEngineConfiguration; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %EngineConfiguration_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( EngineConfiguration + Extension + + ) ], + { + 'EngineConfiguration' => \%EngineConfiguration_of, + 'Extension' => \%Extension_of, + }, + { + 'EngineConfiguration' => 'ONVIF::Analytics::Types::EngineConfiguration', + 'Extension' => 'ONVIF::Analytics::Types::AnalyticsDeviceEngineConfigurationExtension', + }, + { + + 'EngineConfiguration' => 'EngineConfiguration', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsDeviceEngineConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsDeviceEngineConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * EngineConfiguration + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsDeviceEngineConfiguration + EngineConfiguration => { # ONVIF::Analytics::Types::EngineConfiguration + VideoAnalyticsConfiguration => { # ONVIF::Analytics::Types::VideoAnalyticsConfiguration + AnalyticsEngineConfiguration => { # ONVIF::Analytics::Types::AnalyticsEngineConfiguration + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + }, + }, + RuleEngineConfiguration => { # ONVIF::Analytics::Types::RuleEngineConfiguration + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::RuleEngineConfigurationExtension + }, + }, + }, + AnalyticsEngineInputInfo => { # ONVIF::Analytics::Types::AnalyticsEngineInputInfo + InputInfo => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsDeviceEngineConfigurationExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceEngineConfigurationExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceEngineConfigurationExtension.pm new file mode 100644 index 000000000..24cb0cff3 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceEngineConfigurationExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AnalyticsDeviceEngineConfigurationExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsDeviceEngineConfigurationExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsDeviceEngineConfigurationExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsDeviceEngineConfigurationExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceExtension.pm new file mode 100644 index 000000000..b3c2756f9 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsDeviceExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AnalyticsDeviceExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsDeviceExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsDeviceExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsDeviceExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngine.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngine.pm new file mode 100644 index 000000000..b2d7e8682 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngine.pm @@ -0,0 +1,162 @@ +package ONVIF::Analytics::Types::AnalyticsEngine; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); +my %AnalyticsEngineConfiguration_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + AnalyticsEngineConfiguration + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + 'AnalyticsEngineConfiguration' => \%AnalyticsEngineConfiguration_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'AnalyticsEngineConfiguration' => 'ONVIF::Analytics::Types::AnalyticsDeviceEngineConfiguration', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + 'AnalyticsEngineConfiguration' => 'AnalyticsEngineConfiguration', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngine + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngine from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AnalyticsEngineConfiguration + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngine + AnalyticsEngineConfiguration => { # ONVIF::Analytics::Types::AnalyticsDeviceEngineConfiguration + EngineConfiguration => { # ONVIF::Analytics::Types::EngineConfiguration + VideoAnalyticsConfiguration => { # ONVIF::Analytics::Types::VideoAnalyticsConfiguration + AnalyticsEngineConfiguration => { # ONVIF::Analytics::Types::AnalyticsEngineConfiguration + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + }, + }, + RuleEngineConfiguration => { # ONVIF::Analytics::Types::RuleEngineConfiguration + Rule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::RuleEngineConfigurationExtension + }, + }, + }, + AnalyticsEngineInputInfo => { # ONVIF::Analytics::Types::AnalyticsEngineInputInfo + InputInfo => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsDeviceEngineConfigurationExtension + }, + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineConfiguration.pm new file mode 100644 index 000000000..487e999e5 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineConfiguration.pm @@ -0,0 +1,121 @@ +package ONVIF::Analytics::Types::AnalyticsEngineConfiguration; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %AnalyticsModule_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( AnalyticsModule + Extension + + ) ], + { + 'AnalyticsModule' => \%AnalyticsModule_of, + 'Extension' => \%Extension_of, + }, + { + 'AnalyticsModule' => 'ONVIF::Analytics::Types::Config', + 'Extension' => 'ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension', + }, + { + + 'AnalyticsModule' => 'AnalyticsModule', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngineConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngineConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AnalyticsModule + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngineConfiguration + AnalyticsModule => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineConfigurationExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineConfigurationExtension.pm new file mode 100644 index 000000000..314131958 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineConfigurationExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngineConfigurationExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngineConfigurationExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineControl.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineControl.pm new file mode 100644 index 000000000..b67097ceb --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineControl.pm @@ -0,0 +1,187 @@ +package ONVIF::Analytics::Types::AnalyticsEngineControl; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); +my %EngineToken_of :ATTR(:get); +my %EngineConfigToken_of :ATTR(:get); +my %InputToken_of :ATTR(:get); +my %ReceiverToken_of :ATTR(:get); +my %Multicast_of :ATTR(:get); +my %Subscription_of :ATTR(:get); +my %Mode_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + EngineToken + EngineConfigToken + InputToken + ReceiverToken + Multicast + Subscription + Mode + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + 'EngineToken' => \%EngineToken_of, + 'EngineConfigToken' => \%EngineConfigToken_of, + 'InputToken' => \%InputToken_of, + 'ReceiverToken' => \%ReceiverToken_of, + 'Multicast' => \%Multicast_of, + 'Subscription' => \%Subscription_of, + 'Mode' => \%Mode_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'EngineToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'EngineConfigToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'InputToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'ReceiverToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'Multicast' => 'ONVIF::Analytics::Types::MulticastConfiguration', + 'Subscription' => 'ONVIF::Analytics::Types::Config', + 'Mode' => 'ONVIF::Analytics::Types::ModeOfOperation', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + 'EngineToken' => 'EngineToken', + 'EngineConfigToken' => 'EngineConfigToken', + 'InputToken' => 'InputToken', + 'ReceiverToken' => 'ReceiverToken', + 'Multicast' => 'Multicast', + 'Subscription' => 'Subscription', + 'Mode' => 'Mode', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngineControl + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngineControl from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * EngineToken + + +=item * EngineConfigToken + + +=item * InputToken + + +=item * ReceiverToken + + +=item * Multicast + + +=item * Subscription + + +=item * Mode + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngineControl + EngineToken => $some_value, # ReferenceToken + EngineConfigToken => $some_value, # ReferenceToken + InputToken => $some_value, # ReferenceToken + ReceiverToken => $some_value, # ReferenceToken + Multicast => { # ONVIF::Analytics::Types::MulticastConfiguration + Address => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Port => $some_value, # int + TTL => $some_value, # int + AutoStart => $some_value, # boolean + }, + Subscription => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Mode => $some_value, # ModeOfOperation + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInput.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInput.pm new file mode 100644 index 000000000..2fb5b214f --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInput.pm @@ -0,0 +1,182 @@ +package ONVIF::Analytics::Types::AnalyticsEngineInput; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); +my %SourceIdentification_of :ATTR(:get); +my %VideoInput_of :ATTR(:get); +my %MetadataInput_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + SourceIdentification + VideoInput + MetadataInput + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + 'SourceIdentification' => \%SourceIdentification_of, + 'VideoInput' => \%VideoInput_of, + 'MetadataInput' => \%MetadataInput_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'SourceIdentification' => 'ONVIF::Analytics::Types::SourceIdentification', + 'VideoInput' => 'ONVIF::Analytics::Types::VideoEncoderConfiguration', + 'MetadataInput' => 'ONVIF::Analytics::Types::MetadataInput', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + 'SourceIdentification' => 'SourceIdentification', + 'VideoInput' => 'VideoInput', + 'MetadataInput' => 'MetadataInput', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngineInput + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngineInput from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * SourceIdentification + + +=item * VideoInput + + +=item * MetadataInput + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngineInput + SourceIdentification => { # ONVIF::Analytics::Types::SourceIdentification + Name => $some_value, # string + Token => $some_value, # ReferenceToken + Extension => { # ONVIF::Analytics::Types::SourceIdentificationExtension + }, + }, + VideoInput => { # ONVIF::Analytics::Types::VideoEncoderConfiguration + Encoding => $some_value, # VideoEncoding + Resolution => { # ONVIF::Analytics::Types::VideoResolution + Width => $some_value, # int + Height => $some_value, # int + }, + Quality => $some_value, # float + RateControl => { # ONVIF::Analytics::Types::VideoRateControl + FrameRateLimit => $some_value, # int + EncodingInterval => $some_value, # int + BitrateLimit => $some_value, # int + }, + MPEG4 => { # ONVIF::Analytics::Types::Mpeg4Configuration + GovLength => $some_value, # int + Mpeg4Profile => $some_value, # Mpeg4Profile + }, + H264 => { # ONVIF::Analytics::Types::H264Configuration + GovLength => $some_value, # int + H264Profile => $some_value, # H264Profile + }, + Multicast => { # ONVIF::Analytics::Types::MulticastConfiguration + Address => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Port => $some_value, # int + TTL => $some_value, # int + AutoStart => $some_value, # boolean + }, + SessionTimeout => $some_value, # duration + }, + MetadataInput => { # ONVIF::Analytics::Types::MetadataInput + MetadataConfig => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::MetadataInputExtension + }, + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInputInfo.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInputInfo.pm new file mode 100644 index 000000000..440a44bab --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInputInfo.pm @@ -0,0 +1,121 @@ +package ONVIF::Analytics::Types::AnalyticsEngineInputInfo; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %InputInfo_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( InputInfo + Extension + + ) ], + { + 'InputInfo' => \%InputInfo_of, + 'Extension' => \%Extension_of, + }, + { + 'InputInfo' => 'ONVIF::Analytics::Types::Config', + 'Extension' => 'ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension', + }, + { + + 'InputInfo' => 'InputInfo', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngineInputInfo + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngineInputInfo from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * InputInfo + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngineInputInfo + InputInfo => { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInputInfoExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInputInfoExtension.pm new file mode 100644 index 000000000..81e5e7049 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsEngineInputInfoExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsEngineInputInfoExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsEngineInputInfoExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsState.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsState.pm new file mode 100644 index 000000000..738e47eef --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsState.pm @@ -0,0 +1,112 @@ +package ONVIF::Analytics::Types::AnalyticsState; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Error_of :ATTR(:get); +my %State_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Error + State + + ) ], + { + 'Error' => \%Error_of, + 'State' => \%State_of, + }, + { + 'Error' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'State' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + }, + { + + 'Error' => 'Error', + 'State' => 'State', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsState + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsState from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Error + + +=item * State + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsState + Error => $some_value, # string + State => $some_value, # string + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsStateInformation.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsStateInformation.pm new file mode 100644 index 000000000..6f2694cee --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnalyticsStateInformation.pm @@ -0,0 +1,115 @@ +package ONVIF::Analytics::Types::AnalyticsStateInformation; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %AnalyticsEngineControlToken_of :ATTR(:get); +my %State_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( AnalyticsEngineControlToken + State + + ) ], + { + 'AnalyticsEngineControlToken' => \%AnalyticsEngineControlToken_of, + 'State' => \%State_of, + }, + { + 'AnalyticsEngineControlToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'State' => 'ONVIF::Analytics::Types::AnalyticsState', + }, + { + + 'AnalyticsEngineControlToken' => 'AnalyticsEngineControlToken', + 'State' => 'State', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnalyticsStateInformation + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnalyticsStateInformation from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AnalyticsEngineControlToken + + +=item * State + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnalyticsStateInformation + AnalyticsEngineControlToken => $some_value, # ReferenceToken + State => { # ONVIF::Analytics::Types::AnalyticsState + Error => $some_value, # string + State => $some_value, # string + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AnyHolder.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AnyHolder.pm new file mode 100644 index 000000000..3094a2b53 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AnyHolder.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AnyHolder; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AnyHolder + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AnyHolder from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AnyHolder + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Appearance.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Appearance.pm new file mode 100644 index 000000000..f115839da --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Appearance.pm @@ -0,0 +1,174 @@ +package ONVIF::Analytics::Types::Appearance; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Transformation_of :ATTR(:get); +my %Shape_of :ATTR(:get); +my %Color_of :ATTR(:get); +my %Class_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Transformation + Shape + Color + Class + Extension + + ) ], + { + 'Transformation' => \%Transformation_of, + 'Shape' => \%Shape_of, + 'Color' => \%Color_of, + 'Class' => \%Class_of, + 'Extension' => \%Extension_of, + }, + { + 'Transformation' => 'ONVIF::Analytics::Types::Transformation', + 'Shape' => 'ONVIF::Analytics::Types::ShapeDescriptor', + 'Color' => 'ONVIF::Analytics::Types::ColorDescriptor', + 'Class' => 'ONVIF::Analytics::Types::ClassDescriptor', + 'Extension' => 'ONVIF::Analytics::Types::AppearanceExtension', + }, + { + + 'Transformation' => 'Transformation', + 'Shape' => 'Shape', + 'Color' => 'Color', + 'Class' => 'Class', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Appearance + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Appearance from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Transformation + + +=item * Shape + + +=item * Color + + +=item * Class + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Appearance + Transformation => { # ONVIF::Analytics::Types::Transformation + Translate => , + Scale => , + Extension => { # ONVIF::Analytics::Types::TransformationExtension + }, + }, + Shape => { # ONVIF::Analytics::Types::ShapeDescriptor + BoundingBox => , + CenterOfGravity => , + Polygon => { # ONVIF::Analytics::Types::Polygon + Point => , + }, + Extension => { # ONVIF::Analytics::Types::ShapeDescriptorExtension + }, + }, + Color => { # ONVIF::Analytics::Types::ColorDescriptor + ColorCluster => { + Color => , + Weight => $some_value, # float + Covariance => , + }, + Extension => { # ONVIF::Analytics::Types::ColorDescriptorExtension + }, + }, + Class => { # ONVIF::Analytics::Types::ClassDescriptor + ClassCandidate => { + Type => $some_value, # ClassType + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension + OtherTypes => { # ONVIF::Analytics::Types::OtherType + Type => $some_value, # string + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension2 + }, + }, + }, + Extension => { # ONVIF::Analytics::Types::AppearanceExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AppearanceExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AppearanceExtension.pm new file mode 100644 index 000000000..100aab4aa --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AppearanceExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AppearanceExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AppearanceExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AppearanceExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AppearanceExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AttachmentData.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AttachmentData.pm new file mode 100644 index 000000000..f6af419d8 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AttachmentData.pm @@ -0,0 +1,155 @@ +package ONVIF::Analytics::Types::AttachmentData; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::AttachmentData::_AttachmentData::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Include_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Include + + ) ], + { + 'Include' => \%Include_of, + }, + { + 'Include' => 'ONVIF::Analytics::Elements::Include', + + }, + { + + 'Include' => '', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::AttachmentData::_AttachmentData::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %contentType_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + contentType + ) ], + { + + contentType => \%contentType_of, + }, + { + + contentType => 'ONVIF::Analytics::Attributes::contentType', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AttachmentData + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AttachmentData from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Include + +Note: The name of this property has been altered, because it didn't match +perl's notion of variable/subroutine names. The altered name is used in +perl code only, XML output uses the original name: + + + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AttachmentData + Include => { # ONVIF::Analytics::Types::Include + }, + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::AttachmentData::_AttachmentData::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * contentType + + + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAnalyticsStream.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAnalyticsStream.pm new file mode 100644 index 000000000..2c408028c --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAnalyticsStream.pm @@ -0,0 +1,114 @@ +package ONVIF::Analytics::Types::AudioAnalyticsStream; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %AudioDescriptor_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( AudioDescriptor + Extension + + ) ], + { + 'AudioDescriptor' => \%AudioDescriptor_of, + 'Extension' => \%Extension_of, + }, + { + 'AudioDescriptor' => 'ONVIF::Analytics::Types::AudioDescriptor', + 'Extension' => 'ONVIF::Analytics::Types::AudioAnalyticsStreamExtension', + }, + { + + 'AudioDescriptor' => 'AudioDescriptor', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioAnalyticsStream + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioAnalyticsStream from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AudioDescriptor + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioAnalyticsStream + AudioDescriptor => { # ONVIF::Analytics::Types::AudioDescriptor + }, + Extension => { # ONVIF::Analytics::Types::AudioAnalyticsStreamExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAnalyticsStreamExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAnalyticsStreamExtension.pm new file mode 100644 index 000000000..45999e2f4 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAnalyticsStreamExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AudioAnalyticsStreamExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioAnalyticsStreamExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioAnalyticsStreamExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioAnalyticsStreamExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAttributes.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAttributes.pm new file mode 100644 index 000000000..a10502dea --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioAttributes.pm @@ -0,0 +1,121 @@ +package ONVIF::Analytics::Types::AudioAttributes; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Bitrate_of :ATTR(:get); +my %Encoding_of :ATTR(:get); +my %Samplerate_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Bitrate + Encoding + Samplerate + + ) ], + { + 'Bitrate' => \%Bitrate_of, + 'Encoding' => \%Encoding_of, + 'Samplerate' => \%Samplerate_of, + }, + { + 'Bitrate' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'Encoding' => 'ONVIF::Analytics::Types::AudioEncoding', + 'Samplerate' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + }, + { + + 'Bitrate' => 'Bitrate', + 'Encoding' => 'Encoding', + 'Samplerate' => 'Samplerate', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioAttributes + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioAttributes from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Bitrate + + +=item * Encoding + + +=item * Samplerate + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioAttributes + Bitrate => $some_value, # int + Encoding => $some_value, # AudioEncoding + Samplerate => $some_value, # int + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassCandidate.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassCandidate.pm new file mode 100644 index 000000000..995ae3393 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassCandidate.pm @@ -0,0 +1,112 @@ +package ONVIF::Analytics::Types::AudioClassCandidate; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Type_of :ATTR(:get); +my %Likelihood_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Type + Likelihood + + ) ], + { + 'Type' => \%Type_of, + 'Likelihood' => \%Likelihood_of, + }, + { + 'Type' => 'ONVIF::Analytics::Types::AudioClassType', + 'Likelihood' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + }, + { + + 'Type' => 'Type', + 'Likelihood' => 'Likelihood', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioClassCandidate + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioClassCandidate from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Type + + +=item * Likelihood + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioClassCandidate + Type => $some_value, # AudioClassType + Likelihood => $some_value, # float + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassDescriptor.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassDescriptor.pm new file mode 100644 index 000000000..df1dddd75 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassDescriptor.pm @@ -0,0 +1,116 @@ +package ONVIF::Analytics::Types::AudioClassDescriptor; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ClassCandidate_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ClassCandidate + Extension + + ) ], + { + 'ClassCandidate' => \%ClassCandidate_of, + 'Extension' => \%Extension_of, + }, + { + 'ClassCandidate' => 'ONVIF::Analytics::Types::AudioClassCandidate', + 'Extension' => 'ONVIF::Analytics::Types::AudioClassDescriptorExtension', + }, + { + + 'ClassCandidate' => 'ClassCandidate', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioClassDescriptor + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioClassDescriptor from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ClassCandidate + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioClassDescriptor + ClassCandidate => { # ONVIF::Analytics::Types::AudioClassCandidate + Type => $some_value, # AudioClassType + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::AudioClassDescriptorExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassDescriptorExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassDescriptorExtension.pm new file mode 100644 index 000000000..8e3b28511 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassDescriptorExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AudioClassDescriptorExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioClassDescriptorExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioClassDescriptorExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioClassDescriptorExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassType.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassType.pm new file mode 100644 index 000000000..628031103 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioClassType.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::AudioClassType; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +AudioClassType from the namespace http://www.onvif.org/ver10/schema. + +AudioClassType acceptable values are; gun_shot, scream, glass_breaking, tire_screech + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfiguration.pm new file mode 100644 index 000000000..d9c4599ad --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfiguration.pm @@ -0,0 +1,107 @@ +package ONVIF::Analytics::Types::AudioDecoderConfiguration; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioDecoderConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioDecoderConfiguration from the namespace http://www.onvif.org/ver10/schema. + +The Audio Decoder Configuration does not contain any that parameter to configure the decoding .A decoder shall decode every data it receives (according to its capabilities). + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioDecoderConfiguration + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfigurationOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfigurationOptions.pm new file mode 100644 index 000000000..700aa1dfa --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfigurationOptions.pm @@ -0,0 +1,152 @@ +package ONVIF::Analytics::Types::AudioDecoderConfigurationOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %AACDecOptions_of :ATTR(:get); +my %G711DecOptions_of :ATTR(:get); +my %G726DecOptions_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( AACDecOptions + G711DecOptions + G726DecOptions + Extension + + ) ], + { + 'AACDecOptions' => \%AACDecOptions_of, + 'G711DecOptions' => \%G711DecOptions_of, + 'G726DecOptions' => \%G726DecOptions_of, + 'Extension' => \%Extension_of, + }, + { + 'AACDecOptions' => 'ONVIF::Analytics::Types::AACDecOptions', + 'G711DecOptions' => 'ONVIF::Analytics::Types::G711DecOptions', + 'G726DecOptions' => 'ONVIF::Analytics::Types::G726DecOptions', + 'Extension' => 'ONVIF::Analytics::Types::AudioDecoderConfigurationOptionsExtension', + }, + { + + 'AACDecOptions' => 'AACDecOptions', + 'G711DecOptions' => 'G711DecOptions', + 'G726DecOptions' => 'G726DecOptions', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioDecoderConfigurationOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioDecoderConfigurationOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AACDecOptions + + +=item * G711DecOptions + + +=item * G726DecOptions + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioDecoderConfigurationOptions + AACDecOptions => { # ONVIF::Analytics::Types::AACDecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + G711DecOptions => { # ONVIF::Analytics::Types::G711DecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + G726DecOptions => { # ONVIF::Analytics::Types::G726DecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + Extension => { # ONVIF::Analytics::Types::AudioDecoderConfigurationOptionsExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfigurationOptionsExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfigurationOptionsExtension.pm new file mode 100644 index 000000000..399d1b374 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDecoderConfigurationOptionsExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AudioDecoderConfigurationOptionsExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioDecoderConfigurationOptionsExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioDecoderConfigurationOptionsExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioDecoderConfigurationOptionsExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDescriptor.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDescriptor.pm new file mode 100644 index 000000000..3f886044a --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioDescriptor.pm @@ -0,0 +1,139 @@ +package ONVIF::Analytics::Types::AudioDescriptor; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::AudioDescriptor::_AudioDescriptor::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::AudioDescriptor::_AudioDescriptor::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %UtcTime_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + UtcTime + ) ], + { + + UtcTime => \%UtcTime_of, + }, + { + UtcTime => 'SOAP::WSDL::XSD::Typelib::Builtin::dateTime', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioDescriptor + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioDescriptor from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioDescriptor + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::AudioDescriptor::_AudioDescriptor::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * UtcTime + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfiguration.pm new file mode 100644 index 000000000..a869c1700 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfiguration.pm @@ -0,0 +1,161 @@ +package ONVIF::Analytics::Types::AudioEncoderConfiguration; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); +my %Encoding_of :ATTR(:get); +my %Bitrate_of :ATTR(:get); +my %SampleRate_of :ATTR(:get); +my %Multicast_of :ATTR(:get); +my %SessionTimeout_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + Encoding + Bitrate + SampleRate + Multicast + SessionTimeout + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + 'Encoding' => \%Encoding_of, + 'Bitrate' => \%Bitrate_of, + 'SampleRate' => \%SampleRate_of, + 'Multicast' => \%Multicast_of, + 'SessionTimeout' => \%SessionTimeout_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'Encoding' => 'ONVIF::Analytics::Types::AudioEncoding', + 'Bitrate' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'SampleRate' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'Multicast' => 'ONVIF::Analytics::Types::MulticastConfiguration', + 'SessionTimeout' => 'SOAP::WSDL::XSD::Typelib::Builtin::duration', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + 'Encoding' => 'Encoding', + 'Bitrate' => 'Bitrate', + 'SampleRate' => 'SampleRate', + 'Multicast' => 'Multicast', + 'SessionTimeout' => 'SessionTimeout', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioEncoderConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioEncoderConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Encoding + + +=item * Bitrate + + +=item * SampleRate + + +=item * Multicast + + +=item * SessionTimeout + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioEncoderConfiguration + Encoding => $some_value, # AudioEncoding + Bitrate => $some_value, # int + SampleRate => $some_value, # int + Multicast => { # ONVIF::Analytics::Types::MulticastConfiguration + Address => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Port => $some_value, # int + TTL => $some_value, # int + AutoStart => $some_value, # boolean + }, + SessionTimeout => $some_value, # duration + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfigurationOption.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfigurationOption.pm new file mode 100644 index 000000000..57a8e6de1 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfigurationOption.pm @@ -0,0 +1,125 @@ +package ONVIF::Analytics::Types::AudioEncoderConfigurationOption; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Encoding_of :ATTR(:get); +my %BitrateList_of :ATTR(:get); +my %SampleRateList_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Encoding + BitrateList + SampleRateList + + ) ], + { + 'Encoding' => \%Encoding_of, + 'BitrateList' => \%BitrateList_of, + 'SampleRateList' => \%SampleRateList_of, + }, + { + 'Encoding' => 'ONVIF::Analytics::Types::AudioEncoding', + 'BitrateList' => 'ONVIF::Analytics::Types::IntList', + 'SampleRateList' => 'ONVIF::Analytics::Types::IntList', + }, + { + + 'Encoding' => 'Encoding', + 'BitrateList' => 'BitrateList', + 'SampleRateList' => 'SampleRateList', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioEncoderConfigurationOption + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioEncoderConfigurationOption from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Encoding + + +=item * BitrateList + + +=item * SampleRateList + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioEncoderConfigurationOption + Encoding => $some_value, # AudioEncoding + BitrateList => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateList => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfigurationOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfigurationOptions.pm new file mode 100644 index 000000000..a044596dd --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoderConfigurationOptions.pm @@ -0,0 +1,111 @@ +package ONVIF::Analytics::Types::AudioEncoderConfigurationOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Options_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Options + + ) ], + { + 'Options' => \%Options_of, + }, + { + 'Options' => 'ONVIF::Analytics::Types::AudioEncoderConfigurationOption', + }, + { + + 'Options' => 'Options', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioEncoderConfigurationOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioEncoderConfigurationOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Options + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioEncoderConfigurationOptions + Options => { # ONVIF::Analytics::Types::AudioEncoderConfigurationOption + Encoding => $some_value, # AudioEncoding + BitrateList => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateList => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoding.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoding.pm new file mode 100644 index 000000000..ed5275839 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioEncoding.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::AudioEncoding; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +AudioEncoding from the namespace http://www.onvif.org/ver10/schema. + + + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutput.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutput.pm new file mode 100644 index 000000000..6f6203580 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutput.pm @@ -0,0 +1,97 @@ +package ONVIF::Analytics::Types::AudioOutput; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::DeviceEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioOutput + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioOutput from the namespace http://www.onvif.org/ver10/schema. + +Representation of a physical audio outputs. + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioOutput + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutputConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutputConfiguration.pm new file mode 100644 index 000000000..7be3bab34 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutputConfiguration.pm @@ -0,0 +1,134 @@ +package ONVIF::Analytics::Types::AudioOutputConfiguration; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); +my %OutputToken_of :ATTR(:get); +my %SendPrimacy_of :ATTR(:get); +my %OutputLevel_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + OutputToken + SendPrimacy + OutputLevel + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + 'OutputToken' => \%OutputToken_of, + 'SendPrimacy' => \%SendPrimacy_of, + 'OutputLevel' => \%OutputLevel_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'OutputToken' => 'ONVIF::Analytics::Types::ReferenceToken', + 'SendPrimacy' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'OutputLevel' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + 'OutputToken' => 'OutputToken', + 'SendPrimacy' => 'SendPrimacy', + 'OutputLevel' => 'OutputLevel', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioOutputConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioOutputConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * OutputToken + + +=item * SendPrimacy + + +=item * OutputLevel + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioOutputConfiguration + OutputToken => $some_value, # ReferenceToken + SendPrimacy => $some_value, # anyURI + OutputLevel => $some_value, # int + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutputConfigurationOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutputConfigurationOptions.pm new file mode 100644 index 000000000..3baa764f4 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioOutputConfigurationOptions.pm @@ -0,0 +1,124 @@ +package ONVIF::Analytics::Types::AudioOutputConfigurationOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %OutputTokensAvailable_of :ATTR(:get); +my %SendPrimacyOptions_of :ATTR(:get); +my %OutputLevelRange_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( OutputTokensAvailable + SendPrimacyOptions + OutputLevelRange + + ) ], + { + 'OutputTokensAvailable' => \%OutputTokensAvailable_of, + 'SendPrimacyOptions' => \%SendPrimacyOptions_of, + 'OutputLevelRange' => \%OutputLevelRange_of, + }, + { + 'OutputTokensAvailable' => 'ONVIF::Analytics::Types::ReferenceToken', + 'SendPrimacyOptions' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + 'OutputLevelRange' => 'ONVIF::Analytics::Types::IntRange', + }, + { + + 'OutputTokensAvailable' => 'OutputTokensAvailable', + 'SendPrimacyOptions' => 'SendPrimacyOptions', + 'OutputLevelRange' => 'OutputLevelRange', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioOutputConfigurationOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioOutputConfigurationOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * OutputTokensAvailable + + +=item * SendPrimacyOptions + + +=item * OutputLevelRange + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioOutputConfigurationOptions + OutputTokensAvailable => $some_value, # ReferenceToken + SendPrimacyOptions => $some_value, # anyURI + OutputLevelRange => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSource.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSource.pm new file mode 100644 index 000000000..e2c7aa095 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSource.pm @@ -0,0 +1,106 @@ +package ONVIF::Analytics::Types::AudioSource; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::DeviceEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Channels_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Channels + + ) ], + { + 'Channels' => \%Channels_of, + }, + { + 'Channels' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + }, + { + + 'Channels' => 'Channels', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioSource + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioSource from the namespace http://www.onvif.org/ver10/schema. + +Representation of a physical audio input. + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Channels + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioSource + Channels => $some_value, # int + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceConfiguration.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceConfiguration.pm new file mode 100644 index 000000000..e33e7f563 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceConfiguration.pm @@ -0,0 +1,116 @@ +package ONVIF::Analytics::Types::AudioSourceConfiguration; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::ConfigurationEntity); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); +my %SourceToken_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + SourceToken + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + 'SourceToken' => \%SourceToken_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'SourceToken' => 'ONVIF::Analytics::Types::ReferenceToken', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + 'SourceToken' => 'SourceToken', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioSourceConfiguration + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioSourceConfiguration from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * SourceToken + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioSourceConfiguration + SourceToken => $some_value, # ReferenceToken + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceConfigurationOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceConfigurationOptions.pm new file mode 100644 index 000000000..362255479 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceConfigurationOptions.pm @@ -0,0 +1,113 @@ +package ONVIF::Analytics::Types::AudioSourceConfigurationOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %InputTokensAvailable_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( InputTokensAvailable + Extension + + ) ], + { + 'InputTokensAvailable' => \%InputTokensAvailable_of, + 'Extension' => \%Extension_of, + }, + { + 'InputTokensAvailable' => 'ONVIF::Analytics::Types::ReferenceToken', + 'Extension' => 'ONVIF::Analytics::Types::AudioSourceOptionsExtension', + }, + { + + 'InputTokensAvailable' => 'InputTokensAvailable', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioSourceConfigurationOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioSourceConfigurationOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * InputTokensAvailable + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioSourceConfigurationOptions + InputTokensAvailable => $some_value, # ReferenceToken + Extension => { # ONVIF::Analytics::Types::AudioSourceOptionsExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceOptionsExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceOptionsExtension.pm new file mode 100644 index 000000000..deaaa172e --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AudioSourceOptionsExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::AudioSourceOptionsExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::AudioSourceOptionsExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +AudioSourceOptionsExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::AudioSourceOptionsExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AutoFocusMode.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AutoFocusMode.pm new file mode 100644 index 000000000..6020bd018 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AutoFocusMode.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::AutoFocusMode; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +AutoFocusMode from the namespace http://www.onvif.org/ver10/schema. + + + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/AuxiliaryData.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/AuxiliaryData.pm new file mode 100644 index 000000000..4b794ad4b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/AuxiliaryData.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::AuxiliaryData; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +AuxiliaryData from the namespace http://www.onvif.org/ver10/schema. + + + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensation.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensation.pm new file mode 100644 index 000000000..2765f7939 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensation.pm @@ -0,0 +1,112 @@ +package ONVIF::Analytics::Types::BacklightCompensation; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Mode_of :ATTR(:get); +my %Level_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Mode + Level + + ) ], + { + 'Mode' => \%Mode_of, + 'Level' => \%Level_of, + }, + { + 'Mode' => 'ONVIF::Analytics::Types::BacklightCompensationMode', + 'Level' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + }, + { + + 'Mode' => 'Mode', + 'Level' => 'Level', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BacklightCompensation + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BacklightCompensation from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Mode + + +=item * Level + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BacklightCompensation + Mode => $some_value, # BacklightCompensationMode + Level => $some_value, # float + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensation20.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensation20.pm new file mode 100644 index 000000000..825f37321 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensation20.pm @@ -0,0 +1,112 @@ +package ONVIF::Analytics::Types::BacklightCompensation20; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Mode_of :ATTR(:get); +my %Level_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Mode + Level + + ) ], + { + 'Mode' => \%Mode_of, + 'Level' => \%Level_of, + }, + { + 'Mode' => 'ONVIF::Analytics::Types::BacklightCompensationMode', + 'Level' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + }, + { + + 'Mode' => 'Mode', + 'Level' => 'Level', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BacklightCompensation20 + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BacklightCompensation20 from the namespace http://www.onvif.org/ver10/schema. + +Type describing whether BLC mode is enabled or disabled (on/off). + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Mode + + +=item * Level + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BacklightCompensation20 + Mode => $some_value, # BacklightCompensationMode + Level => $some_value, # float + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationMode.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationMode.pm new file mode 100644 index 000000000..42b10ff10 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationMode.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::BacklightCompensationMode; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +BacklightCompensationMode from the namespace http://www.onvif.org/ver10/schema. + +Enumeration describing the available backlight compenstation modes. + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationOptions.pm new file mode 100644 index 000000000..bdbdd60e6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationOptions.pm @@ -0,0 +1,115 @@ +package ONVIF::Analytics::Types::BacklightCompensationOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Mode_of :ATTR(:get); +my %Level_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Mode + Level + + ) ], + { + 'Mode' => \%Mode_of, + 'Level' => \%Level_of, + }, + { + 'Mode' => 'ONVIF::Analytics::Types::WideDynamicMode', + 'Level' => 'ONVIF::Analytics::Types::FloatRange', + }, + { + + 'Mode' => 'Mode', + 'Level' => 'Level', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BacklightCompensationOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BacklightCompensationOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Mode + + +=item * Level + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BacklightCompensationOptions + Mode => $some_value, # WideDynamicMode + Level => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationOptions20.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationOptions20.pm new file mode 100644 index 000000000..1be4624ac --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BacklightCompensationOptions20.pm @@ -0,0 +1,115 @@ +package ONVIF::Analytics::Types::BacklightCompensationOptions20; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Mode_of :ATTR(:get); +my %Level_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Mode + Level + + ) ], + { + 'Mode' => \%Mode_of, + 'Level' => \%Level_of, + }, + { + 'Mode' => 'ONVIF::Analytics::Types::BacklightCompensationMode', + 'Level' => 'ONVIF::Analytics::Types::FloatRange', + }, + { + + 'Mode' => 'Mode', + 'Level' => 'Level', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BacklightCompensationOptions20 + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BacklightCompensationOptions20 from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Mode + + +=item * Level + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BacklightCompensationOptions20 + Mode => $some_value, # BacklightCompensationMode + Level => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BackupFile.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BackupFile.pm new file mode 100644 index 000000000..b935fc38e --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BackupFile.pm @@ -0,0 +1,115 @@ +package ONVIF::Analytics::Types::BackupFile; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %Data_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + Data + + ) ], + { + 'Name' => \%Name_of, + 'Data' => \%Data_of, + }, + { + 'Name' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'Data' => 'ONVIF::Analytics::Types::AttachmentData', + }, + { + + 'Name' => 'Name', + 'Data' => 'Data', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BackupFile + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BackupFile from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Name + + +=item * Data + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BackupFile + Name => $some_value, # string + Data => { # ONVIF::Analytics::Types::AttachmentData + Include => { # ONVIF::Analytics::Types::Include + }, + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Behaviour.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Behaviour.pm new file mode 100644 index 000000000..3bc6bddbe --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Behaviour.pm @@ -0,0 +1,212 @@ +package ONVIF::Analytics::Types::Behaviour; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Removed_of :ATTR(:get); +my %Idle_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Removed + Idle + Extension + + ) ], + { + 'Removed' => \%Removed_of, + 'Idle' => \%Idle_of, + 'Extension' => \%Extension_of, + }, + { + + 'Removed' => 'ONVIF::Analytics::Types::Behaviour::_Removed', + + 'Idle' => 'ONVIF::Analytics::Types::Behaviour::_Idle', + 'Extension' => 'ONVIF::Analytics::Types::BehaviourExtension', + }, + { + + 'Removed' => 'Removed', + 'Idle' => 'Idle', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::Behaviour::_Idle; +use strict; +use warnings; +{ +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + +} + + + +package ONVIF::Analytics::Types::Behaviour::_Removed; +use strict; +use warnings; +{ +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + +} + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Behaviour + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Behaviour from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Removed + + +=item * Idle + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Behaviour + Removed => { + }, + Idle => { + }, + Extension => { # ONVIF::Analytics::Types::BehaviourExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BehaviourExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BehaviourExtension.pm new file mode 100644 index 000000000..c9645a1b7 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BehaviourExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::BehaviourExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BehaviourExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BehaviourExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BehaviourExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/BinaryData.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/BinaryData.pm new file mode 100644 index 000000000..c6e84177b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/BinaryData.pm @@ -0,0 +1,147 @@ +package ONVIF::Analytics::Types::BinaryData; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::BinaryData::_BinaryData::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Data_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Data + + ) ], + { + 'Data' => \%Data_of, + }, + { + 'Data' => 'SOAP::WSDL::XSD::Typelib::Builtin::base64Binary', + }, + { + + 'Data' => 'Data', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::BinaryData::_BinaryData::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %contentType_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + contentType + ) ], + { + + contentType => \%contentType_of, + }, + { + + contentType => 'ONVIF::Analytics::Attributes::contentType', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::BinaryData + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +BinaryData from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Data + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::BinaryData + Data => $some_value, # base64Binary + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::BinaryData::_BinaryData::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * contentType + + + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Body.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Body.pm new file mode 100644 index 000000000..61a44e3de --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Body.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::Body; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Body + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Body from the namespace http://schemas.xmlsoap.org/soap/envelope/. + +Prose in the spec does not specify that attributes are allowed on the Body element + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Body + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Capabilities.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Capabilities.pm new file mode 100644 index 000000000..38a852a23 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Capabilities.pm @@ -0,0 +1,167 @@ +package ONVIF::Analytics::Types::Capabilities; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver20/analytics/wsdl' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::Capabilities::_Capabilities::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::Capabilities::_Capabilities::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %RuleSupport_of :ATTR(:get); +my %AnalyticsModuleSupport_of :ATTR(:get); +my %CellBasedSceneDescriptionSupported_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + RuleSupport + AnalyticsModuleSupport + CellBasedSceneDescriptionSupported + ) ], + { + + RuleSupport => \%RuleSupport_of, + + AnalyticsModuleSupport => \%AnalyticsModuleSupport_of, + + CellBasedSceneDescriptionSupported => \%CellBasedSceneDescriptionSupported_of, + }, + { + RuleSupport => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + AnalyticsModuleSupport => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + CellBasedSceneDescriptionSupported => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Capabilities + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Capabilities from the namespace http://www.onvif.org/ver20/analytics/wsdl. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Capabilities + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::Capabilities::_Capabilities::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * RuleSupport + + Indication that the device supports the rules interface and the rules syntax. + + + +This attribute is of type L. + +=item * AnalyticsModuleSupport + + Indication that the device supports the scene analytics module interface. + + + +This attribute is of type L. + +=item * CellBasedSceneDescriptionSupported + + Indication that the device produces the cell based scene description + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilitiesExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilitiesExtension.pm new file mode 100644 index 000000000..c753a1282 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilitiesExtension.pm @@ -0,0 +1,201 @@ +package ONVIF::Analytics::Types::CapabilitiesExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %DeviceIO_of :ATTR(:get); +my %Display_of :ATTR(:get); +my %Recording_of :ATTR(:get); +my %Search_of :ATTR(:get); +my %Replay_of :ATTR(:get); +my %Receiver_of :ATTR(:get); +my %AnalyticsDevice_of :ATTR(:get); +my %Extensions_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( DeviceIO + Display + Recording + Search + Replay + Receiver + AnalyticsDevice + Extensions + + ) ], + { + 'DeviceIO' => \%DeviceIO_of, + 'Display' => \%Display_of, + 'Recording' => \%Recording_of, + 'Search' => \%Search_of, + 'Replay' => \%Replay_of, + 'Receiver' => \%Receiver_of, + 'AnalyticsDevice' => \%AnalyticsDevice_of, + 'Extensions' => \%Extensions_of, + }, + { + 'DeviceIO' => 'ONVIF::Analytics::Types::DeviceIOCapabilities', + 'Display' => 'ONVIF::Analytics::Types::DisplayCapabilities', + 'Recording' => 'ONVIF::Analytics::Types::RecordingCapabilities', + 'Search' => 'ONVIF::Analytics::Types::SearchCapabilities', + 'Replay' => 'ONVIF::Analytics::Types::ReplayCapabilities', + 'Receiver' => 'ONVIF::Analytics::Types::ReceiverCapabilities', + 'AnalyticsDevice' => 'ONVIF::Analytics::Types::AnalyticsDeviceCapabilities', + 'Extensions' => 'ONVIF::Analytics::Types::CapabilitiesExtension2', + }, + { + + 'DeviceIO' => 'DeviceIO', + 'Display' => 'Display', + 'Recording' => 'Recording', + 'Search' => 'Search', + 'Replay' => 'Replay', + 'Receiver' => 'Receiver', + 'AnalyticsDevice' => 'AnalyticsDevice', + 'Extensions' => 'Extensions', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CapabilitiesExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CapabilitiesExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * DeviceIO + + +=item * Display + + +=item * Recording + + +=item * Search + + +=item * Replay + + +=item * Receiver + + +=item * AnalyticsDevice + + +=item * Extensions + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CapabilitiesExtension + DeviceIO => { # ONVIF::Analytics::Types::DeviceIOCapabilities + XAddr => $some_value, # anyURI + VideoSources => $some_value, # int + VideoOutputs => $some_value, # int + AudioSources => $some_value, # int + AudioOutputs => $some_value, # int + RelayOutputs => $some_value, # int + }, + Display => { # ONVIF::Analytics::Types::DisplayCapabilities + XAddr => $some_value, # anyURI + FixedLayout => $some_value, # boolean + }, + Recording => { # ONVIF::Analytics::Types::RecordingCapabilities + XAddr => $some_value, # anyURI + ReceiverSource => $some_value, # boolean + MediaProfileSource => $some_value, # boolean + DynamicRecordings => $some_value, # boolean + DynamicTracks => $some_value, # boolean + MaxStringLength => $some_value, # int + }, + Search => { # ONVIF::Analytics::Types::SearchCapabilities + XAddr => $some_value, # anyURI + MetadataSearch => $some_value, # boolean + }, + Replay => { # ONVIF::Analytics::Types::ReplayCapabilities + XAddr => $some_value, # anyURI + }, + Receiver => { # ONVIF::Analytics::Types::ReceiverCapabilities + XAddr => $some_value, # anyURI + RTP_Multicast => $some_value, # boolean + RTP_TCP => $some_value, # boolean + RTP_RTSP_TCP => $some_value, # boolean + SupportedReceivers => $some_value, # int + MaximumRTSPURILength => $some_value, # int + }, + AnalyticsDevice => { # ONVIF::Analytics::Types::AnalyticsDeviceCapabilities + XAddr => $some_value, # anyURI + RuleSupport => $some_value, # boolean + Extension => { # ONVIF::Analytics::Types::AnalyticsDeviceExtension + }, + }, + Extensions => { # ONVIF::Analytics::Types::CapabilitiesExtension2 + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilitiesExtension2.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilitiesExtension2.pm new file mode 100644 index 000000000..787bc5652 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilitiesExtension2.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::CapabilitiesExtension2; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CapabilitiesExtension2 + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CapabilitiesExtension2 from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CapabilitiesExtension2 + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilityCategory.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilityCategory.pm new file mode 100644 index 000000000..50c163db1 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CapabilityCategory.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::CapabilityCategory; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +CapabilityCategory from the namespace http://www.onvif.org/ver10/schema. + + + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CellLayout.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CellLayout.pm new file mode 100644 index 000000000..818617d5d --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CellLayout.pm @@ -0,0 +1,168 @@ +package ONVIF::Analytics::Types::CellLayout; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::CellLayout::_CellLayout::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Transformation_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Transformation + + ) ], + { + 'Transformation' => \%Transformation_of, + }, + { + 'Transformation' => 'ONVIF::Analytics::Types::Transformation', + }, + { + + 'Transformation' => 'Transformation', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::CellLayout::_CellLayout::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %Columns_of :ATTR(:get); +my %Rows_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + Columns + Rows + ) ], + { + + Columns => \%Columns_of, + + Rows => \%Rows_of, + }, + { + Columns => 'SOAP::WSDL::XSD::Typelib::Builtin::integer', + Rows => 'SOAP::WSDL::XSD::Typelib::Builtin::integer', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CellLayout + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CellLayout from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Transformation + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CellLayout + Transformation => { # ONVIF::Analytics::Types::Transformation + Translate => , + Scale => , + Extension => { # ONVIF::Analytics::Types::TransformationExtension + }, + }, + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::CellLayout::_CellLayout::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * Columns + + Number of columns of the cell grid (x dimension) + + + +This attribute is of type L. + +=item * Rows + + Number of rows of the cell grid (y dimension) + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Certificate.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Certificate.pm new file mode 100644 index 000000000..afe0724de --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Certificate.pm @@ -0,0 +1,114 @@ +package ONVIF::Analytics::Types::Certificate; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %CertificateID_of :ATTR(:get); +my %Certificate_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( CertificateID + Certificate + + ) ], + { + 'CertificateID' => \%CertificateID_of, + 'Certificate' => \%Certificate_of, + }, + { + 'CertificateID' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'Certificate' => 'ONVIF::Analytics::Types::BinaryData', + }, + { + + 'CertificateID' => 'CertificateID', + 'Certificate' => 'Certificate', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Certificate + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Certificate from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * CertificateID + + +=item * Certificate + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Certificate + CertificateID => $some_value, # token + Certificate => { # ONVIF::Analytics::Types::BinaryData + Data => $some_value, # base64Binary + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateGenerationParameters.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateGenerationParameters.pm new file mode 100644 index 000000000..c59489646 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateGenerationParameters.pm @@ -0,0 +1,140 @@ +package ONVIF::Analytics::Types::CertificateGenerationParameters; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %CertificateID_of :ATTR(:get); +my %Subject_of :ATTR(:get); +my %ValidNotBefore_of :ATTR(:get); +my %ValidNotAfter_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( CertificateID + Subject + ValidNotBefore + ValidNotAfter + Extension + + ) ], + { + 'CertificateID' => \%CertificateID_of, + 'Subject' => \%Subject_of, + 'ValidNotBefore' => \%ValidNotBefore_of, + 'ValidNotAfter' => \%ValidNotAfter_of, + 'Extension' => \%Extension_of, + }, + { + 'CertificateID' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'Subject' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'ValidNotBefore' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'ValidNotAfter' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'Extension' => 'ONVIF::Analytics::Types::CertificateGenerationParametersExtension', + }, + { + + 'CertificateID' => 'CertificateID', + 'Subject' => 'Subject', + 'ValidNotBefore' => 'ValidNotBefore', + 'ValidNotAfter' => 'ValidNotAfter', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateGenerationParameters + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateGenerationParameters from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * CertificateID + + +=item * Subject + + +=item * ValidNotBefore + + +=item * ValidNotAfter + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CertificateGenerationParameters + CertificateID => $some_value, # token + Subject => $some_value, # string + ValidNotBefore => $some_value, # token + ValidNotAfter => $some_value, # token + Extension => { # ONVIF::Analytics::Types::CertificateGenerationParametersExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateGenerationParametersExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateGenerationParametersExtension.pm new file mode 100644 index 000000000..028bc727b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateGenerationParametersExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::CertificateGenerationParametersExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateGenerationParametersExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateGenerationParametersExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CertificateGenerationParametersExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateInformation.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateInformation.pm new file mode 100644 index 000000000..406e406e7 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateInformation.pm @@ -0,0 +1,197 @@ +package ONVIF::Analytics::Types::CertificateInformation; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %CertificateID_of :ATTR(:get); +my %IssuerDN_of :ATTR(:get); +my %SubjectDN_of :ATTR(:get); +my %KeyUsage_of :ATTR(:get); +my %ExtendedKeyUsage_of :ATTR(:get); +my %KeyLength_of :ATTR(:get); +my %Version_of :ATTR(:get); +my %SerialNum_of :ATTR(:get); +my %SignatureAlgorithm_of :ATTR(:get); +my %Validity_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( CertificateID + IssuerDN + SubjectDN + KeyUsage + ExtendedKeyUsage + KeyLength + Version + SerialNum + SignatureAlgorithm + Validity + Extension + + ) ], + { + 'CertificateID' => \%CertificateID_of, + 'IssuerDN' => \%IssuerDN_of, + 'SubjectDN' => \%SubjectDN_of, + 'KeyUsage' => \%KeyUsage_of, + 'ExtendedKeyUsage' => \%ExtendedKeyUsage_of, + 'KeyLength' => \%KeyLength_of, + 'Version' => \%Version_of, + 'SerialNum' => \%SerialNum_of, + 'SignatureAlgorithm' => \%SignatureAlgorithm_of, + 'Validity' => \%Validity_of, + 'Extension' => \%Extension_of, + }, + { + 'CertificateID' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'IssuerDN' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'SubjectDN' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'KeyUsage' => 'ONVIF::Analytics::Types::CertificateUsage', + 'ExtendedKeyUsage' => 'ONVIF::Analytics::Types::CertificateUsage', + 'KeyLength' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'Version' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'SerialNum' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'SignatureAlgorithm' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + 'Validity' => 'ONVIF::Analytics::Types::DateTimeRange', + 'Extension' => 'ONVIF::Analytics::Types::CertificateInformationExtension', + }, + { + + 'CertificateID' => 'CertificateID', + 'IssuerDN' => 'IssuerDN', + 'SubjectDN' => 'SubjectDN', + 'KeyUsage' => 'KeyUsage', + 'ExtendedKeyUsage' => 'ExtendedKeyUsage', + 'KeyLength' => 'KeyLength', + 'Version' => 'Version', + 'SerialNum' => 'SerialNum', + 'SignatureAlgorithm' => 'SignatureAlgorithm', + 'Validity' => 'Validity', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateInformation + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateInformation from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * CertificateID + + +=item * IssuerDN + + +=item * SubjectDN + + +=item * KeyUsage + + +=item * ExtendedKeyUsage + + +=item * KeyLength + + +=item * Version + + +=item * SerialNum + + +=item * SignatureAlgorithm + + +=item * Validity + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CertificateInformation + CertificateID => $some_value, # token + IssuerDN => $some_value, # string + SubjectDN => $some_value, # string + KeyUsage => { value => $some_value }, + ExtendedKeyUsage => { value => $some_value }, + KeyLength => $some_value, # int + Version => $some_value, # string + SerialNum => $some_value, # string + SignatureAlgorithm => $some_value, # string + Validity => { # ONVIF::Analytics::Types::DateTimeRange + From => $some_value, # dateTime + Until => $some_value, # dateTime + }, + Extension => { # ONVIF::Analytics::Types::CertificateInformationExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateInformationExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateInformationExtension.pm new file mode 100644 index 000000000..e900a9c76 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateInformationExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::CertificateInformationExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateInformationExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateInformationExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CertificateInformationExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateStatus.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateStatus.pm new file mode 100644 index 000000000..64b2a41e3 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateStatus.pm @@ -0,0 +1,112 @@ +package ONVIF::Analytics::Types::CertificateStatus; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %CertificateID_of :ATTR(:get); +my %Status_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( CertificateID + Status + + ) ], + { + 'CertificateID' => \%CertificateID_of, + 'Status' => \%Status_of, + }, + { + 'CertificateID' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'Status' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + }, + { + + 'CertificateID' => 'CertificateID', + 'Status' => 'Status', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateStatus + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateStatus from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * CertificateID + + +=item * Status + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CertificateStatus + CertificateID => $some_value, # token + Status => $some_value, # boolean + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateUsage.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateUsage.pm new file mode 100644 index 000000000..7ba79b94e --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateUsage.pm @@ -0,0 +1,118 @@ +package ONVIF::Analytics::Types::CertificateUsage; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::CertificateUsage::_CertificateUsage::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use base qw( + SOAP::WSDL::XSD::Typelib::ComplexType + SOAP::WSDL::XSD::Typelib::Builtin::string +); + +package ONVIF::Analytics::Types::CertificateUsage::_CertificateUsage::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %Critical_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + Critical + ) ], + { + + Critical => \%Critical_of, + }, + { + Critical => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateUsage + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateUsage from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { value => $some_value }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::CertificateUsage::_CertificateUsage::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * Critical + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateWithPrivateKey.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateWithPrivateKey.pm new file mode 100644 index 000000000..17a7f8b97 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CertificateWithPrivateKey.pm @@ -0,0 +1,125 @@ +package ONVIF::Analytics::Types::CertificateWithPrivateKey; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %CertificateID_of :ATTR(:get); +my %Certificate_of :ATTR(:get); +my %PrivateKey_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( CertificateID + Certificate + PrivateKey + + ) ], + { + 'CertificateID' => \%CertificateID_of, + 'Certificate' => \%Certificate_of, + 'PrivateKey' => \%PrivateKey_of, + }, + { + 'CertificateID' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'Certificate' => 'ONVIF::Analytics::Types::BinaryData', + 'PrivateKey' => 'ONVIF::Analytics::Types::BinaryData', + }, + { + + 'CertificateID' => 'CertificateID', + 'Certificate' => 'Certificate', + 'PrivateKey' => 'PrivateKey', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CertificateWithPrivateKey + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CertificateWithPrivateKey from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * CertificateID + + +=item * Certificate + + +=item * PrivateKey + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CertificateWithPrivateKey + CertificateID => $some_value, # token + Certificate => { # ONVIF::Analytics::Types::BinaryData + Data => $some_value, # base64Binary + }, + PrivateKey => { # ONVIF::Analytics::Types::BinaryData + Data => $some_value, # base64Binary + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptor.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptor.pm new file mode 100644 index 000000000..e7bf8d651 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptor.pm @@ -0,0 +1,176 @@ +package ONVIF::Analytics::Types::ClassDescriptor; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ClassCandidate_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ClassCandidate + Extension + + ) ], + { + 'ClassCandidate' => \%ClassCandidate_of, + 'Extension' => \%Extension_of, + }, + { + + 'ClassCandidate' => 'ONVIF::Analytics::Types::ClassDescriptor::_ClassCandidate', + 'Extension' => 'ONVIF::Analytics::Types::ClassDescriptorExtension', + }, + { + + 'ClassCandidate' => 'ClassCandidate', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::ClassDescriptor::_ClassCandidate; +use strict; +use warnings; +{ +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Type_of :ATTR(:get); +my %Likelihood_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Type + Likelihood + + ) ], + { + 'Type' => \%Type_of, + 'Likelihood' => \%Likelihood_of, + }, + { + 'Type' => 'ONVIF::Analytics::Types::ClassType', + 'Likelihood' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + }, + { + + 'Type' => 'Type', + 'Likelihood' => 'Likelihood', + } +); + +} # end BLOCK + + + + + + + +} + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ClassDescriptor + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ClassDescriptor from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ClassCandidate + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ClassDescriptor + ClassCandidate => { + Type => $some_value, # ClassType + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension + OtherTypes => { # ONVIF::Analytics::Types::OtherType + Type => $some_value, # string + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension2 + }, + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptorExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptorExtension.pm new file mode 100644 index 000000000..d0f2b1fa2 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptorExtension.pm @@ -0,0 +1,116 @@ +package ONVIF::Analytics::Types::ClassDescriptorExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %OtherTypes_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( OtherTypes + Extension + + ) ], + { + 'OtherTypes' => \%OtherTypes_of, + 'Extension' => \%Extension_of, + }, + { + 'OtherTypes' => 'ONVIF::Analytics::Types::OtherType', + 'Extension' => 'ONVIF::Analytics::Types::ClassDescriptorExtension2', + }, + { + + 'OtherTypes' => 'OtherTypes', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ClassDescriptorExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ClassDescriptorExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * OtherTypes + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ClassDescriptorExtension + OtherTypes => { # ONVIF::Analytics::Types::OtherType + Type => $some_value, # string + Likelihood => $some_value, # float + }, + Extension => { # ONVIF::Analytics::Types::ClassDescriptorExtension2 + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptorExtension2.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptorExtension2.pm new file mode 100644 index 000000000..4ef892aef --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassDescriptorExtension2.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::ClassDescriptorExtension2; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ClassDescriptorExtension2 + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ClassDescriptorExtension2 from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ClassDescriptorExtension2 + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ClassType.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassType.pm new file mode 100644 index 000000000..7d788ea56 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ClassType.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::ClassType; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::string); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +ClassType from the namespace http://www.onvif.org/ver10/schema. + + + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::string +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/CodingCapabilities.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/CodingCapabilities.pm new file mode 100644 index 000000000..8f761ca97 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/CodingCapabilities.pm @@ -0,0 +1,205 @@ +package ONVIF::Analytics::Types::CodingCapabilities; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %AudioEncodingCapabilities_of :ATTR(:get); +my %AudioDecodingCapabilities_of :ATTR(:get); +my %VideoDecodingCapabilities_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( AudioEncodingCapabilities + AudioDecodingCapabilities + VideoDecodingCapabilities + + ) ], + { + 'AudioEncodingCapabilities' => \%AudioEncodingCapabilities_of, + 'AudioDecodingCapabilities' => \%AudioDecodingCapabilities_of, + 'VideoDecodingCapabilities' => \%VideoDecodingCapabilities_of, + }, + { + 'AudioEncodingCapabilities' => 'ONVIF::Analytics::Types::AudioEncoderConfigurationOptions', + 'AudioDecodingCapabilities' => 'ONVIF::Analytics::Types::AudioDecoderConfigurationOptions', + 'VideoDecodingCapabilities' => 'ONVIF::Analytics::Types::VideoDecoderConfigurationOptions', + }, + { + + 'AudioEncodingCapabilities' => 'AudioEncodingCapabilities', + 'AudioDecodingCapabilities' => 'AudioDecodingCapabilities', + 'VideoDecodingCapabilities' => 'VideoDecodingCapabilities', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::CodingCapabilities + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +CodingCapabilities from the namespace http://www.onvif.org/ver10/schema. + +This type contains the Audio and Video coding capabilities of a display service. + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * AudioEncodingCapabilities + + +=item * AudioDecodingCapabilities + + +=item * VideoDecodingCapabilities + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::CodingCapabilities + AudioEncodingCapabilities => { # ONVIF::Analytics::Types::AudioEncoderConfigurationOptions + Options => { # ONVIF::Analytics::Types::AudioEncoderConfigurationOption + Encoding => $some_value, # AudioEncoding + BitrateList => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateList => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + }, + AudioDecodingCapabilities => { # ONVIF::Analytics::Types::AudioDecoderConfigurationOptions + AACDecOptions => { # ONVIF::Analytics::Types::AACDecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + G711DecOptions => { # ONVIF::Analytics::Types::G711DecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + G726DecOptions => { # ONVIF::Analytics::Types::G726DecOptions + Bitrate => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + SampleRateRange => { # ONVIF::Analytics::Types::IntList + Items => $some_value, # int + }, + }, + Extension => { # ONVIF::Analytics::Types::AudioDecoderConfigurationOptionsExtension + }, + }, + VideoDecodingCapabilities => { # ONVIF::Analytics::Types::VideoDecoderConfigurationOptions + JpegDecOptions => { # ONVIF::Analytics::Types::JpegDecOptions + ResolutionsAvailable => { # ONVIF::Analytics::Types::VideoResolution + Width => $some_value, # int + Height => $some_value, # int + }, + SupportedInputBitrate => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + SupportedFrameRate => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + }, + H264DecOptions => { # ONVIF::Analytics::Types::H264DecOptions + ResolutionsAvailable => { # ONVIF::Analytics::Types::VideoResolution + Width => $some_value, # int + Height => $some_value, # int + }, + SupportedH264Profiles => $some_value, # H264Profile + SupportedInputBitrate => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + SupportedFrameRate => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + }, + Mpeg4DecOptions => { # ONVIF::Analytics::Types::Mpeg4DecOptions + ResolutionsAvailable => { # ONVIF::Analytics::Types::VideoResolution + Width => $some_value, # int + Height => $some_value, # int + }, + SupportedMpeg4Profiles => $some_value, # Mpeg4Profile + SupportedInputBitrate => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + SupportedFrameRate => { # ONVIF::Analytics::Types::IntRange + Min => $some_value, # int + Max => $some_value, # int + }, + }, + Extension => { # ONVIF::Analytics::Types::VideoDecoderConfigurationOptionsExtension + }, + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Color.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Color.pm new file mode 100644 index 000000000..8632b3d75 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Color.pm @@ -0,0 +1,155 @@ +package ONVIF::Analytics::Types::Color; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::Color::_Color::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + +package ONVIF::Analytics::Types::Color::_Color::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %X_of :ATTR(:get); +my %Y_of :ATTR(:get); +my %Z_of :ATTR(:get); +my %Colorspace_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + X + Y + Z + Colorspace + ) ], + { + + X => \%X_of, + + Y => \%Y_of, + + Z => \%Z_of, + + Colorspace => \%Colorspace_of, + }, + { + X => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + Y => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + Z => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + Colorspace => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Color + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Color from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + +, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::Color::_Color::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * X + + + +This attribute is of type L. + +=item * Y + + + +This attribute is of type L. + +=item * Z + + + +This attribute is of type L. + +=item * Colorspace + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ColorCovariance.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorCovariance.pm new file mode 100644 index 000000000..f3cafc4b6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorCovariance.pm @@ -0,0 +1,188 @@ +package ONVIF::Analytics::Types::ColorCovariance; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::ColorCovariance::_ColorCovariance::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + + +# There's no variety - empty complexType +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +__PACKAGE__->_factory(); + + +package ONVIF::Analytics::Types::ColorCovariance::_ColorCovariance::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %XX_of :ATTR(:get); +my %YY_of :ATTR(:get); +my %ZZ_of :ATTR(:get); +my %XY_of :ATTR(:get); +my %XZ_of :ATTR(:get); +my %YZ_of :ATTR(:get); +my %Colorspace_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + XX + YY + ZZ + XY + XZ + YZ + Colorspace + ) ], + { + + XX => \%XX_of, + + YY => \%YY_of, + + ZZ => \%ZZ_of, + + XY => \%XY_of, + + XZ => \%XZ_of, + + YZ => \%YZ_of, + + Colorspace => \%Colorspace_of, + }, + { + XX => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + YY => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + ZZ => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + XY => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + XZ => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + YZ => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + Colorspace => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ColorCovariance + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ColorCovariance from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + +, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::ColorCovariance::_ColorCovariance::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * XX + + + +This attribute is of type L. + +=item * YY + + + +This attribute is of type L. + +=item * ZZ + + + +This attribute is of type L. + +=item * XY + + + +This attribute is of type L. + +=item * XZ + + + +This attribute is of type L. + +=item * YZ + + + +This attribute is of type L. + +=item * Colorspace + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ColorDescriptor.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorDescriptor.pm new file mode 100644 index 000000000..102629f8d --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorDescriptor.pm @@ -0,0 +1,176 @@ +package ONVIF::Analytics::Types::ColorDescriptor; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ColorCluster_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ColorCluster + Extension + + ) ], + { + 'ColorCluster' => \%ColorCluster_of, + 'Extension' => \%Extension_of, + }, + { + + 'ColorCluster' => 'ONVIF::Analytics::Types::ColorDescriptor::_ColorCluster', + 'Extension' => 'ONVIF::Analytics::Types::ColorDescriptorExtension', + }, + { + + 'ColorCluster' => 'ColorCluster', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::ColorDescriptor::_ColorCluster; +use strict; +use warnings; +{ +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Color_of :ATTR(:get); +my %Weight_of :ATTR(:get); +my %Covariance_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Color + Weight + Covariance + + ) ], + { + 'Color' => \%Color_of, + 'Weight' => \%Weight_of, + 'Covariance' => \%Covariance_of, + }, + { + 'Color' => 'ONVIF::Analytics::Types::Color', + 'Weight' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + 'Covariance' => 'ONVIF::Analytics::Types::ColorCovariance', + }, + { + + 'Color' => 'Color', + 'Weight' => 'Weight', + 'Covariance' => 'Covariance', + } +); + +} # end BLOCK + + + + + + + +} + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ColorDescriptor + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ColorDescriptor from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ColorCluster + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ColorDescriptor + ColorCluster => { + Color => , + Weight => $some_value, # float + Covariance => , + }, + Extension => { # ONVIF::Analytics::Types::ColorDescriptorExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ColorDescriptorExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorDescriptorExtension.pm new file mode 100644 index 000000000..bc67c8681 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorDescriptorExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::ColorDescriptorExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ColorDescriptorExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ColorDescriptorExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ColorDescriptorExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ColorOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorOptions.pm new file mode 100644 index 000000000..eaf6fea9f --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorOptions.pm @@ -0,0 +1,128 @@ +package ONVIF::Analytics::Types::ColorOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %ColorList_of :ATTR(:get); +my %ColorspaceRange_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( ColorList + ColorspaceRange + + ) ], + { + 'ColorList' => \%ColorList_of, + 'ColorspaceRange' => \%ColorspaceRange_of, + }, + { + 'ColorList' => 'ONVIF::Analytics::Types::Color', + 'ColorspaceRange' => 'ONVIF::Analytics::Types::ColorspaceRange', + }, + { + + 'ColorList' => 'ColorList', + 'ColorspaceRange' => 'ColorspaceRange', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ColorOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ColorOptions from the namespace http://www.onvif.org/ver10/schema. + +http://www.onvif.org/ver10/colorspace/HSV - HSV colourspace + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * ColorList + + +=item * ColorspaceRange + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ColorOptions + # One of the following elements. + # No occurance checks yet, so be sure to pass just one... + ColorList => , + ColorspaceRange => { # ONVIF::Analytics::Types::ColorspaceRange + X => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Y => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Z => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Colorspace => $some_value, # anyURI + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ColorspaceRange.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorspaceRange.pm new file mode 100644 index 000000000..9a41fd6e8 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ColorspaceRange.pm @@ -0,0 +1,139 @@ +package ONVIF::Analytics::Types::ColorspaceRange; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %X_of :ATTR(:get); +my %Y_of :ATTR(:get); +my %Z_of :ATTR(:get); +my %Colorspace_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( X + Y + Z + Colorspace + + ) ], + { + 'X' => \%X_of, + 'Y' => \%Y_of, + 'Z' => \%Z_of, + 'Colorspace' => \%Colorspace_of, + }, + { + 'X' => 'ONVIF::Analytics::Types::FloatRange', + 'Y' => 'ONVIF::Analytics::Types::FloatRange', + 'Z' => 'ONVIF::Analytics::Types::FloatRange', + 'Colorspace' => 'SOAP::WSDL::XSD::Typelib::Builtin::anyURI', + }, + { + + 'X' => 'X', + 'Y' => 'Y', + 'Z' => 'Z', + 'Colorspace' => 'Colorspace', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ColorspaceRange + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ColorspaceRange from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * X + + +=item * Y + + +=item * Z + + +=item * Colorspace + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ColorspaceRange + X => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Y => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Z => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + Colorspace => $some_value, # anyURI + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Config.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Config.pm new file mode 100644 index 000000000..b4fbe9997 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Config.pm @@ -0,0 +1,169 @@ +package ONVIF::Analytics::Types::Config; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::Config::_Config::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Parameters_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Parameters + + ) ], + { + 'Parameters' => \%Parameters_of, + }, + { + 'Parameters' => 'ONVIF::Analytics::Types::ItemList', + }, + { + + 'Parameters' => 'Parameters', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::Config::_Config::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %Type_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + Name + Type + ) ], + { + + Name => \%Name_of, + + Type => \%Type_of, + }, + { + Name => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + Type => 'SOAP::WSDL::XSD::Typelib::Builtin::QName', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Config + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Config from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Parameters + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Config + Parameters => { # ONVIF::Analytics::Types::ItemList + SimpleItem => , + ElementItem => { + }, + Extension => { # ONVIF::Analytics::Types::ItemListExtension + }, + }, + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::Config::_Config::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * Name + + Name of the configuration. + + + +This attribute is of type L. + +=item * Type + + Type of the configuration represented by a unique QName. The Type characterizes a ConfigDescription defining the Parameters. + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigDescription.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigDescription.pm new file mode 100644 index 000000000..e36c3ac0b --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigDescription.pm @@ -0,0 +1,248 @@ +package ONVIF::Analytics::Types::ConfigDescription; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::ConfigDescription::_ConfigDescription::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Parameters_of :ATTR(:get); +my %Messages_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Parameters + Messages + Extension + + ) ], + { + 'Parameters' => \%Parameters_of, + 'Messages' => \%Messages_of, + 'Extension' => \%Extension_of, + }, + { + 'Parameters' => 'ONVIF::Analytics::Types::ItemListDescription', + + 'Messages' => 'ONVIF::Analytics::Types::ConfigDescription::_Messages', + 'Extension' => 'ONVIF::Analytics::Types::ConfigDescriptionExtension', + }, + { + + 'Parameters' => 'Parameters', + 'Messages' => 'Messages', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::ConfigDescription::_Messages; +use strict; +use warnings; +{ +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + + +use base qw(ONVIF::Analytics::Types::MessageDescription); +# Variety: sequence +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Source_of :ATTR(:get); +my %Key_of :ATTR(:get); +my %Data_of :ATTR(:get); +my %Extension_of :ATTR(:get); +my %ParentTopic_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Source + Key + Data + Extension + ParentTopic + + ) ], + { + 'Source' => \%Source_of, + 'Key' => \%Key_of, + 'Data' => \%Data_of, + 'Extension' => \%Extension_of, + 'ParentTopic' => \%ParentTopic_of, + }, + { + 'Source' => 'ONVIF::Analytics::Types::ItemListDescription', + 'Key' => 'ONVIF::Analytics::Types::ItemListDescription', + 'Data' => 'ONVIF::Analytics::Types::ItemListDescription', + 'Extension' => 'ONVIF::Analytics::Types::MessageDescriptionExtension', + 'ParentTopic' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', + }, + { + + 'Source' => 'Source', + 'Key' => 'Key', + 'Data' => 'Data', + 'Extension' => 'Extension', + 'ParentTopic' => 'ParentTopic', + } +); + +} # end BLOCK + + + + + + + +} + + + +package ONVIF::Analytics::Types::ConfigDescription::_ConfigDescription::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + Name + ) ], + { + + Name => \%Name_of, + }, + { + Name => 'SOAP::WSDL::XSD::Typelib::Builtin::QName', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ConfigDescription + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ConfigDescription from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Parameters + + +=item * Messages + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ConfigDescription + Parameters => { # ONVIF::Analytics::Types::ItemListDescription + SimpleItemDescription => , + ElementItemDescription => , + Extension => { # ONVIF::Analytics::Types::ItemListDescriptionExtension + }, + }, + Messages => { + ParentTopic => $some_value, # string + }, + Extension => { # ONVIF::Analytics::Types::ConfigDescriptionExtension + }, + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::ConfigDescription::_ConfigDescription::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * Name + + XML Type of the Configuration (e.g. "tt::LineDetector"). + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigDescriptionExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigDescriptionExtension.pm new file mode 100644 index 000000000..9c2eefde8 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigDescriptionExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::ConfigDescriptionExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ConfigDescriptionExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ConfigDescriptionExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ConfigDescriptionExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigurationEntity.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigurationEntity.pm new file mode 100644 index 000000000..8e544d6a6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ConfigurationEntity.pm @@ -0,0 +1,159 @@ +package ONVIF::Analytics::Types::ConfigurationEntity; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS = 'ONVIF::Analytics::Types::ConfigurationEntity::_ConfigurationEntity::XmlAttr'; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Name_of :ATTR(:get); +my %UseCount_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Name + UseCount + + ) ], + { + 'Name' => \%Name_of, + 'UseCount' => \%UseCount_of, + }, + { + 'Name' => 'ONVIF::Analytics::Types::Name', + 'UseCount' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + }, + { + + 'Name' => 'Name', + 'UseCount' => 'UseCount', + } +); + +} # end BLOCK + + + + +package ONVIF::Analytics::Types::ConfigurationEntity::_ConfigurationEntity::XmlAttr; +use base qw(SOAP::WSDL::XSD::Typelib::AttributeSet); + +{ # BLOCK to scope variables + +my %token_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( + token + ) ], + { + + token => \%token_of, + }, + { + token => 'ONVIF::Analytics::Types::ReferenceToken', + } +); + +} # end BLOCK + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ConfigurationEntity + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ConfigurationEntity from the namespace http://www.onvif.org/ver10/schema. + +Base type defining the common properties of a configuration. + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Name + + +=item * UseCount + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ConfigurationEntity + Name => $some_value, # Name + UseCount => $some_value, # int + }, + + + +=head2 attr + +NOTE: Attribute documentation is experimental, and may be inaccurate. +See the correspondent WSDL/XML Schema if in question. + +This class has additional attributes, accessibly via the C method. + +attr() returns an object of the class ONVIF::Analytics::Types::ConfigurationEntity::_ConfigurationEntity::XmlAttr. + +The following attributes can be accessed on this object via the corresponding +get_/set_ methods: + +=over + +=item * token + + Token that uniquely refernces this configuration. Length up to 64 characters. + + + +This attribute is of type L. + + +=back + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ContinuousFocus.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ContinuousFocus.pm new file mode 100644 index 000000000..cf6f1cabe --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ContinuousFocus.pm @@ -0,0 +1,103 @@ +package ONVIF::Analytics::Types::ContinuousFocus; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Speed_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Speed + + ) ], + { + 'Speed' => \%Speed_of, + }, + { + 'Speed' => 'SOAP::WSDL::XSD::Typelib::Builtin::float', + }, + { + + 'Speed' => 'Speed', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ContinuousFocus + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ContinuousFocus from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Speed + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ContinuousFocus + Speed => $some_value, # float + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/ContinuousFocusOptions.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/ContinuousFocusOptions.pm new file mode 100644 index 000000000..f9970d781 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/ContinuousFocusOptions.pm @@ -0,0 +1,106 @@ +package ONVIF::Analytics::Types::ContinuousFocusOptions; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Speed_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Speed + + ) ], + { + 'Speed' => \%Speed_of, + }, + { + 'Speed' => 'ONVIF::Analytics::Types::FloatRange', + }, + { + + 'Speed' => 'Speed', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::ContinuousFocusOptions + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +ContinuousFocusOptions from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Speed + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::ContinuousFocusOptions + Speed => { # ONVIF::Analytics::Types::FloatRange + Min => $some_value, # float + Max => $some_value, # float + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/DNSInformation.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/DNSInformation.pm new file mode 100644 index 000000000..8c0e830bb --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/DNSInformation.pm @@ -0,0 +1,148 @@ +package ONVIF::Analytics::Types::DNSInformation; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %FromDHCP_of :ATTR(:get); +my %SearchDomain_of :ATTR(:get); +my %DNSFromDHCP_of :ATTR(:get); +my %DNSManual_of :ATTR(:get); +my %Extension_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( FromDHCP + SearchDomain + DNSFromDHCP + DNSManual + Extension + + ) ], + { + 'FromDHCP' => \%FromDHCP_of, + 'SearchDomain' => \%SearchDomain_of, + 'DNSFromDHCP' => \%DNSFromDHCP_of, + 'DNSManual' => \%DNSManual_of, + 'Extension' => \%Extension_of, + }, + { + 'FromDHCP' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean', + 'SearchDomain' => 'SOAP::WSDL::XSD::Typelib::Builtin::token', + 'DNSFromDHCP' => 'ONVIF::Analytics::Types::IPAddress', + 'DNSManual' => 'ONVIF::Analytics::Types::IPAddress', + 'Extension' => 'ONVIF::Analytics::Types::DNSInformationExtension', + }, + { + + 'FromDHCP' => 'FromDHCP', + 'SearchDomain' => 'SearchDomain', + 'DNSFromDHCP' => 'DNSFromDHCP', + 'DNSManual' => 'DNSManual', + 'Extension' => 'Extension', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::DNSInformation + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +DNSInformation from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * FromDHCP + + +=item * SearchDomain + + +=item * DNSFromDHCP + + +=item * DNSManual + + +=item * Extension + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::DNSInformation + FromDHCP => $some_value, # boolean + SearchDomain => $some_value, # token + DNSFromDHCP => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + DNSManual => { # ONVIF::Analytics::Types::IPAddress + Type => $some_value, # IPType + IPv4Address => $some_value, # IPv4Address + IPv6Address => $some_value, # IPv6Address + }, + Extension => { # ONVIF::Analytics::Types::DNSInformationExtension + }, + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/DNSInformationExtension.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/DNSInformationExtension.pm new file mode 100644 index 000000000..e5ed4f566 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/DNSInformationExtension.pm @@ -0,0 +1,94 @@ +package ONVIF::Analytics::Types::DNSInformationExtension; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + + +__PACKAGE__->_factory( + [ qw( + ) ], + { + }, + { + }, + { + + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::DNSInformationExtension + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +DNSInformationExtension from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::DNSInformationExtension + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/DNSName.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/DNSName.pm new file mode 100644 index 000000000..b9f099649 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/DNSName.pm @@ -0,0 +1,65 @@ +package ONVIF::Analytics::Types::DNSName; +use strict; +use warnings; + +sub get_xmlns { 'http://www.onvif.org/ver10/schema'}; + +# derivation by restriction +use base qw( + SOAP::WSDL::XSD::Typelib::Builtin::token); + + + +1; + +__END__ + +=pod + +=head1 NAME + + + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined simpleType +DNSName from the namespace http://www.onvif.org/ver10/schema. + + + + + +This clase is derived from + SOAP::WSDL::XSD::Typelib::Builtin::token +. SOAP::WSDL's schema implementation does not validate data, so you can use it exactly +like it's base type. + +# Description of restrictions not implemented yet. + + +=head1 METHODS + +=head2 new + +Constructor. + +=head2 get_value / set_value + +Getter and setter for the simpleType's value. + +=head1 OVERLOADING + +Depending on the simple type's base type, the following operations are overloaded + + Stringification + Numerification + Boolification + +Check L for more information. + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/Date.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/Date.pm new file mode 100644 index 000000000..e528318a0 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/Date.pm @@ -0,0 +1,121 @@ +package ONVIF::Analytics::Types::Date; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Year_of :ATTR(:get); +my %Month_of :ATTR(:get); +my %Day_of :ATTR(:get); + +__PACKAGE__->_factory( + [ qw( Year + Month + Day + + ) ], + { + 'Year' => \%Year_of, + 'Month' => \%Month_of, + 'Day' => \%Day_of, + }, + { + 'Year' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'Month' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + 'Day' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', + }, + { + + 'Year' => 'Year', + 'Month' => 'Month', + 'Day' => 'Day', + } +); + +} # end BLOCK + + + + + + + + +1; + + +=pod + +=head1 NAME + +ONVIF::Analytics::Types::Date + +=head1 DESCRIPTION + +Perl data type class for the XML Schema defined complexType +Date from the namespace http://www.onvif.org/ver10/schema. + + + + + + +=head2 PROPERTIES + +The following properties may be accessed using get_PROPERTY / set_PROPERTY +methods: + +=over + +=item * Year + + +=item * Month + + +=item * Day + + + + +=back + + +=head1 METHODS + +=head2 new + +Constructor. The following data structure may be passed to new(): + + { # ONVIF::Analytics::Types::Date + Year => $some_value, # int + Month => $some_value, # int + Day => $some_value, # int + }, + + + + +=head1 AUTHOR + +Generated by SOAP::WSDL + +=cut + diff --git a/onvif/proxy/lib/ONVIF/Analytics/Types/DateTime.pm b/onvif/proxy/lib/ONVIF/Analytics/Types/DateTime.pm new file mode 100644 index 000000000..c4e1ed2b6 --- /dev/null +++ b/onvif/proxy/lib/ONVIF/Analytics/Types/DateTime.pm @@ -0,0 +1,120 @@ +package ONVIF::Analytics::Types::DateTime; +use strict; +use warnings; + + +__PACKAGE__->_set_element_form_qualified(1); + +sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; + +our $XML_ATTRIBUTE_CLASS; +undef $XML_ATTRIBUTE_CLASS; + +sub __get_attr_class { + return $XML_ATTRIBUTE_CLASS; +} + +use Class::Std::Fast::Storable constructor => 'none'; +use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); + +Class::Std::initialize(); + +{ # BLOCK to scope variables + +my %Time_of :ATTR(:get