Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2016 19:40:46 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417398 - in head/multimedia/zoneminder: . files
Message-ID:  <201606231940.u5NJekt6008024@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Jun 23 19:40:46 2016
New Revision: 417398
URL: https://svnweb.freebsd.org/changeset/ports/417398

Log:
  - Add missing php dependencies, works with PHP7
  - Documentation tweaks
  
  PR:		210442
  Submitted by:	maintainer

Modified:
  head/multimedia/zoneminder/Makefile
  head/multimedia/zoneminder/files/README.FreeBSD

Modified: head/multimedia/zoneminder/Makefile
==============================================================================
--- head/multimedia/zoneminder/Makefile	Thu Jun 23 19:09:15 2016	(r417397)
+++ head/multimedia/zoneminder/Makefile	Thu Jun 23 19:40:46 2016	(r417398)
@@ -4,6 +4,7 @@ PORTNAME=	zoneminder
 PORTVERSION=	1.30.0
 DISTVERSIONPREFIX=v
 DISTVERSIONSUFFIX=-rc1
+PORTREVISION=	1
 CATEGORIES=	multimedia
 
 MAINTAINER=	bsd@abinet.ru
@@ -36,10 +37,9 @@ GH_TAGNAME=	c3976f1:crud
 
 WRKSRC=		${WRKDIR}/ZoneMinder-${DISTVERSION}${DISTVERSIONSUFFIX}
 
-USES=		cmake jpeg mysql perl5 shebangfix
+USES=		cmake jpeg mysql perl5 php shebangfix
 USE_RC_SUBR=	zoneminder
-PHP=		json pdo_mysql session
-IGNORE_WITH_PHP=70
+USE_PHP=	json pdo_mysql session gd sockets
 
 ONLY_FOR_ARCHS=	amd64 i386
 

Modified: head/multimedia/zoneminder/files/README.FreeBSD
==============================================================================
--- head/multimedia/zoneminder/files/README.FreeBSD	Thu Jun 23 19:09:15 2016	(r417397)
+++ head/multimedia/zoneminder/files/README.FreeBSD	Thu Jun 23 19:40:46 2016	(r417398)
@@ -14,18 +14,12 @@ the same server.
 
 1. Preliminary steps
 
-1.1 Install databases/mysql56-server
+1.1 Install databases/mysql56-server or newer
 	You may choose your favourite method - ports or packages here. 
-	FreeBSD default setting use STRICT_TRANS_TABLES sql_mode. It's mandatory to disable it. Edit your my.cnf or create new in /var/db/mysql
-	
-	The following example works with ZoneMinder quite well
+	FreeBSD default setting use STRICT_TRANS_TABLES sql_mode. It's mandatory to disable it. Edit your my.cnf accordingly
 
-	[server]
-		skip-networking
-		skip-name-resolve
-		innodb_flush_method = O_DIRECT
-		skip-innodb_doublewrite
-		innodb_file_per_table
+	The following SQL mode should be compatible with ZM:
+		sql_mode= NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
 
 	ZoneMinder use very simple queries, however it tends to write to 
 	the database quite a lot depending on your capture mode and number 
@@ -105,7 +99,7 @@ the same server.
 	exec(). Sorry, chroot folks. 
 
 	PHP throws warning if date.timezone option is not set. The best place 
-	to do it is an ini file in /usr/local/etc/php 
+	to do it is to create new ini file in /usr/local/etc/php with overrides
 
 		date.timezone = "UTC"
 
@@ -148,10 +142,6 @@ the same server.
 	other than zmuser/zmpass then you must now edit /usr/local/etc/zm.conf. Change
 	ZM_DB_USER and ZM_DB_PASS to the values you created in the previous step.
 
-	Additionally, you must also edit 
-	/usr/local/www/zoneminder/api/app/Config/database.php in a similar 
-	manner. Scroll down and change login and password to the values you created in the previous step.
-
 	Enable and start ZoneMinder
 		sysrc zoneminder_enable="YES"
 		service zoneminder start



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606231940.u5NJekt6008024>