--- /dev/null
+webalizer-cn
+------------
+
+Webalizer stranicama mozete pristupiti na web adresi
+
+ http://host.domena.hr/stats/
+
+gdje je 'host' hostname posluzitelja na kojem je webalizer-cn
+paket instaliran, a 'domena.hr' domena Vase ustanove.
+
+Pristup se postavlja pomocu 'htpasswd' alata. Datoteka koja
+sadrzi popis korisnika i zaporke nalazi se na lokaciji:
+
+ /var/www/webalizer/.htpasswd
+
+Pocetna zaporka za pristup je poslana root korisniku prilikom
+instalacije paketa.
+
+
+ -- Dragan Dosen <ddosen@ffzg.hr> Thu, 25 Oct 2007 17:21:17 +0200
--- /dev/null
+changelog.CARNet
\ No newline at end of file
--- /dev/null
+webalizer-cn (2.01.10-32) etch; urgency=low
+
+ * Prva inacica paketa za Debian etch distribuciju.
+ * Paket od sada ovisi o Apache2 web serveru (apache2-cn Debian paket).
+ * Izmjene unutar postinst skripte - koriste se cp_echo i cp_mail
+ funkcije iz carnet-tools-cn paketa.
+ * U slucaju da se prije koristio Apache 1.x web server, Webalizer
+ konfiguracija iz /etc/apache/conf.d/ se prebacuje u direktorij
+ /etc/apache2/conf.d/.
+ * Konfiguracija za Webalizer se nalazi na novim lokacijama:
+ - /etc/webalizer/webalizer.conf
+ - /etc/apache2/conf.d/webalizer-cn.conf
+
+ -- Dragan Dosen <ddosen@ffzg.hr> Thu, 25 Oct 2007 17:21:17 +0200
+
+webalizer-cn (2.01.10-1) sarge; urgency=low
+
+ * Inicijalno izdanje paketa, NMU.
+ * Postavljen /stats/ link koji radi bez obzira na DocumentRoot.
+ * Dodana sifra za pristup (copy/paste Icinih skripti za mrtg-cn, thanks!).
+
+ -- Zoran Dzelajlija <jelly+paketi@srce.hr> Wed, 31 Mar 2004 01:43:20 +0200
--- /dev/null
+Source: webalizer-cn
+Section: web
+Origin: carnet
+Priority: optional
+Maintainer: Dragan Dosen <ddosen@ffzg.hr>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: webalizer-cn
+Architecture: all
+Pre-Depends: apache2-cn (>= 2.2)
+Depends: webalizer (>= 2.01.10-32), apache-common (>= 1.3.29), makepasswd, carnet-tools-cn (>= 2.0), perl (>= 5.8.4-2)
+Description: web server log analysis program
+ The Webalizer was designed to scan web server log files in various formats
+ and produce usage statistics in HTML format for viewing through a browser.
+ The Webalizer produces yearly, monthly, daily and hourly statistics. In the
+ monthly reports, various statistics may be produced to show overall usage,
+ usage by day and hour, usage by visiting sites, URLs, user agents
+ (browsers), referrers and country. The Webalizer is highly configurable by
+ use of either command line options or a configuration file, allowing the
+ program to be tailored to individual needs easily.
+ .
+ Homepage: http://www.mrunix.net/webalizer/
+ .
+ This package provides CARNet configuration for Webalizer.
+
--- /dev/null
+/etc/webalizer
--- /dev/null
+debian/README.CARNet
+debian/changelog.CARNet
\ No newline at end of file
--- /dev/null
+webalizer-cn.conf /etc/apache2/conf.d
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+[ "$1" = "configure" ] || exit 0
+[ "$DEBIAN_SCRIPT_DEBUG" ] && set -x
+
+# Load CARNet Tools
+. /usr/share/carnet-tools/functions.sh
+
+# Debconf
+. /usr/share/debconf/confmodule
+
+# Get some useful functions (apache-common)
+. /usr/share/apache/postinst.common
+
+dir=/var/www/webalizer
+htpasswd=$dir/.htpasswd
+CONF=/etc/webalizer/webalizer.conf
+BACKUPDIR=/var/backups
+CONFBAK=$BACKUPDIR/`basename $CONF`.bak
+oldreporttitle="Usage Statistics for"
+reporttitle="Statistika pristupa za"
+
+
+# Check if there is some old webalizer-cn.conf file in Apache 1.x conf.d directory -ddosen
+if [ -f "/etc/apache/conf.d/webalizer-cn.conf" ]; then
+ if ! cmp -s "/etc/apache/conf.d/webalizer-cn.conf" "/etc/apache2/conf.d/webalizer-cn.conf"; then
+ mv /etc/apache/conf.d/webalizer-cn.conf /etc/apache2/conf.d/webalizer-cn.conf
+ fi
+fi
+
+temp=`pget $CONF OutputDir |tail -n 1|awk '{print $NF}'`
+if [ "$temp" != "$dir" ]; then
+ #cp_echo "CN: Found custom OutputDir value: $temp, not touching anything!"
+ db_set webalizer/directory "$temp" || true
+fi
+
+# Customise ReportTitle
+temp=`pget $CONF ReportTitle |tail -n 1|perl -pe 's/(ReportTitle\s+?)(.*$)/$2/'`
+if [ "$temp" = "$oldreporttitle" ]; then
+ pset $CONF ReportTitle "$reporttitle"
+ db_set webalizer/doc_title "$reporttitle" || true
+fi
+
+db_stop
+
+# Reload Apache2 web server
+if [ -x /etc/init.d/apache2 ]; then
+ /etc/init.d/apache2 reload || true
+fi
+
+# Send mail with informations
+if [ ! -f $htpasswd ]; then
+ passwd=`makepasswd`
+ htpasswd -bc $htpasswd admin $passwd 2> /dev/null
+ cp_echo ""
+ cp_echo "CN: Webalizer URL is http://`hostname -f`/stats/"
+ cp_echo "CN: User: admin"
+ cp_echo "CN: Password: $passwd"
+ cp_echo ""
+ cp_echo "CN: Use \"htpasswd $htpasswd admin\" to change it."
+ cp_mail "webalizer-cn"
+fi
--- /dev/null
+#!/bin/sh
+
+set -e
+
+[ "$1" = "remove" ] || exit 0
+
+# Placeholder
+exit 0
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+# dh_installchangelogs
+ dh_installdocs
+ dh_install -X.svn
+# dh_installexamples
+# dh_install
+# dh_installmenu
+ dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+# dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums -x
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- /dev/null
+Alias /stats /var/www/webalizer
+<Directory /var/www/webalizer>
+ AuthType Basic
+ AuthName Stats
+ AuthUserFile /var/www/webalizer/.htpasswd
+
+ <Limit GET POST>
+ require valid-user
+ </Limit>
+</Directory>