Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102743 - zabbix-frontend doesn't install any files under /var/www/localhost/htdocs ???
Summary: zabbix-frontend doesn't install any files under /var/www/localhost/htdocs ???
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 12:09 UTC by gentoo
Modified: 2007-12-18 14:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
All Ebuilds for ZABBIX include 1.1beta2 (zabbix-all-ebuilds.tar.bz2,13.21 KB, application/x-bzip)
2005-10-25 02:31 UTC, Daniel M.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2005-08-16 12:09:04 UTC
Not a bug per se. But just wondering why the zabbix-frontend ebuild doesn't
install any site files under /var/www/localhost/htdocs (similar to the cacti and
phpmyadmin ebuilds). Do we have to manually link the files under /usr/share/zabbix ?


Reproducible: Always
Steps to Reproduce:
1. emerge zabbix-frontend

Actual Results:  
Files get installed under /usr/share/webapps/zabbix-frontend/.

Expected Results:  
Im assuming webapp-config should have configured a local instance under
/var/www/localhost/htdocs/.

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode
foomaticdb gd gdbm gif gstreamer gtk2 imlib ipv6 ithreads jpeg libg++ libwww mad
mcal mikmod motif mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam
pdflib perl png python quicktime readline sdl snmp spell ssl tcpd tiff truetype
truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Anatoly Shipitsin 2005-08-31 01:56:09 UTC
(In reply to comment #0)
> Not a bug per se. But just wondering why the zabbix-frontend ebuild doesn't
> install any site files under /var/www/localhost/htdocs (similar to the cacti
>and phpmyadmin ebuilds). Do we have to manually link the files under
>/usr/share/zabbix ?
No. Use webapp-config for install zabbix-frontend. 

> Actual Results:  
> Files get installed under /usr/share/webapps/zabbix-frontend/.
Yes. It need for proper use webapp-config. 

Comment 2 gentoo 2005-08-31 07:37:29 UTC
Shouldn't the ebuild run webapp-config for you? We dont need to run it manually for things like cacti or 
phpmyadmin. (I have no idea how to use webapp-config and Im sure Im not the only one).
Comment 3 Anatoly Shipitsin 2005-09-06 05:15:49 UTC
(In reply to comment #2)
> Shouldn't the ebuild run webapp-config for you? 
No
>We dont need to run it manually for things like cacti or phpmyadmin.
Really ? Compare this.

part of cacti-0.8.6f-r1.ebuild:
        webapp_configfile ${MY_HTDOCSDIR}/include/config.php
        webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt

        webapp_src_install

part of zabbix-frontend-1.1_alpha7.ebuild:
        webapp_src_preinst

        cp -R php/* "${D}/${MY_HTDOCSDIR}"

        webapp_src_install

I'm not found many differences. After install cacti you still need run
webapp-config.

>(I have no idea how to use webapp-config and Im sure Im not the only one).
You can install and configure apache, but can't understand use webapp-config? 
Strange. You can run this command: webapp-config --help ? ;)
Comment 4 gentoo 2005-09-06 08:32:37 UTC
(In reply to comment #3)

> (In reply to comment #2)
> > Shouldn't the ebuild run webapp-config for you? 
> No
> >We dont need to run it manually for things like cacti or phpmyadmin.
> Really ? Compare this.
> 
> part of cacti-0.8.6f-r1.ebuild:
>         webapp_configfile ${MY_HTDOCSDIR}/include/config.php
>         webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
> 
>         webapp_src_install
> 
> part of zabbix-frontend-1.1_alpha7.ebuild:
>         webapp_src_preinst
> 
>         cp -R php/* "${D}/${MY_HTDOCSDIR}"
> 
>         webapp_src_install
> 
> I'm not found many differences. After install cacti you still need run
> webapp-config.

Yes. BUT THE POINT IS, one doesn't need to manually run webapp-config after installing cacti to use it. 
All the files are already under localhost. If you want to TRULY compare the ebuilds, install cacti yourself 
and you'll see what I mean. I realize its "hard" for you to see this from a user's point of view.

> >(I have no idea how to use webapp-config and Im sure Im not the only one).
> You can install and configure apache, but can't understand use webapp-config? 

Silly comment - no, you dont need to know webapp-config to install and use Apache.

> Strange. You can run this command: webapp-config --help ? ;)

Why bother installing from the ebuild if I can download and install the tarball myself? (I mean it will be 
less work for me than using the ebuild). I think you are missing the point: the ebuild should make 
things easier, not harder.
Comment 5 Anatoly Shipitsin 2005-09-06 21:07:06 UTC
(In reply to comment #4)
> Yes. BUT THE POINT IS, one doesn't need to manually run webapp-config after
installing cacti to use it. 
Really ? Ok. I'm install cacti step-by-step:

step 1:

#emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -mcpu=pentium4 -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"

step 2:

# emerge search ^apache$
Searching...         e
[ Results for search key : ^apache$ ]
[ Applications found : 1 ]

*  net-www/apache
      Latest version available: 2.0.54-r14
      Latest version installed: 1.3.33-r10
      Size of downloaded files: 5,487 kB
      Homepage:    http://httpd.apache.org/
      Description: The Apache Web Server, Version 2.0.x
      License:     Apache-2.0

step 3:

#emerge search ^cacti$
Searching...                   u
[ Results for search key : ^cacti$ ]
[ Applications found : 1 ]

*  net-analyzer/cacti
      Latest version available: 0.8.6f-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 1,055 kB
      Homepage:    http://www.cacti.net/
      Description: Cacti is a complete frontend to rrdtool
      License:     GPL-2

step 4:

#ls -l /var/www/localhost/htdocs/
total 20
drwxr-xr-x  9 root root  113 Dec 27  2004 ackerTodo
-rw-r--r--  1 root root 2326 Jul 13 10:26 apache_pb.gif
-rw-r--r--  1 root root 2414 Jul 13 10:26 apache_pb2.gif
-rw-r--r--  1 root root 1443 Jul 13 10:26 index.html
-rw-r--r--  1 root root   19 Apr 29 13:55 npadmin.pwd
-rw-r--r--  1 root root   18 Jul 14 11:42 test.php
drwxr-xr-x  2 root root   38 Jul 14 11:43 zabbix

step 5:

# emerge cacti
Calculating dependencies  ...done!
...
...
 *
 * The 'vhosts' USE flag is switched ON
 * This means that Portage will not automatically run webapp-config to
 * complete the installation.
 *
 * To install cacti-0.8.6f-r1 into a virtual host, run the following command:
 *
 *     webapp-config -I -h <host> -d cacti cacti 0.8.6f-r1
 *
 * For more details, see the webapp-config(8) man page
>>> Regenerating /etc/ld.so.cache...
>>> net-analyzer/cacti-0.8.6f-r1 merged.
>>> Recording net-analyzer/cacti in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

step 6:

ls -l /var/www/localhost/htdocs/
total 20
drwxr-xr-x  9 root root  113 Dec 27  2004 ackerTodo
-rw-r--r--  1 root root 2326 Jul 13 10:26 apache_pb.gif
-rw-r--r--  1 root root 2414 Jul 13 10:26 apache_pb2.gif
-rw-r--r--  1 root root 1443 Jul 13 10:26 index.html
-rw-r--r--  1 root root   19 Apr 29 13:55 npadmin.pwd
-rw-r--r--  1 root root   18 Jul 14 11:42 test.php
drwxr-xr-x  2 root root   38 Jul 14 11:43 zabbix

> All the files are already under localhost. If you want to TRULY compare the
ebuilds, install cacti yourself 
> and you'll see what I mean. I realize its "hard" for you to see this from a
user's point of view.

Simple question where my cacti ? Right answer you can view upper:
 * To install cacti-0.8.6f-r1 into a virtual host, run the following command:
 *
 *     webapp-config -I -h <host> -d cacti cacti 0.8.6f-r1
 *
 * For more details, see the webapp-config(8) man page


> Silly comment - no, you dont need to know webapp-config to install and use Apache.

But you need know webapp-config for install webapps in gentoo.

> Why bother installing from the ebuild if I can download and install the
tarball myself? (I mean it will be 
> less work for me than using the ebuild). I think you are missing the point:
the ebuild should make 
> things easier, not harder.
webapp-config is webapps manage tool. We can't know how you configure apache and
your virtual hosts, but we can provide webapps manage tool, for easy manage
installed webapps.

Comment 6 Daniel M. 2005-10-25 02:31:16 UTC
Created attachment 71380 [details]
All Ebuilds for ZABBIX include 1.1beta2

I hope its useful.
Comment 7 karpi 2005-11-06 04:33:24 UTC
   I did not find it commands nowhere, so there it is:
webapp-config -I -h localhost zabbix 1.1_alpha7

   installs files into:
 /var/www/localhost/htdocs/zabbix/
Comment 8 Anatoly Shipitsin 2005-11-06 04:35:30 UTC
(In reply to comment #7)
>    I did not find it commands nowhere, so there it is:
> webapp-config -I -h localhost zabbix 1.1_alpha7
> 
>    installs files into:
>  /var/www/localhost/htdocs/zabbix/

you need modify command 

webapp-config -I -h localhost -d zabbix zabbix 1.1_alpha7
Comment 9 karpi 2005-11-06 04:37:58 UTC
(In reply to comment #7)
>    I did not find it commands nowhere, so there it is:
> webapp-config -I -h localhost zabbix 1.1_alpha7
> 
>    installs files into:
>  /var/www/localhost/htdocs/zabbix/

NO , sorry for my ignorance,, Ive send bad..:(

Right is there:

ls -l /usr/share/webapps/
ls -l /usr/share/webapps/zabbix-frontend/
webapp-config -I -h localhost -d zabbix zabbix-frontend 1.1_alpha7

sorry again..
(is there way to erase previous entry, plz ?)
Comment 10 Anatoly Shipitsin 2005-12-17 23:00:47 UTC
Install zabbix-frontend depends at USE flag vhosts. If vhosts enable frontend not install to /var/www/localhost/htdocs. If vhosts enable we need use webapp-config for proper install. May be add notice about this and close bug ?
Comment 11 Wolfram Schlich (RETIRED) gentoo-dev 2006-06-06 07:03:57 UTC
Taking this over from iggy.
Comment 12 Wolfram Schlich (RETIRED) gentoo-dev 2006-06-06 07:23:12 UTC
See bug #133230
Comment 13 Etaoin Shrdlu 2007-12-18 14:02:34 UTC
(In reply to comment #10)
> Install zabbix-frontend depends at USE flag vhosts. If vhosts enable frontend
> not install to /var/www/localhost/htdocs. If vhosts enable we need use
> webapp-config for proper install. May be add notice about this and close bug ?

The point is that webapp-config should run automatically (installing the app under localhost) if the vhosts USE flag is not set, and not run but display a notice about how to install under a given virtual host if the vhosts USE flag is set. I don't know about zabbiz-frontend, but the monolithic zabbix ebuild (with USE=frontend) does NOT currently behave this way, while imho it should.