From owner-svn-ports-head@freebsd.org Thu Jun 23 19:40:47 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B59D3B73648; Thu, 23 Jun 2016 19:40:47 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7595C28CC; Thu, 23 Jun 2016 19:40:47 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5NJek8G008026; Thu, 23 Jun 2016 19:40:46 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5NJekt6008024; Thu, 23 Jun 2016 19:40:46 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201606231940.u5NJekt6008024@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Thu, 23 Jun 2016 19:40:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417398 - in head/multimedia/zoneminder: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 19:40:47 -0000 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