Your message dated Wed, 19 May 2010 12:17:10 +0000
with message-id <[email protected]>
and subject line Bug#580692: fixed in awstats 6.9.5~dfsg-3
has caused the Debian Bug report #580692,
regarding awstats: Add option to disable nightly generation of static html 
reports
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
580692: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580692
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: awstats
Version: 6.9.5~dfsg-2
Severity: wishlist
Tags: patch


The script buildstatic.sh is run by cron every night to create static
html reports in /var/cache/awstats.  I would prefer not to have static
reports generated, so I created an option in /etc/default/awstat to
turn off this feature.

With inspiration from /etc/default/rsync and /etc/init.d/rsync, I set up
an option in /etc/default/awstat called AWSTATS_ENABLE_BUILDSTATICPAGES.
If set to "yes" then buildstatic.sh will run every night to build
static pages.  If set to "no" (which I think should be the default, but
feel free to make up your own mind), then buildstatic.sh will not build
static pages.  I placed a short note in README.Debian about it.

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages awstats depends on:
ii  perl                     5.10.0-19lenny2 Larry Wall's Practical Extraction 

Versions of packages awstats recommends:
ii  libnet-xwhois-perl            0.90-3     Whois Client Interface for Perl5

Versions of packages awstats suggests:
pn  apache2 | httpd            <none>        (no description available)
pn  libgeo-ipfree-perl         <none>        (no description available)
pn  libnet-dns-perl            <none>        (no description available)
pn  libnet-ip-perl             <none>        (no description available)
ii  liburi-perl                1.35.dfsg.1-1 Manipulates and accesses URI strin

-- no debconf information
>From 3492ee4e32a1dd2cafa982c6603b7f8afe14564d Mon Sep 17 00:00:00 2001
From: Ken Neighbors <[email protected]>
Date: Wed, 28 Apr 2010 22:31:40 -0700
Subject: Add option to disable nightly generation of static html reports.

---
 debian/README.Debian   |    1 +
 debian/buildstatic.sh  |    5 +++++
 debian/default/awstats |    4 ++++
 3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index d5a9a1e..ed8b69f 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -8,6 +8,7 @@ Do the following for a simple setup of a single website with 
Apache 2.x:
 
   * Edit /etc/logrotate.d/apache2 to permit www-data access to logfiles
   * copy /usr/share/doc/awstats/examples/apache.conf to /etc/apache2/conf.d/
+  * edit /etc/default/awstats to enable nightly build of static html reports
 
 The above is _NOT_ supported or recommended! Please read the rest of this
 document instead...
diff --git a/debian/buildstatic.sh b/debian/buildstatic.sh
index 9f41cbc..ca09cc7 100755
--- a/debian/buildstatic.sh
+++ b/debian/buildstatic.sh
@@ -14,6 +14,11 @@ 
BUILDSTATICPAGES=/usr/share/awstats/tools/awstats_buildstaticpages.pl
 [ -f $AWSTATS -a -f $BUILDSTATICPAGES ] || exit 1
 [ -r "$DEFAULT" ] && . "$DEFAULT"
 
+ENABLE=${AWSTATS_ENABLE_BUILDSTATICPAGES:-no}
+if [ "$ENABLE" != "yes" ]; then
+  exit 0
+fi
+
 cd /etc/awstats
 
 TMPFILE=`mktemp /tmp/awstats.XXXXXXXXXX`
diff --git a/debian/default/awstats b/debian/default/awstats
index 3785ea3..d8830cc 100644
--- a/debian/default/awstats
+++ b/debian/default/awstats
@@ -1,5 +1,9 @@
 # AWStats configuration options
 
+# This variable controls whether to create static html reports every
+# night in /var/cache/awstats/.  Set to "yes" or "no".
+AWSTATS_ENABLE_BUILDSTATICPAGES="no"
+
 # This variable control the language of all static html reports.  Set
 # one to appropriate two-letter language code (default to en).
 #AWSTATS_LANG=ru
-- 
1.5.6.5

# AWStats configuration options

# This variable controls whether to create static html reports every
# night in /var/cache/awstats/.  Set to "yes" or "no".
AWSTATS_ENABLE_BUILDSTATICPAGES="no"

# This variable control the language of all static html reports.  Set
# one to appropriate two-letter language code (default to en).
#AWSTATS_LANG=ru
#!/bin/sh
##
## buildstatic.sh, written by Sergey B Kirpichev <[email protected]> 
##
## Build all static html reports from AWStats data (Debian specific)
##

set -e

DEFAULT=/etc/default/awstats
AWSTATS=/usr/lib/cgi-bin/awstats.pl
BUILDSTATICPAGES=/usr/share/awstats/tools/awstats_buildstaticpages.pl

[ -f $AWSTATS -a -f $BUILDSTATICPAGES ] || exit 1
[ -r "$DEFAULT" ] && . "$DEFAULT"

ENABLE=${AWSTATS_ENABLE_BUILDSTATICPAGES:-no}
if [ "$ENABLE" != "yes" ]; then
  exit 0
fi

cd /etc/awstats

TMPFILE=`mktemp /tmp/awstats.XXXXXXXXXX`
for c in awstats \
         `/bin/ls -1 awstats.*.conf 2>/dev/null | \
          /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'`
do
  Y=`date +%Y`
  m=`date +%m`
  mkdir -p /var/cache/awstats/$c/$Y/$m/
  AL=${AWSTATS_LANG:-en}
  if ! $BUILDSTATICPAGES \
    -config=$c \
	-year=$Y \
	-month=$m \
	-lang=$AL \
	-staticlinksext=${AL}.html \
	-dir=/var/cache/awstats/$c/$Y/$m/ >$TMPFILE 2>&1
  then
    # an error occurred
    cat $TMPFILE >&2
  fi
done
rm -f $TMPFILE

--- End Message ---
--- Begin Message ---
Source: awstats
Source-Version: 6.9.5~dfsg-3

We believe that the bug you reported is fixed in the latest version of
awstats, which is due to be installed in the Debian FTP archive:

awstats_6.9.5~dfsg-3.debian.tar.gz
  to main/a/awstats/awstats_6.9.5~dfsg-3.debian.tar.gz
awstats_6.9.5~dfsg-3.dsc
  to main/a/awstats/awstats_6.9.5~dfsg-3.dsc
awstats_6.9.5~dfsg-3_all.deb
  to main/a/awstats/awstats_6.9.5~dfsg-3_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <[email protected]> (supplier of updated awstats package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Wed, 19 May 2010 13:53:50 +0200
Source: awstats
Binary: awstats
Architecture: source all
Version: 6.9.5~dfsg-3
Distribution: unstable
Urgency: low
Maintainer: Debian AWStats Team <[email protected]>
Changed-By: Jonas Smedegaard <[email protected]>
Description: 
 awstats    - powerful and featureful web server log analyzer
Closes: 350601 572353 580672 580692 580693 580704
Changes: 
 awstats (6.9.5~dfsg-3) unstable; urgency=low
 .
   [ Sergey B Kirpichev ]
   * Show error messages from cron jobs.
     Closes: bug#580672, thanks to Ken Neighbors.
   * Add option to disable nightly generation of static html reports.
     Closes: bug#580692, thanks to Ken Neighbors.
   * Option to use "nice" to lower the priority of cron scripts.
     Closes: bug#580693, thanks to Ken Neighbors.
   * Set default language (en) for static reports generation
   * Cosmetic improvements to cron scripts.
     Closes: bug#580704.
   * Recognize method/protocol RTSP in uppercase.
     Closes: bug#350601, thanks to Lee Maguire.
   * Report permissions problem while reading awstats.custom.conf.
     Closes: bug#572353, thanks to Ken Neighbors.
 .
   [ Jonas Smedegaard ]
   * Reverse test logic when sourcing /etc/default/awstats to not fail if
     missing.
   * Respect TMPDIR for temporary files (i.e. use mktemp --tmpdir).
   * Update patches:
     + Drop (unapplied) patch 0011: applied upstream at some point in the
       past.
     + Unfuzz (unapplied) patch 0006.
     + Refresh patches 0006, 1015 and 1016 with compacting quilt options
       --no-index --no-timestamps -pab.
Checksums-Sha1: 
 65a0d00a9556356e27dbdddb70edba3dc1ce665c 1429 awstats_6.9.5~dfsg-3.dsc
 b6c4129ec07aac5e7d792c7ac97705243ea4d6aa 38727 
awstats_6.9.5~dfsg-3.debian.tar.gz
 191e157a51391c33478e3993f182ee550b324a3a 985542 awstats_6.9.5~dfsg-3_all.deb
Checksums-Sha256: 
 de94426295c62a1af0e2e2dbaf85e9d889201c6dfc5b94a03ca2da28c2cba657 1429 
awstats_6.9.5~dfsg-3.dsc
 2ded3ecf7e153309212a930a7f07d32080281024c8bcf165d64bae57bb2c4dc8 38727 
awstats_6.9.5~dfsg-3.debian.tar.gz
 c23a39f8ffdc118e2a65c5fb8199e7d20af65a65a77dc6313606cc1e5e99bc07 985542 
awstats_6.9.5~dfsg-3_all.deb
Files: 
 968b45d3f5f2692fa27c655abb51181e 1429 web optional awstats_6.9.5~dfsg-3.dsc
 b1f694a01ae50cb3dffb00ecec9887d9 38727 web optional 
awstats_6.9.5~dfsg-3.debian.tar.gz
 72d7e584ae477da97a4105e2feeb15ed 985542 web optional 
awstats_6.9.5~dfsg-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEAREDAAYFAkvz1IMACgkQn7DbMsAkQLiN7gCgp5n+ZuhPc29u8JYadtHz8lnu
6ecAoJHDbvbUWMK/1WHfk1QSoSRvTCoJ
=WRTw
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to