<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>212150</bug_id>
          
          <creation_ts>2008-03-03 02:00 0000</creation_ts>
          <short_desc>www-misc/zoneminder-1.23.1 - some apps are using wrong paths</short_desc>
          <delta_ts>2008-05-06 10:06:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>root@liwave.com</reporter>
          <assigned_to>web-apps@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>root@liwave.com</who>
            <bug_when>2008-03-03 02:00:15 0000</bug_when>
            <thetext>1. Permissions are incorrectly set on /var/run/zm. Process runs under &quot;apache&quot; user, but the owner is root.root, with rights set to rwxr-xr-x. This causes zm to fail to start with an error at line 167 in zmdc.pl. I changed the owner to root.apache and set the permissions to rwxrwxr-x.

2. The install sets ups two paths for the zoneminder. One path is /usr/share/webapps/zoneminder/1.23.1/htdocs the other is /var/www/localhost/htdocs/zoneminder. Some of the program functions use one path, while some use the other. This causes functions like saving jpeg images or generating movies to fail. As a work around, I deleted the folders /usr/share/webapps/zoneminder/1.23.1/htdocs/events and /usr/share/webapps/zoneminder/1.23.1/htdocs/images and created symbolic links in /usr/share/webapps/zoneminder/1.23.1/htdocs to /var/www/localhost/htdocs/zoneminder/events and /var/www/localhost/htdocs/zoneminder/images. This restored full functionally. 

3. The permissions for the files and directories in /var/www/localhost/htdocs/zoneminder where also set to root.root as the owner. I changed them to apache.apache


I installed the zoneminder-1.23.1 package as a new install on new server. Perhaps these issues do not appear when upgrading from earlier versions.




Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-03-03 08:09:16 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; 1. Permissions are incorrectly set on /var/run/zm. 

You hit a portage bug, has nothing to do with the ebuild which sets the permissions to apache:apache

&gt; 2. The install sets ups two paths for the zoneminder. 

That&apos;s how all webapps work on Gentoo and none of them has any trouble with that; nothing should use the master copy in /usr/share/webapps/${PN}/${PVR}. Symlinking is totally not any solution, it will break horribly w/ USE=vhosts. So, identifying why things get saved to a wrong place is needed instead.

&gt; 3. The permissions for the files and directories in
&gt; /var/www/localhost/htdocs/zoneminder where also set to root.root as the owner.
&gt; I changed them to apache.apache

Erm, of course. The *whole* website is totally NOT expected to be webserver-writeable. The ebuild sets htdocs/{events,images,sound} to be writeable by the webserver. Which additional directories *must* to be writeable by the webserver?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2008-03-07 09:28:07 0000</bug_when>
            <thetext>zoneminder does not support installation in multiple vhosts afaics, but since we do not know to which vhost you install it, you have to change /etc/zm.conf yourself i guess ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2008-05-06 10:06:18 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; zoneminder does not support installation in multiple vhosts afaics, but since
&gt; we do not know to which vhost you install it, you have to change /etc/zm.conf
&gt; yourself i guess ...
&gt; 

Which is why it should not use the webapp eclass. webapp-config can actually only do one thing: install webapps into vhosts. As zoneminder does not support such an installation type we shouldn&apos;t use the webapp eclass here.

I don&apos;t know my fixes to the ebuild are really the right way of doing it (it is installing in /var/www/zoneminder now) but I&apos;m happy about feedback.

Marking as fixed for now.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>