summaryrefslogtreecommitdiff
path: root/www-misc/zoneminder
diff options
context:
space:
mode:
Diffstat (limited to 'www-misc/zoneminder')
-rw-r--r--www-misc/zoneminder/Manifest13
-rw-r--r--www-misc/zoneminder/files/10_zoneminder.conf16
-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.d25
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch15
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch28
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch24
-rw-r--r--www-misc/zoneminder/files/zoneminder-1.30.4-path_zms.patch16
-rw-r--r--www-misc/zoneminder/files/zoneminder.service11
-rw-r--r--www-misc/zoneminder/metadata.xml13
-rw-r--r--www-misc/zoneminder/zoneminder-1.30.4-r1.ebuild178
12 files changed, 0 insertions, 372 deletions
diff --git a/www-misc/zoneminder/Manifest b/www-misc/zoneminder/Manifest
deleted file mode 100644
index 3bc2746da523..000000000000
--- a/www-misc/zoneminder/Manifest
+++ /dev/null
@@ -1,13 +0,0 @@
-AUX 10_zoneminder.conf 335 BLAKE2B 51d9672c948283c04e9c085828ca29fa962b6353d420b095fccb7b799f10ce22674a9b337e60ca2bfed9a477e9221ebca50cfe5778c35c386cd32eba39aab9e0 SHA512 3dbf37ee7423d208be5464d47ddbca0868fbe142b1e4cac82dc31e40375ffd32953f57911d3b6a74e59a54d6687c8d06e760a5dacfa8688f054b714242d7573f
-AUX README.gentoo 1103 BLAKE2B 264bf5cfff7c61a7ccac32260bad7aabf5e33e165560297e344f264df09d2f56a2cf9c317b6ae2d708c8a8dbc1202127cb8e587055bb0f43e1ac9af2a7202d1c SHA512 e6e4f8d1dad5f6d0f00f8f9d77086aa39f08f673d8d17babc59eb98eadff0f94a83fcea25321d64c941061ae80f7e563eb82ef28cf05bcb8d0a2d1fe4705ac7e
-AUX conf.d 138 BLAKE2B 41ccdedf00277d98a011ac56015c0e46b641df13bf1ad9828a0d62fc2459c43237918a7b4b59d2594de2f3ef01ee8cc89cf63aa79f56bdb368d837d0a9203819 SHA512 66a3447869a5c7ed613a90a81ae3b0464836a8d1804b195770dd4832e61e89f826998f58dba1ce42d7d411c543d485290e670b0bf929646ad99f48a996bc609a
-AUX init.d 415 BLAKE2B 1d72ddbabe6e39b771e18ca5605fdfebc975dd8998561c4a7fd59a40491448489d42ff58fa507143a4feb8b16c7ca1a926ee8ee62bac2a7687a3e624cef54772 SHA512 97ab5d9ddf450241513be6a778bcb346e449b3dab4d6b3d55be41dfe7bb48233a08a598f4306e2f9b35336ab14021b2a2b0e68ddef83bb121f720e11cfcd0bb5
-AUX zoneminder-1.30.2-diskspace.patch 709 BLAKE2B 64f622e171479d876a8d8f9afffdfd1b1c46f16eb8f5e543c50360f0a131a9bbaa5e0981a244893e6e98eaaf314ad9d0e9268db9c0dd0bd1669291fe5b59049e SHA512 e6fee1a1c1319fe55f271abf729f06d75bcdb97abe2fab3e426b51698b79384f894d48501b1f47c274425bc09e56ad59fb780ab5e51bc8b8f31cd9c8f152392a
-AUX zoneminder-1.30.4-gcc7.patch 1005 BLAKE2B 28462985a07575c18c5595aeeafe68f3c618a57795b78e0434183f99ae44d31a0769149330ee867297ce5fb8a3c3fa6a397049d0cffb0527f0c9cffb8bf28f14 SHA512 f7e43eed5d69cb2f750d280586fdf34e22031ae156b6287f16a73a97d8b2244da95fa47b22655c94f458c5032fae90d49beebea54723aed10569a824317b0fab
-AUX zoneminder-1.30.4-glibc226.patch 613 BLAKE2B 9569d50c9544b77fa69eefb95cdc5ee90b5cee4fd4d5309560114e94d27720c2771fd29d21991842df31a78537328835bd8971bcd47f52f2cc2574d0fc120e4c SHA512 93e4de15fd37c9f6eac33e8bf838bf1479a8d56edc53dc2b977ecb39d8884f5d797acb570a7124ad813bb44de8ad9869885f2e2d5cf6a8e7eeac90daf785d973
-AUX zoneminder-1.30.4-path_zms.patch 823 BLAKE2B 0b318fe9fb64538c7925a947f8766df6d8a2cea88289cc0a301f6f207c0beb046233d54d18d9d080767d41e76e7ac9632cd2c46ad2ede264daba08d81fe53244 SHA512 069fc4e9ff9c33a0d9004cf3f05f77200558dee86178a05618f3afcd39307488fb691a5c6c1adc66da640e768b1c36d28e705acc310e67ecdc8b47c973d28abc
-AUX zoneminder.service 212 BLAKE2B 4a7497025b8d315c5a77a6e1f0d80000c3eb363ced1f2285c6b594b871283eba941e267a4590fba5ea89fb3e1529dcec93a63d67025b569ba0411f9e42103680 SHA512 3824076594e18ee89ca28e622f87bf9bd51156d0ef9d71fe8d20d69b682ecf8c96fb779cbaf33f1709aec0ec9fd1b5448b8524c781510718549282e68c095a90
-DIST Crud-3.1.0.tar.gz 72993 BLAKE2B d11938a0a667f6747bbe3609e51ccc5665b8d243e1787a5779319c679f1f20301afd6b0a14c5489976b9f66f57b5f18ef3ae0ee5a24e1368702cb43a5d564dd5 SHA512 7ec84afaa336b1bd582b7f39724f77081bdb3008947c4124ad96e4bc7755a03fbe31e01666d4d1939ebe17b342db37bf3766a42d88fbed0e99706807ff5b9d01
-DIST zoneminder-1.30.4.tar.gz 9937220 BLAKE2B feab8251b3f36f3fb91e1ea52a25b06e131a81c398f8c97a4ef304848bc65abaf5514bded1783c1ab6ec2287e279baa69d406e24191d59276315d7131af42104 SHA512 b55b2541bcaba08f89b95fdfb06b6cf3fc7b462b1f3fac2bb3fd6e8ee890735d4fac343c7625cf59b22fd25c19585900050cb5305b35aa8f6557421be09450b3
-EBUILD zoneminder-1.30.4-r1.ebuild 4621 BLAKE2B 46d1289e2855fcbfec735c30fbec79d8d9e817e9815525c273558fd59669f9e3cd0c22d65a78ad2528e0f7d59dd4618a9c8fef184be72930883f15e4a500ab0a SHA512 cac13375351bef2e5bdfaa263474523f04aefcdd2112ec932c0b840e92e79987ae309a0495018fc023f10a697f215b86a247b664035127ecda772f83474b46a3
-MISC metadata.xml 461 BLAKE2B 1ddd88e61f5bcd0bfcf74092d91a8471b73ea6246b4ab92d0c94242f13147e91d9396ffe2ace7d801f29f5a6a42901cf0aaefaa6419b5a396a8cd5516f993051 SHA512 ae9340754117bf8a46817d4c63afb1ce79d3d34bbb8254e489fcc71fe548f3802e91f38a77d72abf7c0a7411b018a9ecbed2689880776619144557604619ca6d
diff --git a/www-misc/zoneminder/files/10_zoneminder.conf b/www-misc/zoneminder/files/10_zoneminder.conf
deleted file mode 100644
index eb9961d13224..000000000000
--- a/www-misc/zoneminder/files/10_zoneminder.conf
+++ /dev/null
@@ -1,16 +0,0 @@
-ScriptAlias /zm/cgi-bin "/usr/libexec/zoneminder/cgi-bin/"
-
-<Directory "/usr/libexec/zoneminder/cgi-bin">
- AllowOverride All
- Options +ExecCGI
- Require all granted
-</Directory>
-
-Alias /zm "%ZM_WEBDIR%"
-
-<Directory "%ZM_WEBDIR%">
- Options -Indexes +MultiViews +FollowSymLinks
- AllowOverride All
- Require all granted
-</Directory>
-
diff --git a/www-misc/zoneminder/files/README.gentoo b/www-misc/zoneminder/files/README.gentoo
deleted file mode 100644
index 8713fda6f78a..000000000000
--- 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 select,insert,alter,update,lock tables,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';
- mysql> flush privileges;
- Once you completed that you should execute the following:
- mysql -p < /usr/share/zoneminder/db/zm_create.sql
-
-2. Set your database settings in /etc/zm.conf, including above zmpass
-
-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 (likely on by default now)
- 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/zm
-
-If you are upgrading, you will need to run the zmupdate.pl script:
- /usr/bin/zmupdate.pl
diff --git a/www-misc/zoneminder/files/conf.d b/www-misc/zoneminder/files/conf.d
deleted file mode 100644
index d2e03363867a..000000000000
--- 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 6ee8a160155e..000000000000
--- a/www-misc/zoneminder/files/init.d
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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.30.2-diskspace.patch b/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
deleted file mode 100644
index fee5b783c356..000000000000
--- a/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-https://forums.zoneminder.com/viewtopic.php?t=24534
-& personal message by simon@rustyspoon.co_m
-
-diff -ruN ZoneMinder-1.30.2.orig/web/includes/functions.php ZoneMinder-1.30.2/web/includes/functions.php
---- ZoneMinder-1.30.2.orig/web/includes/functions.php 2017-03-30 20:43:06.000000000 +0200
-+++ ZoneMinder-1.30.2/web/includes/functions.php 2017-04-16 21:13:43.841371345 +0200
-@@ -1442,7 +1442,7 @@
- return( $load[0] );
- }
-
--function getDiskPercent($path = ZM_DIR_EVENTS) {
-+function getDiskPercent($path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS) {
- $total = disk_total_space($path);
- if ( $total === false ) {
- Error("disk_total_space returned false. Verify the web account user has access to " . $path );
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch b/www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch
deleted file mode 100644
index b022fbe35e17..000000000000
--- a/www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 97380f009b0e6a8bb6ee4ecbf0436045342cdf1e Mon Sep 17 00:00:00 2001
-From: abishai <abi@abinet.ru>
-Date: Tue, 31 Jan 2017 10:42:57 +0300
-Subject: [PATCH] implement platform-agnostic comparison without abs()
-
----
- src/zm_image.cpp | 8 +++-----
- 1 file changed, 3 insertions(+), 5 deletions(-)
-
-diff --git a/src/zm_image.cpp b/src/zm_image.cpp
-index 9c8c12fda..80a821376 100644
---- a/src/zm_image.cpp
-+++ b/src/zm_image.cpp
-@@ -1658,11 +1658,9 @@ Image *Image::Highlight( unsigned int n_images, Image *images[], const Rgb thres
- {
- uint8_t *psrc = images[j]->buffer+c;
-
--#ifndef SOLARIS
-- if ( (unsigned)abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
--#else
-- if ( (unsigned)std::abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
--#endif
-+ unsigned int diff = ((*psrc)-RGB_VAL(ref_colour,c)) > 0 ? (*psrc)-RGB_VAL(ref_colour,c) : RGB_VAL(ref_colour,c) - (*psrc);
-+
-+ if (diff >= RGB_VAL(threshold,c))
- {
- count++;
- }
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch b/www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch
deleted file mode 100644
index 34afe0cb3b67..000000000000
--- a/www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 417421b1d869d1b71c8ec1a1e3b082fcede6ce58 Mon Sep 17 00:00:00 2001
-From: Andrew Bauer <zonexpertconsulting@outlook.com>
-Date: Tue, 13 Jun 2017 14:39:12 -0500
-Subject: [PATCH] move include <sys/uio.h> outside defined(BSD) block (#1919)
-
----
- src/zm_comms.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/zm_comms.h b/src/zm_comms.h
-index cf108c1ea..ae5fd5b08 100644
---- a/src/zm_comms.h
-+++ b/src/zm_comms.h
-@@ -30,9 +30,9 @@
-
- #include <set>
- #include <vector>
-+#include <sys/uio.h>
-
- #if defined(BSD)
--#include <sys/uio.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #endif
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.4-path_zms.patch b/www-misc/zoneminder/files/zoneminder-1.30.4-path_zms.patch
deleted file mode 100644
index 54772a147693..000000000000
--- a/www-misc/zoneminder/files/zoneminder-1.30.4-path_zms.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-duplicate the work of utils/zmeditconfigdata.sh
-https://github.com/ZoneMinder/ZoneMinder/commit/5a59a0375dd19f8e5af9b2acadec9f2bb16ee56c
-
-diff -ruN ZoneMinder-1.30.4.orig/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in ZoneMinder-1.30.4/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in
---- ZoneMinder-1.30.4.orig/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in 2017-08-30 14:55:31.894727925 +0100
-+++ ZoneMinder-1.30.4/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in 2017-08-30 14:57:05.050731752 +0100
-@@ -507,7 +507,7 @@
- },
- {
- name => "ZM_PATH_ZMS",
-- default => "/cgi-bin/nph-zms",
-+ default => "/zm/cgi-bin/nph-zms",
- description => "Web path to zms streaming server",
- help => qqq("
- The ZoneMinder streaming server is required to send streamed
-
diff --git a/www-misc/zoneminder/files/zoneminder.service b/www-misc/zoneminder/files/zoneminder.service
deleted file mode 100644
index 9ef5bc6ee552..000000000000
--- 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 c59068288ecb..000000000000
--- a/www-misc/zoneminder/metadata.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!--maintainer-needed-->
- <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.4-r1.ebuild b/www-misc/zoneminder/zoneminder-1.30.4-r1.ebuild
deleted file mode 100644
index 046cf31ef6fb..000000000000
--- a/www-misc/zoneminder/zoneminder-1.30.4-r1.ebuild
+++ /dev/null
@@ -1,178 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# 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 eapi7-ver perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd
-
-MY_PN="ZoneMinder"
-
-MY_CRUD_VERSION="3.1.0"
-
-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/${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-db/mysql-connector-c:0=
- 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
- dev-php/pecl-apcu:*
- sys-auth/polkit
- sys-libs/zlib
- virtual/ffmpeg
- virtual/httpd-php:*
- virtual/jpeg:0
- 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
-
-PATCHES=(
- "${FILESDIR}/${PN}-1.30.2"-diskspace.patch
- "${FILESDIR}/${PN}-1.30.4"-path_zms.patch
- "${FILESDIR}/${PN}-1.30.4"-glibc226.patch
- "${FILESDIR}/${PN}-1.30.4"-gcc7.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
- export TZ=UTC # bug 630470
- 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 || die
- sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g" || die
-
- 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 v
- for v in ${REPLACING_VERSIONS}; do
- if ver_test ${PV} -gt ${v}; then
- elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script."
- fi
- done
-}