1 |
commit: c66a9574205fcefe13c0b13a778af774f2703a0b |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 5 07:17:24 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 07:24:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c66a9574 |
7 |
|
8 |
www-misc/zoneminder: remove package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/642952 |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
profiles/package.mask | 6 - |
14 |
www-misc/zoneminder/Manifest | 2 - |
15 |
www-misc/zoneminder/files/10_zoneminder.conf | 16 -- |
16 |
www-misc/zoneminder/files/README.gentoo | 27 ---- |
17 |
www-misc/zoneminder/files/conf.d | 6 - |
18 |
www-misc/zoneminder/files/init.d | 25 --- |
19 |
.../files/zoneminder-1.30.2-diskspace.patch | 15 -- |
20 |
.../zoneminder/files/zoneminder-1.30.4-gcc7.patch | 28 ---- |
21 |
.../files/zoneminder-1.30.4-glibc226.patch | 24 --- |
22 |
.../files/zoneminder-1.30.4-path_zms.patch | 16 -- |
23 |
www-misc/zoneminder/files/zoneminder.service | 11 -- |
24 |
www-misc/zoneminder/metadata.xml | 13 -- |
25 |
www-misc/zoneminder/zoneminder-1.30.4-r2.ebuild | 178 --------------------- |
26 |
13 files changed, 367 deletions(-) |
27 |
|
28 |
diff --git a/profiles/package.mask b/profiles/package.mask |
29 |
index 8573974ee13..7e341e8262e 100644 |
30 |
--- a/profiles/package.mask |
31 |
+++ b/profiles/package.mask |
32 |
@@ -705,12 +705,6 @@ dev-tcltk/tcl-mccp |
33 |
# Masked for testing |
34 |
>=dev-libs/libressl-3.1.0 |
35 |
|
36 |
-# Joonas Niilola <juippis@g.o> (2020-04-05) |
37 |
-# Not maintained in Gentoo, doesn't build for 2 years, has only |
38 |
-# deprecated version present in Gentoo. Has a huge number of open |
39 |
-# bugs. Removal in 30 days. #642952 |
40 |
-www-misc/zoneminder |
41 |
- |
42 |
# Michał Górny <mgorny@g.o> (2020-04-04) |
43 |
# Package that used to provide test data for dev-python/cryptography. |
44 |
# The modern versions fetch it via SRC_URI and the last version |
45 |
|
46 |
diff --git a/www-misc/zoneminder/Manifest b/www-misc/zoneminder/Manifest |
47 |
deleted file mode 100644 |
48 |
index 186187f5099..00000000000 |
49 |
--- a/www-misc/zoneminder/Manifest |
50 |
+++ /dev/null |
51 |
@@ -1,2 +0,0 @@ |
52 |
-DIST Crud-3.1.0.tar.gz 72993 BLAKE2B d11938a0a667f6747bbe3609e51ccc5665b8d243e1787a5779319c679f1f20301afd6b0a14c5489976b9f66f57b5f18ef3ae0ee5a24e1368702cb43a5d564dd5 SHA512 7ec84afaa336b1bd582b7f39724f77081bdb3008947c4124ad96e4bc7755a03fbe31e01666d4d1939ebe17b342db37bf3766a42d88fbed0e99706807ff5b9d01 |
53 |
-DIST zoneminder-1.30.4.tar.gz 9937220 BLAKE2B feab8251b3f36f3fb91e1ea52a25b06e131a81c398f8c97a4ef304848bc65abaf5514bded1783c1ab6ec2287e279baa69d406e24191d59276315d7131af42104 SHA512 b55b2541bcaba08f89b95fdfb06b6cf3fc7b462b1f3fac2bb3fd6e8ee890735d4fac343c7625cf59b22fd25c19585900050cb5305b35aa8f6557421be09450b3 |
54 |
|
55 |
diff --git a/www-misc/zoneminder/files/10_zoneminder.conf b/www-misc/zoneminder/files/10_zoneminder.conf |
56 |
deleted file mode 100644 |
57 |
index eb9961d1322..00000000000 |
58 |
--- a/www-misc/zoneminder/files/10_zoneminder.conf |
59 |
+++ /dev/null |
60 |
@@ -1,16 +0,0 @@ |
61 |
-ScriptAlias /zm/cgi-bin "/usr/libexec/zoneminder/cgi-bin/" |
62 |
- |
63 |
-<Directory "/usr/libexec/zoneminder/cgi-bin"> |
64 |
- AllowOverride All |
65 |
- Options +ExecCGI |
66 |
- Require all granted |
67 |
-</Directory> |
68 |
- |
69 |
-Alias /zm "%ZM_WEBDIR%" |
70 |
- |
71 |
-<Directory "%ZM_WEBDIR%"> |
72 |
- Options -Indexes +MultiViews +FollowSymLinks |
73 |
- AllowOverride All |
74 |
- Require all granted |
75 |
-</Directory> |
76 |
- |
77 |
|
78 |
diff --git a/www-misc/zoneminder/files/README.gentoo b/www-misc/zoneminder/files/README.gentoo |
79 |
deleted file mode 100644 |
80 |
index 8713fda6f78..00000000000 |
81 |
--- a/www-misc/zoneminder/files/README.gentoo |
82 |
+++ /dev/null |
83 |
@@ -1,27 +0,0 @@ |
84 |
-1. If this is a new installation, you will need to create a MySQL |
85 |
- database for zoneminder to use |
86 |
- (see https://wiki.gentoo.org/wiki/MySQL/Startup_Guide). |
87 |
- E.g., when logged into mysql as root, |
88 |
- mysql> CREATE DATABASE \`zm\`; |
89 |
- mysql> grant select,insert,alter,update,lock tables,delete on zm.* to 'zmuser'@localhost identified by 'zmpass'; |
90 |
- mysql> flush privileges; |
91 |
- Once you completed that you should execute the following: |
92 |
- mysql -p < /usr/share/zoneminder/db/zm_create.sql |
93 |
- |
94 |
-2. Set your database settings in /etc/zm.conf, including above zmpass |
95 |
- |
96 |
-3. Configure apache to use zoneminder, see /usr/share/doc/zoneminder*/10_zoneminder.conf |
97 |
- for an example configuration snippet. |
98 |
- |
99 |
-4. Enable PHP in your webserver configuration, |
100 |
- enable short_open_tags in php.ini (likely on by default now) |
101 |
- set the time zone in php.ini, |
102 |
- and restart/reload the webserver. |
103 |
- |
104 |
-5. Start the zoneminder daemon: |
105 |
- /etc/init.d/zoneminder start |
106 |
- |
107 |
-6. Finally point your browser to http://your.webserver/zm |
108 |
- |
109 |
-If you are upgrading, you will need to run the zmupdate.pl script: |
110 |
- /usr/bin/zmupdate.pl |
111 |
|
112 |
diff --git a/www-misc/zoneminder/files/conf.d b/www-misc/zoneminder/files/conf.d |
113 |
deleted file mode 100644 |
114 |
index d2e03363867..00000000000 |
115 |
--- a/www-misc/zoneminder/files/conf.d |
116 |
+++ /dev/null |
117 |
@@ -1,6 +0,0 @@ |
118 |
-ZM_SCRIPT=/usr/bin/zmpkg.pl |
119 |
- |
120 |
-# Commands for starting and stopping the server |
121 |
- |
122 |
-CMD_START="${ZM_SCRIPT} start" |
123 |
-CMD_STOP="${ZM_SCRIPT} stop" |
124 |
|
125 |
diff --git a/www-misc/zoneminder/files/init.d b/www-misc/zoneminder/files/init.d |
126 |
deleted file mode 100644 |
127 |
index 6ee8a160155..00000000000 |
128 |
--- a/www-misc/zoneminder/files/init.d |
129 |
+++ /dev/null |
130 |
@@ -1,25 +0,0 @@ |
131 |
-#!/sbin/openrc-run |
132 |
-# Copyright 1999-2014 Gentoo Foundation |
133 |
-# Distributed under the terms of the GNU General Public License v2 |
134 |
- |
135 |
-depend() { |
136 |
- need mysql |
137 |
- need apache2 |
138 |
-} |
139 |
- |
140 |
-start_pre() { |
141 |
- checkpath -d -m 0775 -o apache:apache /var/run/zm |
142 |
- checkpath -d -m 0775 -o apache:apache /var/tmp/zm |
143 |
-} |
144 |
- |
145 |
-start() { |
146 |
- ebegin "Starting zoneminder" |
147 |
- ${CMD_START} |
148 |
- eend $? |
149 |
-} |
150 |
- |
151 |
-stop() { |
152 |
- ebegin "Stopping zoneminder" |
153 |
- ${CMD_STOP} |
154 |
- eend $? |
155 |
-} |
156 |
|
157 |
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch b/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch |
158 |
deleted file mode 100644 |
159 |
index fee5b783c35..00000000000 |
160 |
--- a/www-misc/zoneminder/files/zoneminder-1.30.2-diskspace.patch |
161 |
+++ /dev/null |
162 |
@@ -1,15 +0,0 @@ |
163 |
-https://forums.zoneminder.com/viewtopic.php?t=24534 |
164 |
-& personal message by simon@××××××××××.co_m |
165 |
- |
166 |
-diff -ruN ZoneMinder-1.30.2.orig/web/includes/functions.php ZoneMinder-1.30.2/web/includes/functions.php |
167 |
---- ZoneMinder-1.30.2.orig/web/includes/functions.php 2017-03-30 20:43:06.000000000 +0200 |
168 |
-+++ ZoneMinder-1.30.2/web/includes/functions.php 2017-04-16 21:13:43.841371345 +0200 |
169 |
-@@ -1442,7 +1442,7 @@ |
170 |
- return( $load[0] ); |
171 |
- } |
172 |
- |
173 |
--function getDiskPercent($path = ZM_DIR_EVENTS) { |
174 |
-+function getDiskPercent($path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS) { |
175 |
- $total = disk_total_space($path); |
176 |
- if ( $total === false ) { |
177 |
- Error("disk_total_space returned false. Verify the web account user has access to " . $path ); |
178 |
|
179 |
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch b/www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch |
180 |
deleted file mode 100644 |
181 |
index b022fbe35e1..00000000000 |
182 |
--- a/www-misc/zoneminder/files/zoneminder-1.30.4-gcc7.patch |
183 |
+++ /dev/null |
184 |
@@ -1,28 +0,0 @@ |
185 |
-From 97380f009b0e6a8bb6ee4ecbf0436045342cdf1e Mon Sep 17 00:00:00 2001 |
186 |
-From: abishai <abi@××××××.ru> |
187 |
-Date: Tue, 31 Jan 2017 10:42:57 +0300 |
188 |
-Subject: [PATCH] implement platform-agnostic comparison without abs() |
189 |
- |
190 |
---- |
191 |
- src/zm_image.cpp | 8 +++----- |
192 |
- 1 file changed, 3 insertions(+), 5 deletions(-) |
193 |
- |
194 |
-diff --git a/src/zm_image.cpp b/src/zm_image.cpp |
195 |
-index 9c8c12fda..80a821376 100644 |
196 |
---- a/src/zm_image.cpp |
197 |
-+++ b/src/zm_image.cpp |
198 |
-@@ -1658,11 +1658,9 @@ Image *Image::Highlight( unsigned int n_images, Image *images[], const Rgb thres |
199 |
- { |
200 |
- uint8_t *psrc = images[j]->buffer+c; |
201 |
- |
202 |
--#ifndef SOLARIS |
203 |
-- if ( (unsigned)abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) ) |
204 |
--#else |
205 |
-- if ( (unsigned)std::abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) ) |
206 |
--#endif |
207 |
-+ unsigned int diff = ((*psrc)-RGB_VAL(ref_colour,c)) > 0 ? (*psrc)-RGB_VAL(ref_colour,c) : RGB_VAL(ref_colour,c) - (*psrc); |
208 |
-+ |
209 |
-+ if (diff >= RGB_VAL(threshold,c)) |
210 |
- { |
211 |
- count++; |
212 |
- } |
213 |
|
214 |
diff --git a/www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch b/www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch |
215 |
deleted file mode 100644 |
216 |
index 34afe0cb3b6..00000000000 |
217 |
--- a/www-misc/zoneminder/files/zoneminder-1.30.4-glibc226.patch |
218 |
+++ /dev/null |
219 |
@@ -1,24 +0,0 @@ |
220 |
-From 417421b1d869d1b71c8ec1a1e3b082fcede6ce58 Mon Sep 17 00:00:00 2001 |
221 |
-From: Andrew Bauer <zonexpertconsulting@×××××××.com> |
222 |
-Date: Tue, 13 Jun 2017 14:39:12 -0500 |
223 |
-Subject: [PATCH] move include <sys/uio.h> outside defined(BSD) block (#1919) |
224 |
- |
225 |
---- |
226 |
- src/zm_comms.h | 2 +- |
227 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
228 |
- |
229 |
-diff --git a/src/zm_comms.h b/src/zm_comms.h |
230 |
-index cf108c1ea..ae5fd5b08 100644 |
231 |
---- a/src/zm_comms.h |
232 |
-+++ b/src/zm_comms.h |
233 |
-@@ -30,9 +30,9 @@ |
234 |
- |
235 |
- #include <set> |
236 |
- #include <vector> |
237 |
-+#include <sys/uio.h> |
238 |
- |
239 |
- #if defined(BSD) |
240 |
--#include <sys/uio.h> |
241 |
- #include <sys/socket.h> |
242 |
- #include <netinet/in.h> |
243 |
- #endif |
244 |
|
245 |
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 |
246 |
deleted file mode 100644 |
247 |
index 54772a14769..00000000000 |
248 |
--- a/www-misc/zoneminder/files/zoneminder-1.30.4-path_zms.patch |
249 |
+++ /dev/null |
250 |
@@ -1,16 +0,0 @@ |
251 |
-duplicate the work of utils/zmeditconfigdata.sh |
252 |
-https://github.com/ZoneMinder/ZoneMinder/commit/5a59a0375dd19f8e5af9b2acadec9f2bb16ee56c |
253 |
- |
254 |
-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 |
255 |
---- ZoneMinder-1.30.4.orig/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in 2017-08-30 14:55:31.894727925 +0100 |
256 |
-+++ ZoneMinder-1.30.4/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in 2017-08-30 14:57:05.050731752 +0100 |
257 |
-@@ -507,7 +507,7 @@ |
258 |
- }, |
259 |
- { |
260 |
- name => "ZM_PATH_ZMS", |
261 |
-- default => "/cgi-bin/nph-zms", |
262 |
-+ default => "/zm/cgi-bin/nph-zms", |
263 |
- description => "Web path to zms streaming server", |
264 |
- help => qqq(" |
265 |
- The ZoneMinder streaming server is required to send streamed |
266 |
- |
267 |
|
268 |
diff --git a/www-misc/zoneminder/files/zoneminder.service b/www-misc/zoneminder/files/zoneminder.service |
269 |
deleted file mode 100644 |
270 |
index 9ef5bc6ee55..00000000000 |
271 |
--- a/www-misc/zoneminder/files/zoneminder.service |
272 |
+++ /dev/null |
273 |
@@ -1,11 +0,0 @@ |
274 |
-[Unit] |
275 |
-Description=Video Security and Survellance System |
276 |
- |
277 |
-[Service] |
278 |
-Type=forking |
279 |
-ExecStart=/usr/bin/zmpkg.pl start |
280 |
-ExecReload=/usr/bin/zmpkg.pl reload |
281 |
-PIDFile=/run/zm/zm.pid |
282 |
- |
283 |
-[Install] |
284 |
-WantedBy=multi-user.target |
285 |
|
286 |
diff --git a/www-misc/zoneminder/metadata.xml b/www-misc/zoneminder/metadata.xml |
287 |
deleted file mode 100644 |
288 |
index c59068288ec..00000000000 |
289 |
--- a/www-misc/zoneminder/metadata.xml |
290 |
+++ /dev/null |
291 |
@@ -1,13 +0,0 @@ |
292 |
-<?xml version="1.0" encoding="UTF-8"?> |
293 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
294 |
-<pkgmetadata> |
295 |
- <!--maintainer-needed--> |
296 |
- <use> |
297 |
- <flag name="curl">Enable using net-misc/curl for streaming from cameras</flag> |
298 |
- <flag name="gcrypt">...</flag> |
299 |
- <flag name="vlc">Enable using media-libs/vlc for streaming from cameras</flag> |
300 |
- </use> |
301 |
- <upstream> |
302 |
- <remote-id type="github">ZoneMinder/ZoneMinder</remote-id> |
303 |
- </upstream> |
304 |
-</pkgmetadata> |
305 |
|
306 |
diff --git a/www-misc/zoneminder/zoneminder-1.30.4-r2.ebuild b/www-misc/zoneminder/zoneminder-1.30.4-r2.ebuild |
307 |
deleted file mode 100644 |
308 |
index b376f103bc8..00000000000 |
309 |
--- a/www-misc/zoneminder/zoneminder-1.30.4-r2.ebuild |
310 |
+++ /dev/null |
311 |
@@ -1,178 +0,0 @@ |
312 |
-# Copyright 1999-2020 Gentoo Authors |
313 |
-# Distributed under the terms of the GNU General Public License v2 |
314 |
- |
315 |
-# TO DO: |
316 |
-# * dependencies of unknown status: |
317 |
-# dev-perl/Device-SerialPort |
318 |
-# dev-perl/MIME-Lite |
319 |
-# dev-perl/MIME-tools |
320 |
-# dev-perl/PHP-Serialization |
321 |
-# virtual/perl-Archive-Tar |
322 |
-# virtual/perl-libnet |
323 |
-# virtual/perl-Module-Load |
324 |
- |
325 |
-EAPI=6 |
326 |
- |
327 |
-inherit eapi7-ver perl-functions readme.gentoo-r1 cmake-utils depend.apache flag-o-matic systemd |
328 |
- |
329 |
-MY_PN="ZoneMinder" |
330 |
- |
331 |
-MY_CRUD_VERSION="3.1.0" |
332 |
- |
333 |
-DESCRIPTION="Capture, analyse, record and monitor any cameras attached to your system" |
334 |
-HOMEPAGE="http://www.zoneminder.com/" |
335 |
-SRC_URI=" |
336 |
- https://github.com/${MY_PN}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
337 |
- https://github.com/FriendsOfCake/crud/archive/v${MY_CRUD_VERSION}.tar.gz -> Crud-${MY_CRUD_VERSION}.tar.gz |
338 |
-" |
339 |
- |
340 |
-LICENSE="GPL-2" |
341 |
-KEYWORDS="~amd64" |
342 |
-IUSE="curl ffmpeg gcrypt gnutls +mmap +ssl libressl vlc" |
343 |
-SLOT="0" |
344 |
- |
345 |
-REQUIRED_USE=" |
346 |
- || ( ssl gnutls ) |
347 |
-" |
348 |
- |
349 |
-DEPEND=" |
350 |
- app-eselect/eselect-php[apache2] |
351 |
- dev-db/mysql-connector-c:0= |
352 |
- dev-lang/perl:= |
353 |
- dev-lang/php:*[apache2,cgi,curl,gd,inifile,pdo,mysql,mysqli,sockets] |
354 |
- dev-libs/libpcre |
355 |
- dev-perl/Archive-Zip |
356 |
- dev-perl/Class-Std-Fast |
357 |
- dev-perl/Data-Dump |
358 |
- dev-perl/Date-Manip |
359 |
- dev-perl/Data-UUID |
360 |
- dev-perl/DBD-mysql |
361 |
- dev-perl/DBI |
362 |
- dev-perl/IO-Socket-Multicast |
363 |
- dev-perl/SOAP-WSDL |
364 |
- dev-perl/Sys-CPU |
365 |
- dev-perl/Sys-MemInfo |
366 |
- dev-perl/URI-Encode |
367 |
- dev-perl/libwww-perl |
368 |
- dev-php/pecl-apcu:* |
369 |
- sys-auth/polkit |
370 |
- sys-libs/zlib |
371 |
- media-video/ffmpeg |
372 |
- virtual/httpd-php:* |
373 |
- virtual/jpeg:0 |
374 |
- virtual/perl-ExtUtils-MakeMaker |
375 |
- virtual/perl-Getopt-Long |
376 |
- virtual/perl-Sys-Syslog |
377 |
- virtual/perl-Time-HiRes |
378 |
- www-servers/apache |
379 |
- curl? ( net-misc/curl ) |
380 |
- gcrypt? ( dev-libs/libgcrypt:0= ) |
381 |
- gnutls? ( net-libs/gnutls ) |
382 |
- mmap? ( dev-perl/Sys-Mmap ) |
383 |
- ssl? ( |
384 |
- !libressl? ( dev-libs/openssl:0= ) |
385 |
- libressl? ( dev-libs/libressl:0= ) |
386 |
- ) |
387 |
- vlc? ( media-video/vlc[live] ) |
388 |
-" |
389 |
-RDEPEND="${DEPEND}" |
390 |
- |
391 |
-# we cannot use need_httpd_cgi here, since we need to setup permissions for the |
392 |
-# webserver in global scope (/etc/zm.conf etc), so we hardcode apache here. |
393 |
-need_apache |
394 |
- |
395 |
-PATCHES=( |
396 |
- "${FILESDIR}/${PN}-1.30.2"-diskspace.patch |
397 |
- "${FILESDIR}/${PN}-1.30.4"-path_zms.patch |
398 |
- "${FILESDIR}/${PN}-1.30.4"-glibc226.patch |
399 |
- "${FILESDIR}/${PN}-1.30.4"-gcc7.patch |
400 |
-) |
401 |
- |
402 |
-MY_ZM_WEBDIR=/usr/share/zoneminder/www |
403 |
- |
404 |
-src_prepare() { |
405 |
- cmake-utils_src_prepare |
406 |
- |
407 |
- rmdir "${S}/web/api/app/Plugin/Crud" || die |
408 |
- mv "${WORKDIR}/crud-${MY_CRUD_VERSION}" "${S}/web/api/app/Plugin/Crud" || die |
409 |
-} |
410 |
- |
411 |
-src_configure() { |
412 |
- append-cxxflags -D__STDC_CONSTANT_MACROS |
413 |
- perl_set_version |
414 |
- export TZ=UTC # bug 630470 |
415 |
- mycmakeargs=( |
416 |
- -DZM_PERL_SUBPREFIX=${VENDOR_LIB#/usr} |
417 |
- -DZM_TMPDIR=/var/tmp/zm |
418 |
- -DZM_SOCKDIR=/var/run/zm |
419 |
- -DZM_WEB_USER=apache |
420 |
- -DZM_WEB_GROUP=apache |
421 |
- -DZM_WEBDIR=${MY_ZM_WEBDIR} |
422 |
- -DZM_NO_MMAP="$(usex mmap OFF ON)" |
423 |
- -DZM_NO_X10=OFF |
424 |
- -DZM_NO_FFMPEG="$(usex ffmpeg OFF ON)" |
425 |
- -DZM_NO_CURL="$(usex curl OFF ON)" |
426 |
- -DZM_NO_LIBVLC="$(usex vlc OFF ON)" |
427 |
- -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL="$(usex ssl OFF ON)" |
428 |
- -DHAVE_GNUTLS="$(usex gnutls ON OFF)" |
429 |
- -DHAVE_GCRYPT="$(usex gcrypt ON OFF)" |
430 |
- ) |
431 |
- |
432 |
- cmake-utils_src_configure |
433 |
- |
434 |
-} |
435 |
- |
436 |
-src_install() { |
437 |
- cmake-utils_src_install |
438 |
- |
439 |
- # the log directory |
440 |
- keepdir /var/log/zm |
441 |
- fowners apache:apache /var/log/zm |
442 |
- |
443 |
- # the logrotate script |
444 |
- insinto /etc/logrotate.d |
445 |
- newins distros/ubuntu1204/zoneminder.logrotate zoneminder |
446 |
- |
447 |
- # now we duplicate the work of zmlinkcontent.sh |
448 |
- keepdir /var/lib/zoneminder /var/lib/zoneminder/images /var/lib/zoneminder/events /var/lib/zoneminder/api_tmp |
449 |
- fperms -R 0775 /var/lib/zoneminder |
450 |
- fowners -R apache:apache /var/lib/zoneminder |
451 |
- dosym /var/lib/zoneminder/images ${MY_ZM_WEBDIR}/images |
452 |
- dosym /var/lib/zoneminder/events ${MY_ZM_WEBDIR}/events |
453 |
- dosym /var/lib/zoneminder/api_tmp ${MY_ZM_WEBDIR}/api/app/tmp |
454 |
- |
455 |
- # bug 523058 |
456 |
- keepdir ${MY_ZM_WEBDIR}/temp |
457 |
- fowners -R apache:apache ${MY_ZM_WEBDIR}/temp |
458 |
- |
459 |
- # the configuration file |
460 |
- fperms 0640 /etc/zm.conf |
461 |
- fowners root:apache /etc/zm.conf |
462 |
- |
463 |
- # init scripts etc |
464 |
- newinitd "${FILESDIR}"/init.d zoneminder |
465 |
- newconfd "${FILESDIR}"/conf.d zoneminder |
466 |
- |
467 |
- # systemd unit file |
468 |
- systemd_dounit "${FILESDIR}"/zoneminder.service |
469 |
- |
470 |
- cp "${FILESDIR}"/10_zoneminder.conf "${T}"/10_zoneminder.conf || die |
471 |
- sed -i "${T}"/10_zoneminder.conf -e "s:%ZM_WEBDIR%:${MY_ZM_WEBDIR}:g" || die |
472 |
- |
473 |
- dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README.md TODO "${T}"/10_zoneminder.conf |
474 |
- |
475 |
- perl_delete_packlist |
476 |
- |
477 |
- readme.gentoo_create_doc |
478 |
-} |
479 |
- |
480 |
-pkg_postinst() { |
481 |
- readme.gentoo_print_elog |
482 |
- |
483 |
- local v |
484 |
- for v in ${REPLACING_VERSIONS}; do |
485 |
- if ver_test ${PV} -gt ${v}; then |
486 |
- elog "You have upgraded zoneminder and may have to upgrade your database now using the 'zmupdate.pl' script." |
487 |
- fi |
488 |
- done |
489 |
-} |