From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 40153138A1F for ; Fri, 25 Apr 2014 10:11:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B054AE0931; Fri, 25 Apr 2014 10:11:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3614BE0931 for ; Fri, 25 Apr 2014 10:11:08 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3E03433FEA1 for ; Fri, 25 Apr 2014 10:11:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 450501818D for ; Fri, 25 Apr 2014 10:11:05 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1398420619.07b388fddbfab0af99255f5d40d4043f2a3d6702.dilfridge@gentoo> Subject: [gentoo-commits] dev/dilfridge:master commit in: www-misc/zoneminder/files/, www-misc/zoneminder/ X-VCS-Repository: dev/dilfridge X-VCS-Files: www-misc/zoneminder/files/README.gentoo www-misc/zoneminder/zoneminder-1.26.5.ebuild X-VCS-Directories: www-misc/zoneminder/files/ www-misc/zoneminder/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 07b388fddbfab0af99255f5d40d4043f2a3d6702 X-VCS-Branch: master Date: Fri, 25 Apr 2014 10:11:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c0174f15-9af7-4341-9533-1958195b1dbb X-Archives-Hash: ee6f26665b1e9b7fe98f7299a06b845d commit: 07b388fddbfab0af99255f5d40d4043f2a3d6702 Author: Andreas K. Huettel gentoo org> AuthorDate: Fri Apr 25 10:10:19 2014 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Fri Apr 25 10:10:19 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=commit;h=07b388fd [www-misc/zoneminder] fix perl location, extra README file Package-Manager: portage-2.2.8-r1 --- www-misc/zoneminder/files/README.gentoo | 26 +++++++++++++++++++ www-misc/zoneminder/zoneminder-1.26.5.ebuild | 37 ++++------------------------ 2 files changed, 31 insertions(+), 32 deletions(-) diff --git a/www-misc/zoneminder/files/README.gentoo b/www-misc/zoneminder/files/README.gentoo new file mode 100644 index 0000000..b942043 --- /dev/null +++ b/www-misc/zoneminder/files/README.gentoo @@ -0,0 +1,26 @@ +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. Check /etc/apache2/vhosts.d/10_zoneminder.conf + +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://localhost/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/zoneminder-1.26.5.ebuild b/www-misc/zoneminder/zoneminder-1.26.5.ebuild index 7bd7ee3..df6b509 100644 --- a/www-misc/zoneminder/zoneminder-1.26.5.ebuild +++ b/www-misc/zoneminder/zoneminder-1.26.5.ebuild @@ -21,7 +21,9 @@ EAPI=5 -inherit readme.gentoo eutils base cmake-utils depend.php depend.apache multilib flag-o-matic +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" @@ -78,10 +80,10 @@ pkg_setup() { 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 @@ -119,34 +121,5 @@ src_install() { # dodir /var/www/zoneminder/htdocs/${DIR} # done - DOC_CONTENTS=" -1. If this is a new installation, you will need to create a MySQL\n - database for ${PN} to use\n - (see https://wiki.gentoo.org/wiki/MySQL/Startup_Guide).\n - E.g., when logged into mysql as root,\n - mysql> CREATE DATABASE \`zm\`;\n - mysql> GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'topsecretpassword';\n - Once you completed that you should execute the following:\n - cd /usr/share/${PN}\n - mysql -u zmuser -p < db/zm_create.sql\n -\n -2. Set your database settings in /etc/zm.conf, including above topsecretpassword\n -\n -3. Check /etc/apache2/vhosts.d/10_zoneminder.conf\n -\n -4. Enable PHP in your webserver configuration, \n - enable short_open_tags in php.ini,\n - set the time zone in php.ini, \n - and restart/reload the webserver.\n -\n -5. Start the ${PN} daemon:\n - /etc/init.d/${PN} start\n -\n -6. Finally point your browser to http://localhost/${PN}\n -\n -If you are upgrading, you will need to run the zmupdate.pl script:\n - /usr/bin/zmupdate.pl version= [--user= --pass=]\n -" - readme.gentoo_src_install }