diff options
author | Andreas K. Huettel <andreas.huettel@ur.de> | 2016-12-12 20:37:30 +0100 |
---|---|---|
committer | Andreas K. Huettel <andreas.huettel@ur.de> | 2016-12-12 20:37:30 +0100 |
commit | 728b36f55a1bd05645a22bceb34a0dfa43f18fa2 (patch) | |
tree | 7505face3ef1d4773902a5234974e689c60ebfaa | |
parent | www-misc/zoneminder: Use releases, not git clones; work around submodule issue (diff) | |
download | dilfridge-728b36f55a1bd05645a22bceb34a0dfa43f18fa2.tar.gz dilfridge-728b36f55a1bd05645a22bceb34a0dfa43f18fa2.tar.bz2 dilfridge-728b36f55a1bd05645a22bceb34a0dfa43f18fa2.zip |
www-misc/zoneminder: moved to main tree
-rw-r--r-- | www-misc/zoneminder/Manifest | 2 | ||||
-rw-r--r-- | www-misc/zoneminder/files/10_zoneminder.conf | 18 | ||||
-rw-r--r-- | www-misc/zoneminder/files/README.gentoo | 27 | ||||
-rw-r--r-- | www-misc/zoneminder/files/conf.d | 6 | ||||
-rw-r--r-- | www-misc/zoneminder/files/init.d | 26 | ||||
-rw-r--r-- | www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch | 34 | ||||
-rw-r--r-- | www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch | 20 | ||||
-rw-r--r-- | www-misc/zoneminder/files/zoneminder.service | 11 | ||||
-rw-r--r-- | www-misc/zoneminder/metadata.xml | 16 | ||||
-rw-r--r-- | www-misc/zoneminder/zoneminder-1.30.0.ebuild | 173 |
10 files changed, 0 insertions, 333 deletions
diff --git a/www-misc/zoneminder/Manifest b/www-misc/zoneminder/Manifest deleted file mode 100644 index 1ceb9cc..0000000 --- a/www-misc/zoneminder/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST Crud-3.0.10.tar.gz 72960 SHA256 462d05e21d17cc6b11cdc441971d1a7f07688512b5f7903217a574c6c39efd91 SHA512 2f60557f2c783bb448e06c1ca40b536a1d7d5f3caf0626fa6716a28f808492d4799e238f16c022571be96921105b074b6763920fd7b9cc77b76d17ceadae2040 WHIRLPOOL 6c8d78dd30e8373a2b014fe4f6d17a4e2ec1051a6dc09d8b0759c6cd76ae78cb633e2c1eaab125aa29e66903de201337da979b3e412e8861a2431588251d817b -DIST zoneminder-1.30.0.tar.gz 9757409 SHA256 e7c964c339305f42a044ca8e34fa4e6a33c452fdaf33642458735daf8b864325 SHA512 cbff14447a568648a0475e878be5cd19cb694c65814fe33c20774752410e31f3f4ff9e5695667d4d50634b3193dc50aaca2d950efc151bbb968d3f9609d35db4 WHIRLPOOL af901055bb1ac9ae668fae23f80aff20632d6ee785e0fe5ab6f71f86fe6e1a8ca2e4dae919c1754ac84025f7bc614cc9cea7470209b2a7a35d3b27746eb9a46b diff --git a/www-misc/zoneminder/files/10_zoneminder.conf b/www-misc/zoneminder/files/10_zoneminder.conf deleted file mode 100644 index 277d680..0000000 --- a/www-misc/zoneminder/files/10_zoneminder.conf +++ /dev/null @@ -1,18 +0,0 @@ -ScriptAlias /cgi-bin/zms "/usr/libexec/zoneminder/cgi-bin/zms" -ScriptAlias /cgi-bin/nph-zms "/usr/libexec/zoneminder/cgi-bin/nph-zms" - -<Directory "/usr/libexec/zoneminder/cgi-bin"> - AllowOverride All - Options ExecCGI - Order allow,deny - Allow from all -</Directory> - -Alias /zoneminder "%ZM_WEBDIR%" - -<Directory "%ZM_WEBDIR%"> - Options -Indexes MultiViews FollowSymLinks - AllowOverride All - Order allow,deny - Allow from all -</Directory> diff --git a/www-misc/zoneminder/files/README.gentoo b/www-misc/zoneminder/files/README.gentoo deleted file mode 100644 index 2ada7c7..0000000 --- a/www-misc/zoneminder/files/README.gentoo +++ /dev/null @@ -1,27 +0,0 @@ -1. If this is a new installation, you will need to create a MySQL - database for zoneminder to use - (see https://wiki.gentoo.org/wiki/MySQL/Startup_Guide). - E.g., when logged into mysql as root, - mysql> CREATE DATABASE \`zm\`; - mysql> GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'topsecretpassword'; - Once you completed that you should execute the following: - cd /usr/share/zoneminder - mysql -u zmuser -p < db/zm_create.sql - -2. Set your database settings in /etc/zm.conf, including above topsecretpassword - -3. Configure apache to use zoneminder, see /usr/share/doc/zoneminder*/10_zoneminder.conf - for an example configuration snippet. - -4. Enable PHP in your webserver configuration, - enable short_open_tags in php.ini, - set the time zone in php.ini, - and restart/reload the webserver. - -5. Start the zoneminder daemon: - /etc/init.d/zoneminder start - -6. Finally point your browser to http://your.webserver/zoneminder - -If you are upgrading, you will need to run the zmupdate.pl script: - /usr/bin/zmupdate.pl --version=oldversionnumber [--user=zmuser --pass=topsecretpassword] diff --git a/www-misc/zoneminder/files/conf.d b/www-misc/zoneminder/files/conf.d deleted file mode 100644 index d2e0336..0000000 --- a/www-misc/zoneminder/files/conf.d +++ /dev/null @@ -1,6 +0,0 @@ -ZM_SCRIPT=/usr/bin/zmpkg.pl - -# Commands for starting and stopping the server - -CMD_START="${ZM_SCRIPT} start" -CMD_STOP="${ZM_SCRIPT} stop" diff --git a/www-misc/zoneminder/files/init.d b/www-misc/zoneminder/files/init.d deleted file mode 100644 index 025904a..0000000 --- a/www-misc/zoneminder/files/init.d +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -depend() { - need mysql - need apache2 -} - -start_pre() { - checkpath -d -m 0775 -o apache:apache /var/run/zm - checkpath -d -m 0775 -o apache:apache /var/tmp/zm -} - -start() { - ebegin "Starting zoneminder" - ${CMD_START} - eend $? -} - -stop() { - ebegin "Stopping zoneminder" - ${CMD_STOP} - eend $? -} diff --git a/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch b/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch deleted file mode 100644 index 266bd64..0000000 --- a/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 83e9d81..8619c8b 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -171,6 +171,7 @@ else(PCRE_LIBRARIES) - set(optlibsnotfound "${optlibsnotfound} PCRE") - endif(PCRE_LIBRARIES) - -+if(HAVE_GCRYPT) - # gcrypt (using find_library and find_path) - find_library(GCRYPT_LIBRARIES gcrypt) - if(GCRYPT_LIBRARIES) -@@ -187,7 +188,11 @@ if(GCRYPT_LIBRARIES) - else(GCRYPT_LIBRARIES) - set(optlibsnotfound "${optlibsnotfound} GCrypt") - endif(GCRYPT_LIBRARIES) -+else(HAVE_GCRYPT) -+ set(optlibsnotfound "${optlibsnotfound} GCrypt") -+endif(HAVE_GCRYPT) - -+if(HAVE_GNUTLS) - # gnutls (using find_library and find_path) - find_library(GNUTLS_LIBRARIES gnutls) - if(GNUTLS_LIBRARIES) -@@ -205,6 +210,9 @@ if(GNUTLS_LIBRARIES) - else(GNUTLS_LIBRARIES) - set(optlibsnotfound "${optlibsnotfound} GnuTLS") - endif(GNUTLS_LIBRARIES) -+else(HAVE_GNUTLS) -+ set(optlibsnotfound "${optlibsnotfound} GnuTLS") -+endif(HAVE_GNUTLS) - - # mysqlclient (using find_library and find_path) - find_library(MYSQLCLIENT_LIBRARIES mysqlclient PATH_SUFFIXES mysql) diff --git a/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch b/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch deleted file mode 100644 index cb64552..0000000 --- a/www-misc/zoneminder/files/zoneminder-1.28.1-mysql_include_path.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/CMakeLists.txt 2015-10-27 17:28:48.059203421 +0000 -+++ b/CMakeLists.txt 2015-10-27 17:30:11.951226715 +0000 -@@ -255,7 +255,16 @@ - if(MYSQLCLIENT_LIBRARIES) - set(HAVE_LIBMYSQLCLIENT 1) - list(APPEND ZM_BIN_LIBS "${MYSQLCLIENT_LIBRARIES}") -- find_path(MYSQLCLIENT_INCLUDE_DIR mysql/mysql.h) -+ find_file(MYSQL_CONFIG mysql_config) -+ if(MYSQL_CONFIG) -+ execute_process(COMMAND ${MYSQL_CONFIG} -+ --variable=pkgincludedir OUTPUT_VARIABLE -+ MYSQLCLIENT_INCLUDE_DIR) -+ STRING(REGEX REPLACE "\n" "" MYSQLCLIENT_INCLUDE_DIR -+ ${MYSQLCLIENT_INCLUDE_DIR}) -+ else() -+ find_path(MYSQLCLIENT_INCLUDE_DIR mysql/mysql.h) -+ endif() - if(MYSQLCLIENT_INCLUDE_DIR) - include_directories("${MYSQLCLIENT_INCLUDE_DIR}") - set(CMAKE_REQUIRED_INCLUDES "${MYSQLCLIENT_INCLUDE_DIR}") diff --git a/www-misc/zoneminder/files/zoneminder.service b/www-misc/zoneminder/files/zoneminder.service deleted file mode 100644 index 9ef5bc6..0000000 --- a/www-misc/zoneminder/files/zoneminder.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Video Security and Survellance System - -[Service] -Type=forking -ExecStart=/usr/bin/zmpkg.pl start -ExecReload=/usr/bin/zmpkg.pl reload -PIDFile=/run/zm/zm.pid - -[Install] -WantedBy=multi-user.target diff --git a/www-misc/zoneminder/metadata.xml b/www-misc/zoneminder/metadata.xml deleted file mode 100644 index 7c8aa13..0000000 --- a/www-misc/zoneminder/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>dilfridge@gentoo.org</email> - <name>Andreas K. Huettel</name> - </maintainer> - <use> - <flag name="curl">Enable using net-misc/curl for streaming from cameras</flag> - <flag name="gcrypt">...</flag> - <flag name="vlc">Enable using media-libs/vlc for streaming from cameras</flag> - </use> - <upstream> - <remote-id type="github">ZoneMinder/ZoneMinder</remote-id> - </upstream> -</pkgmetadata> diff --git a/www-misc/zoneminder/zoneminder-1.30.0.ebuild b/www-misc/zoneminder/zoneminder-1.30.0.ebuild deleted file mode 100644 index 60f3915..0000000 --- a/www-misc/zoneminder/zoneminder-1.30.0.ebuild +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# TO DO: -# * dependencies of unknown status: -# dev-perl/Device-SerialPort -# dev-perl/MIME-Lite -# dev-perl/MIME-tools -# dev-perl/PHP-Serialization -# virtual/perl-Archive-Tar -# virtual/perl-libnet -# virtual/perl-Module-Load - -EAPI=6 - -inherit perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd - -MY_PN="ZoneMinder" - -MY_CRUD_VERSION="3.0.10" - -DESCRIPTION="Capture, analyse, record and monitor any cameras attached to your system" -HOMEPAGE="http://www.zoneminder.com/" -SRC_URI=" - https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://github.com/FriendsOfCake/crud/archive/v${MY_CRUD_VERSION}.tar.gz -> Crud-${MY_CRUD_VERSION}.tar.gz -" - -LICENSE="GPL-2" -KEYWORDS="~amd64" -IUSE="curl ffmpeg gcrypt gnutls +mmap +ssl libressl vlc" -SLOT="0" - -REQUIRED_USE=" - || ( ssl gnutls ) -" - -DEPEND=" - app-eselect/eselect-php[apache2] - dev-lang/perl:= - dev-lang/php:*[apache2,cgi,curl,gd,inifile,pdo,mysql,mysqli,sockets] - dev-libs/libpcre - dev-perl/Archive-Zip - dev-perl/Class-Std-Fast - dev-perl/Data-Dump - dev-perl/Date-Manip - dev-perl/Data-UUID - dev-perl/DBD-mysql - dev-perl/DBI - dev-perl/IO-Socket-Multicast - dev-perl/SOAP-WSDL - dev-perl/Sys-CPU - dev-perl/Sys-MemInfo - dev-perl/URI-Encode - dev-perl/libwww-perl - sys-auth/polkit - sys-libs/zlib - virtual/ffmpeg - virtual/httpd-php:* - virtual/jpeg:0 - virtual/mysql - virtual/perl-ExtUtils-MakeMaker - virtual/perl-Getopt-Long - virtual/perl-Sys-Syslog - virtual/perl-Time-HiRes - www-servers/apache - curl? ( net-misc/curl ) - gcrypt? ( dev-libs/libgcrypt:0= ) - gnutls? ( net-libs/gnutls ) - mmap? ( dev-perl/Sys-Mmap ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - ) - vlc? ( media-video/vlc[live] ) -" -RDEPEND="${DEPEND}" - -# we cannot use need_httpd_cgi here, since we need to setup permissions for the -# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here. -need_apache - -S=${WORKDIR}/${MY_PN}-${PV} - -PATCHES=( - "${FILESDIR}/${PN}-1.26.5"-automagic.patch - "${FILESDIR}/${PN}-1.28.1"-mysql_include_path.patch -) - -MY_ZM_WEBDIR=/usr/share/zoneminder/www - -src_prepare() { - cmake-utils_src_prepare - - rmdir "${S}/web/api/app/Plugin/Crud" || die - mv "${WORKDIR}/crud-${MY_CRUD_VERSION}" "${S}/web/api/app/Plugin/Crud" || die -} - -src_configure() { - append-cxxflags -D__STDC_CONSTANT_MACROS - perl_set_version - - mycmakeargs=( - -DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr} - -DZM_TMPDIR=/var/tmp/zm - -DZM_SOCKDIR=/var/run/zm - -DZM_WEB_USER=apache - -DZM_WEB_GROUP=apache - -DZM_WEBDIR=${MY_ZM_WEBDIR} - -DZM_NO_MMAP="$(usex mmap OFF ON)" - -DZM_NO_X10=OFF - -DZM_NO_FFMPEG="$(usex ffmpeg OFF ON)" - -DZM_NO_CURL="$(usex curl OFF ON)" - -DZM_NO_LIBVLC="$(usex vlc OFF ON)" - -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL="$(usex ssl OFF ON)" - -DHAVE_GNUTLS="$(usex gnutls ON OFF)" - -DHAVE_GCRYPT="$(usex gcrypt ON OFF)" - ) - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - # the log directory - keepdir /var/log/zm - fowners apache:apache /var/log/zm - - # the logrotate script - insinto /etc/logrotate.d - newins distros/ubuntu1204/zoneminder.logrotate zoneminder - - # now we duplicate the work of zmlinkcontent.sh - keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp - fperms -R 0775 /var/lib/zoneminder - fowners -R apache:apache /var/lib/zoneminder - dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images - dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events - dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp - - # bug 523058 - keepdir ${MY_ZM_WEBDIR}/temp - fowners -R apache:apache ${MY_ZM_WEBDIR}/temp - - # the configuration file - fperms 0640 /etc/zm.conf - fowners root:apache /etc/zm.conf - - # init scripts etc - newinitd "${FILESDIR}"/init.d zoneminder - newconfd "${FILESDIR}"/conf.d zoneminder - - # systemd unit file - systemd_dounit "${FILESDIR}"/zoneminder.service - - cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf - sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g" - - dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf - - perl_delete_packlist - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - - local myold=${REPLACING_VERSIONS} - [ "${myold}" = ${PV} ] || elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script." -} |