public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/dilfridge:master commit in: www-misc/zoneminder/files/, www-misc/zoneminder/
Date: Fri, 25 Apr 2014 10:11:05 +0000 (UTC)	[thread overview]
Message-ID: <1398420619.07b388fddbfab0af99255f5d40d4043f2a3d6702.dilfridge@gentoo> (raw)

commit:     07b388fddbfab0af99255f5d40d4043f2a3d6702
Author:     Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 25 10:10:19 2014 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> 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
 }


             reply	other threads:[~2014-04-25 10:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25 10:11 Andreas Hüttel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-04-25 14:44 [gentoo-commits] dev/dilfridge:master commit in: www-misc/zoneminder/files/, www-misc/zoneminder/ Andreas Hüttel
2014-04-25 12:43 Andreas Hüttel
2013-12-25 21:24 Andreas Hüttel
2013-12-25 18:18 Andreas Hüttel
2013-12-17 23:38 Andreas Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1398420619.07b388fddbfab0af99255f5d40d4043f2a3d6702.dilfridge@gentoo \
    --to=dilfridge@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox