+hcoop-webalizer-config (1) squeeze; urgency=medium
+
+ * Actually install cron job
+
+ -- Clinton Ebadi <clinton@unknownlamer.org> Tue, 08 Apr 2014 03:43:49 -0400
+
hcoop-webalizer-config (0) squeeze; urgency=low
* Initial Release.
Section: hcoop-config/web
Priority: optional
Maintainer: Clinton Ebadi <clinton@unknownlamer.org>
-Build-Depends: debhelper (>= 8.0.0), config-package-dev (>= 5.1.0)
+Build-Depends: debhelper (>= 8.0.0), config-package-dev (>= 5.1.0), webalizer
Standards-Version: 3.9.4
Homepage: http://hcoop.net
Vcs-Git: git://git.hcoop.net/git/hcoop/debian/hcoop-webalizer-config.git
--- /dev/null
+/var/cache/webalizer
\ No newline at end of file
-/etc/cron.daily/webalizer.hcoop
\ No newline at end of file
+/etc/cron.daily/webalizer
\ No newline at end of file
--- /dev/null
+/etc/webalizer/webalizer.conf.hcoop </etc/webalizer/webalizer.conf.sample sed -e 's/^#\?LogFile\s.*$//' -e 's/^#\?Incremental\s.*$/Incremental yes/' -e 's/^#\?DNSCache\s.*$/DNSCache \/var\/cache\/webalizer\/dns_cache.db/'
\ No newline at end of file
WEBALIZER=/usr/bin/webalizer
WEBALIZER_CONFDIR=/afs/hcoop.net/common/etc/domtool/webalizer/config
+WEBBWSTATSDIR=/afs/hcoop.net/user/h/hc/hcoop/portal-root/etc/stats
[ -x ${WEBALIZER} ] || exit 0;
[ -d ${WEBALIZER_CONFDIR} ] || exit 0;
-WEBALIZER="/usr/bin/k5start -U -K 300 -t -f /etc/keytabs/service/webalizer ${WEBALIZER}"
+/usr/bin/k5start -U -b -K 300 -t \
+ -p /var/run/webalizer-k5start.pid \
+ -f /etc/keytabs/service/webalizer
#${WEBALIZER} -c /etc/webalizer/main.conf -Q || continue
-for i in ${WEBALIZER_CONFDIR}/*.conf; do
+for i in ${WEBALIZER_CONFDIR}/*/*.conf; do
# exists ?
[ -f $i ] || continue;
fi;
done;
+/usr/local/sbin/webbw > $WEBBWSTATSDIR/webbw
+/usr/local/sbin/webbw 1 > $WEBBWSTATSDIR/webbw.last
+/usr/local/sbin/webbw 2 > $WEBBWSTATSDIR/webbw.last2
+
+
+[ -r /var/run/webalizer-k5start.pid ] && \
+ kill `cat /var/run/webalizer-k5start.pid `;
+
# exit with webalizer's exit code
exit $RET;
%:
dh $@ --with=config-package
+
+override_dh_installcron:
+ dh_installcron --name=hcoop-webalizer