<?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>83978</bug_id>
          
          <creation_ts>2005-03-03 10:29 0000</creation_ts>
          <short_desc>net-www/awstats ebuild erroneously replaces default value in  awstats.model.conf.file</short_desc>
          <delta_ts>2005-03-21 05:36:05 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>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jakub@gentoo.org</reporter>
          <assigned_to>ka0ttic@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-03-03 10:29:22 0000</bug_when>
            <thetext>Ebuild is replacing values in awstats.model.conf via sed, but the following value should NOT be replaced, it needs to be boolean. 


Reproducible: Always
Steps to Reproduce:
1. emerge awstats
Actual Results:  
# Possible values: 0 or 1
# Default: 0
#
PurgeLogFile=&quot;/var/log/apache/access_log&quot;

# This parameter is not used if PurgeLogFile=&quot;/var/log/apache/access_log&quot;
# Change : Effective for new updates only
# Possible values: 0 or 1
# Default: 0
#
ArchiveLogRecords=0


Expected Results:  
# Possible values: 0 or 1
# Default: 0
#
PurgeLogFile=0


# When PurgeLogFile is setup to 1, AWStats will clean your log file after
# processing it. You can however keep an archive file (saved in &quot;DirData&quot;) of
# all processed log records by setting this to 1 (For example if you want to
# use another log analyzer).
# This parameter is not used if PurgeLogFile=0</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Tutonka3000@aol.com</who>
            <bug_when>2005-03-03 12:19:30 0000</bug_when>
            <thetext>While we&apos;re looking at this ebuild, I noticed that the ebuild did not correctly execute line 50.  The configuration file erroneously points to /var/log/apache/access_log instead of /var/log/apache2/access_log.

Line 50 uses a variable APACHEVER which may not exist:
john # echo $APACHEVER

john #

Maybe I&apos;m doing something wrong?  I tried googleing APACHEVER and all it comes up with is makefiles which aren&apos;t that helpful.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-03-03 12:27:32 0000</bug_when>
            <thetext>John: Yes, that</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-03-03 12:27:32 0000</bug_when>
            <thetext>John: Yes, that´s another error (ebuild does not detect installed Apache version correctly). I did not notice this one. ;-)

Anyway, PurgeLogFile takes boolean only, i.e. 0/1. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ka0ttic@gentoo.org</who>
            <bug_when>2005-03-21 05:36:05 0000</bug_when>
            <thetext>Yeah the problem was the first sed expression should&apos;ve used ^LogFile instead
of just LogFile. It was replacing both LogFile and PurgeLogFile. Also, thanks
for pointing out ${APACHEVER}.  I think it is left over from the mess that
was (or still is mostly) awstats prior to me taking over maintainership.

Fixed in both 6.3-r2 and 6.4.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>