<?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>82311</bug_id>
          
          <creation_ts>2005-02-16 21:42 0000</creation_ts>
          <short_desc>net-www/apache dependency list should include lynx</short_desc>
          <delta_ts>2007-10-20 17:15:59 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>Applications</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dave@bonnell.org</reporter>
          <assigned_to>apache-bugs@gentoo.org</assigned_to>
          <cc>alex@1stleg.com</cc>
    
    <cc>jkt@gentoo.org</cc>
    
    <cc>kosmam@op.pl</cc>
    
    <cc>mail@wolle-hamburg.de</cc>
    
    <cc>plaes@plaes.org</cc>
    
    <cc>tacvbo@tacvbo.net</cc>

      

      
          <long_desc isprivate="0">
            <who>dave@bonnell.org</who>
            <bug_when>2005-02-16 21:42:55 0000</bug_when>
            <thetext>Emerged apache fine.  Ran &quot;apache2ctl status&quot; to check if it was automatically started and apache2ctl failed with error that &quot;lynx&quot; was not found.

Reproducible: Always
Steps to Reproduce:
1. System without apache or lynx
2. emerge apache
3. /usr/sbin/apache2ctl status

Actual Results:  
Failed with error &quot;lynx: program not found&quot;

Expected Results:  
&quot;emerge apache&quot; should have installeld lynx since it is a dependency (or at
least should be!).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dave@bonnell.org</who>
            <bug_when>2005-02-16 21:49:17 0000</bug_when>
            <thetext>net-www/apache version 2.0.52-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beu@gentoo.org</who>
            <bug_when>2005-02-26 09:45:29 0000</bug_when>
            <thetext>Apologies for the delay.

We decided not to list lynx as a dependency for apache for just two actions of a script.  Instead, we&apos;ve patched apache{,2}ctl to first check for lynx, and die if it&apos;s not found (instructing the user to emerge it).

Resolving FIXED.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-26 03:12:19 0000</bug_when>
            <thetext>*** Bug 103769 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-11-18 08:09:27 0000</bug_when>
            <thetext>*** Bug 112919 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-09-12 17:18:19 0000</bug_when>
            <thetext>*** Bug 192322 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-09-16 14:21:46 0000</bug_when>
            <thetext>*** Bug 192689 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mail@wolle-hamburg.de</who>
            <bug_when>2007-09-16 18:23:50 0000</bug_when>
            <thetext>/etc/init.d/apache2 in apache-2.2.6 needs to be patched as well</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-07 13:09:17 0000</bug_when>
            <thetext>*** Bug 194990 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-15 18:28:01 0000</bug_when>
            <thetext>*** Bug 195959 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jkt@gentoo.org</who>
            <bug_when>2007-10-18 14:30:41 0000</bug_when>
            <thetext>Stuff from comment #7 is still valid.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>alex@1stleg.com</who>
            <bug_when>2007-10-19 01:53:52 0000</bug_when>
            <thetext>(In reply to comment #10)
&gt; Stuff from comment #7 is still valid.
&gt; 

Marry Xmas, The current init.d script is a heap of shit, but they apache peepz at gentoo are not interested in fixing it.  So here is one a put together.

#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

opts=&quot;configtest fullstatus graceful gracefulstop modules reload&quot;

depend() {
        need net
        use mysql dns logger netmount postgresql
        after sshd
}

configtest() {
        ebegin &quot;Checking Apache Configuration&quot;
        checkconfig
        eend $?
}

checkconfig() {
        SERVERROOT=&quot;${SERVERROOT:-/usr/lib/apache2}&quot;
        if [ ! -d ${SERVERROOT} ]; then
                eerror &quot;SERVERROOT does not exist: ${SERVERROOT}&quot;
                return 1
        fi

        CONFIGFILE=&quot;${CONFIGFILE:-/etc/apache2/httpd.conf}&quot;
        [ &quot;${CONFIGFILE#/}&quot; = &quot;${CONFIGFILE}&quot; ] &amp;&amp; CONFIGFILE=&quot;${SERVERROOT}/${CONFIGFILE}&quot;
        if [ ! -r &quot;${CONFIGFILE}&quot; ]; then
                eerror &quot;Unable to read configuration file: ${CONFIGFILE}&quot;
                return 1
        fi

        APACHE2_OPTS=&quot;${APACHE2_OPTS} -d ${SERVERROOT}&quot;
        APACHE2_OPTS=&quot;${APACHE2_OPTS} -f ${CONFIGFILE}&quot;
        [ -n &quot;${STARTUPERRORLOG}&quot; ] &amp;&amp; APACHE2_OPTS=&quot;${APACHE2_OPTS} -E ${STARTUPERRORLOG}&quot;

        APACHE2=&quot;/usr/sbin/apache2&quot;

        ${APACHE2} ${APACHE2_OPTS} -t 1&gt;/dev/null 2&gt;&amp;1
        ret=$?
        if [ $ret -ne 0 ]; then
                eerror &quot;Apache2 has detected a syntax error in your configuration files:&quot;
                ${APACHE2} ${APACHE2_OPTS} -t
        fi

        return $ret
}

start() {
        checkconfig || return 1
        ebegin &quot;Starting apache2&quot;
        [ -f /var/log/apache2/ssl_scache ] &amp;&amp; rm /var/log/apache2/ssl_scache

        #Original Code: start-stop-daemon --start --exec ${APACHE2} -- ${APACHE2_OPTS} -k start
        ${APACHE2} ${APACHE2_OPTS} -k start
        eend $?
}

stop() {
        checkconfig || return 1
        ebegin &quot;Stopping apache2&quot;

        #Original Code: start-stop-daemon --stop --retry -TERM/5/-KILL/5 --exec ${APACHE2} --pidfile /var/run/apache2.pid
        ${APACHE2} ${APACHE2_OPTS} -k stop
        eend $?
}

reload() {
        RELOAD_TYPE=&quot;${RELOAD_TYPE:-graceful}&quot;

        checkconfig || return 1
        if [ &quot;${RELOAD_TYPE}&quot; = &quot;restart&quot; ]; then
                svc_restart
                
		# Original Code
                #RELOAD_SIGNAL=&quot;HUP&quot;
                #start-stop-daemon --stop --oknodo --signal HUP --exec ${APACHE2} --pidfile /var/run/apache2.pid
        elif [ &quot;${RELOAD_TYPE}&quot; = &quot;graceful&quot; ]; then
                ebegin &quot;Reloading apache2&quot;
                ${APACHE2} ${APACHE2_OPTS} -k graceful
                eend $?
		
		# Original Code
                #RELOAD_SIGNAL=&quot;USR1&quot;
                #start-stop-daemon --stop --oknodo --signal USR1 --exec ${APACHE2} --pidfile /var/run/apache2.pid
        else
                eerror &quot;${RELOAD_TYPE} is not a valid RELOAD_TYPE. Please edit /etc/conf.d/apache2&quot;
        fi
}

modules() {
        checkconfig || return 1

        ${APACHE2} ${APACHE2_OPTS} -M 2&gt;&amp;1
}

fullstatus() {
	# This is kind of a usless feature...
	checkconfig || return 1

        if pgrep -f &quot;${APACHE2} .*&quot; &gt;/dev/null ; then
                einfo &quot;http status:\tstarted&quot;
        else
                eerror &quot;http status:\tstopped&quot;
        fi
}</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hollow@gentoo.org</who>
            <bug_when>2007-10-20 17:15:59 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt;
&gt; Marry Xmas, The current init.d script is a heap of shit, but they apache peepz
&gt; at gentoo are not interested in fixing it.  So here is one a put together.
&gt; 

WTF?

fixed ...</thetext>
          </long_desc>
      
    </bug>

</bugzilla>