summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/zoneminder/ChangeLog13
-rw-r--r--www-misc/zoneminder/Manifest32
-rw-r--r--www-misc/zoneminder/files/10_zoneminder.conf18
-rw-r--r--www-misc/zoneminder/files/README.gentoo27
-rw-r--r--www-misc/zoneminder/files/conf.d6
-rw-r--r--www-misc/zoneminder/files/init.d26
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.24.2-db_upgrade_script_location.patch11
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch34
-rw-r--r--www-misc/zoneminder/metadata.xml13
-rw-r--r--www-misc/zoneminder/zoneminder-1.27.0.ebuild129
10 files changed, 309 insertions, 0 deletions
diff --git a/www-misc/zoneminder/ChangeLog b/www-misc/zoneminder/ChangeLog
new file mode 100644
index 000000000000..6cb075fdc0df
--- /dev/null
+++ b/www-misc/zoneminder/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for www-misc/zoneminder
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/ChangeLog,v 1.43 2014/04/25 14:43:39 dilfridge Exp $
+
+*zoneminder-1.27.0 (25 Apr 2014)
+
+ 25 Apr 2014; Andreas K. Huettel <dilfridge@gentoo.org>
+ +zoneminder-1.27.0.ebuild, +files/10_zoneminder.conf,
+ +files/zoneminder-1.24.2-db_upgrade_script_location.patch,
+ +files/zoneminder-1.26.5-automagic.patch, +files/README.gentoo,
+ +files/conf.d, +files/init.d, +metadata.xml:
+ Re-add ZoneMinder to portage
+
diff --git a/www-misc/zoneminder/Manifest b/www-misc/zoneminder/Manifest
new file mode 100644
index 000000000000..e62f0cdb2d60
--- /dev/null
+++ b/www-misc/zoneminder/Manifest
@@ -0,0 +1,32 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX 10_zoneminder.conf 444 SHA256 a8e3642eb6abbbbccd3dca354eef53314d10e9cba98bb886e9ac8efb1d9c6d65 SHA512 e8e13da2c6c9262fe52eb4de59c0f0b56ee51d7ef21596c36215b237f8379cb9a365afc19913b231262082b0792f8e9673626b95c3927e6e56f3d54b22ffa635 WHIRLPOOL c3f12e51e10e9c06210ffc634d79504d135cfb74b6cf19d8c89c5bbcda21c36f1b71c292ed37733d637c3250d4a88cf1ae329abd4fad198bce5a030a9ada178a
+AUX README.gentoo 1125 SHA256 0166c88bc134fe173125f3fa575d428e89382e2de029b69bbef1a00349a5965d SHA512 56e607fa40ea9f860c92e1eb2fffbf4b06b3b8ef510c6e057c28d2cc1150936300171db3ef4e926ef5e982723ab25c8f396b1bd60a299224fc7691ca177058ef WHIRLPOOL cbb7830a77ea3f15c92fed14c79388c4d1b615808f87c7ae8be9374b8f18477901472f60bf96a5922cd041566a55b9dade0df2d0f3cfcf33d8850b02984712be
+AUX conf.d 138 SHA256 65e935cb63bf3d072b9317842944d808550ef3f933d834bb95aaacf3253bd85c SHA512 66a3447869a5c7ed613a90a81ae3b0464836a8d1804b195770dd4832e61e89f826998f58dba1ce42d7d411c543d485290e670b0bf929646ad99f48a996bc609a WHIRLPOOL 9e2326d83fd63bd1ad38485024017813ff18c73d6b173c4f38506247dbbead97f5fbcde805966f3056131cb75bac250d74f7c048ac2d7bac54e78ef66faa65c7
+AUX init.d 524 SHA256 2ff38c2f716661eda982f17b0ebb2dbf483c8b68a8c35154e3e6db76fa473b27 SHA512 4c02c32e93d9971fd5d63548e22ca9d3cae24156bb55d10564d0b22511f5c553bb5ee72a8da577e7fba89618455cc6a8e8c7b3ba1a0806558d02e77eedaaaedc WHIRLPOOL 0e082f97ee8d52614e4b7c1f495f7f02c793bda90ef2e0d97398ebf5785bb080955437d3cde1b5a4acbe4f336a2377bb33dd275ff60292f26c77ca0dbbc3f590
+AUX zoneminder-1.24.2-db_upgrade_script_location.patch 412 SHA256 3ffaa44c013dd27c3e5e937de77158c60b4cd37f28e1fc42dd7283f80075b067 SHA512 c215b7bfc3bb500a5483c91a0532b350e1b70d31949e223163c709bc211133f3f4bfa3e499104fc1b6e70c229e8469dc37a2ae40365084e27ffa2b71c0ce1ce4 WHIRLPOOL ecc433d1d52f88f4c6eebe46caff28f456aad71aece47f76f3adee2d57275ed9b2c30400bb931c6c27cbd4614e9de8573a8eb5bffc73d08e566b04a1d2c420f1
+AUX zoneminder-1.26.5-automagic.patch 1064 SHA256 44b88912f3f98b7e9eddeb78890bef3dffe44c7475ebd3b7ec70354db4f0f33f SHA512 3bd257233d7b5a376418fed1285bd82aa69e83461251bd941a756acbf87189e23fe3b82c56105d12b90fd5d294ce9708dc8895440fc0f154f4590385fa42e657 WHIRLPOOL 3f495ada57e73d918784eb17bddd770898c1aa4f13294b600b5740b3d6fd5a1113a984b2c3de92cf2790ff1bba23ecd7646f36716951701fdb461bfb0e70de7c
+DIST zoneminder-1.27.0.tar.gz 1262653 SHA256 2f31c10e6c5930aedfa9f08edfa074ef1b168e5bdffb77a147d4e631bfb03ef2 SHA512 8a349558399381a9062365ddc8bd8f815e3800929914096b2e4ea63e4d6dd12054f7b849fab5bea4bcfc87ea60739479a55734c7075a74aab0622d35f1d2bb14 WHIRLPOOL 869811e289e11343ff0cd0bd078a477db3511ed3cc96574d71163e1ab9eaf703e26f7c526841164a41f8d1e1aae47eb7f198831999b0c39f2729199fe81f43c0
+EBUILD zoneminder-1.27.0.ebuild 3364 SHA256 adea56def4c0aeccbb46ff70256f7019766b4a4b787580ad7bc0c10765a4e37c SHA512 7f923aab4ad21e7846b62b9975cb6eb1d75d5a3ab93f3f8a6ebb812ad36b23e20a788694b8d4708c1c58cda93e70c1fc761e462fcd2faa4e51e660cdd2e066e8 WHIRLPOOL 97f434bca6b872cf488a71507c4a2b6d734920eb53373411bca2b8ef8a1c501867f23800ad824dec416135f72b32c38a1ace6fb17ef583650d22e7099251d7db
+MISC ChangeLog 568 SHA256 ed7f50ae5c4bb223a486b5feefbd23f512191d5e9f654d1d10569b86c6f3a96e SHA512 83caa46c74380d83491715f251267013848c0516264dd0268cfb235319fa5c97ac15cb9b7db0a82eab5f0414220d5cfc555032bdd0a8653c59618f8a07c40c6e WHIRLPOOL 4243b8286ac0d9f24057c57e19f9faf5b0effd21818d941cf05f5d7038466c863859a52305a8cf1dec7951b1d9c8372907d48ec80e9c21b399f71e9a8b7795f7
+MISC metadata.xml 352 SHA256 645e485888598f1537c2717c68d3cdad016c47bf0eb25ca41b9940f4e1586531 SHA512 0a9aca0b3e19021e10567e9808ac9ecd35d1f0576cb8f10697676ea4e57a735a76749b5088d9a47f2a10a9c7830d3ed35f93a08c67521b8324a29105560a32dc WHIRLPOOL bd10708c74d1a0c56cffa547458fe0154dcb07de34a01516a921cb2d17ac564efee6d86d5058df314cbbed30f2fe519c3bbbe6e06e3e07ec8805a1dd13917880
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iQJ8BAEBCABmBQJTWnR9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNUIxN0RGNTc1MjU3N0NBMEM1NDFDRUI5
+NEJGREY0NDg0QUQxNDJGAAoJEJS/30SErRQv0i4P/iDZoPLeK3Pj9O6XNKNopOft
+5fI1CQg+DR2K6ZMIO1Cw1HR04WPSxFjLLx4v1kxxS7tmajcs12SIbXs4do5IQz5b
+rqoIdPI5WZMUb1xjPSoymO/FcJ7vWtMyGlWj6Zc4jm8NcAvJZzmEvXlTqP41Ifcu
+0+fP+2xF3mTFsbZfjVT6dA7Jy9tMQeNvhc671gSAYSyIdxz0fEwCiWGzkP0H78Vh
+HsZXE3L0JKFg2TqSrpq4MKX6pugIMbXOI9BigajxDITFOTZppXXFf3PWZcxRsX1c
+uRN1vExKYEwS7TsCAp2gTd3PeDhesRuUoGhV9LKmG3yHGZAz6oQqoPrMz6l90KId
+YgO6xANw/oL7b1xvVsYK/DNwtAXdQvP02PZ4W5cWwwXxO2Gk6etvCfkezJPGelQn
+kqHQxwwvOHH679cNstkq778bBLyucRZoOn4pkOVRju0Rh9LQwOF0kmDEZFU+j5kJ
+eN5vN4LDZ2hO8U5y+b/XofJeiFb/81eoQMrdqjAeNkAOELPw3g6lzk8T9kJ1Po4J
+lPxCg4I3CQhGpwuyuwD77PB6xoBiPMYKZkOBE3Thh6LMc2B7jGDwlh7rFF+ptT6q
+EDhLjsWFlO6SHkikf6rKBNWxgEsVVnohQygqNijoXnBSc6m/7G7ZlN/301nh1A4B
+yKAb/PMckFEeQOM8Nm3e
+=h1w8
+-----END PGP SIGNATURE-----
diff --git a/www-misc/zoneminder/files/10_zoneminder.conf b/www-misc/zoneminder/files/10_zoneminder.conf
new file mode 100644
index 000000000000..277d680d24b4
--- /dev/null
+++ b/www-misc/zoneminder/files/10_zoneminder.conf
@@ -0,0 +1,18 @@
+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
new file mode 100644
index 000000000000..2ada7c7d0a45
--- /dev/null
+++ b/www-misc/zoneminder/files/README.gentoo
@@ -0,0 +1,27 @@
+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
new file mode 100644
index 000000000000..d2e03363867a
--- /dev/null
+++ b/www-misc/zoneminder/files/conf.d
@@ -0,0 +1,6 @@
+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
new file mode 100644
index 000000000000..66415c0e6bdd
--- /dev/null
+++ b/www-misc/zoneminder/files/init.d
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/files/init.d,v 1.5 2014/04/25 14:43:40 dilfridge Exp $
+
+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.24.2-db_upgrade_script_location.patch b/www-misc/zoneminder/files/zoneminder-1.24.2-db_upgrade_script_location.patch
new file mode 100644
index 000000000000..41b537c4167a
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder-1.24.2-db_upgrade_script_location.patch
@@ -0,0 +1,11 @@
+--- ZoneMinder-1.24.1/zm.conf.in.orig 2009-03-23 13:55:43.000000000 +0000
++++ ZoneMinder-1.24.1/zm.conf.in 2009-03-23 13:57:22.000000000 +0000
+@@ -13,7 +13,7 @@
+ ZM_VERSION=@VERSION@
+
+ # Path to build directory, used mostly for finding DB upgrade scripts
+-ZM_PATH_BUILD=@PATH_BUILD@
++ZM_PATH_BUILD=/usr/share/zoneminder
+
+ # Build time, used to record when to trigger various checks
+ ZM_TIME_BUILD=@TIME_BUILD@
diff --git a/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch b/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch
new file mode 100644
index 000000000000..266bd649baa6
--- /dev/null
+++ b/www-misc/zoneminder/files/zoneminder-1.26.5-automagic.patch
@@ -0,0 +1,34 @@
+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/metadata.xml b/www-misc/zoneminder/metadata.xml
new file mode 100644
index 000000000000..bd56d97e7ada
--- /dev/null
+++ b/www-misc/zoneminder/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>dilfridge@gentoo.org</email>
+ <name>Andreas K. Huettel</name>
+ </maintainer>
+ <use>
+ <flag name="gcrypt">...</flag>
+ <flag name="vlc">...</flag>
+ <flag name="openssl">...</flag>
+ </use>
+</pkgmetadata>
diff --git a/www-misc/zoneminder/zoneminder-1.27.0.ebuild b/www-misc/zoneminder/zoneminder-1.27.0.ebuild
new file mode 100644
index 000000000000..0422a642d718
--- /dev/null
+++ b/www-misc/zoneminder/zoneminder-1.27.0.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/zoneminder/zoneminder-1.27.0.ebuild,v 1.1 2014/04/25 14:43:39 dilfridge Exp $
+
+# TO DO:
+# * ffmpeg support can be disabled in CMakeLists.txt but it does not build then
+# $(cmake-utils_useno ffmpeg ZM_NO_FFMPEG)
+# * dependencies of unknown status:
+# dev-perl/Archive-Zip
+# 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=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+
+inherit perl-module readme.gentoo eutils base cmake-utils depend.php depend.apache multilib flag-o-matic
+
+MY_PN="ZoneMinder"
+
+DESCRIPTION="ZoneMinder allows you to 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"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+IUSE="gcrypt gnutls mmap +openssl vlc"
+SLOT="0"
+
+REQUIRED_USE="
+ || ( openssl gnutls )
+"
+
+DEPEND="
+ dev-lang/perl:=
+ dev-libs/libpcre
+ dev-perl/DateManip
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/libwww-perl
+ sys-libs/zlib
+ virtual/ffmpeg
+ virtual/jpeg
+ virtual/mysql
+ virtual/perl-ExtUtils-MakeMaker
+ virtual/perl-Getopt-Long
+ virtual/perl-Sys-Syslog
+ virtual/perl-Time-HiRes
+ gcrypt? ( dev-libs/libgcrypt )
+ gnutls? ( net-libs/gnutls )
+ mmap? ( dev-perl/Sys-Mmap )
+ openssl? ( dev-libs/openssl )
+ vlc? ( media-video/vlc )
+"
+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
+need_php_httpd
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.26.5"-automagic.patch
+)
+
+MY_ZM_WEBDIR=/usr/share/zoneminder/www
+
+pkg_setup() {
+ require_php_with_use mysql sockets apache2
+}
+
+src_configure() {
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+ perl_set_version
+
+ mycmakeargs=(
+ -DZM_PERL_SUBPREFIX=${VENDOR_LIB}
+ -DZM_TMPDIR=/var/tmp/zm
+ -DZM_WEB_USER=apache
+ -DZM_WEB_GROUP=apache
+ -DZM_WEBDIR=${MY_ZM_WEBDIR}
+ $(cmake-utils_useno mmap ZM_NO_MMAP)
+ -DZM_NO_X10=OFF
+ -DZM_NO_FFMPEG=OFF
+ $(cmake-utils_useno vlc ZM_NO_VLC)
+ $(cmake-utils_useno openssl CMAKE_DISABLE_FIND_PACKAGE_OpenSSL)
+ $(cmake-utils_use_has gnutls)
+ $(cmake-utils_use_has gcrypt)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # the log directory
+ keepdir /var/log/zm
+ fowners apache:apache /var/log/zm
+
+ # now we duplicate the work of zmlinkcontent.sh
+ dodir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events
+ 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
+
+ # 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
+
+ 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
+
+ readme.gentoo_src_install
+}